Skip to content

Commit 0f1f35e

Browse files
authored
Merge branch 'dev' into WeeklyApiRefresh/202504281452
2 parents 5a6ea3a + 4d9fd9c commit 0f1f35e

18 files changed

+210
-16
lines changed
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
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-

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

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

33
```powershell
44
55
Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment
66
77
$params = @{
88
description = "An example custom role"
9-
### Example 2
9+
displayName = "ExampleCustomRole"
1010
rolePermissions = @(
1111
@{
1212
allowedResourceActions = @(

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

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

33
```powershell
44
55
Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment
66
77
$params = @{
88
description = "Update basic properties and permission of application registrations"
9-
### Example 2
9+
displayName = "ExampleCustomRole"
1010
rolePermissions = @(
1111
@{
1212
allowedResourceActions = @(
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+
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
6+
7+
Get-MgBetaDeviceManagementManagedDeviceCloudPcRemoteActionResult -ManagedDeviceId $managedDeviceId
8+
9+
```
10+
This example shows how to use the Get-MgBetaDeviceManagementManagedDeviceCloudPcRemoteActionResult Cmdlet.
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.DeviceManagement
6+
7+
Get-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus -ManagedDeviceId $managedDeviceId
8+
9+
```
10+
This example shows how to use the Get-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus Cmdlet.
11+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1+
### Example 1: Check group memberships for a directory object
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.DirectoryObjects
6+
7+
$params = @{
8+
groupIds = @(
9+
"f448435d-3ca7-4073-8152-a1fd73c0fd09"
10+
"bd7c6263-4dd5-4ae8-8c96-556e1c0bece6"
11+
"93670da6-d731-4366-94b5-abed40b6016b"
12+
"f5484ab1-4d4d-41ec-a9b8-754b3957bfc7"
13+
"c9103f26-f3cf-4004-a611-2a14e81b8f79"
14+
)
15+
}
16+
17+
Confirm-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params
18+
19+
```
20+
This example will check group memberships for a directory object
121

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.DirectoryObjects
6+
7+
Get-MgBetaDirectoryObject -DirectoryObjectId $directoryObjectId
8+
9+
```
10+
This example shows how to use the Get-MgBetaDirectoryObject Cmdlet.
11+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.DirectoryObjects
6+
7+
$params = @{
8+
ids = @(
9+
"84b80893-8749-40a3-97b7-68513b600544"
10+
"5d6059b6-368d-45f8-91e1-8e07d485f1d0"
11+
"0b944de3-e0fc-4774-a49a-b135213725ef"
12+
"b75a5ab2-fe55-4463-bd31-d21ad555c6e0"
13+
)
14+
types = @(
15+
"user"
16+
"group"
17+
"device"
18+
)
19+
}
20+
21+
Get-MgBetaDirectoryObjectById -BodyParameter $params
22+
23+
```
24+
This example shows how to use the Get-MgBetaDirectoryObjectById Cmdlet.
25+

0 commit comments

Comments
 (0)