Skip to content

Commit 2d59834

Browse files
MIchaelMainerMicrosoft Graph DevX Tooling
andauthored
Updating examples (#3614)
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
1 parent e5a9466 commit 2d59834

132 files changed

Lines changed: 1918 additions & 49 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Applications
6+
7+
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.
11+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Applications
6+
7+
$params = @{
8+
"@odata.type" = "#microsoft.graph.approvedClientApp"
9+
id = "cd57c330-a543-4249-9486-c1c257341de6"
10+
}
11+
12+
New-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -BodyParameter $params
13+
14+
```
15+
This example shows how to use the New-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.
16+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Applications
6+
7+
Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -ApprovedClientAppId $approvedClientAppId
8+
9+
```
10+
This example shows how to use the Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.
11+

src/Applications/beta/examples/Update-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Applications
6+
7+
Get-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example shows how to use the Get-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Applications
6+
7+
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet.
11+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Applications
6+
7+
$params = @{
8+
"@odata.type" = "#microsoft.graph.approvedClientApp"
9+
displayName = "Client App 1"
10+
}
11+
12+
New-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -BodyParameter $params
13+
14+
```
15+
This example shows how to use the New-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.
16+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Applications
6+
7+
Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -ApprovedClientAppId $approvedClientAppId
8+
9+
```
10+
This example shows how to use the Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.
11+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Applications
6+
7+
$params = @{
8+
"@odata.type" = "#microsoft.graph.approvedClientApp"
9+
displayName = "Client App 1"
10+
}
11+
12+
Update-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -ApprovedClientAppId $approvedClientAppId -BodyParameter $params
13+
14+
```
15+
This example shows how to use the Update-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.
16+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
### Example 1: Change the date of service
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Bookings
6+
7+
$params = @{
8+
"@odata.type" = "#microsoft.graph.bookingAppointment"
9+
end = @{
10+
"@odata.type" = "#microsoft.graph.dateTimeTimeZone"
11+
dateTime = "2018-05-06T12:30:00.0000000+00:00"
12+
timeZone = "UTC"
13+
}
14+
start = @{
15+
"@odata.type" = "#microsoft.graph.dateTimeTimeZone"
16+
dateTime = "2018-05-06T12:00:00.0000000+00:00"
17+
timeZone = "UTC"
18+
}
19+
}
20+
21+
Update-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params
22+
23+
```
24+
This example will change the date of service
25+
26+
### Example 2: Update the customers for an appointment
27+
28+
```powershell
29+
30+
Import-Module Microsoft.Graph.Bookings
31+
32+
$params = @{
33+
"@odata.type" = "#microsoft.graph.bookingAppointment"
34+
customers = @(
35+
@{
36+
"@odata.type" = "#microsoft.graph.bookingCustomerInformation"
37+
customerId = "cd56bb19-c348-42c6-af5c-09818c87fb8c"
38+
name = "John Doe"
39+
emailAddress = "john.doe@example.com"
40+
phone = "313-555-5555"
41+
}
42+
@{
43+
"@odata.type" = "#microsoft.graph.bookingCustomerInformation"
44+
customerId = "72f148fa-9a86-4c59-b277-f5089d9ea0e7"
45+
name = "Jane Smith"
46+
emailAddress = "jane.smith@example.com"
47+
phone = "248-555-5678"
48+
}
49+
)
50+
}
51+
52+
Update-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params
53+
54+
```
55+
This example will update the customers for an appointment
56+

0 commit comments

Comments
 (0)