Skip to content

Commit cdc11e3

Browse files
authored
Merge pull request #2955 from microsoftgraph/WeeklyExamplesUpdate/202409130307
[v2] Examples Update
2 parents 609948f + 8bd309c commit cdc11e3

11 files changed

+97
-14
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Applications
6+
7+
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example will### example
11+
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
1-
### Example
2-
3-
```powershell
4-
5-
Import-Module Microsoft.Graph.Applications
6-
7-
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8-
9-
```
10-
This example will### example
11-
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Bookings
6+
7+
$params = @{
8+
appOwnerTenantId = "23014d8c-71fe-4d00-a01a-31850bc5b42a"
9+
}
10+
11+
Enable-MgBackupRestore -BodyParameter $params
12+
13+
```
14+
This example shows how to use the Enable-MgBackupRestore Cmdlet.
15+
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1-
### Example 1: Code snippet
1+
### Example 1: Retrieve a policy
22

33
```powershell
44
55
Import-Module Microsoft.Graph.Identity.Governance
66
7-
Get-MgEntitlementManagementAssignmentPolicy
7+
Get-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId
88
99
```
10-
This example shows how to use the Get-MgEntitlementManagementAssignmentPolicy Cmdlet.
10+
This example will retrieve a policy
11+
12+
### Example 2: Retrieve the custom extension stage settings for a policy
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Identity.Governance
17+
18+
Get-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId -ExpandProperty "customExtensionStageSettings(`$expand=customExtension)"
19+
20+
```
21+
This example will retrieve the custom extension stage settings for a policy
1122

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Reports
6+
7+
Get-MgAdminReportSetting
8+
9+
```
10+
This example shows how to use the Get-MgAdminReportSetting Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Security
6+
7+
Get-MgBetaSecurityPartnerSecurityScore
8+
9+
```
10+
This example shows how to use the Get-MgBetaSecurityPartnerSecurityScore Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Security
6+
7+
Get-MgBetaSecurityPartnerSecurityScoreCustomerInsight
8+
9+
```
10+
This example shows how to use the Get-MgBetaSecurityPartnerSecurityScoreCustomerInsight Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Security
6+
7+
Get-MgBetaSecurityPartnerSecurityScoreHistory
8+
9+
```
10+
This example shows how to use the Get-MgBetaSecurityPartnerSecurityScoreHistory Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Security
6+
7+
Get-MgBetaSecurityPartnerSecurityScoreRequirement
8+
9+
```
10+
This example shows how to use the Get-MgBetaSecurityPartnerSecurityScoreRequirement Cmdlet.
11+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)