-
Notifications
You must be signed in to change notification settings - Fork 167
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 #2895 from microsoftgraph/WeeklyExamplesUpdate/202…
…408090307 [v2] Examples Update
- Loading branch information
Showing
61 changed files
with
712 additions
and
328 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 | ||
|
11 changes: 11 additions & 0 deletions
11
src/Bookings/beta/examples/Get-MgBetaVirtualEventWebinarRegistrationSession.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,11 @@ | ||
### Example 1: Code snippet | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Beta.Bookings | ||
Get-MgBetaVirtualEventWebinarRegistrationSession -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventRegistrationId $virtualEventRegistrationId | ||
``` | ||
This example shows how to use the Get-MgBetaVirtualEventWebinarRegistrationSession 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
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
88 changes: 88 additions & 0 deletions
88
src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistration.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,88 @@ | ||
### Example 1: Creating registration record with delegated permission | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Beta.Bookings | ||
$params = @{ | ||
preferredTimezone = "Pacific Standard Time" | ||
preferredLanguage = "en-us" | ||
registrationQuestionAnswers = @( | ||
@{ | ||
questionId = "95320781-96b3-4b8f-8cf8-e6561d23447a" | ||
value = $null | ||
booleanValue = $null | ||
multiChoiceValues = @( | ||
"Seattle" | ||
) | ||
} | ||
@{ | ||
questionId = "4577afdb-8bee-4219-b482-04b52c6b855c" | ||
value = $null | ||
booleanValue = $true | ||
multiChoiceValues = @( | ||
) | ||
} | ||
@{ | ||
questionId = "80fefcf1-caf7-4cd3-b8d7-159e17c47f20" | ||
value = $null | ||
booleanValue = $null | ||
multiChoiceValues = @( | ||
"Cancun" | ||
"Hoboken" | ||
"Beijing" | ||
) | ||
} | ||
) | ||
} | ||
New-MgBetaVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params | ||
``` | ||
This example shows creating registration record with delegated permission | ||
|
||
### Example 2: Creating registration record with application permission | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Beta.Bookings | ||
$params = @{ | ||
firstName = "Diane" | ||
lastName = "Demoss" | ||
email = "DianeDemoss@contoso.com" | ||
preferredTimezone = "Pacific Standard Time" | ||
preferredLanguage = "en-us" | ||
registrationQuestionAnswers = @( | ||
@{ | ||
questionId = "95320781-96b3-4b8f-8cf8-e6561d23447a" | ||
value = $null | ||
booleanValue = $null | ||
multiChoiceValues = @( | ||
"Seattle" | ||
) | ||
} | ||
@{ | ||
questionId = "4577afdb-8bee-4219-b482-04b52c6b855c" | ||
value = $null | ||
booleanValue = $true | ||
multiChoiceValues = @( | ||
) | ||
} | ||
@{ | ||
questionId = "80fefcf1-caf7-4cd3-b8d7-159e17c47f20" | ||
value = $null | ||
booleanValue = $null | ||
multiChoiceValues = @( | ||
"London" | ||
"New York City" | ||
) | ||
} | ||
) | ||
} | ||
New-MgBetaVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params | ||
``` | ||
This example shows creating registration record with application permission | ||
|
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
1 change: 1 addition & 0 deletions
1
src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByEmail.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 @@ | ||
|
1 change: 1 addition & 0 deletions
1
src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByUserId.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 @@ | ||
|
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
11 changes: 11 additions & 0 deletions
11
...tions/beta/examples/New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot.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,11 @@ | ||
### Example 1: Code snippet | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Beta.DeviceManagement.Actions | ||
New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot -CloudPCId $cloudPCId | ||
``` | ||
This example shows how to use the New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot Cmdlet. | ||
|
15 changes: 15 additions & 0 deletions
15
...nt.Actions/beta/examples/Resize-MgBetaDeviceManagementVirtualEndpointCloudPc.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,15 @@ | ||
### Example 1: Code snippet | ||
|
||
```powershell | ||
Import-Module Microsoft.Graph.Beta.DeviceManagement.Actions | ||
$params = @{ | ||
targetServicePlanId = "30d0e128-de93-41dc-89ec-33d84bb662a0" | ||
} | ||
Resize-MgBetaDeviceManagementVirtualEndpointCloudPc -CloudPCId $cloudPCId -BodyParameter $params | ||
``` | ||
This example shows how to use the Resize-MgBetaDeviceManagementVirtualEndpointCloudPc 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
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.