Skip to content

Commit 3506b48

Browse files
authored
Merge pull request #2590 from microsoftgraph/WeeklyExamplesUpdate/202402141125
[v2] Examples Update
2 parents d2b0633 + 6e68e62 commit 3506b48

File tree

686 files changed

+3038
-7857
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

686 files changed

+3038
-7857
lines changed

src/Bookings/v1.0/examples/Remove-MgBookingBusinessAppointment.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Bookings
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Bookings
6+
7+
Remove-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId
8+
9+
```
10+
This example shows how to use the Remove-MgBookingBusinessAppointment Cmdlet.
411

5-
Remove-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId
6-
```
7-
This example shows how to use the Remove-MgBookingBusinessAppointment Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-

src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomQuestion.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Bookings
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Bookings
6+
7+
Remove-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId
8+
9+
```
10+
This example shows how to use the Remove-MgBookingBusinessCustomQuestion Cmdlet.
411

5-
Remove-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId
6-
```
7-
This example shows how to use the Remove-MgBookingBusinessCustomQuestion Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-

src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomer.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Bookings
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Bookings
6+
7+
Remove-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId
8+
9+
```
10+
This example shows how to use the Remove-MgBookingBusinessCustomer Cmdlet.
411

5-
Remove-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId
6-
```
7-
This example shows how to use the Remove-MgBookingBusinessCustomer Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
### Example 1: Using the Stop-MgBookingBusinessAppointment Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Bookings
6+
47
$params = @{
5-
CancellationMessage = "Your appointment has been successfully cancelled. Please call us again."
8+
cancellationMessage = "Your appointment has been successfully cancelled. Please call us again."
69
}
10+
711
Stop-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params
12+
813
```
914
This example shows how to use the Stop-MgBookingBusinessAppointment Cmdlet.
10-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
15+
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Unpublish-MgBookingBusiness Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Bookings
6+
47
Unpublish-MgBookingBusiness -BookingBusinessId $bookingBusinessId
8+
59
```
610
This example shows how to use the Unpublish-MgBookingBusiness Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Bookings
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Bookings
46
57
$params = @{
68
@@ -13,8 +15,8 @@ $params = @{
1315
}
1416
}
1517
16-
Update-MgBookingBusiness -BookingBusinessId $bookingBusinessId -BodyParameter $params
17-
```
18-
This example shows how to use the Update-MgBookingBusiness Cmdlet.
19-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
20-
18+
Update-MgBookingBusiness -BookingBusinessId $bookingBusinessId -BodyParameter $params
19+
20+
```
21+
This example shows how to use the Update-MgBookingBusiness Cmdlet.
22+
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Bookings
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Bookings
46
57
$params = @{
68
"@odata.type" = "#microsoft.graph.bookingCustomQuestion"
@@ -10,8 +12,8 @@ $params = @{
1012
)
1113
}
1214
13-
Update-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId -BodyParameter $params
14-
```
15-
This example shows how to use the Update-MgBookingBusinessCustomQuestion Cmdlet.
16-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
17-
15+
Update-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId -BodyParameter $params
16+
17+
```
18+
This example shows how to use the Update-MgBookingBusinessCustomQuestion Cmdlet.
19+
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Bookings
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Bookings
46
57
$params = @{
68
"@odata.type" = "#microsoft.graph.bookingCustomer"
79
displayName = "Adele"
810
emailAddress = "[email protected]"
911
}
1012
11-
Update-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId -BodyParameter $params
12-
```
13-
This example shows how to use the Update-MgBookingBusinessCustomer Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
15-
13+
Update-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId -BodyParameter $params
14+
15+
```
16+
This example shows how to use the Update-MgBookingBusinessCustomer Cmdlet.
17+

src/ChangeNotifications/beta/examples/Remove-MgBetaSubscription.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.ChangeNotifications
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.ChangeNotifications
6+
7+
Remove-MgBetaSubscription -SubscriptionId $subscriptionId
8+
9+
```
10+
This example shows how to use the Remove-MgBetaSubscription Cmdlet.
411

5-
Remove-MgBetaSubscription -SubscriptionId $subscriptionId
6-
```
7-
This example shows how to use the Remove-MgBetaSubscription Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.ChangeNotifications
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.ChangeNotifications
46
57
$params = @{
68
expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z")
79
}
810
9-
Update-MgBetaSubscription -SubscriptionId $subscriptionId -BodyParameter $params
10-
```
11-
This example shows how to use the Update-MgBetaSubscription Cmdlet.
12-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13-
11+
Update-MgBetaSubscription -SubscriptionId $subscriptionId -BodyParameter $params
12+
13+
```
14+
This example shows how to use the Update-MgBetaSubscription Cmdlet.
15+

