Skip to content

Commit 1c9946f

Browse files
authored
Merge pull request #2599 from microsoftgraph/WeeklyExamplesUpdate/202402190527
[v2] Examples Update
2 parents 2979bd7 + 50f6a01 commit 1c9946f

File tree

32 files changed

+517
-309
lines changed

32 files changed

+517
-309
lines changed
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
### Example 1: Using the Stop-MgBetaBookingBusinessAppointment Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Bookings
6+
47
$params = @{
5-
CancellationMessage = "Your appointment has been successfully cancelled. Please call us again."
8+
cancellationMessage = "Your appointment has been successfully cancelled. Please call us again."
69
}
10+
711
Stop-MgBetaBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params
12+
813
```
914
This example shows how to use the Stop-MgBetaBookingBusinessAppointment Cmdlet.
10-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
15+
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: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.DeviceManagement.Actions
76
8-
{{ Add description here }}
7+
$params = @{
8+
keepEnrollmentData = $true
9+
keepUserData = $true
10+
macOsUnlockCode = "Mac Os Unlock Code value"
11+
persistEsimDataPlan = $true
12+
}
913
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
14+
Clear-MgDeviceManagementManagedDevice -ManagedDeviceId $managedDeviceId -BodyParameter $params
1315
14-
{{ Add output here }}
1516
```
16-
17-
{{ Add description here }}
17+
This example shows how to use the Clear-MgDeviceManagementManagedDevice Cmdlet.
1818

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.DeviceManagement.Actions
76
8-
{{ Add description here }}
7+
$params = @{
8+
id = "Id value"
9+
select = @(
10+
"Select value"
11+
)
12+
search = "Search value"
13+
groupBy = @(
14+
"Group By value"
15+
)
16+
orderBy = @(
17+
"Order By value"
18+
)
19+
skip = 4
20+
top = 3
21+
}
922
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
23+
Get-MgDeviceManagementReportCachedReport -BodyParameter $params
1324
14-
{{ Add output here }}
1525
```
16-
17-
{{ Add description here }}
26+
This example shows how to use the Get-MgDeviceManagementReportCachedReport Cmdlet.
1827

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.DeviceManagement.Actions
76
8-
{{ Add description here }}
7+
$params = @{
8+
name = "Name value"
9+
select = @(
10+
"Select value"
11+
)
12+
search = "Search value"
13+
groupBy = @(
14+
"Group By value"
15+
)
16+
orderBy = @(
17+
"Order By value"
18+
)
19+
skip = 4
20+
top = 3
21+
sessionId = "Session Id value"
22+
filter = "Filter value"
23+
}
924
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
25+
Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport -BodyParameter $params
1326
14-
{{ Add output here }}
1527
```
16-
17-
{{ Add description here }}
28+
This example shows how to use the Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport Cmdlet.
1829

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.DeviceManagement.Actions
76
8-
{{ Add description here }}
7+
$params = @{
8+
name = "Name value"
9+
select = @(
10+
"Select value"
11+
)
12+
search = "Search value"
13+
groupBy = @(
14+
"Group By value"
15+
)
16+
orderBy = @(
17+
"Order By value"
18+
)
19+
skip = 4
20+
top = 3
21+
sessionId = "Session Id value"
22+
filter = "Filter value"
23+
}
924
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
25+
Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport -BodyParameter $params
1326
14-
{{ Add output here }}
1527
```
16-
17-
{{ Add description here }}
28+
This example shows how to use the Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport Cmdlet.
1829

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.DeviceManagement.Actions
76
8-
{{ Add description here }}
7+
$params = @{
8+
name = "Name value"
9+
select = @(
10+
"Select value"
11+
)
12+
search = "Search value"
13+
groupBy = @(
14+
"Group By value"
15+
)
16+
orderBy = @(
17+
"Order By value"
18+
)
19+
skip = 4
20+
top = 3
21+
sessionId = "Session Id value"
22+
filter = "Filter value"
23+
}
924
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
25+
Get-MgDeviceManagementReportComplianceSettingNonComplianceReport -BodyParameter $params
1326
14-
{{ Add output here }}
1527
```
16-
17-
{{ Add description here }}
28+
This example shows how to use the Get-MgDeviceManagementReportComplianceSettingNonComplianceReport Cmdlet.
1829

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.DeviceManagement.Actions
76
8-
{{ Add description here }}
7+
$params = @{
8+
name = "Name value"
9+
select = @(
10+
"Select value"
11+
)
12+
search = "Search value"
13+
groupBy = @(
14+
"Group By value"
15+
)
16+
orderBy = @(
17+
"Order By value"
18+
)
19+
skip = 4
20+
top = 3
21+
sessionId = "Session Id value"
22+
filter = "Filter value"
23+
}
924
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
25+
Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport -BodyParameter $params
1326
14-
{{ Add output here }}
1527
```
16-
17-
{{ Add description here }}
28+
This example shows how to use the Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport Cmdlet.
1829

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.DeviceManagement.Actions
76
8-
{{ Add description here }}
7+
$params = @{
8+
name = "Name value"
9+
select = @(
10+
"Select value"
11+
)
12+
search = "Search value"
13+
groupBy = @(
14+
"Group By value"
15+
)
16+
orderBy = @(
17+
"Order By value"
18+
)
19+
skip = 4
20+
top = 3
21+
sessionId = "Session Id value"
22+
filter = "Filter value"
23+
}
924
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
25+
Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport -BodyParameter $params
1326
14-
{{ Add output here }}
1527
```
16-
17-
{{ Add description here }}
28+
This example shows how to use the Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport Cmdlet.
1829

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.DeviceManagement.Actions
76
8-
{{ Add description here }}
7+
$params = @{
8+
name = "Name value"
9+
select = @(
10+
"Select value"
11+
)
12+
search = "Search value"
13+
groupBy = @(
14+
"Group By value"
15+
)
16+
orderBy = @(
17+
"Order By value"
18+
)
19+
skip = 4
20+
top = 3
21+
sessionId = "Session Id value"
22+
filter = "Filter value"
23+
}
924
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
25+
Get-MgDeviceManagementReportConfigurationSettingNonComplianceReport -BodyParameter $params
1326
14-
{{ Add output here }}
1527
```
16-
17-
{{ Add description here }}
28+
This example shows how to use the Get-MgDeviceManagementReportConfigurationSettingNonComplianceReport Cmdlet.
1829

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.DeviceManagement.Actions
76
8-
{{ Add description here }}
7+
$params = @{
8+
name = "Name value"
9+
select = @(
10+
"Select value"
11+
)
12+
search = "Search value"
13+
groupBy = @(
14+
"Group By value"
15+
)
16+
orderBy = @(
17+
"Order By value"
18+
)
19+
skip = 4
20+
top = 3
21+
sessionId = "Session Id value"
22+
filter = "Filter value"
23+
}
924
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
25+
Get-MgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile -BodyParameter $params
1326
14-
{{ Add output here }}
1527
```
16-
17-
{{ Add description here }}
28+
This example shows how to use the Get-MgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile Cmdlet.
1829

0 commit comments

Comments
 (0)