Skip to content
Open
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
@@ -0,0 +1,11 @@
### Example

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Applications

$params = @{
"@odata.type" = "#microsoft.graph.approvedClientApp"
id = "cd57c330-a543-4249-9486-c1c257341de6"
}

New-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -BodyParameter $params

```
This example shows how to use the New-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -ApprovedClientAppId $approvedClientAppId

```
This example shows how to use the Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

$params = @{
"@odata.type" = "#microsoft.graph.approvedClientApp"
displayName = "Client App 1"
}

New-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -BodyParameter $params

```
This example shows how to use the New-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -ApprovedClientAppId $approvedClientAppId

```
This example shows how to use the Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

$params = @{
"@odata.type" = "#microsoft.graph.approvedClientApp"
displayName = "Client App 1"
}

Update-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp -ServicePrincipalId $servicePrincipalId -ApprovedClientAppId $approvedClientAppId -BodyParameter $params

```
This example shows how to use the Update-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
### Example 1: Change the date of service

```powershell

Import-Module Microsoft.Graph.Bookings

$params = @{
"@odata.type" = "#microsoft.graph.bookingAppointment"
end = @{
"@odata.type" = "#microsoft.graph.dateTimeTimeZone"
dateTime = "2018-05-06T12:30:00.0000000+00:00"
timeZone = "UTC"
}
start = @{
"@odata.type" = "#microsoft.graph.dateTimeTimeZone"
dateTime = "2018-05-06T12:00:00.0000000+00:00"
timeZone = "UTC"
}
}

Update-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params

```
This example will change the date of service

### Example 2: Update the customers for an appointment

```powershell

Import-Module Microsoft.Graph.Bookings

$params = @{
"@odata.type" = "#microsoft.graph.bookingAppointment"
customers = @(
@{
"@odata.type" = "#microsoft.graph.bookingCustomerInformation"
customerId = "cd56bb19-c348-42c6-af5c-09818c87fb8c"
name = "John Doe"
emailAddress = "john.doe@example.com"
phone = "313-555-5555"
}
@{
"@odata.type" = "#microsoft.graph.bookingCustomerInformation"
customerId = "72f148fa-9a86-4c59-b277-f5089d9ea0e7"
name = "Jane Smith"
emailAddress = "jane.smith@example.com"
phone = "248-555-5678"
}
)
}

Update-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params

```
This example will update the customers for an appointment

11 changes: 11 additions & 0 deletions src/Calendar/v1.0/examples/Get-MgPlaceAsRoomList.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Calendar

Get-MgPlaceAsRoomList -PlaceId $placeId

```
This example shows how to use the Get-MgPlaceAsRoomList Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.ConfigurationManagement

Get-MgAdminConfigurationManagementConfigurationDrift

```
This example shows how to use the Get-MgAdminConfigurationManagementConfigurationDrift Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.ConfigurationManagement

Get-MgAdminConfigurationManagementConfigurationMonitor

```
This example shows how to use the Get-MgAdminConfigurationManagementConfigurationMonitor Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.ConfigurationManagement

Get-MgAdminConfigurationManagementConfigurationMonitorBaseline -ConfigurationMonitorId $configurationMonitorId

```
This example shows how to use the Get-MgAdminConfigurationManagementConfigurationMonitorBaseline Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.ConfigurationManagement

Get-MgAdminConfigurationManagementConfigurationMonitoringResult

```
This example shows how to use the Get-MgAdminConfigurationManagementConfigurationMonitoringResult Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.ConfigurationManagement

Get-MgAdminConfigurationManagementConfigurationSnapshot

```
This example shows how to use the Get-MgAdminConfigurationManagementConfigurationSnapshot Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.ConfigurationManagement

Get-MgAdminConfigurationManagementConfigurationSnapshotJob

```
This example shows how to use the Get-MgAdminConfigurationManagementConfigurationSnapshotJob Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.ConfigurationManagement

$params = @{
displayName = "Demo Monitor"
description = "This is a Demo Monitor"
baseline = @{
displayName = "Demo Baseline"
description = "This is a baseline with resources SharedMailbox, AcceptedDomain and MailContact"
resources = @(
@{
displayName = "TestSharedMailbox Resource"
resourceType = "microsoft.exchange.sharedmailbox"
properties = @{
DisplayName = "TestSharedMailbox"
Alias = "testSharedMailbox"
Identity = "TestSharedMailbox"
Ensure = "Present"
PrimarySmtpAddress = "testSharedMailbox@contoso.onmicrosoft.com"
EmailAddresses = @(
"abc@contoso.onmicrosoft.com"
)
}
}
@{
displayName = "Accepted Domain"
resourceType = "microsoft.exchange.accepteddomain"
properties = @{
Identity = "contoso.onmicrosoft.com"
DomainType = "InternalRelay"
Ensure = "Present"
}
}
@{
displayName = "Mail Contact Resource"
resourceType = "microsoft.exchange.mailcontact"
properties = @{
Name = "Chris"
DisplayName = "Chris"
ExternalEmailAddress = "SMTP:chris@fabrikam.com"
Alias = "Chrisa"
Ensure = "Present"
}
}
)
}
}

New-MgAdminConfigurationManagementConfigurationMonitor -BodyParameter $params

```
This example shows how to use the New-MgAdminConfigurationManagementConfigurationMonitor Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.ConfigurationManagement

Remove-MgAdminConfigurationManagementConfigurationMonitor -ConfigurationMonitorId $configurationMonitorId

```
This example shows how to use the Remove-MgAdminConfigurationManagementConfigurationMonitor Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.ConfigurationManagement

Remove-MgAdminConfigurationManagementConfigurationSnapshotJob -ConfigurationSnapshotJobId $configurationSnapshotJobId

```
This example shows how to use the Remove-MgAdminConfigurationManagementConfigurationSnapshotJob Cmdlet.

Loading
Loading