Skip to content

Commit 47e81da

Browse files
authored
Merge branch 'dev' into 2877-the-apis-under-global-secure-access-do-not-have-corresponding-cmdlets-in-the-sdk
2 parents 89b82dc + a493370 commit 47e81da

File tree

61 files changed

+712
-328
lines changed

Some content is hidden

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

61 files changed

+712
-328
lines changed
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 will### example
11+
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.Bookings
6+
7+
Get-MgBetaVirtualEventWebinarRegistrationSession -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventRegistrationId $virtualEventRegistrationId
8+
9+
```
10+
This example shows how to use the Get-MgBetaVirtualEventWebinarRegistrationSession Cmdlet.
11+

src/Bookings/beta/examples/New-MgBetaBackupRestoreExchangeProtectionPolicy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ $params = @{
88
displayName = "Exchange Protection Policy"
99
mailboxProtectionUnits = @(
1010
@{
11-
userId = "cdd3a849-dcaf-4a85-af82-7e39fc14019a"
11+
directoryObjectId = "cdd3a849-dcaf-4a85-af82-7e39fc14019a"
1212
}
1313
@{
14-
userId = "9bc069da-b746-41a4-89ab-26125c6373c7"
14+
directoryObjectId = "9bc069da-b746-41a4-89ab-26125c6373c7"
1515
}
1616
@{
17-
userId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7"
17+
directoryObjectId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7"
1818
}
1919
)
2020
}

src/Bookings/beta/examples/New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ $params = @{
88
displayName = "OneDrive For Business Protection Policy"
99
driveProtectionUnits = @(
1010
@{
11-
userId = "cdd3a849-dcaf-4a85-af82-7e39fc14019"
11+
directoryObjectId = "cdd3a849-dcaf-4a85-af82-7e39fc14019"
1212
}
1313
@{
14-
userId = "9bc069da-b746-41a4-89ab-26125c6373c7"
14+
directoryObjectId = "9bc069da-b746-41a4-89ab-26125c6373c7"
1515
}
1616
@{
17-
userId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7"
17+
directoryObjectId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7"
1818
}
1919
)
2020
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
### Example 1: Creating registration record with delegated permission
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Bookings
6+
7+
$params = @{
8+
preferredTimezone = "Pacific Standard Time"
9+
preferredLanguage = "en-us"
10+
registrationQuestionAnswers = @(
11+
@{
12+
questionId = "95320781-96b3-4b8f-8cf8-e6561d23447a"
13+
value = $null
14+
booleanValue = $null
15+
multiChoiceValues = @(
16+
"Seattle"
17+
)
18+
}
19+
@{
20+
questionId = "4577afdb-8bee-4219-b482-04b52c6b855c"
21+
value = $null
22+
booleanValue = $true
23+
multiChoiceValues = @(
24+
)
25+
}
26+
@{
27+
questionId = "80fefcf1-caf7-4cd3-b8d7-159e17c47f20"
28+
value = $null
29+
booleanValue = $null
30+
multiChoiceValues = @(
31+
"Cancun"
32+
"Hoboken"
33+
"Beijing"
34+
)
35+
}
36+
)
37+
}
38+
39+
New-MgBetaVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params
40+
41+
```
42+
This example shows creating registration record with delegated permission
43+
44+
### Example 2: Creating registration record with application permission
45+
46+
```powershell
47+
48+
Import-Module Microsoft.Graph.Beta.Bookings
49+
50+
$params = @{
51+
firstName = "Diane"
52+
lastName = "Demoss"
53+
54+
preferredTimezone = "Pacific Standard Time"
55+
preferredLanguage = "en-us"
56+
registrationQuestionAnswers = @(
57+
@{
58+
questionId = "95320781-96b3-4b8f-8cf8-e6561d23447a"
59+
value = $null
60+
booleanValue = $null
61+
multiChoiceValues = @(
62+
"Seattle"
63+
)
64+
}
65+
@{
66+
questionId = "4577afdb-8bee-4219-b482-04b52c6b855c"
67+
value = $null
68+
booleanValue = $true
69+
multiChoiceValues = @(
70+
)
71+
}
72+
@{
73+
questionId = "80fefcf1-caf7-4cd3-b8d7-159e17c47f20"
74+
value = $null
75+
booleanValue = $null
76+
multiChoiceValues = @(
77+
"London"
78+
"New York City"
79+
)
80+
}
81+
)
82+
}
83+
84+
New-MgBetaVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params
85+
86+
```
87+
This example shows creating registration record with application permission
88+

