Skip to content

Commit 5524332

Browse files
committed
Rectified formatting on hand written examples
1 parent ef122d7 commit 5524332

File tree

80 files changed

+472
-312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+472
-312
lines changed

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Add-MgApplicationPassword.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ Adds a strong password or secret to an application.
4949
### EXAMPLE 1
5050
```powershell
5151
Connect-MgGraph -Scopes 'Application.ReadWrite.All'
52-
```
5352
5453
$appObjectId = 'eaf1e531-0d58-4874-babe-b9a9f436e6c3'
5554
5655
$passwordCred = @{
57-
displayName = 'Created in PowerShell'
58-
endDateTime = (Get-Date).AddMonths(6)
56+
displayName = 'Created in PowerShell'
57+
endDateTime = (Get-Date).AddMonths(6)
5958
}
6059
6160
$secret = Add-MgApplicationPassword -applicationId $appObjectId -PasswordCredential $passwordCred
@@ -69,22 +68,22 @@ KeyId : c82bb763-741b-4575-9d9d-df7e766f6999
6968
SecretText : Q_e8Q~ZDWJD.bkgajbREp-VFFUayCuEk8b1hDcr9
7069
StartDateTime : 26/5/2022 1:03:31 pm
7170
AdditionalProperties : {[@odata.context,
72-
https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential]}
71+
https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential]}
7372
73+
```
7474
### EXAMPLE 2
7575
```powershell
7676
Connect-MgGraph -Scopes 'Application.ReadWrite.All'
77-
```
7877
7978
$appObjectId = 'eaf1e531-0d58-4874-babe-b9a9f436e6c3'
8079
8180
$startDate = (Get-Date).AddDays(1).Date
8281
$endDate = $startDate.AddMonths(6)
8382
8483
$passwordCred = @{
85-
displayName = 'Created in PowerShell'
86-
startDateTime = $startDate
87-
endDateTime = $endDate
84+
displayName = 'Created in PowerShell'
85+
startDateTime = $startDate
86+
endDateTime = $endDate
8887
}
8988
9089
$secret = Add-MgApplicationPassword -applicationId $appObjectId -PasswordCredential $passwordCred
@@ -98,10 +97,12 @@ KeyId : 082bf20f-63d6-4970-bb4e-55e504f50d8b
9897
SecretText : TiA8Q~Zs7ej1cGtlW0qnmuFi~JlxXTZew_tU1bGA
9998
StartDateTime : 26/5/2022 2:00:00 pm
10099
AdditionalProperties : {[@odata.context,
101-
https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential]}
100+
https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential]}
102101
102+
```
103103
## PARAMETERS
104104

105+
105106
### -AdditionalProperties
106107
Additional Parameters
107108

@@ -276,3 +277,4 @@ To create the parameters described below, construct a hash table containing the
276277

