Skip to content

Commit 82733c4

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Updating examples
1 parent 0060e60 commit 82733c4

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
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: 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.Applications
6-
7-
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8-
9-
```
10-
This example will### example
11-
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Get all provisioned Cloud PCs and their default properties
22

33
```powershell
44
@@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Beta.DeviceManagement.Functions
77
Get-MgBetaDeviceManagementVirtualEndpointCloudPcProvisionedCloudPc
88
99
```
10-
This example shows how to use the Get-MgBetaDeviceManagementVirtualEndpointCloudPcProvisionedCloudPc Cmdlet.
10+
This example will get all provisioned cloud pcs and their default properties
11+
12+
### Example 2: Get all provisioned Cloud PCs and specific properties
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.DeviceManagement.Functions
17+
18+
Get-MgBetaDeviceManagementVirtualEndpointCloudPcProvisionedCloudPc -Property "id,displayName,powerState,connectivityResult,lastLoginResult,lastRemoteActionResult,osVersion,provisioningPolicyName,userAccountType"
19+
20+
```
21+
This example will get all provisioned cloud pcs and specific properties
1122

0 commit comments

Comments
 (0)