-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Oct 4, 2024
1 parent
b685838
commit 962d256
Showing
82 changed files
with
930 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
23 changes: 23 additions & 0 deletions
23
src/Applications/beta/examples/Set-MgBetaServicePrincipalClaimPolicy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### Example 1: Code snippet | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Beta.Applications | ||
$params = @{ | ||
"@odata.type" = "#microsoft.graph.customClaimsPolicy" | ||
includeBasicClaimSet = "Boolean" | ||
includeApplicationIdInIssuer = "Boolean" | ||
audienceOverride = "String" | ||
claims = @( | ||
@{ | ||
"@odata.type" = "microsoft.graph.customClaim" | ||
} | ||
) | ||
} | ||
Set-MgBetaServicePrincipalClaimPolicy -ServicePrincipalId $servicePrincipalId -BodyParameter $params | ||
``` | ||
This example shows how to use the Set-MgBetaServicePrincipalClaimPolicy Cmdlet. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Example | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Applications | ||
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId | ||
``` | ||
This example will### example | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Example 1: Code snippet | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Beta.Bookings | ||
New-MgBetaApproval | ||
``` | ||
This example shows how to use the New-MgBetaApproval Cmdlet. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Example 1: Code snippet | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Beta.Bookings | ||
Stop-MgBetaApprovalItem -ApprovalItemId $approvalItemId | ||
``` | ||
This example shows how to use the Stop-MgBetaApprovalItem Cmdlet. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### Example 1: Activate an inactive protection policy | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Bookings | ||
Initialize-MgBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId | ||
``` | ||
This example will activate an inactive protection policy | ||
|
||
### Example 2: Activate an active protection policy | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Bookings | ||
Initialize-MgBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId | ||
``` | ||
This example will activate an active protection policy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = @{ | ||
effectiveDateTime = [System.DateTime]::Parse("2024-04-19T12:01:03.45Z") | ||
} | ||
Initialize-MgBackupRestoreServiceApp -ServiceAppId $serviceAppId -BodyParameter $params | ||
``` | ||
This example shows how to use the Initialize-MgBackupRestoreServiceApp Cmdlet. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Example 1: Code snippet | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Bookings | ||
Initialize-MgBackupRestoreSession -RestoreSessionBaseId $restoreSessionBaseId | ||
``` | ||
This example shows how to use the Initialize-MgBackupRestoreSession Cmdlet. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### Example 1: Deactivate an active protection policy | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Bookings | ||
Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId | ||
``` | ||
This example will deactivate an active protection policy | ||
|
||
### Example 2 : Deactivate a protection policy in updating state | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Bookings | ||
Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId | ||
``` | ||
This example will### example 2 : deactivate a protection policy in updating state | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Example 1: Code snippet | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Bookings | ||
Invoke-MgDeactivateSolutionBackupRestoreServiceApp -ServiceAppId $serviceAppId | ||
``` | ||
This example shows how to use the Invoke-MgDeactivateSolutionBackupRestoreServiceApp Cmdlet. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
### Example 1: Search request | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Bookings | ||
$params = @{ | ||
protectionUnitIds = @( | ||
"23014d8c-71fe-4d00-a01a-31850bc5b42a" | ||
"43014d8c-71fe-4d00-a01a-31850bc5b42b" | ||
"63014d8c-71fe-4d00-a01a-31850bc5b42c" | ||
"83014d8c-71fe-4d00-a01a-31850bc5b42d" | ||
) | ||
protectionTimePeriod = @{ | ||
startDateTime = [System.DateTime]::Parse("2021-01-01T00:00:00Z") | ||
endDateTime = [System.DateTime]::Parse("2021-01-08T00:00:00Z") | ||
} | ||
restorePointPreference = "latest" | ||
tags = "fastRestore" | ||
} | ||
Search-MgBackupRestorePoint -BodyParameter $params | ||
``` | ||
This example will search request | ||
|
||
### Example 2: Search with artifactQuery expression | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Bookings | ||
$params = @{ | ||
artifactQuery = @{ | ||
queryExpression = "(Sender -eq '[email protected]') -and (Subject -like '*Check email*' -or Subject -like ' Important') -and (HasAttachment -eq 'true') -and (PitrDumpsterActionTriggeredTime -gt '{2024-09-21T08:20:00.0000000Z}')" | ||
artifactType = "message" | ||
} | ||
protectionUnitIds = @( | ||
"23014d8c-71fe-4d00-a01a-31850bc5b42a" | ||
) | ||
protectionTimePeriod = @{ | ||
startDateTime = [System.DateTime]::Parse("2021-01-01T00:00:00Z") | ||
} | ||
restorePointPreference = "oldest" | ||
} | ||
Search-MgBackupRestorePoint -BodyParameter $params | ||
``` | ||
This example will search with artifactquery expression | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.