-
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.
Merge pull request #2060 from microsoftgraph/WeeklyExamplesUpdate/202…
…306020302 [v1] Examples Update
- Loading branch information
Showing
43 changed files
with
825 additions
and
860 deletions.
There are no files selected for viewing
23 changes: 9 additions & 14 deletions
23
src/Applications/Applications/examples/v1.0/Get-MgApplicationTemplate.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
16 changes: 9 additions & 7 deletions
16
src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipal.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
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
23 changes: 9 additions & 14 deletions
23
src/ChangeNotifications/ChangeNotifications/examples/v1.0/Get-MgSubscription.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
29 changes: 16 additions & 13 deletions
29
src/ChangeNotifications/ChangeNotifications/examples/v1.0/New-MgSubscription.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
16 changes: 9 additions & 7 deletions
16
src/ChangeNotifications/ChangeNotifications/examples/v1.0/Remove-MgSubscription.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
19 changes: 11 additions & 8 deletions
19
src/ChangeNotifications/ChangeNotifications/examples/v1.0/Update-MgSubscription.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
16 changes: 9 additions & 7 deletions
16
src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObject.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
16 changes: 9 additions & 7 deletions
16
src/DirectoryObjects/DirectoryObjects/examples/v1.0/Remove-MgDirectoryObject.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
6 changes: 5 additions & 1 deletion
6
src/Files/Files/examples/v1.0/Get-MgShareSharedDriveItemSharedDriveItem.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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
### Example 1: Using the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet | ||
### Example 1: Code snippet | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Files | ||
Get-MgShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId | ||
``` | ||
This example shows how to use the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet. | ||
|
||
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). | ||
|
23 changes: 9 additions & 14 deletions
23
src/Groups/Groups/examples/v1.0/Get-MgGroupLifecyclePolicy.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
23 changes: 7 additions & 16 deletions
23
...ples/v1.0/Get-MgGroupSettingTemplateGroupSettingTemplateGroupSettingTemplate.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
23 changes: 13 additions & 10 deletions
23
src/Groups/Groups/examples/v1.0/New-MgGroupLifecyclePolicy.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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
### Example 1: Using the New-MgGroupLifecyclePolicy Cmdlet | ||
```powershell | ||
Import-Module Microsoft.Graph.Groups | ||
### Example 1: Code snippet | ||
|
||
```powershellImport-Module Microsoft.Graph.Groups | ||
|
||
$params = @{ | ||
GroupLifetimeInDays = 100 | ||
ManagedGroupTypes = "Selected" | ||
AlternateNotificationEmails = "[email protected]" | ||
groupLifetimeInDays = 100 | ||
managedGroupTypes = "Selected" | ||
alternateNotificationEmails = "[email protected]" | ||
} | ||
New-MgGroupLifecyclePolicy -BodyParameter $params | ||
``` | ||
This example shows how to use the New-MgGroupLifecyclePolicy Cmdlet. | ||
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). | ||
|
||
New-MgGroupLifecyclePolicy -BodyParameter $params | ||
``` | ||
This example shows how to use the New-MgGroupLifecyclePolicy Cmdlet. | ||
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). | ||
|
16 changes: 9 additions & 7 deletions
16
src/Groups/Groups/examples/v1.0/Remove-MgGroupLifecyclePolicy.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
23 changes: 13 additions & 10 deletions
23
src/Groups/Groups/examples/v1.0/Update-MgGroupLifecyclePolicy.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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
### Example 1: Using the Update-MgGroupLifecyclePolicy Cmdlet | ||
```powershell | ||
Import-Module Microsoft.Graph.Groups | ||
### Example 1: Code snippet | ||
|
||
```powershellImport-Module Microsoft.Graph.Groups | ||
|
||
$params = @{ | ||
GroupLifetimeInDays = 180 | ||
ManagedGroupTypes = "Selected" | ||
AlternateNotificationEmails = "[email protected]" | ||
groupLifetimeInDays = 180 | ||
managedGroupTypes = "Selected" | ||
alternateNotificationEmails = "[email protected]" | ||
} | ||
Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params | ||
``` | ||
This example shows how to use the Update-MgGroupLifecyclePolicy Cmdlet. | ||
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). | ||
|
||
Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params | ||
``` | ||
This example shows how to use the Update-MgGroupLifecyclePolicy Cmdlet. | ||
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). | ||
|
23 changes: 9 additions & 14 deletions
23
...irectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContract.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
Oops, something went wrong.