src/ChangeNotifications/v1.0/examples/Remove-MgSubscription.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.ChangeNotifications
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.ChangeNotifications
6+
7+
Remove-MgSubscription -SubscriptionId $subscriptionId
8+
9+
```
10+
This example shows how to use the Remove-MgSubscription Cmdlet.
411

5-
Remove-MgSubscription -SubscriptionId $subscriptionId
6-
```
7-
This example shows how to use the Remove-MgSubscription Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.ChangeNotifications
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.ChangeNotifications
46
57
$params = @{
68
expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z")
79
}
810
9-
Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params
10-
```
11-
This example shows how to use the Update-MgSubscription Cmdlet.
12-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13-
11+
Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params
12+
13+
```
14+
This example shows how to use the Update-MgSubscription Cmdlet.
15+
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
1-
### Example 1: Code snippet
2-
3-
```powershellImport-Module Microsoft.Graph.CloudCommunications
4-
5-
Get-MgCommunicationCallParticipant -CallId $callId
6-
```
7-
This example shows how to use the New-MgCommunicationCallParticipant Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: Get session list
2-
3-
```powershellImport-Module Microsoft.Graph.CloudCommunications
4-
5-
Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId
6-
```
7-
This example shows how to use the New-MgCommunicationCallRecordSession Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
10-
### Example 2: Get session list with segments
11-
12-
```powershellImport-Module Microsoft.Graph.CloudCommunications
13-
14-
Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId -ExpandProperty "segments"
15-
```
16-
This example shows how to use the New-MgCommunicationCallRecordSession Cmdlet.
17-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
18-
Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +0,0 @@
1-
### Example 1: Retrieve an online meeting by videoTeleconferenceId
2-
3-
```powershellImport-Module Microsoft.Graph.CloudCommunications
4-
5-
Get-MgCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'"
6-
```
7-
This example shows how to use the New-MgCommunicationOnlineMeeting Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
10-
### Example 2: Retrieve an online meeting by meeting ID
11-
12-
```powershellImport-Module Microsoft.Graph.CloudCommunications
13-
14-
# A UPN can also be used as -UserId.
15-
Get-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId
16-
```
17-
This example shows how to use the New-MgCommunicationOnlineMeeting Cmdlet.
18-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
19-
20-
### Example 3: Retrieve an online meeting by joinWebUrl
21-
22-
```powershellImport-Module Microsoft.Graph.CloudCommunications
23-
24-
# A UPN can also be used as -UserId.
25-
Get-MgUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context"
26-
```
27-
This example shows how to use the New-MgCommunicationOnlineMeeting Cmdlet.
28-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
29-
30-
### Example 4: Retrieve an online meeting by joinMeetingId
31-
32-
```powershellImport-Module Microsoft.Graph.CloudCommunications
33-
34-
# A UPN can also be used as -UserId.
35-
Get-MgUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'"
36-
```
37-
This example shows how to use the New-MgCommunicationOnlineMeeting Cmdlet.
38-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
39-
40-
### Example 5: Fetch attendee report of a Teams live event
41-
42-
```powershellImport-Module Microsoft.Graph.CloudCommunications
43-
44-
# A UPN can also be used as -UserId.
45-
Get-MgUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId
46-
```
47-
This example shows how to use the New-MgCommunicationOnlineMeeting Cmdlet.
48-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
49-

src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCall.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.CloudCommunications
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.CloudCommunications
6+
7+
Remove-MgCommunicationCall -CallId $callId
8+
9+
```
10+
This example shows how to use the Remove-MgCommunicationCall Cmdlet.
411

5-
Remove-MgCommunicationCall -CallId $callId
6-
```
7-
This example shows how to use the Remove-MgCommunicationCall Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.CloudCommunications
76
8-
{{ Add description here }}
7+
Remove-MgCommunicationCallAudioRoutingGroup -CallId $callId -AudioRoutingGroupId $audioRoutingGroupId
98
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
159
```
16-
17-
{{ Add description here }}
10+
This example shows how to use the Remove-MgCommunicationCallAudioRoutingGroup Cmdlet.
1811

0 commit comments

Comments
 (0)