Skip to content

Commit 7329697

Browse files
authored
Merge pull request #2029 from microsoftgraph/WeeklyExamplesUpdate/202305222020
[v2] Examples Update
2 parents 7a20ffb + a25da01 commit 7329697

File tree

2,967 files changed

+40569
-28555
lines changed

Some content is hidden

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

2,967 files changed

+40569
-28555
lines changed

src/Applications/beta/examples/Get-MgBetaApplicationExtensionProperty.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
### Example 1: Using the Get-MgBetaApplicationExtensionProperty Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
4-
Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId
5-
```
6-
This example shows how to use the Get-MgBetaApplicationExtensionProperty Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8-
### Example 2: Using the Get-MgBetaApplicationExtensionProperty Cmdlet
9-
```powershell
10-
Import-Module Microsoft.Graph.Beta.Applications
11-
Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId
12-
```
13-
This example shows how to use the Get-MgBetaApplicationExtensionProperty Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
1+
### Example 1: Code snippet
2+
3+
```powershellImport-Module Microsoft.Graph.Beta.Applications
4+
5+
Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId
6+
```
7+
This example shows how to use the Get-MgBetaBetaApplicationExtensionProperty Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
### Example 1: Using the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
4-
Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
5-
```
6-
This example shows how to use the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8-
### Example 2: Using the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet
9-
```powershell
10-
Import-Module Microsoft.Graph.Beta.Applications
11-
Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId
12-
```
13-
This example shows how to use the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
1+
### Example 1: Code snippet
2+
3+
```powershellImport-Module Microsoft.Graph.Beta.Applications
4+
5+
$params = @{
6+
name = "testing02"
7+
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
8+
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
9+
description = "Updated description"
10+
audiences = @(
11+
"api://AzureADTokenExchange"
12+
)
13+
}
14+
15+
Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params
16+
```
17+
This example shows how to use the Get-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet.
18+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
19+

src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
### Example 1: Using the Get-MgBetaApplicationTemplate Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
4-
Get-MgBetaApplicationTemplate -ApplicationTemplateId $applicationTemplateId
5-
```
6-
This example shows how to use the Get-MgBetaApplicationTemplate Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8-
### Example 2: Using the Get-MgBetaApplicationTemplate Cmdlet
9-
```powershell
10-
Import-Module Microsoft.Graph.Beta.Applications
11-
Get-MgBetaApplicationTemplate
12-
```
13-
This example shows how to use the Get-MgBetaApplicationTemplate Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
1+
### Example 1: Code snippet
2+
3+
```powershellImport-Module Microsoft.Graph.Beta.Applications
4+
5+
Get-MgBetaApplicationTemplate -ApplicationTemplateId $applicationTemplateId
6+
```
7+
This example shows how to use the Get-MgBetaBetaApplicationTemplate Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Example 1: {{ Add title here }}
22
```powershell
3-
PS C:\> {{ Add code here }}
3+
PS C:\> {{ Add code here }}
44
55
{{ Add output here }}
66
```
@@ -9,10 +9,9 @@ PS C:\> {{ Add code here }}
99

1010
### Example 2: {{ Add title here }}
1111
```powershell
12-
PS C:\> {{ Add code here }}
12+
PS C:\> {{ Add code here }}
1313
1414
{{ Add output here }}
1515
```
1616

1717
{{ Add description here }}
18-

src/Applications/beta/examples/Get-MgBetaServicePrincipalAppRoleAssignedTo.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
### Example 1: Using the Get-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
4-
Get-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId
5-
```
6-
This example shows how to use the Get-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
1+
### Example 1: Code snippet
2+
3+
```powershellImport-Module Microsoft.Graph.Beta.Applications
4+
5+
Remove-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId
6+
```
7+
This example shows how to use the Get-MgBetaBetaServicePrincipalAppRoleAssignedTo Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

