Skip to content

Commit 1469a62

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Updating examples
1 parent d26a202 commit 1469a62

File tree

99 files changed

+631
-1300
lines changed

Some content is hidden

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

99 files changed

+631
-1300
lines changed
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.Applications
3+
```powershell
4+
Import-Module Microsoft.Graph.Beta.Applications
45
56
$params = @{
67
"@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}"
78
}
89
9-
Remove-MgBetaServicePrincipalOwnerByRef -ServicePrincipalId $servicePrincipalId -DirectoryObjectId $directoryObjectId -BodyParameter $params
10-
```
11-
This example shows how to use the Remove-MgBetaServicePrincipalOwnerByRef Cmdlet.
12-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13-
10+
Remove-MgBetaServicePrincipalOwnerByRef -ServicePrincipalId $servicePrincipalId -DirectoryObjectId $directoryObjectId -BodyParameter $params
11+
```
12+
This example shows how to use the Remove-MgBetaServicePrincipalOwnerByRef Cmdlet.
13+
14+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
15+
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}

src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.CrossDeviceExperiences
74

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 }}
5+
# A UPN can also be used as -UserId.
6+
Get-MgUserActivity -UserId $userId
7+
```
8+
This example shows how to use the Get-MgUserActivity Cmdlet.
9+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
10+
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-

src/DeviceManagement.Administration/v1.0/examples/Get-MgDeviceManagementRemoteAssistancePartner.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

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 }}
3+
```powershellImport-Module Microsoft.Graph.DeviceManagement.Administration
184

5+
Get-MgDeviceManagementRemoteAssistancePartner -RemoteAssistancePartnerId $remoteAssistancePartnerId
6+
```
7+
This example shows how to use the Get-MgDeviceManagementRemoteAssistancePartner Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

src/DeviceManagement.Administration/v1.0/examples/Get-MgDeviceManagementTelecomExpenseManagementPartner.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

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 }}
3+
```powershellImport-Module Microsoft.Graph.DeviceManagement.Administration
184

5+
Get-MgDeviceManagementTelecomExpenseManagementPartner -TelecomExpenseManagementPartnerId $telecomExpenseManagementPartnerId
6+
```
7+
This example shows how to use the Get-MgDeviceManagementTelecomExpenseManagementPartner Cmdlet.
8+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9+

src/DeviceManagement.Administration/v1.0/examples/New-MgDeviceManagementRemoteAssistancePartner.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.DeviceManagement.Administration
74

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 }}
5+
$params = @{
6+
"@odata.type" = "#microsoft.graph.remoteAssistancePartner"
7+
displayName = "Display Name value"
8+
onboardingUrl = "https://example.com/onboardingUrl/"
9+
onboardingStatus = "onboarding"
10+
lastConnectionDateTime = [System.DateTime]::Parse("2016-12-31T23:58:36.6670033-08:00")
11+
}
1812

13+
New-MgDeviceManagementRemoteAssistancePartner -BodyParameter $params
14+
```
15+
This example shows how to use the New-MgDeviceManagementRemoteAssistancePartner Cmdlet.
16+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
17+

0 commit comments

Comments
 (0)