diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index e69de29bb2..d05037861a 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md @@ -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. + diff --git a/src/Applications/beta/examples/New-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md b/src/Applications/beta/examples/New-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md new file mode 100644 index 0000000000..4eb184fa1c --- /dev/null +++ b/src/Applications/beta/examples/New-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md @@ -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. + diff --git a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md new file mode 100644 index 0000000000..a68cab589a --- /dev/null +++ b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md @@ -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. + diff --git a/src/Applications/beta/examples/Update-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md b/src/Applications/beta/examples/Update-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md new file mode 100644 index 0000000000..3aa9fdd103 --- /dev/null +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md @@ -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. + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md index e69de29bb2..ce3990f381 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md @@ -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. + diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md b/src/Applications/v1.0/examples/New-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md new file mode 100644 index 0000000000..9eb1f32c08 --- /dev/null +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md @@ -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. + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md new file mode 100644 index 0000000000..228adef484 --- /dev/null +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md @@ -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. + diff --git a/src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md b/src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md new file mode 100644 index 0000000000..07089b0f93 --- /dev/null +++ b/src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md @@ -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. + diff --git a/src/Bookings/v1.0/examples/Update-MgBookingBusinessAppointment.md b/src/Bookings/v1.0/examples/Update-MgBookingBusinessAppointment.md index e69de29bb2..2c4d3c8340 100644 --- a/src/Bookings/v1.0/examples/Update-MgBookingBusinessAppointment.md +++ b/src/Bookings/v1.0/examples/Update-MgBookingBusinessAppointment.md @@ -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 + diff --git a/src/BusinessScenario/beta/examples/Set-MgBetaSolutionBusinessScenarioPlannerTaskMessageReaction.md b/src/BusinessScenario/beta/examples/Set-MgBetaSolutionBusinessScenarioPlannerTaskMessageReaction.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Calendar/v1.0/examples/Get-MgPlaceAsRoomList.md b/src/Calendar/v1.0/examples/Get-MgPlaceAsRoomList.md new file mode 100644 index 0000000000..39c140792d --- /dev/null +++ b/src/Calendar/v1.0/examples/Get-MgPlaceAsRoomList.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationDrift.md b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationDrift.md index e69de29bb2..b4c2d9d407 100644 --- a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationDrift.md +++ b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationDrift.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitor.md b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitor.md index e69de29bb2..cf4d797598 100644 --- a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitor.md +++ b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitor.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitorBaseline.md b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitorBaseline.md index e69de29bb2..e70eede7dc 100644 --- a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitorBaseline.md +++ b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitorBaseline.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitoringResult.md b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitoringResult.md index e69de29bb2..204fdf864e 100644 --- a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitoringResult.md +++ b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationMonitoringResult.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationSnapshot.md b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationSnapshot.md index e69de29bb2..628a957a19 100644 --- a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationSnapshot.md +++ b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationSnapshot.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationSnapshotJob.md b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationSnapshotJob.md index e69de29bb2..c90399e187 100644 --- a/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationSnapshotJob.md +++ b/src/ConfigurationManagement/v1.0/examples/Get-MgAdminConfigurationManagementConfigurationSnapshotJob.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/New-MgAdminConfigurationManagementConfigurationMonitor.md b/src/ConfigurationManagement/v1.0/examples/New-MgAdminConfigurationManagementConfigurationMonitor.md new file mode 100644 index 0000000000..92d169c930 --- /dev/null +++ b/src/ConfigurationManagement/v1.0/examples/New-MgAdminConfigurationManagementConfigurationMonitor.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/Remove-MgAdminConfigurationManagementConfigurationMonitor.md b/src/ConfigurationManagement/v1.0/examples/Remove-MgAdminConfigurationManagementConfigurationMonitor.md new file mode 100644 index 0000000000..d43f291227 --- /dev/null +++ b/src/ConfigurationManagement/v1.0/examples/Remove-MgAdminConfigurationManagementConfigurationMonitor.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/Remove-MgAdminConfigurationManagementConfigurationSnapshotJob.md b/src/ConfigurationManagement/v1.0/examples/Remove-MgAdminConfigurationManagementConfigurationSnapshotJob.md new file mode 100644 index 0000000000..25e34fd30e --- /dev/null +++ b/src/ConfigurationManagement/v1.0/examples/Remove-MgAdminConfigurationManagementConfigurationSnapshotJob.md @@ -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. + diff --git a/src/ConfigurationManagement/v1.0/examples/Update-MgAdminConfigurationManagementConfigurationMonitor.md b/src/ConfigurationManagement/v1.0/examples/Update-MgAdminConfigurationManagementConfigurationMonitor.md new file mode 100644 index 0000000000..28e819542d --- /dev/null +++ b/src/ConfigurationManagement/v1.0/examples/Update-MgAdminConfigurationManagementConfigurationMonitor.md @@ -0,0 +1,81 @@ +### Example 1: Update the displayName of a configurationMonitor + +```powershell + +Import-Module Microsoft.Graph.ConfigurationManagement + +$params = @{ + displayName = "Demo Monitor Name Change" +} + +Update-MgAdminConfigurationManagementConfigurationMonitor -ConfigurationMonitorId $configurationMonitorId -BodyParameter $params + +``` +This example will update the displayname of a configurationmonitor + +### Example 2: Update the baseline of a configurationMonitor + +```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 SharedMailbox, AcceptedDomain and MailContact" + parameters = @( + @{ + displayName = "FQDN" + description = "The Fully Qualified Domain Name of the Tenant" + parameterType = "String" + } + ) + resources = @( + @{ + displayName = "TestSharedMailbox Resource" + resourceType = "microsoft.exchange.sharedmailbox" + properties = @{ + DisplayName = "TestSharedMailbox" + Identity = "TestSharedMailbox" + Ensure = "Present" + PrimarySmtpAddress = "[concat('testSharedMailbox', parameters('FQDN'))]" + EmailAddresses = @( + "abc@contoso.onmicrosoft.com" + "[concat('testSharedMailbox@', parameters('FQDN'))]" + ) + } + } + @{ + 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" + } + } +) +} +parameters = @{ +FQDN = "contoso.onmicrosoft.com" +} +} + +Update-MgAdminConfigurationManagementConfigurationMonitor -ConfigurationMonitorId $configurationMonitorId -BodyParameter $params + +``` +This example will update the baseline of a configurationmonitor + diff --git a/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword.md b/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword.md new file mode 100644 index 0000000000..a1bad91af1 --- /dev/null +++ b/src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.DeviceManagement.Administration + +$params = @{ + adDomainPassword = "AdDomainPassword_XXXX" +} + +Update-MgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword -CloudPcOnPremisesConnectionId $cloudPcOnPremisesConnectionId -BodyParameter $params + +``` +This example shows how to use the Update-MgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword Cmdlet. + diff --git a/src/Files/v1.0/examples/Remove-MgDriveItemRetentionLabel.md b/src/Files/v1.0/examples/Remove-MgDriveItemRetentionLabel.md index 949a67bc71..8489c99928 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveItemRetentionLabel.md +++ b/src/Files/v1.0/examples/Remove-MgDriveItemRetentionLabel.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Remove the retention label from a driveItem ```powershell @@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Files Remove-MgDriveItemRetentionLabel -DriveId $driveId -DriveItemId $driveItemId ``` -This example shows how to use the Remove-MgDriveItemRetentionLabel Cmdlet. +This example will remove the retention label from a driveitem + +### Example 2: Remove the retention label from a driveItem that fails due to insufficient permissions + +```powershell + +Import-Module Microsoft.Graph.Files + +Remove-MgDriveItemRetentionLabel -DriveId $driveId -DriveItemId $driveItemId + +``` +This example will remove the retention label from a driveitem that fails due to insufficient permissions diff --git a/src/Identity.DirectoryManagement/beta/examples/Enable-MgBetaDirectoryTenantGovernanceSettingRelatedTenant.md b/src/Identity.DirectoryManagement/beta/examples/Enable-MgBetaDirectoryTenantGovernanceSettingRelatedTenant.md index e69de29bb2..e36b7c4907 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Enable-MgBetaDirectoryTenantGovernanceSettingRelatedTenant.md +++ b/src/Identity.DirectoryManagement/beta/examples/Enable-MgBetaDirectoryTenantGovernanceSettingRelatedTenant.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Enable-MgBetaDirectoryTenantGovernanceSettingRelatedTenant + +``` +This example shows how to use the Enable-MgBetaDirectoryTenantGovernanceSettingRelatedTenant Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecoveryJob.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecoveryJob.md index e69de29bb2..bed7c27ead 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecoveryJob.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecoveryJob.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryRecoveryJob + +``` +This example shows how to use the Get-MgBetaDirectoryRecoveryJob Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecoverySnapshot.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecoverySnapshot.md index e69de29bb2..81ddb770fc 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecoverySnapshot.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRecoverySnapshot.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryRecoverySnapshot + +``` +This example shows how to use the Get-MgBetaDirectoryRecoverySnapshot Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceInvitation.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceInvitation.md index e69de29bb2..630589fe13 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceInvitation.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceInvitation.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryTenantGovernanceInvitation + +``` +This example shows how to use the Get-MgBetaDirectoryTenantGovernanceInvitation Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernancePolicyTemplate.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernancePolicyTemplate.md index e69de29bb2..853ceea9ff 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernancePolicyTemplate.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernancePolicyTemplate.md @@ -0,0 +1,22 @@ +### Example 1: Get a specific governance policy template + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryTenantGovernancePolicyTemplate -GovernancePolicyTemplateId $governancePolicyTemplateId + +``` +This example will get a specific governance policy template + +### Example 2: Get the default governance policy template + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryTenantGovernancePolicyTemplate -GovernancePolicyTemplateId $governancePolicyTemplateId + +``` +This example will get the default governance policy template + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRelatedTenant.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRelatedTenant.md index e69de29bb2..1df8d28226 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRelatedTenant.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRelatedTenant.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryTenantGovernanceRelatedTenant + +``` +This example shows how to use the Get-MgBetaDirectoryTenantGovernanceRelatedTenant Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRelationship.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRelationship.md index e69de29bb2..f838901c3b 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRelationship.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRelationship.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryTenantGovernanceRelationship + +``` +This example shows how to use the Get-MgBetaDirectoryTenantGovernanceRelationship Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRequest.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRequest.md index e69de29bb2..e3eff2579f 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRequest.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceRequest.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryTenantGovernanceRequest + +``` +This example shows how to use the Get-MgBetaDirectoryTenantGovernanceRequest Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceSetting.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceSetting.md index e69de29bb2..3d8ba1a610 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceSetting.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryTenantGovernanceSetting.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryTenantGovernanceSetting + +``` +This example shows how to use the Get-MgBetaDirectoryTenantGovernanceSetting Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdminPeopleProfileCardProperty.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdminPeopleProfileCardProperty.md index 303aadc3a6..a413997997 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdminPeopleProfileCardProperty.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaAdminPeopleProfileCardProperty.md @@ -6,6 +6,7 @@ Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement $params = @{ directoryPropertyName = "CustomAttribute1" + isVisible = $true annotations = @( @{ displayName = "Cost Center" diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernanceInvitation.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernanceInvitation.md new file mode 100644 index 0000000000..98fc99b70c --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernanceInvitation.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + governingTenantId = "aaaabbbb-0000-cccc-1111-dddd2222eeee" +} + +New-MgBetaDirectoryTenantGovernanceInvitation -BodyParameter $params + +``` +This example shows how to use the New-MgBetaDirectoryTenantGovernanceInvitation Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernancePolicyTemplate.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernancePolicyTemplate.md new file mode 100644 index 0000000000..65d65e1e42 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernancePolicyTemplate.md @@ -0,0 +1,53 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + displayName = "Monitor Entra resource configurations" + description = "Grants Global reader and provisions a custom multi-tenant application to monitor conditional access policies" + multiTenantApplicationsToProvision = @( + @{ + appId = "66667777-aaaa-8888-bbbb-9999cccc0000" + objectId = "cccccccc-2222-3333-4444-dddddddddddd" + displayName = "Mega Monitor" + requiredResourceAccesses = @( + @{ + resourceAppId = "00000003-0000-0000-c000-000000000000" + permissions = @( + @{ + id = "633e0fce-8c58-4cfb-9495-12bbd5a24f7c" + name = "Policy.Read.ConditionalAccess" + type = "scope" + } + @{ + id = "e1fe6dd8-ba31-4d61-89e7-88639da4683d" + name = "User.Read" + type = "scope" + } + ) + } + ) + } + ) + delegatedAdministrationRoleAssignments = @( + @{ + roleTemplates = @( + @{ + id = "f2ef992c-3afb-46b9-b7cf-a126ee74c451" + name = "Global Reader" + } + ) + group = @{ + id = "ffffffff-5555-6666-7777-aaaaaaaaaaaa" + } + } + ) +} + +New-MgBetaDirectoryTenantGovernancePolicyTemplate -BodyParameter $params + +``` +This example shows how to use the New-MgBetaDirectoryTenantGovernancePolicyTemplate Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernanceRequest.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernanceRequest.md new file mode 100644 index 0000000000..ca8c587fb6 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernanceRequest.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + governedTenantId = "bbbbcccc-1111-dddd-2222-eeee3333ffff" + "governancePolicyTemplate@odata.bind" = "https://graph.microsoft.com/beta/directory/tenantGovernance/governancePolicyTemplates/d3d3d3d3-eeee-ffff-aaaa-b4b4b4b4b4b4" +} + +New-MgBetaDirectoryTenantGovernanceRequest -BodyParameter $params + +``` +This example shows how to use the New-MgBetaDirectoryTenantGovernanceRequest Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryDeletedItem.md index e69de29bb2..7a1824c638 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryDeletedItem.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryDeletedItem -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Remove-MgBetaDirectoryDeletedItem Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryTenantGovernanceInvitation.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryTenantGovernanceInvitation.md new file mode 100644 index 0000000000..43721446e0 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryTenantGovernanceInvitation.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryTenantGovernanceInvitation -GovernanceInvitationId $governanceInvitationId + +``` +This example shows how to use the Remove-MgBetaDirectoryTenantGovernanceInvitation Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryTenantGovernancePolicyTemplate.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryTenantGovernancePolicyTemplate.md new file mode 100644 index 0000000000..375e25019e --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryTenantGovernancePolicyTemplate.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryTenantGovernancePolicyTemplate -GovernancePolicyTemplateId $governancePolicyTemplateId + +``` +This example shows how to use the Remove-MgBetaDirectoryTenantGovernancePolicyTemplate Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Stop-MgBetaDirectoryRecoveryJob.md b/src/Identity.DirectoryManagement/beta/examples/Stop-MgBetaDirectoryRecoveryJob.md new file mode 100644 index 0000000000..39a40e6aaa --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Stop-MgBetaDirectoryRecoveryJob.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Stop-MgBetaDirectoryRecoveryJob -RecoveryJobBaseId $recoveryJobBaseId + +``` +This example shows how to use the Stop-MgBetaDirectoryRecoveryJob Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernancePolicyTemplate.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernancePolicyTemplate.md new file mode 100644 index 0000000000..99c53778c8 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernancePolicyTemplate.md @@ -0,0 +1,102 @@ +### Example 1: Update a custom governance policy template + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + multiTenantApplicationsToProvision = @( + @{ + appId = "66667777-aaaa-8888-bbbb-9999cccc0000" + objectId = "cccccccc-2222-3333-4444-dddddddddddd" + displayName = "Mega Monitor" + requiredResourceAccesses = @( + @{ + resourceAppId = "00000003-0000-0000-c000-000000000000" + permissions = @( + @{ + id = "633e0fce-8c58-4cfb-9495-12bbd5a24f7c" + name = "Policy.Read.ConditionalAccess" + type = "scope" + } + @{ + id = "e1fe6dd8-ba31-4d61-89e7-88639da4683d" + name = "User.Read" + type = "scope" + } + ) + } + ) + } + ) + delegatedAdministrationRoleAssignments = @( + @{ + roleTemplates = @( + @{ + id = "f2ef992c-3afb-46b9-b7cf-a126ee74c451" + name = "Global Reader" + } + ) + group = @{ + id = "ffffffff-5555-6666-7777-aaaaaaaaaaaa" + } + } + ) +} + +Update-MgBetaDirectoryTenantGovernancePolicyTemplate -GovernancePolicyTemplateId $governancePolicyTemplateId -BodyParameter $params + +``` +This example will update a custom governance policy template + +### Example 2: Update the default governance policy template + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + multiTenantApplicationsToProvision = @( + @{ + appId = "66667777-aaaa-8888-bbbb-9999cccc0000" + objectId = "cccccccc-2222-3333-4444-dddddddddddd" + displayName = "Mega Monitor" + requiredResourceAccesses = @( + @{ + resourceAppId = "00000003-0000-0000-c000-000000000000" + permissions = @( + @{ + id = "633e0fce-8c58-4cfb-9495-12bbd5a24f7c" + name = "Policy.Read.ConditionalAccess" + type = "scope" + } + @{ + id = "e1fe6dd8-ba31-4d61-89e7-88639da4683d" + name = "User.Read" + type = "scope" + } + ) + } + ) + } + ) + delegatedAdministrationRoleAssignments = @( + @{ + roleTemplates = @( + @{ + id = "f2ef992c-3afb-46b9-b7cf-a126ee74c451" + name = "Global Reader" + } + ) + group = @{ + id = "ffffffff-5555-6666-7777-aaaaaaaaaaaa" + } + } + ) +} + +Update-MgBetaDirectoryTenantGovernancePolicyTemplate -GovernancePolicyTemplateId $governancePolicyTemplateId -BodyParameter $params + +``` +This example will update the default governance policy template + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelatedTenant.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelatedTenant.md new file mode 100644 index 0000000000..33a190edbf --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelatedTenant.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Update-MgBetaDirectoryTenantGovernanceRelatedTenant + +``` +This example shows how to use the Update-MgBetaDirectoryTenantGovernanceRelatedTenant Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelatedTenantStatus.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelatedTenantStatus.md new file mode 100644 index 0000000000..aa6ea04ff9 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelatedTenantStatus.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Update-MgBetaDirectoryTenantGovernanceRelatedTenantStatus + +``` +This example shows how to use the Update-MgBetaDirectoryTenantGovernanceRelatedTenantStatus Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelationship.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelationship.md new file mode 100644 index 0000000000..ea006819f1 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelationship.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + status = "terminated" +} + +Update-MgBetaDirectoryTenantGovernanceRelationship -GovernanceRelationshipId $governanceRelationshipId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDirectoryTenantGovernanceRelationship Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRequest.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRequest.md new file mode 100644 index 0000000000..addb3d8731 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRequest.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + status = "accepted" +} + +Update-MgBetaDirectoryTenantGovernanceRequest -GovernanceRequestId $governanceRequestId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDirectoryTenantGovernanceRequest Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceSetting.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceSetting.md new file mode 100644 index 0000000000..993745c8de --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceSetting.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + canReceiveInvitations = $true +} + +Update-MgBetaDirectoryTenantGovernanceSetting -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDirectoryTenantGovernanceSetting Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgAdminPeopleProfilePropertySetting.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgAdminPeopleProfilePropertySetting.md index e69de29bb2..e6e650b48b 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgAdminPeopleProfilePropertySetting.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgAdminPeopleProfilePropertySetting.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgAdminPeopleProfilePropertySetting + +``` +This example shows how to use the Get-MgAdminPeopleProfilePropertySetting Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgAdminPeopleProfileSource.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgAdminPeopleProfileSource.md index e69de29bb2..34dcbef51c 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgAdminPeopleProfileSource.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgAdminPeopleProfileSource.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgAdminPeopleProfileSource + +``` +This example shows how to use the Get-MgAdminPeopleProfileSource Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Invoke-MgRetryContactServiceProvisioning.md b/src/Identity.DirectoryManagement/v1.0/examples/Invoke-MgRetryContactServiceProvisioning.md new file mode 100644 index 0000000000..09e8d7dbcd --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/Invoke-MgRetryContactServiceProvisioning.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Invoke-MgRetryContactServiceProvisioning -OrgContactId $orgContactId + +``` +This example shows how to use the Invoke-MgRetryContactServiceProvisioning Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfilePropertySetting.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfilePropertySetting.md new file mode 100644 index 0000000000..9657cd46af --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfilePropertySetting.md @@ -0,0 +1,20 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + "@odata.type" = "#microsoft.graph.profilePropertySetting" + displayName = "Profile priority config" + name = "Profile priority config" + prioritizedSourceUrls = @( + "https://graph.microsoft.com/v1.0/admin/people/profileSources(sourceId='contosohr1')" +) +} + +New-MgAdminPeopleProfilePropertySetting -BodyParameter $params + +``` +This example shows how to use the New-MgAdminPeopleProfilePropertySetting Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfileSource.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfileSource.md new file mode 100644 index 0000000000..8b73f330fa --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfileSource.md @@ -0,0 +1,25 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + sourceId = "bamboohr1" + displayName = "HR Platform" + kind = "BambooHR" + webUrl = "https://bamboohr.contoso.com/login" + localizations = @( + @{ + displayName = "HR-Plattform" + webUrl = "http://bamboohr.contoso.com/de/login" + languageTag = "de" + } + ) +} + +New-MgAdminPeopleProfileSource -BodyParameter $params + +``` +This example shows how to use the New-MgAdminPeopleProfileSource Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfilePropertySetting.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfilePropertySetting.md new file mode 100644 index 0000000000..a39d3ea9c0 --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfilePropertySetting.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Remove-MgAdminPeopleProfilePropertySetting -ProfilePropertySettingId $profilePropertySettingId + +``` +This example shows how to use the Remove-MgAdminPeopleProfilePropertySetting Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfileSource.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfileSource.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfileSourceBySourceId.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfileSourceBySourceId.md new file mode 100644 index 0000000000..05f7d4a0ca --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfileSourceBySourceId.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Remove-MgAdminPeopleProfileSourceBySourceId -SourceId $sourceIdId + +``` +This example shows how to use the Remove-MgAdminPeopleProfileSourceBySourceId Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfilePropertySetting.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfilePropertySetting.md new file mode 100644 index 0000000000..b72dd918c6 --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfilePropertySetting.md @@ -0,0 +1,19 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + "@odata.type" = "#microsoft.graph.profilePropertySetting" + prioritizedSourceUrls = @( + "https://graph.microsoft.com/v1.0/admin/people/profileSources(sourceId='contosohr1')" +"https://graph.microsoft.com/v1.0/admin/people/profileSources(sourceId='contosohr2')" +) +} + +Update-MgAdminPeopleProfilePropertySetting -ProfilePropertySettingId $profilePropertySettingId -BodyParameter $params + +``` +This example shows how to use the Update-MgAdminPeopleProfilePropertySetting Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfileSource.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfileSource.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfileSourceBySourceId.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfileSourceBySourceId.md new file mode 100644 index 0000000000..1f0857a213 --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfileSourceBySourceId.md @@ -0,0 +1,31 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + "@odata.type" = "#microsoft.graph.profileSource" + sourceId = "bamboohr1" + kind = "BambooHR" + displayName = "BambooHR Updated" + webUrl = "https://bamboohr.contoso.com/login" + localizations = @( + @{ + displayName = "HR-Platform" + webUrl = "http://bamboohr.contoso.com/en-us/login" + languageTag = "en-us" + } + @{ + displayName = "HR-Plattform" + webUrl = "http://bamboohr.contoso.com/de/login" + languageTag = "de" + } + ) +} + +Update-MgAdminPeopleProfileSourceBySourceId -BodyParameter $params -SourceId $sourceIdId + +``` +This example shows how to use the Update-MgAdminPeopleProfileSourceBySourceId Cmdlet. + diff --git a/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser.md b/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser.md index 300d760702..e81a38c849 100644 --- a/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser.md +++ b/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Beta.Identity.Governance -Invoke-MgBetaFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser -AppConsentRequestId $appConsentRequestId -Filter " (status eq 'Completed')" -On $onId +Invoke-MgBetaFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser -AppConsentRequestId $appConsentRequestId -Filter "(status eq 'Completed')" -On $onId ``` This example shows how to use the Invoke-MgBetaFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser Cmdlet. diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser.md b/src/Identity.Governance/v1.0/examples/Invoke-MgFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser.md index 4f51b6e222..e956bacc2f 100644 --- a/src/Identity.Governance/v1.0/examples/Invoke-MgFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser.md +++ b/src/Identity.Governance/v1.0/examples/Invoke-MgFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Identity.Governance -Invoke-MgFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser -AppConsentRequestId $appConsentRequestId -Filter " (status eq 'Completed')" -On $onId +Invoke-MgFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser -AppConsentRequestId $appConsentRequestId -Filter "(status eq 'Completed')" -On $onId ``` This example shows how to use the Invoke-MgFilterIdentityGovernanceAppConsentRequestUserConsentRequestByCurrentUser Cmdlet. diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyOwnerlessGroupPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyOwnerlessGroupPolicy.md index e69de29bb2..b8fc6a3fed 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyOwnerlessGroupPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyOwnerlessGroupPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaPolicyOwnerlessGroupPolicy + +``` +This example shows how to use the Get-MgBetaPolicyOwnerlessGroupPolicy Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityAuthenticationEventListener.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityAuthenticationEventListener.md index 8c6c148d87..2465e2b516 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityAuthenticationEventListener.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityAuthenticationEventListener.md @@ -19,3 +19,33 @@ Update-MgBetaIdentityAuthenticationEventListener -AuthenticationEventListenerId ``` This example shows how to use the Update-MgBetaIdentityAuthenticationEventListener Cmdlet. +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.onVerifiedIdClaimValidationListener" + displayName = "Verified ID Claim Validation Listener (updated)" + handler = @{ + "@odata.type" = "#microsoft.graph.onVerifiedIdClaimValidationCustomExtensionHandler" + configuration = @{ + "@odata.type" = "#microsoft.graph.customExtensionOverwriteConfiguration" + clientConfiguration = @{ + "@odata.type" = "#microsoft.graph.customExtensionClientConfiguration" + maximumRetries = + timeoutInMilliseconds = + } + behaviorOnError = @{ + "@odata.type" = "#microsoft.graph.customExtensionBehaviorOnError" + } + } + } +} + +Update-MgBetaIdentityAuthenticationEventListener -AuthenticationEventListenerId $authenticationEventListenerId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaIdentityAuthenticationEventListener Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyOwnerlessGroupPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyOwnerlessGroupPolicy.md new file mode 100644 index 0000000000..67d30843b2 --- /dev/null +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyOwnerlessGroupPolicy.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + isEnabled = $false +} + +Update-MgBetaPolicyOwnerlessGroupPolicy -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaPolicyOwnerlessGroupPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityVerifiedIdProfile.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityVerifiedIdProfile.md new file mode 100644 index 0000000000..a75b769de7 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityVerifiedIdProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityVerifiedIdProfile + +``` +This example shows how to use the Get-MgIdentityVerifiedIdProfile Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyDeviceRegistrationPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyDeviceRegistrationPolicy.md new file mode 100644 index 0000000000..2c2333d1ae --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyDeviceRegistrationPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyDeviceRegistrationPolicy + +``` +This example shows how to use the Get-MgPolicyDeviceRegistrationPolicy Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityVerifiedIdProfile.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityVerifiedIdProfile.md new file mode 100644 index 0000000000..f64d0ad09f --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityVerifiedIdProfile.md @@ -0,0 +1,51 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + name = "Contoso Verified ID" + description = "Contoso Verified Identity" + lastModifiedDateTime = $null + state = "enabled" + verifierDid = "did:web:eu.did-dev.contoso.io" + priority = 0 + verifiedIdProfileConfiguration = @{ + type = "verifiedIdentity" + acceptedIssuer = "did:web:eu.did-dev.contoso.io" + claimBindingSource = "directory" + claimBindings = @( + @{ + matchConfidenceLevel = "exact" + sourceAttribute = "First name" + verifiedIdClaim = "vc.credentialSubject.firstName" + } + @{ + matchConfidenceLevel = "exact" + sourceAttribute = "Last name" + verifiedIdClaim = "vc.credentialSubject.lastName" + } + ) + claimValidation = @{ + isEnabled = $true + customExtensionId = "00aa00aa-bb11-cc22-dd33-44ee44ee44ee" + } + } + faceCheckConfiguration = @{ + isEnabled = $true + sourcePhotoClaimName = "portrait" + } + verifiedIdUsageConfigurations = @( + @{ + isEnabledForTestOnly = $true + purpose = "recovery" + } + ) +} + +New-MgIdentityVerifiedIdProfile -BodyParameter $params + +``` +This example shows how to use the New-MgIdentityVerifiedIdProfile Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityVerifiedIdProfile.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityVerifiedIdProfile.md new file mode 100644 index 0000000000..ed09e01512 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityVerifiedIdProfile.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgIdentityVerifiedIdProfile -VerifiedIdProfileId $verifiedIdProfileId + +``` +This example shows how to use the Remove-MgIdentityVerifiedIdProfile Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityVerifiedIdProfile.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityVerifiedIdProfile.md new file mode 100644 index 0000000000..732f4e953b --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityVerifiedIdProfile.md @@ -0,0 +1,20 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + verifiedIdUsageConfigurations = @( + @{ + isEnabledForTestOnly = $false + purpose = "recovery" + } + ) +} + +Update-MgIdentityVerifiedIdProfile -VerifiedIdProfileId $verifiedIdProfileId -BodyParameter $params + +``` +This example shows how to use the Update-MgIdentityVerifiedIdProfile Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganizationTenant.md b/src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganizationTenant.md new file mode 100644 index 0000000000..2e03396359 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganizationTenant.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + role = "owner" +} + +Update-MgTenantRelationshipMultiTenantOrganizationTenant -MultiTenantOrganizationMemberId $multiTenantOrganizationMemberId -BodyParameter $params + +``` +This example shows how to use the Update-MgTenantRelationshipMultiTenantOrganizationTenant Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessCloudFirewallPolicy.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessCloudFirewallPolicy.md index e69de29bb2..85dbc1b773 100644 --- a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessCloudFirewallPolicy.md +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessCloudFirewallPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessCloudFirewallPolicy + +``` +This example shows how to use the Get-MgBetaNetworkAccessCloudFirewallPolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessCloudFirewallPolicyRule.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessCloudFirewallPolicyRule.md index e69de29bb2..3eceadb97c 100644 --- a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessCloudFirewallPolicyRule.md +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessCloudFirewallPolicyRule.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessCloudFirewallPolicyRule -CloudFirewallPolicyId $cloudFirewallPolicyId + +``` +This example shows how to use the Get-MgBetaNetworkAccessCloudFirewallPolicyRule Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessCloudFirewallPolicy.md b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessCloudFirewallPolicy.md new file mode 100644 index 0000000000..82e12e705b --- /dev/null +++ b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessCloudFirewallPolicy.md @@ -0,0 +1,20 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + "@odata.type" = "#microsoft.graph.networkaccess.cloudFirewallPolicy" + name = "Block unauthorized egress" + description = "Policy to block unauthorized outbound connections" + settings = @{ + defaultAction = "allow" + } +} + +New-MgBetaNetworkAccessCloudFirewallPolicy -BodyParameter $params + +``` +This example shows how to use the New-MgBetaNetworkAccessCloudFirewallPolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessCloudFirewallPolicyRule.md b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessCloudFirewallPolicyRule.md new file mode 100644 index 0000000000..897ddb9bd3 --- /dev/null +++ b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessCloudFirewallPolicyRule.md @@ -0,0 +1,57 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + "@odata.type" = "#microsoft.graph.networkaccess.cloudFirewallRule" + name = "Block outbound to risky destinations" + description = "Block traffic to specific IPs on common ports" + priority = + action = "block" + settings = @{ + status = "enabled" + } + matchingConditions = @{ + sources = @{ + addresses = @( + @{ + "@odata.type" = "#microsoft.graph.networkaccess.cloudFirewallSourceIpAddress" + values = @( + "192.168.1.1" + "192.168.0.0/16" + "172.16.0.0-172.16.255.255" + ) + } +) +ports = @( +"80" +"443" +"445-447" +) +} +destinations = @{ +addresses = @( +@{ +"@odata.type" = "#microsoft.graph.networkaccess.cloudFirewallDestinationIpAddress" +values = @( +"10.0.0.1" +) +} +) +ports = @( +"80" +"443" +"445-447" +) +protocols = "tcp" +} +} +} + +New-MgBetaNetworkAccessCloudFirewallPolicyRule -CloudFirewallPolicyId $cloudFirewallPolicyId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaNetworkAccessCloudFirewallPolicyRule Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessFilteringProfilePolicy.md b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessFilteringProfilePolicy.md index e69de29bb2..5e208ecf6b 100644 --- a/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessFilteringProfilePolicy.md +++ b/src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessFilteringProfilePolicy.md @@ -0,0 +1,20 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + "@odata.type" = "#microsoft.graph.networkaccess.tlsInspectionPolicyLink" + state = "enabled" + policy = @{ + "@odata.type" = "#microsoft.graph.networkaccess.tlsInspectionPolicy" + id = "b712c469-e7cd-e7cb-738f-94b199570b0d" + } +} + +New-MgBetaNetworkAccessFilteringProfilePolicy -FilteringProfileId $filteringProfileId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaNetworkAccessFilteringProfilePolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessCloudFirewallPolicy.md b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessCloudFirewallPolicy.md new file mode 100644 index 0000000000..06c323dee2 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessCloudFirewallPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Remove-MgBetaNetworkAccessCloudFirewallPolicy -CloudFirewallPolicyId $cloudFirewallPolicyId + +``` +This example shows how to use the Remove-MgBetaNetworkAccessCloudFirewallPolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessCloudFirewallPolicyRule.md b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessCloudFirewallPolicyRule.md new file mode 100644 index 0000000000..0f3c9eeb7c --- /dev/null +++ b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessCloudFirewallPolicyRule.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Remove-MgBetaNetworkAccessCloudFirewallPolicyRule -CloudFirewallPolicyId $cloudFirewallPolicyId -PolicyRuleId $policyRuleId + +``` +This example shows how to use the Remove-MgBetaNetworkAccessCloudFirewallPolicyRule Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessFilteringProfilePolicy.md b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessFilteringProfilePolicy.md index e69de29bb2..8970a68856 100644 --- a/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessFilteringProfilePolicy.md +++ b/src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessFilteringProfilePolicy.md @@ -0,0 +1,22 @@ +### Example 1: Delete a filteringPolicyLink + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Remove-MgBetaNetworkAccessFilteringProfilePolicy -FilteringProfileId $filteringProfileId -PolicyLinkId $policyLinkId + +``` +This example will delete a filteringpolicylink + +### Example 2: Delete a tlsInspectionPolicyLink + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Remove-MgBetaNetworkAccessFilteringProfilePolicy -FilteringProfileId $filteringProfileId -PolicyLinkId $policyLinkId + +``` +This example will delete a tlsinspectionpolicylink + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessCloudFirewallPolicy.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessCloudFirewallPolicy.md new file mode 100644 index 0000000000..1c94a6da12 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessCloudFirewallPolicy.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + description = "Updated policy description" +} + +Update-MgBetaNetworkAccessCloudFirewallPolicy -CloudFirewallPolicyId $cloudFirewallPolicyId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessCloudFirewallPolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessCloudFirewallPolicyRule.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessCloudFirewallPolicyRule.md new file mode 100644 index 0000000000..612a08b5a1 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessCloudFirewallPolicyRule.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + description = "Updated rule description" + priority = +} + +Update-MgBetaNetworkAccessCloudFirewallPolicyRule -CloudFirewallPolicyId $cloudFirewallPolicyId -PolicyRuleId $policyRuleId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaNetworkAccessCloudFirewallPolicyRule Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessFilteringProfilePolicy.md b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessFilteringProfilePolicy.md index e69de29bb2..c8251ae40c 100644 --- a/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessFilteringProfilePolicy.md +++ b/src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessFilteringProfilePolicy.md @@ -0,0 +1,31 @@ +### Example 1: Update a filteringPolicyLink + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + "@odata.type" = "#microsoft.graph.networkaccess.filteringPolicyLink" + state = "disabled" +} + +Update-MgBetaNetworkAccessFilteringProfilePolicy -FilteringProfileId $filteringProfileId -PolicyLinkId $policyLinkId -BodyParameter $params + +``` +This example will update a filteringpolicylink + +### Example 2: Update a tlsInspectionPolicyLink + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +$params = @{ + state = "disabled" +} + +Update-MgBetaNetworkAccessFilteringProfilePolicy -FilteringProfileId $filteringProfileId -PolicyLinkId $policyLinkId -BodyParameter $params + +``` +This example will update a tlsinspectionpolicylink + diff --git a/src/Planner/beta/examples/Clear-MgBetaPlannerTaskMessageReaction.md b/src/Planner/beta/examples/Clear-MgBetaPlannerTaskMessageReaction.md index e69de29bb2..2c69c33dc9 100644 --- a/src/Planner/beta/examples/Clear-MgBetaPlannerTaskMessageReaction.md +++ b/src/Planner/beta/examples/Clear-MgBetaPlannerTaskMessageReaction.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + reactionType = "like" +} + +Clear-MgBetaPlannerTaskMessageReaction -PlannerTaskId $plannerTaskId -PlannerTaskChatMessageId $plannerTaskChatMessageId -BodyParameter $params + +``` +This example shows how to use the Clear-MgBetaPlannerTaskMessageReaction Cmdlet. + diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskMessage.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskMessage.md index e69de29bb2..89fba00fd5 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskMessage.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskMessage.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Get-MgBetaPlannerTaskMessage -PlannerTaskId $plannerTaskId + +``` +This example shows how to use the Get-MgBetaPlannerTaskMessage Cmdlet. + diff --git a/src/Planner/beta/examples/New-MgBetaPlannerTaskMessage.md b/src/Planner/beta/examples/New-MgBetaPlannerTaskMessage.md new file mode 100644 index 0000000000..baa79dd52b --- /dev/null +++ b/src/Planner/beta/examples/New-MgBetaPlannerTaskMessage.md @@ -0,0 +1,37 @@ +### Example 1: Create a message + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + content = "This is a new chat message" +} + +New-MgBetaPlannerTaskMessage -PlannerTaskId $plannerTaskId -BodyParameter $params + +``` +This example will create a message + +### Example 2: Create a message with mentions + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + content = "