Skip to content

Commit

Permalink
Updating examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Sep 13, 2024
1 parent 609948f commit 8bd309c
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example

```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
```
This example will### example

Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example

```powershell
Import-Module Microsoft.Graph.Applications
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
```
This example will### example

15 changes: 15 additions & 0 deletions src/Bookings/v1.0/examples/Enable-MgBackupRestore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Bookings
$params = @{
appOwnerTenantId = "23014d8c-71fe-4d00-a01a-31850bc5b42a"
}
Enable-MgBackupRestore -BodyParameter $params
```
This example shows how to use the Enable-MgBackupRestore Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
### Example 1: Code snippet
### Example 1: Retrieve a policy

```powershell
Import-Module Microsoft.Graph.Identity.Governance
Get-MgEntitlementManagementAssignmentPolicy
Get-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId
```
This example shows how to use the Get-MgEntitlementManagementAssignmentPolicy Cmdlet.
This example will retrieve a policy

### Example 2: Retrieve the custom extension stage settings for a policy

```powershell
Import-Module Microsoft.Graph.Identity.Governance
Get-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId -ExpandProperty "customExtensionStageSettings(`$expand=customExtension)"
```
This example will retrieve the custom extension stage settings for a policy

11 changes: 11 additions & 0 deletions src/Reports/v1.0/examples/Get-MgAdminReportSetting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Reports
Get-MgAdminReportSetting
```
This example shows how to use the Get-MgAdminReportSetting Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Security
Get-MgBetaSecurityPartnerSecurityScore
```
This example shows how to use the Get-MgBetaSecurityPartnerSecurityScore Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Security
Get-MgBetaSecurityPartnerSecurityScoreCustomerInsight
```
This example shows how to use the Get-MgBetaSecurityPartnerSecurityScoreCustomerInsight Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Security
Get-MgBetaSecurityPartnerSecurityScoreHistory
```
This example shows how to use the Get-MgBetaSecurityPartnerSecurityScoreHistory Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Security
Get-MgBetaSecurityPartnerSecurityScoreRequirement
```
This example shows how to use the Get-MgBetaSecurityPartnerSecurityScoreRequirement Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 8bd309c

Please sign in to comment.