277278
## RELATED LINKS
278279
[Add-MgBetaApplicationPassword](/powershell/module/Microsoft.Graph.Beta.Applications/Add-MgBetaApplicationPassword?view=graph-powershell-beta)
280+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Get-MgApplication.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,32 @@ Get the properties and relationships of an application object.
4242
### EXAMPLE 1
4343
```powershell
4444
Connect-MgGraph -Scopes 'Application.Read.All'
45-
Get-MgApplication |
46-
Format-List Id, DisplayName, AppId, SignInAudience, PublisherDomain
47-
```
45+
Get-MgApplication |
46+
Format-List Id, DisplayName, AppId, SignInAudience, PublisherDomain
4847
4948
Id : 8ea936e0-cb74-46c0-8408-d4614a596267
5049
DisplayName : Test App
5150
AppId : 39b09640-ec3e-44c9-b3de-f52db4e1cf66
5251
SignInAudience : AzureADandPersonalMicrosoftAccount
5352
PublisherDomain : Contoso.com
5453
54+
```
5555
### EXAMPLE 2
5656
```powershell
5757
Connect-MgGraph -Scopes 'Application.Read.All'
58-
Get-MgApplication -Filter "AppId eq '39b09640-ec3e-44c9-b3de-f52db4e1cf66'" |
59-
Format-List Id, DisplayName, AppId, SignInAudience, PublisherDomain
60-
```
58+
Get-MgApplication -Filter "AppId eq '39b09640-ec3e-44c9-b3de-f52db4e1cf66'" |
59+
Format-List Id, DisplayName, AppId, SignInAudience, PublisherDomain
6160
6261
DisplayName : Test App
6362
AppId : 39b09640-ec3e-44c9-b3de-f52db4e1cf66
6463
SignInAudience : AzureADandPersonalMicrosoftAccount
6564
PublisherDomain : Contoso.com
6665
66+
```
6767
### EXAMPLE 3
6868
```powershell
6969
Connect-MgGraph -Scopes 'Application.Read.All'
7070
Get-MgApplication -ConsistencyLevel eventual -Count appCount
71-
```
7271
7372
Id DisplayName AppId SignInAudience PublisherDomain
7473
-- ----------- ----- -------------- ---------------
@@ -78,30 +77,32 @@ dcaa0c3a-8dfa-4b47-bc04-0edbab42043a Principal-Test App bd38ad43-6c46-4cc6-b65c-
7877
f6b30057-7095-4e2c-89f8-224149f591b7 Testing App 00e80963-9bc0-4147-b9e0-2ba56093e7e6 AzureADandPersonalMicrosoftAccount Contoso.com
7978
fe4caed6-6182-4aca-b70b-b114c5334a8a New app 641992e9-d176-4aff-a3b6-a867b3ba48c4 AzureADandPersonalMicrosoftAccount Contoso.com
8079
80+
```
8181
### EXAMPLE 4
8282
```powershell
8383
Connect-MgGraph -Scopes 'Application.Read.All'
8484
Get-MgApplication -ConsistencyLevel eventual -Count appCount -Search '"DisplayName:Test"'
85-
```
8685
8786
Id DisplayName AppId SignInAudience PublisherDomain
8887
-- ----------- ----- -------------- ---------------
8988
dcaa0c3a-8dfa-4b47-bc04-0edbab42043a Principal-Test App bd38ad43-6c46-4cc6-b65c-a0db533a2a6f AzureADMyOrg Contoso.com
9089
f6b30057-7095-4e2c-89f8-224149f591b7 Testing App 00e80963-9bc0-4147-b9e0-2ba56093e7e6 AzureADandPersonalMicrosoftAccount Contoso.com
9190
91+
```
9292
### EXAMPLE 5
9393
```powershell
9494
Connect-MgGraph -Scopes 'Application.Read.All'
9595
Get-MgApplication -ConsistencyLevel eventual -Count appCount -Filter "startsWith(DisplayName, 'New')" -OrderBy DisplayName
96-
```
9796
9897
Id DisplayName AppId SignInAudience PublisherDomain
9998
-- ----------- ----- -------------- ---------------
10099
fe4caed6-6182-4aca-b70b-b114c5334a8a New app 641992e9-d176-4aff-a3b6-a867b3ba48c4 AzureADandPersonalMicrosoftAccount Contoso.com
101100
0672d487-4c0c-475a-bf22-0e714f015597 New apps ced14895-14ac-4dcf-8b93-0779f60c000d AzureADandPersonalMicrosoftAccount Contoso.com
102101
102+
```
103103
## PARAMETERS
104104

105+
105106
### -All
106107
List all pages.
107108

@@ -342,3 +343,4 @@ To create the parameters described below, construct a hash table containing the
342343

343344
## RELATED LINKS
344345
[Get-MgBetaApplication](/powershell/module/Microsoft.Graph.Beta.Applications/Get-MgBetaApplication?view=graph-powershell-beta)
346+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Get-MgServicePrincipal.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ Retrieve the properties and relationships of a servicePrincipal object.
4343
```powershell
4444
Connect-MgGraph -Scopes 'Application.Read.All'
4545
Get-MgServicePrincipal
46-
```
4746
4847
Id : 304ae362-7953-4d08-8e15-aeece4d01017c
4948
DisplayName : IC3 Gateway TestClone
@@ -55,23 +54,23 @@ DisplayName : Microsoft Forms
5554
AppId : 67c93110-694e-4a54-b1af-d6cd2e3b12d7
5655
SignInAudience : AzureADMultipleOrgs
5756
57+
```
5858
### EXAMPLE 2
5959
```powershell
6060
Connect-MgGraph -Scopes 'Application.Read.All'
61-
Get-MgServicePrincipal -Filter "DisplayName eq 'Power BI Service'" |
62-
Format-List Id, DisplayName,AppId, SignInAudience
63-
```
61+
Get-MgServicePrincipal -Filter "DisplayName eq 'Power BI Service'" |
62+
Format-List Id, DisplayName,AppId, SignInAudience
6463
6564
Id : 9518fb8f-8d9e-4aae-be20-d398f9cc59ac
6665
DisplayName : Power BI Service
6766
AppId : 60dbf324-9702-41cc-a5fa-f8d19804b014
6867
SignInAudience : AzureADMultipleOrgs
6968
69+
```
7070
### EXAMPLE 3
7171
```powershell
7272
Connect-MgGraph -Scopes 'Application.Read.All'
7373
Get-MgServicePrincipal -ConsistencyLevel eventual -Count spCount
74-
```
7574
7675
Id DisplayName AppId SignInAudience PublisherName
7776
-- ----------- ----- -------------- -------------
@@ -80,11 +79,11 @@ Id DisplayName
8079
0045f2ae-41d9-4373-98ac-3306fe51c9cf Dynamics Data Integration 2e49aa60-1bd3-43b6-8ab6-03ada3d9f08b AzureADMultipleOrgs Microsoft Services
8180
020ada9b-60b7-436f-8f00-22b198c2996a O365SBRM Service 9d06afd9-66c9-49a6-b385-ea7509332b0b AzureADMultipleOrgs Microsoft Service
8281
82+
```
8383
### EXAMPLE 4
8484
```powershell
8585
Connect-MgGraph -Scopes 'Application.Read.All'
8686
Get-MgServicePrincipal -ConsistencyLevel eventual -Count spCount -Filter "startsWith(DisplayName, 'a')" -Top 5
87-
```
8887
8988
Id DisplayName AppId SignInAudience PublisherName
9089
-- ----------- ----- -------------- -------------
@@ -94,11 +93,11 @@ Id DisplayName AppId
9493
1b339d7a-b9ba-4328-ae3c-6f21276628c7 Azure Analysis Services 4ac7d521-0382-477b-b0f8-7e1d95f85ca2 AzureADMultipleOrgs Microsoft Services
9594
1d322ee1-7cf7-442a-b480-d6d4bbe6ec54 App Protection c6e44401-4d0a-4542-ab22-ecd4c90d28d7 AzureADMultipleOrgs Microsoft Services
9695
96+
```
9797
### EXAMPLE 5
9898
```powershell
9999
Connect-MgGraph -Scopes 'Application.Read.All'
100100
Get-MgServicePrincipal -ConsistencyLevel eventual -Count spCount -Search '"DisplayName:Team"'
101-
```
102101
103102
Id DisplayName AppId SignInAudience PublisherName
104103
-- ----------- ----- -------------- -------------
@@ -110,8 +109,10 @@ Id DisplayName
110109
32cba72f-3403-4944-ada7-9173c8678247 App Studio for Microsoft Teams e1979c22-8b73-4aed-a4da-572cc4d0b832 AzureADMultipleOrgs Microsoft Services
111110
349be45f-663d-428e-bdab-b4ac26393614 Microsoft Teams AuthSvc a164aee5-7d0a-46bb-9404-37421d58bdf7 AzureADMultipleOrgs Microsoft Services
112111
112+
```
113113
## PARAMETERS
114114