src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeProtectionPolicy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ $params = @{
88
displayName = "Exchange Policy - Inadvertent data loss"
99
"mailboxProtectionUnits@delta" = @(
1010
@{
11-
userId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c"
11+
directoryObjectId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c"
1212
}
1313
@{
14-
userId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c"
14+
directoryObjectId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c"
1515
}
1616
@{
1717
"@removed" = @{

src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ $params = @{
88
displayName = "One Drive Policy - Inadvertent data loss"
99
"driveProtectionUnits@delta" = @(
1010
@{
11-
userId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c"
11+
directoryObjectId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c"
1212
}
1313
@{
14-
userId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c"
14+
directoryObjectId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c"
1515
}
1616
@{
1717
"@removed" = @{

src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Import-Module Microsoft.Graph.Bookings
66
7-
Get-MgVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId
7+
Get-MgVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventRegistrationId $virtualEventRegistrationId
88
99
```
1010
This example shows how to use the Get-MgVirtualEventWebinarRegistration Cmdlet.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/CloudCommunications/beta/examples/Invoke-MgBetaInviteCommunicationCallParticipant.md

Lines changed: 130 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Invite one participant to an existing call
22

33
```powershell
44
@@ -8,6 +8,7 @@ $params = @{
88
participants = @(
99
@{
1010
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
11+
replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
1112
identity = @{
1213
"@odata.type" = "#microsoft.graph.identitySet"
1314
user = @{
@@ -16,7 +17,6 @@ $params = @{
1617
identityProvider = "AAD"
1718
}
1819
}
19-
participantId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
2020
}
2121
)
2222
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
@@ -25,5 +25,132 @@ $params = @{
2525
Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
2626
2727
```
28-
This example shows how to use the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet.
28+
This example will invite one participant to an existing call
29+
30+
### Example 2: Invite multiple participants to an existing group call
31+
32+
```powershell
33+
34+
Import-Module Microsoft.Graph.Beta.CloudCommunications
35+
36+
$params = @{
37+
participants = @(
38+
@{
39+
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
40+
replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
41+
identity = @{
42+
"@odata.type" = "#microsoft.graph.identitySet"
43+
user = @{
44+
"@odata.type" = "#microsoft.graph.identity"
45+
id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe"
46+
identityProvider = "AAD"
47+
}
48+
}
49+
}
50+
@{
51+
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
52+
replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
53+
identity = @{
54+
"@odata.type" = "#microsoft.graph.identitySet"
55+
user = @{
56+
"@odata.type" = "#microsoft.graph.identity"
57+
id = "1e126418-44a0-4a94-a6f8-0efe1ad71acb"
58+
identityProvider = "AAD"
59+
}
60+
}
61+
}
62+
)
63+
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
64+
}
65+
66+
Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
67+
68+
```
69+
This example will invite multiple participants to an existing group call
70+
71+
### Example 3: Invite participants to an existing group call, replacing an existing Peer-to-Peer call
72+
73+
```powershell
74+
75+
Import-Module Microsoft.Graph.Beta.CloudCommunications
76+
77+
$params = @{
78+
participants = @(
79+
@{
80+
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
81+
replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
82+
identity = @{
83+
"@odata.type" = "#microsoft.graph.identitySet"
84+
user = @{
85+
"@odata.type" = "#microsoft.graph.identity"
86+
id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe"
87+
identityProvider = "AAD"
88+
}
89+
}
90+
}
91+
)
92+
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
93+
}
94+
95+
Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
96+
97+
```
98+
This example will invite participants to an existing group call, replacing an existing peer-to-peer call
99+
100+
### Example 4: Invite one PSTN participant to an existing call
101+
102+
```powershell
103+
104+
Import-Module Microsoft.Graph.Beta.CloudCommunications
105+
106+
$params = @{
107+
participants = @(
108+
@{
109+
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
110+
identity = @{
111+
"@odata.type" = "#microsoft.graph.identitySet"
112+
phone = @{
113+
"@odata.type" = "#microsoft.graph.identity"
114+
id = "+12345678901"
115+
}
116+
}
117+
}
118+
)
119+
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
120+
}
121+
122+
Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
123+
124+
```
125+
This example will invite one pstn participant to an existing call
126+
127+
### Example 5: Move one participant from one meeting to another
128+
129+
```powershell
130+
131+
Import-Module Microsoft.Graph.Beta.CloudCommunications
132+
133+
$params = @{
134+
participants = @(
135+
@{
136+
"@odata.type" = "#microsoft.graph.invitationParticipantInfo"
137+
replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db"
138+
participantId = "7d501bf1-5ee4-4605-ba92-0ae4513c611c"
139+
identity = @{
140+
"@odata.type" = "#microsoft.graph.identitySet"
141+
user = @{
142+
"@odata.type" = "#microsoft.graph.identity"
143+
id = "682b6c37-0729-4fab-ace6-d730d5d9137e"
144+
identityProvider = "AAD"
145+
}
146+
}
147+
}
148+
)
149+
clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f"
150+
}
151+
152+
Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params
153+
154+
```
155+
This example will move one participant from one meeting to another
29156

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.DeviceManagement.Actions
6+
7+
New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot -CloudPCId $cloudPCId
8+
9+
```
10+
This example shows how to use the New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot Cmdlet.
11+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.DeviceManagement.Actions
6+
7+
$params = @{
8+
targetServicePlanId = "30d0e128-de93-41dc-89ec-33d84bb662a0"
9+
}
10+
11+
Resize-MgBetaDeviceManagementVirtualEndpointCloudPc -CloudPCId $cloudPCId -BodyParameter $params
12+
13+
```
14+
This example shows how to use the Resize-MgBetaDeviceManagementVirtualEndpointCloudPc Cmdlet.
15+

src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ $params = @{
1818
windowsSetting = @{
1919
locale = "en-US"
2020
}
21+
microsoftManagedDesktop = @{
22+
managedType = "starterManaged"
23+
profile = $null
24+
}
25+
autopatch = @{
26+
autopatchGroupId = "91197a0b-3a74-408d-ba88-bce3fdc4e5eb"
27+
}
2128
}
2229
2330
Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId -BodyParameter $params

src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment
66
77
$params = @{
88
description = "An example custom role"
9+
### Example 2
910
rolePermissions = @(
1011
@{
1112
allowedResourceActions = @(

src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment
66
77
$params = @{
88
description = "Update basic properties and permission of application registrations"
9+
### Example 2
910
rolePermissions = @(
1011
@{
1112
allowedResourceActions = @(

0 commit comments

Comments
 (0)