src/Applications/beta/examples/Get-MgBetaServicePrincipalDelegatedPermissionClassification.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
### Example 1: Using the Get-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
4-
Get-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId
5-
```
6-
This example shows how to use the Get-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
1+
### Example 1: Code snippet
2+
3+
```powershellImport-Module Microsoft.Graph.Beta.Applications
4+
5+
Remove-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId
6+
```
7+
This example shows how to use the Get-MgBetaBetaServicePrincipalDelegatedPermissionClassification Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

src/Applications/beta/examples/New-MgBetaApplicationAppManagementPolicyByRef.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
### Example 1: Using the New-MgBetaApplicationAppManagementPolicyByRef Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
1+
### Example 1: Code snippet
2+
3+
```powershellImport-Module Microsoft.Graph.Beta.Applications
4+
45
$params = @{
5-
"@odata.id" = "https://graph.microsoft.com/beta/policies/appManagementPolicies/{id}"
6+
"@odata.id" = "https://graph.microsoft.com/v1.0/policies/appManagementPolicies/{id}"
67
}
7-
New-MgBetaApplicationAppManagementPolicyByRef -ApplicationId $applicationId -BodyParameter $params
8-
```
9-
This example shows how to use the New-MgBetaApplicationAppManagementPolicyByRef Cmdlet.
10-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8+
9+
New-MgBetaApplicationAppManagementPolicyByRef -ApplicationId $applicationId -BodyParameter $params
10+
```
11+
This example shows how to use the New-MgBetaBetaApplicationAppManagementPolicyByRef Cmdlet.
12+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13+

src/Applications/beta/examples/New-MgBetaApplicationExtensionProperty.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
### Example 1: Using the New-MgBetaApplicationExtensionProperty Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
1+
### Example 1: Code snippet
2+
3+
```powershellImport-Module Microsoft.Graph.Beta.Applications
4+
45
$params = @{
5-
Name = "jobGroup"
6-
DataType = "String"
7-
TargetObjects = @(
6+
name = "jobGroup"
7+
dataType = "String"
8+
targetObjects = @(
89
"User"
910
)
1011
}
11-
New-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params
12-
```
13-
This example shows how to use the New-MgBetaApplicationExtensionProperty Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
12+
13+
New-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params
14+
```
15+
This example shows how to use the New-MgBetaBetaApplicationExtensionProperty Cmdlet.
16+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
17+

src/Applications/beta/examples/New-MgBetaApplicationFederatedIdentityCredential.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
### Example 1: Using the New-MgBetaApplicationFederatedIdentityCredential Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
1+
### Example 1: Code snippet
2+
3+
```powershellImport-Module Microsoft.Graph.Beta.Applications
4+
45
$params = @{
5-
Name = "testing02"
6-
Issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
7-
Subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
8-
Audiences = @(
6+
name = "testing02"
7+
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
8+
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
9+
audiences = @(
910
"api://AzureADTokenExchange"
1011
)
1112
}
12-
New-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params
13-
```
14-
This example shows how to use the New-MgBetaApplicationFederatedIdentityCredential Cmdlet.
15-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13+
14+
New-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params
15+
```
16+
This example shows how to use the New-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet.
17+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
18+

src/Applications/beta/examples/New-MgBetaApplicationTokenIssuancePolicyByRef.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
### Example 1: Using the New-MgBetaApplicationTokenIssuancePolicyByRef Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
1+
### Example 1: Code snippet
2+
3+
```powershellImport-Module Microsoft.Graph.Beta.Applications
4+
45
$params = @{
5-
"@odata.id" = "https://graph.microsoft.com/beta/policies/tokenIssuancePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9"
6+
"@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenIssuancePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9"
67
}
7-
New-MgBetaApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params
8-
```
9-
This example shows how to use the New-MgBetaApplicationTokenIssuancePolicyByRef Cmdlet.
10-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8+
9+
New-MgBetaApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params
10+
```
11+
This example shows how to use the New-MgBetaBetaApplicationTokenIssuancePolicyByRef Cmdlet.
12+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13+

0 commit comments

Comments
 (0)