115+
115116
### -All
116117
List all pages.
117118

@@ -352,3 +353,4 @@ To create the parameters described below, construct a hash table containing the
352353

353354
## RELATED LINKS
354355
[Get-MgBetaServicePrincipal](/powershell/module/Microsoft.Graph.Beta.Applications/Get-MgBetaServicePrincipal?view=graph-powershell-beta)
356+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Get-MgServicePrincipalAppRoleAssignment.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Supports $expand.
4444
### EXAMPLE 1
4545
```powershell
4646
Get-MgServicePrincipalAppRoleAssignment -ServicePrincipalId '0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61' | Format-List
47-
```
4847
4948
AppRoleId : 00000000-0000-0000-0000-000000000000
5049
CreatedDateTime : 8/31/2021 2:01:28 PM
@@ -56,8 +55,8 @@ PrincipalType : ServicePrincipal
5655
ResourceDisplayName : Office 365 Management APIs
5756
ResourceId : 557aedfc-007c-4904-918a-7e6fed2e7403
5857
AdditionalProperties : {[@odata.id, https://graph.microsoft.com/v2/fb625e04-52aa-42da-b10d-14f1195d665f/directoryObjects/$/Microsof
59-
t.DirectoryServices.ServicePrincipal('0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61')/appRoleAssignments/PRLbC6e4yUyM
60-
wr0XutBvYfZHkKGzlbxDr2I-QJWN9rs]}
58+
t.DirectoryServices.ServicePrincipal('0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61')/appRoleAssignments/PRLbC6e4yUyM
59+
wr0XutBvYfZHkKGzlbxDr2I-QJWN9rs]}
6160
6261
AppRoleId : 00000000-0000-0000-0000-000000000000
6362
CreatedDateTime : 8/31/2021 1:59:44 PM
@@ -69,11 +68,13 @@ PrincipalType : ServicePrincipal
6968
ResourceDisplayName : Office 365 SharePoint Online
7069
ResourceId : 1c48f923-4fbb-4d37-b772-4d577eefec9e
7170
AdditionalProperties : {[@odata.id, https://graph.microsoft.com/v2/fb625e04-52aa-42da-b10d-14f1195d665f/directoryObjects/$/Microsof
72-
t.DirectoryServices.ServicePrincipal('0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61')/appRoleAssignments/PRLbC6e4yUyM
73-
wr0XutBvYZsr7FiAW3pIqP4F9944yBc]}
71+
t.DirectoryServices.ServicePrincipal('0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61')/appRoleAssignments/PRLbC6e4yUyM
72+
wr0XutBvYZsr7FiAW3pIqP4F9944yBc]}
7473
74+
```
7575
## PARAMETERS
7676

77+
7778
### -All
7879
List all pages.
7980

@@ -329,3 +330,4 @@ To create the parameters described below, construct a hash table containing the
329330

330331
## RELATED LINKS
331332
[Get-MgBetaServicePrincipalAppRoleAssignment](/powershell/module/Microsoft.Graph.Beta.Applications/Get-MgBetaServicePrincipalAppRoleAssignment?view=graph-powershell-beta)
333+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Get-MgServicePrincipalOwner.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count
3737
### EXAMPLE 1
3838
```powershell
3939
Get-MgServicePrincipalOwner -ServicePrincipalId '1c48f923-4fbb-4d37-b772-4d577eefec9e'
40-
```
4140
4241
Id DeletedDateTime
4342
-- ---------------
4443
8a7c50d3-fcbd-4727-a889-8ab232dfea01
4544
45+
```
4646
## PARAMETERS
4747

