Skip to content

[v2] Examples Update #2955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@