Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2] Examples Update #2599

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
### Example 1: Using the Stop-MgBetaBookingBusinessAppointment Cmdlet
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Bookings

$params = @{
CancellationMessage = "Your appointment has been successfully cancelled. Please call us again."
cancellationMessage = "Your appointment has been successfully cancelled. Please call us again."
}

Stop-MgBetaBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params

```
This example shows how to use the Stop-MgBetaBookingBusinessAppointment Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.DeviceManagement.Actions

{{ Add description here }}
$params = @{
keepEnrollmentData = $true
keepUserData = $true
macOsUnlockCode = "Mac Os Unlock Code value"
persistEsimDataPlan = $true
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Clear-MgDeviceManagementManagedDevice -ManagedDeviceId $managedDeviceId -BodyParameter $params

{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Clear-MgDeviceManagementManagedDevice Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.DeviceManagement.Actions

{{ Add description here }}
$params = @{
id = "Id value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Get-MgDeviceManagementReportCachedReport -BodyParameter $params

{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Get-MgDeviceManagementReportCachedReport Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.DeviceManagement.Actions

{{ Add description here }}
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport -BodyParameter $params

{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Get-MgDeviceManagementReportCompliancePolicyNonComplianceReport Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.DeviceManagement.Actions

{{ Add description here }}
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport -BodyParameter $params

{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Get-MgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.DeviceManagement.Actions

{{ Add description here }}
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Get-MgDeviceManagementReportComplianceSettingNonComplianceReport -BodyParameter $params

{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Get-MgDeviceManagementReportComplianceSettingNonComplianceReport Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.DeviceManagement.Actions

{{ Add description here }}
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport -BodyParameter $params

{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Get-MgDeviceManagementReportConfigurationPolicyNonComplianceReport Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.DeviceManagement.Actions

{{ Add description here }}
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport -BodyParameter $params

{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Get-MgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.DeviceManagement.Actions

{{ Add description here }}
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Get-MgDeviceManagementReportConfigurationSettingNonComplianceReport -BodyParameter $params

{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Get-MgDeviceManagementReportConfigurationSettingNonComplianceReport Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Import-Module Microsoft.Graph.DeviceManagement.Actions

{{ Add description here }}
$params = @{
name = "Name value"
select = @(
"Select value"
)
search = "Search value"
groupBy = @(
"Group By value"
)
orderBy = @(
"Order By value"
)
skip = 4
top = 3
sessionId = "Session Id value"
filter = "Filter value"
}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Get-MgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile -BodyParameter $params

{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Get-MgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile Cmdlet.

Loading
Loading