48+
4849
### -All
4950
List all pages.
5051

@@ -241,3 +242,4 @@ ALIASES
241242
242243
## RELATED LINKS
243244
[Get-MgBetaServicePrincipalOwner](/powershell/module/Microsoft.Graph.Beta.Applications/Get-MgBetaServicePrincipalOwner?view=graph-powershell-beta)
245+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Remove-MgApplication.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ After that time, they are permanently deleted.
3939
### EXAMPLE 1
4040
```powershell
4141
Remove-MgApplication -ApplicationId '1bc44759-ef10-46de-b199-40c077768fff'
42-
```
4342
43+
```
4444
## PARAMETERS
4545

46+
4647
### -ApplicationId
4748
The unique identifier of application
4849

@@ -177,3 +178,4 @@ To create the parameters described below, construct a hash table containing the
177178

178179
## RELATED LINKS
179180
[Remove-MgBetaApplication](/powershell/module/Microsoft.Graph.Beta.Applications/Remove-MgBetaApplication?view=graph-powershell-beta)
181+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Remove-MgApplicationCreatedOnBehalfOfByRef.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ Delete entity from applications
3232
### Example 1: Delete an application
3333
```powershell
3434
Remove-MgApplication -ApplicationId '1bc44759-ef10-46de-b199-40c077768fff'
35-
```
3635
3736
This example deletes the specified application.
3837
38+
```
3939
## PARAMETERS
4040

41+
4142
### -ApplicationId
4243
key: id of application
4344

@@ -174,3 +175,4 @@ INPUTOBJECT `<IApplicationsIdentity>`: Identity Parameter
174175
- `[UserId <String>]`: key: id of user
175176

176177
## RELATED LINKS
178+

0 commit comments

Comments
 (0)