Skip to content

Commit 1a04ab6

Browse files
authored
Merge pull request #2200 from microsoftgraph/WeeklyExamplesUpdate/202307280436
[v2] Examples Update
2 parents 8b8b027 + 1bed2d6 commit 1a04ab6

File tree

85 files changed

+683
-971
lines changed

Some content is hidden

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

85 files changed

+683
-971
lines changed
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: 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.Applications
3+
```powershell
4+
Import-Module Microsoft.Graph.Applications
45
56
$params = @{
67
"@odata.id" = "https://graph.microsoft.com/v1.0/policies/homeRealmDiscoveryPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9"
78
}
89
9-
New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params
10-
```
11-
This example shows how to use the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet.
12-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13-
10+
New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params
11+
```
12+
This example shows how to use the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef 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 }}

src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Get the presence information of another user
1+
### Example 1: Code snippet
22

33
```powershell
44
Import-Module Microsoft.Graph.Beta.CloudCommunications
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Get your own presence information
1+
### Example 1: Code snippet
22

33
```powershell
44
Import-Module Microsoft.Graph.Beta.CloudCommunications
@@ -10,14 +10,3 @@ This example shows how to use the Get-MgBetaUserPresence Cmdlet.
1010

1111
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
1212

13-
### Example 2: Get the presence information of another user
14-
15-
```powershell
16-
Import-Module Microsoft.Graph.Beta.CloudCommunications
17-
18-
Get-MgBetaUserPresence -UserId $userId
19-
```
20-
This example shows how to use the Get-MgBetaUserPresence Cmdlet.
21-
22-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
23-
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: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.CrossDeviceExperiences
3+
```powershell
4+
Import-Module Microsoft.Graph.CrossDeviceExperiences
45
56
# 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-
7+
Get-MgUserActivity -UserId $userId
8+
```
9+
This example shows how to use the Get-MgUserActivity Cmdlet.
10+
11+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
12+
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/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md

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

3-
```powershell
4-
Import-Module Microsoft.Graph.Devices.CloudPrint
5-
6-
Remove-MgPrintPrinter -PrinterId $printerId
7-
```
8-
This example shows how to use the Remove-MgPrintPrinter Cmdlet.
9-
10-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
3+
```powershellImport-Module Microsoft.Graph.Devices.CloudPrint
114

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

0 commit comments

Comments
 (0)