From d5373f18414c5ecee2654ae76ddffb6deea582c3 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 15 May 2026 07:07:11 +0000 Subject: [PATCH] Updating examples --- ...ServicePrincipalSynchronizationTemplate.md | 11 ++ ...pSecurityConfigurationApprovedClientApp.md | 16 +++ ...pSecurityConfigurationApprovedClientApp.md | 11 ++ ...pSecurityConfigurationApprovedClientApp.md | 0 ...pSecurityConfigurationApprovedClientApp.md | 11 ++ ...ServicePrincipalSynchronizationTemplate.md | 11 ++ ...pSecurityConfigurationApprovedClientApp.md | 16 +++ ...pSecurityConfigurationApprovedClientApp.md | 11 ++ ...pSecurityConfigurationApprovedClientApp.md | 16 +++ .../Update-MgBookingBusinessAppointment.md | 56 ++++++++++ ...inessScenarioPlannerTaskMessageReaction.md | 0 .../v1.0/examples/Get-MgPlaceAsRoomList.md | 11 ++ ...nfigurationManagementConfigurationDrift.md | 11 ++ ...igurationManagementConfigurationMonitor.md | 11 ++ ...nManagementConfigurationMonitorBaseline.md | 11 ++ ...ManagementConfigurationMonitoringResult.md | 11 ++ ...gurationManagementConfigurationSnapshot.md | 11 ++ ...ationManagementConfigurationSnapshotJob.md | 11 ++ ...igurationManagementConfigurationMonitor.md | 56 ++++++++++ ...igurationManagementConfigurationMonitor.md | 11 ++ ...ationManagementConfigurationSnapshotJob.md | 11 ++ ...igurationManagementConfigurationMonitor.md | 81 ++++++++++++++ ...ointOnPremiseConnectionAdDomainPassword.md | 15 +++ .../Remove-MgDriveItemRetentionLabel.md | 15 ++- ...oryTenantGovernanceSettingRelatedTenant.md | 11 ++ .../Get-MgBetaDirectoryRecoveryJob.md | 11 ++ .../Get-MgBetaDirectoryRecoverySnapshot.md | 11 ++ ...BetaDirectoryTenantGovernanceInvitation.md | 11 ++ ...DirectoryTenantGovernancePolicyTemplate.md | 22 ++++ ...aDirectoryTenantGovernanceRelatedTenant.md | 11 ++ ...taDirectoryTenantGovernanceRelationship.md | 11 ++ ...-MgBetaDirectoryTenantGovernanceRequest.md | 11 ++ ...-MgBetaDirectoryTenantGovernanceSetting.md | 11 ++ ...ew-MgBetaAdminPeopleProfileCardProperty.md | 1 + ...BetaDirectoryTenantGovernanceInvitation.md | 15 +++ ...DirectoryTenantGovernancePolicyTemplate.md | 53 +++++++++ ...-MgBetaDirectoryTenantGovernanceRequest.md | 16 +++ .../Remove-MgBetaDirectoryDeletedItem.md | 11 ++ ...BetaDirectoryTenantGovernanceInvitation.md | 11 ++ ...DirectoryTenantGovernancePolicyTemplate.md | 11 ++ .../Stop-MgBetaDirectoryRecoveryJob.md | 11 ++ ...DirectoryTenantGovernancePolicyTemplate.md | 102 ++++++++++++++++++ ...aDirectoryTenantGovernanceRelatedTenant.md | 11 ++ ...toryTenantGovernanceRelatedTenantStatus.md | 11 ++ ...taDirectoryTenantGovernanceRelationship.md | 15 +++ ...-MgBetaDirectoryTenantGovernanceRequest.md | 15 +++ ...-MgBetaDirectoryTenantGovernanceSetting.md | 15 +++ ...Get-MgAdminPeopleProfilePropertySetting.md | 11 ++ .../Get-MgAdminPeopleProfileSource.md | 11 ++ ...nvoke-MgRetryContactServiceProvisioning.md | 11 ++ ...New-MgAdminPeopleProfilePropertySetting.md | 20 ++++ .../New-MgAdminPeopleProfileSource.md | 25 +++++ ...ove-MgAdminPeopleProfilePropertySetting.md | 11 ++ .../Remove-MgAdminPeopleProfileSource.md | 0 ...ve-MgAdminPeopleProfileSourceBySourceId.md | 11 ++ ...ate-MgAdminPeopleProfilePropertySetting.md | 19 ++++ .../Update-MgAdminPeopleProfileSource.md | 0 ...te-MgAdminPeopleProfileSourceBySourceId.md | 31 ++++++ ...tRequestUserConsentRequestByCurrentUser.md | 2 +- ...tRequestUserConsentRequestByCurrentUser.md | 2 +- .../Get-MgBetaPolicyOwnerlessGroupPolicy.md | 11 ++ ...BetaIdentityAuthenticationEventListener.md | 30 ++++++ ...Update-MgBetaPolicyOwnerlessGroupPolicy.md | 15 +++ .../Get-MgIdentityVerifiedIdProfile.md | 11 ++ .../Get-MgPolicyDeviceRegistrationPolicy.md | 11 ++ .../New-MgIdentityVerifiedIdProfile.md | 51 +++++++++ .../Remove-MgIdentityVerifiedIdProfile.md | 11 ++ .../Update-MgIdentityVerifiedIdProfile.md | 20 ++++ ...lationshipMultiTenantOrganizationTenant.md | 15 +++ ...-MgBetaNetworkAccessCloudFirewallPolicy.md | 11 ++ ...etaNetworkAccessCloudFirewallPolicyRule.md | 11 ++ ...-MgBetaNetworkAccessCloudFirewallPolicy.md | 20 ++++ ...etaNetworkAccessCloudFirewallPolicyRule.md | 57 ++++++++++ ...BetaNetworkAccessFilteringProfilePolicy.md | 20 ++++ ...-MgBetaNetworkAccessCloudFirewallPolicy.md | 11 ++ ...etaNetworkAccessCloudFirewallPolicyRule.md | 11 ++ ...BetaNetworkAccessFilteringProfilePolicy.md | 22 ++++ ...-MgBetaNetworkAccessCloudFirewallPolicy.md | 15 +++ ...etaNetworkAccessCloudFirewallPolicyRule.md | 16 +++ ...BetaNetworkAccessFilteringProfilePolicy.md | 31 ++++++ .../Clear-MgBetaPlannerTaskMessageReaction.md | 15 +++ .../examples/Get-MgBetaPlannerTaskMessage.md | 11 ++ .../examples/New-MgBetaPlannerTaskMessage.md | 37 +++++++ .../Remove-MgBetaPlannerTaskMessage.md | 11 ++ .../Set-MgBetaPlannerTaskMessageReaction.md | 15 +++ .../Update-MgBetaPlannerTaskMessage.md | 22 ++++ ...dentitySettingAutoAuditingConfiguration.md | 11 ++ ...dentitySettingAutoAuditingConfiguration.md | 16 +++ src/Sites/beta/examples/Get-MgBetaSiteList.md | 39 ++++++- .../examples/Get-MgTeamChannelEnabledApp.md | 11 ++ .../examples/Invoke-MgGraphChatMessage.md | 22 ++++ .../Invoke-MgGraphChatMessageReply.md | 0 .../Invoke-MgGraphGroupTeamChannelMessage.md | 0 ...oke-MgGraphGroupTeamChannelMessageReply.md | 0 ...e-MgGraphGroupTeamPrimaryChannelMessage.md | 0 ...raphGroupTeamPrimaryChannelMessageReply.md | 0 .../Invoke-MgGraphTeamChannelMessage.md | 0 .../Invoke-MgGraphTeamChannelMessageReply.md | 0 ...Invoke-MgGraphTeamPrimaryChannelMessage.md | 0 ...e-MgGraphTeamPrimaryChannelMessageReply.md | 0 ...gGraphTeamworkDeletedTeamChannelMessage.md | 0 ...hTeamworkDeletedTeamChannelMessageReply.md | 0 .../examples/Invoke-MgGraphUserChatMessage.md | 0 .../Invoke-MgGraphUserChatMessageReply.md | 0 .../v1.0/examples/Update-MgTeamChannel.md | 34 +++++- .../examples/Get-MgBetaUserSponsorByRef.md | 0 .../examples/New-MgBetaUserSponsorByRef.md | 15 +++ .../examples/Remove-MgBetaUserSponsorByRef.md | 0 ...e-MgBetaUserSponsorDirectoryObjectByRef.md | 11 ++ .../v1.0/examples/Get-MgUserManagerByRef.md | 1 - .../v1.0/examples/Get-MgUserOwnedObject.md | 1 - .../v1.0/examples/Get-MgUserSponsorByRef.md | 0 .../v1.0/examples/New-MgUserSponsorByRef.md | 15 +++ .../examples/Remove-MgUserSponsorByRef.md | 0 ...emove-MgUserSponsorDirectoryObjectByRef.md | 11 ++ .../Get-MgBetaWindowsUpdatesPolicy.md | 2 +- ...taWindowsUpdatesPolicyApplicableContent.md | 11 ++ .../Get-MgBetaWindowsUpdatesPolicyApproval.md | 11 ++ .../Get-MgBetaWindowsUpdatesPolicyRing.md | 11 ++ .../Get-MgBetaWindowsUpdatesUpdatePolicy.md | 11 ++ .../New-MgBetaWindowsUpdatesPolicy.md | 33 ++---- .../New-MgBetaWindowsUpdatesPolicyApproval.md | 17 +++ .../New-MgBetaWindowsUpdatesPolicyRing.md | 25 +++++ .../New-MgBetaWindowsUpdatesUpdatePolicy.md | 42 ++++++++ .../Remove-MgBetaWindowsUpdatesPolicy.md | 2 +- ...move-MgBetaWindowsUpdatesPolicyApproval.md | 11 ++ .../Remove-MgBetaWindowsUpdatesPolicyRing.md | 11 ++ ...Remove-MgBetaWindowsUpdatesUpdatePolicy.md | 11 ++ .../Update-MgBetaWindowsUpdatesPolicy.md | 22 ++-- ...date-MgBetaWindowsUpdatesPolicyApproval.md | 17 +++ .../Update-MgBetaWindowsUpdatesPolicyRing.md | 20 ++++ ...Update-MgBetaWindowsUpdatesUpdatePolicy.md | 25 +++++ 132 files changed, 1918 insertions(+), 49 deletions(-) create mode 100644 src/Applications/beta/examples/New-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md create mode 100644 src/Applications/beta/examples/Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md create mode 100644 src/Applications/beta/examples/Update-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md create mode 100644 src/Applications/v1.0/examples/Get-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md create mode 100644 src/Applications/v1.0/examples/New-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md create mode 100644 src/Applications/v1.0/examples/Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md create mode 100644 src/Applications/v1.0/examples/Update-MgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.md create mode 100644 src/BusinessScenario/beta/examples/Set-MgBetaSolutionBusinessScenarioPlannerTaskMessageReaction.md create mode 100644 src/Calendar/v1.0/examples/Get-MgPlaceAsRoomList.md create mode 100644 src/ConfigurationManagement/v1.0/examples/New-MgAdminConfigurationManagementConfigurationMonitor.md create mode 100644 src/ConfigurationManagement/v1.0/examples/Remove-MgAdminConfigurationManagementConfigurationMonitor.md create mode 100644 src/ConfigurationManagement/v1.0/examples/Remove-MgAdminConfigurationManagementConfigurationSnapshotJob.md create mode 100644 src/ConfigurationManagement/v1.0/examples/Update-MgAdminConfigurationManagementConfigurationMonitor.md create mode 100644 src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernanceInvitation.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernancePolicyTemplate.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryTenantGovernanceRequest.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryTenantGovernanceInvitation.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryTenantGovernancePolicyTemplate.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Stop-MgBetaDirectoryRecoveryJob.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernancePolicyTemplate.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelatedTenant.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelatedTenantStatus.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRelationship.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceRequest.md create mode 100644 src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryTenantGovernanceSetting.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Invoke-MgRetryContactServiceProvisioning.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfilePropertySetting.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfileSource.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfilePropertySetting.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfileSource.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Remove-MgAdminPeopleProfileSourceBySourceId.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfilePropertySetting.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfileSource.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleProfileSourceBySourceId.md create mode 100644 src/Identity.SignIns/beta/examples/Update-MgBetaPolicyOwnerlessGroupPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgIdentityVerifiedIdProfile.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyDeviceRegistrationPolicy.md create mode 100644 src/Identity.SignIns/v1.0/examples/New-MgIdentityVerifiedIdProfile.md create mode 100644 src/Identity.SignIns/v1.0/examples/Remove-MgIdentityVerifiedIdProfile.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgIdentityVerifiedIdProfile.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgTenantRelationshipMultiTenantOrganizationTenant.md create mode 100644 src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessCloudFirewallPolicy.md create mode 100644 src/NetworkAccess/beta/examples/New-MgBetaNetworkAccessCloudFirewallPolicyRule.md create mode 100644 src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessCloudFirewallPolicy.md create mode 100644 src/NetworkAccess/beta/examples/Remove-MgBetaNetworkAccessCloudFirewallPolicyRule.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessCloudFirewallPolicy.md create mode 100644 src/NetworkAccess/beta/examples/Update-MgBetaNetworkAccessCloudFirewallPolicyRule.md create mode 100644 src/Planner/beta/examples/New-MgBetaPlannerTaskMessage.md create mode 100644 src/Planner/beta/examples/Remove-MgBetaPlannerTaskMessage.md create mode 100644 src/Planner/beta/examples/Set-MgBetaPlannerTaskMessageReaction.md create mode 100644 src/Planner/beta/examples/Update-MgBetaPlannerTaskMessage.md create mode 100644 src/Security/v1.0/examples/Get-MgSecurityIdentitySettingAutoAuditingConfiguration.md create mode 100644 src/Security/v1.0/examples/Update-MgSecurityIdentitySettingAutoAuditingConfiguration.md create mode 100644 src/Teams/v1.0/examples/Get-MgTeamChannelEnabledApp.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphChatMessage.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphChatMessageReply.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamChannelMessage.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamChannelMessageReply.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamPrimaryChannelMessage.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamPrimaryChannelMessageReply.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphTeamChannelMessage.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphTeamChannelMessageReply.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphTeamPrimaryChannelMessage.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphTeamPrimaryChannelMessageReply.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphTeamworkDeletedTeamChannelMessage.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphTeamworkDeletedTeamChannelMessageReply.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphUserChatMessage.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphUserChatMessageReply.md create mode 100644 src/Users/beta/examples/Get-MgBetaUserSponsorByRef.md create mode 100644 src/Users/beta/examples/New-MgBetaUserSponsorByRef.md create mode 100644 src/Users/beta/examples/Remove-MgBetaUserSponsorByRef.md create mode 100644 src/Users/beta/examples/Remove-MgBetaUserSponsorDirectoryObjectByRef.md create mode 100644 src/Users/v1.0/examples/Get-MgUserSponsorByRef.md create mode 100644 src/Users/v1.0/examples/New-MgUserSponsorByRef.md create mode 100644 src/Users/v1.0/examples/Remove-MgUserSponsorByRef.md create mode 100644 src/Users/v1.0/examples/Remove-MgUserSponsorDirectoryObjectByRef.md create mode 100644 src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyApplicableContent.md create mode 100644 src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyApproval.md create mode 100644 src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyRing.md create mode 100644 src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesUpdatePolicy.md create mode 100644 src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicyApproval.md create mode 100644 src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicyRing.md create mode 100644 src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesUpdatePolicy.md create mode 100644 src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicyApproval.md create mode 100644 src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicyRing.md create mode 100644 src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesUpdatePolicy.md create mode 100644 src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyApproval.md create mode 100644 src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyRing.md create mode 100644 src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesUpdatePolicy.md diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index e69de29bb2d..d05037861a5 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 00000000000..4eb184fa1c2 --- /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 00000000000..a68cab589a0 --- /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 00000000000..e69de29bb2d 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 00000000000..3aa9fdd1031 --- /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 e69de29bb2d..ce3990f381e 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 00000000000..9eb1f32c086 --- /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 00000000000..228adef4844 --- /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 00000000000..07089b0f935 --- /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 e69de29bb2d..2c4d3c83409 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 00000000000..e69de29bb2d 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 00000000000..39c140792dd --- /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 e69de29bb2d..b4c2d9d4070 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 e69de29bb2d..cf4d797598e 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 e69de29bb2d..e70eede7dc2 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 e69de29bb2d..204fdf864e9 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 e69de29bb2d..628a957a193 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 e69de29bb2d..c90399e1870 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 00000000000..92d169c9308 --- /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 00000000000..d43f291227f --- /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 00000000000..25e34fd30e9 --- /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 00000000000..28e819542d2 --- /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 00000000000..a1bad91af1f --- /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 949a67bc71d..8489c999280 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 e69de29bb2d..e36b7c4907d 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 e69de29bb2d..bed7c27eadf 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 e69de29bb2d..81ddb770fc4 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 e69de29bb2d..630589fe133 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 e69de29bb2d..853ceea9ff2 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 e69de29bb2d..1df8d28226f 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 e69de29bb2d..f838901c3be 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 e69de29bb2d..e3eff2579fc 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 e69de29bb2d..3d8ba1a6109 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 303aadc3a6c..a4139979976 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 00000000000..98fc99b70c6 --- /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 00000000000..65d65e1e426 --- /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 00000000000..ca8c587fb6c --- /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 e69de29bb2d..7a1824c6387 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 00000000000..43721446e03 --- /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 00000000000..375e25019e5 --- /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 00000000000..39a40e6aaae --- /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 00000000000..99c53778c85 --- /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 00000000000..33a190edbf8 --- /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 00000000000..aa6ea04ff93 --- /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 00000000000..ea006819f1e --- /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 00000000000..addb3d87319 --- /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 00000000000..993745c8de2 --- /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 e69de29bb2d..e6e650b48b0 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 e69de29bb2d..34dcbef51c7 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 00000000000..09e8d7dbcd8 --- /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 00000000000..9657cd46afb --- /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 00000000000..8b73f330faf --- /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 00000000000..a39d3ea9c0e --- /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 00000000000..e69de29bb2d 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 00000000000..05f7d4a0ca4 --- /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 00000000000..b72dd918c6e --- /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 00000000000..e69de29bb2d 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 00000000000..1f0857a2135 --- /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 300d760702d..e81a38c8494 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 4f51b6e222e..e956bacc2f8 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 e69de29bb2d..b8fc6a3fedb 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 8c6c148d87e..2465e2b5160 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 00000000000..67d30843b26 --- /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 00000000000..a75b769de7f --- /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 00000000000..2c2333d1ae6 --- /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 00000000000..f64d0ad09f0 --- /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 00000000000..ed09e015125 --- /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 00000000000..732f4e953b3 --- /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 00000000000..2e03396359d --- /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 e69de29bb2d..85dbc1b773e 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 e69de29bb2d..3eceadb97c7 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 00000000000..82e12e705b2 --- /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 00000000000..897ddb9bd34 --- /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 e69de29bb2d..5e208ecf6b3 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 00000000000..06c323dee2f --- /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 00000000000..0f3c9eeb7cc --- /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 e69de29bb2d..8970a68856b 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 00000000000..1c94a6da121 --- /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 00000000000..612a08b5a11 --- /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 e69de29bb2d..c8251ae40c4 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 e69de29bb2d..2c69c33dc97 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 e69de29bb2d..89fba00fd57 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 00000000000..baa79dd52b1 --- /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 = "
Please review this task
" + mentions = @( + @{ + mentioned = "6463a5ce-2119-4198-9f2a-628761df4a62" + position = 0 + mentionType = "user" + } + ) +} + +New-MgBetaPlannerTaskMessage -PlannerTaskId $plannerTaskId -BodyParameter $params + +``` +This example will create a message with mentions + diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskMessage.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskMessage.md new file mode 100644 index 00000000000..71e414ba153 --- /dev/null +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskMessage.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Remove-MgBetaPlannerTaskMessage -PlannerTaskId $plannerTaskId -PlannerTaskChatMessageId $plannerTaskChatMessageId + +``` +This example shows how to use the Remove-MgBetaPlannerTaskMessage Cmdlet. + diff --git a/src/Planner/beta/examples/Set-MgBetaPlannerTaskMessageReaction.md b/src/Planner/beta/examples/Set-MgBetaPlannerTaskMessageReaction.md new file mode 100644 index 00000000000..bbc85207751 --- /dev/null +++ b/src/Planner/beta/examples/Set-MgBetaPlannerTaskMessageReaction.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + reactionType = "like" +} + +Set-MgBetaPlannerTaskMessageReaction -PlannerTaskId $plannerTaskId -PlannerTaskChatMessageId $plannerTaskChatMessageId -BodyParameter $params + +``` +This example shows how to use the Set-MgBetaPlannerTaskMessageReaction Cmdlet. + diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTaskMessage.md b/src/Planner/beta/examples/Update-MgBetaPlannerTaskMessage.md new file mode 100644 index 00000000000..799084f2140 --- /dev/null +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTaskMessage.md @@ -0,0 +1,22 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + content = "
Updated message with mention
" + mentions = @( + @{ + mentioned = "6463a5ce-2119-4198-9f2a-628761df4a62" + position = 0 + mentionType = "user" + } + ) +} + +Update-MgBetaPlannerTaskMessage -PlannerTaskId $plannerTaskId -PlannerTaskChatMessageId $plannerTaskChatMessageId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaPlannerTaskMessage Cmdlet. + diff --git a/src/Security/v1.0/examples/Get-MgSecurityIdentitySettingAutoAuditingConfiguration.md b/src/Security/v1.0/examples/Get-MgSecurityIdentitySettingAutoAuditingConfiguration.md new file mode 100644 index 00000000000..9c96d9fef4b --- /dev/null +++ b/src/Security/v1.0/examples/Get-MgSecurityIdentitySettingAutoAuditingConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityIdentitySettingAutoAuditingConfiguration + +``` +This example shows how to use the Get-MgSecurityIdentitySettingAutoAuditingConfiguration Cmdlet. + diff --git a/src/Security/v1.0/examples/Update-MgSecurityIdentitySettingAutoAuditingConfiguration.md b/src/Security/v1.0/examples/Update-MgSecurityIdentitySettingAutoAuditingConfiguration.md new file mode 100644 index 00000000000..ab708039e9e --- /dev/null +++ b/src/Security/v1.0/examples/Update-MgSecurityIdentitySettingAutoAuditingConfiguration.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +$params = @{ + "@odata.type" = "#microsoft.graph.security.autoAuditingConfiguration" + isAutomatic = $true +} + +Update-MgSecurityIdentitySettingAutoAuditingConfiguration -BodyParameter $params + +``` +This example shows how to use the Update-MgSecurityIdentitySettingAutoAuditingConfiguration Cmdlet. + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteList.md b/src/Sites/beta/examples/Get-MgBetaSiteList.md index 19d67bf85b7..3afe1589925 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteList.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteList.md @@ -1,11 +1,44 @@ -### Example 1: Code snippet +### Example 1: Get list metadata by ID ```powershell Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteList -SiteId $siteId +Get-MgBetaSiteList -SiteId $siteId -ListId $listId ``` -This example shows how to use the Get-MgBetaSiteList Cmdlet. +This example will get list metadata by id + +### Example 2: Get list metadata by title + +```powershell + +Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteList -SiteId $siteId -ListId $listId + +``` +This example will get list metadata by title + +### Example 3: Get list metadata and items with $select and $expand + +```powershell + +Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteList -SiteId $siteId -ListId $listId -Property "name,lastModifiedDateTime,itemCount" -ExpandProperty "columns(select=name,description),items)" + +``` +This example will get list metadata and items with $select and $expand + +### Example 4: Get list metadata and items with multiple $expand parameters + +```powershell + +Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteList -SiteId $siteId -ListId $listId -Property "name,lastModifiedDateTime" -ExpandProperty "columns(select=name,description),items)" + +``` +This example will get list metadata and items with multiple $expand parameters diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelEnabledApp.md b/src/Teams/v1.0/examples/Get-MgTeamChannelEnabledApp.md new file mode 100644 index 00000000000..d379f2fdc93 --- /dev/null +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelEnabledApp.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelEnabledApp -TeamId $teamId -ChannelId $channelId + +``` +This example shows how to use the Get-MgTeamChannelEnabledApp Cmdlet. + diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphChatMessage.md b/src/Teams/v1.0/examples/Invoke-MgGraphChatMessage.md new file mode 100644 index 00000000000..026b187c005 --- /dev/null +++ b/src/Teams/v1.0/examples/Invoke-MgGraphChatMessage.md @@ -0,0 +1,22 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + messageIds = @( + "1728088338580" +) +replyMessage = @{ + body = @{ + content = "Hello World" + } +} +} + +Invoke-MgGraphChatMessage -ChatId $chatId -BodyParameter $params + +``` +This example shows how to use the Invoke-MgGraphChatMessage Cmdlet. + diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphChatMessageReply.md b/src/Teams/v1.0/examples/Invoke-MgGraphChatMessageReply.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamChannelMessage.md b/src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamChannelMessage.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamChannelMessageReply.md b/src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamChannelMessageReply.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamPrimaryChannelMessage.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamPrimaryChannelMessageReply.md b/src/Teams/v1.0/examples/Invoke-MgGraphGroupTeamPrimaryChannelMessageReply.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphTeamChannelMessage.md b/src/Teams/v1.0/examples/Invoke-MgGraphTeamChannelMessage.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphTeamChannelMessageReply.md b/src/Teams/v1.0/examples/Invoke-MgGraphTeamChannelMessageReply.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/Invoke-MgGraphTeamPrimaryChannelMessage.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphTeamPrimaryChannelMessageReply.md b/src/Teams/v1.0/examples/Invoke-MgGraphTeamPrimaryChannelMessageReply.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphTeamworkDeletedTeamChannelMessage.md b/src/Teams/v1.0/examples/Invoke-MgGraphTeamworkDeletedTeamChannelMessage.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphTeamworkDeletedTeamChannelMessageReply.md b/src/Teams/v1.0/examples/Invoke-MgGraphTeamworkDeletedTeamChannelMessageReply.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphUserChatMessage.md b/src/Teams/v1.0/examples/Invoke-MgGraphUserChatMessage.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphUserChatMessageReply.md b/src/Teams/v1.0/examples/Invoke-MgGraphUserChatMessageReply.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Update-MgTeamChannel.md b/src/Teams/v1.0/examples/Update-MgTeamChannel.md index dc6f34d7293..18dc8053456 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannel.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannel.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Update a channel ```powershell @@ -7,5 +7,35 @@ Import-Module Microsoft.Graph.Teams Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId ``` -This example shows how to use the Update-MgTeamChannel Cmdlet. +This example will update a channel + +### Example 2: Update the layout type of a channel + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + layoutType = "chat" +} + +Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId -BodyParameter $params + +``` +This example will update the layout type of a channel + +### Example 3: Switch a channel back to post layout type + +```powershell + +Import-Module Microsoft.Graph.Teams + +$params = @{ + layoutType = "post" +} + +Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId -BodyParameter $params + +``` +This example will switch a channel back to post layout type diff --git a/src/Users/beta/examples/Get-MgBetaUserSponsorByRef.md b/src/Users/beta/examples/Get-MgBetaUserSponsorByRef.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users/beta/examples/New-MgBetaUserSponsorByRef.md b/src/Users/beta/examples/New-MgBetaUserSponsorByRef.md new file mode 100644 index 00000000000..566aa6dd9e9 --- /dev/null +++ b/src/Users/beta/examples/New-MgBetaUserSponsorByRef.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + "@odata.type" = "#microsoft.graph.directoryObject" +} + +New-MgBetaUserSponsorByRef -UserId $userId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaUserSponsorByRef Cmdlet. + diff --git a/src/Users/beta/examples/Remove-MgBetaUserSponsorByRef.md b/src/Users/beta/examples/Remove-MgBetaUserSponsorByRef.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users/beta/examples/Remove-MgBetaUserSponsorDirectoryObjectByRef.md b/src/Users/beta/examples/Remove-MgBetaUserSponsorDirectoryObjectByRef.md new file mode 100644 index 00000000000..7c076f1595d --- /dev/null +++ b/src/Users/beta/examples/Remove-MgBetaUserSponsorDirectoryObjectByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Users + +Remove-MgBetaUserSponsorDirectoryObjectByRef -UserId $userId -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Remove-MgBetaUserSponsorDirectoryObjectByRef Cmdlet. + diff --git a/src/Users/v1.0/examples/Get-MgUserManagerByRef.md b/src/Users/v1.0/examples/Get-MgUserManagerByRef.md index 8b137891791..e69de29bb2d 100644 --- a/src/Users/v1.0/examples/Get-MgUserManagerByRef.md +++ b/src/Users/v1.0/examples/Get-MgUserManagerByRef.md @@ -1 +0,0 @@ - diff --git a/src/Users/v1.0/examples/Get-MgUserOwnedObject.md b/src/Users/v1.0/examples/Get-MgUserOwnedObject.md index 3bb92a991bf..1f108a314d6 100644 --- a/src/Users/v1.0/examples/Get-MgUserOwnedObject.md +++ b/src/Users/v1.0/examples/Get-MgUserOwnedObject.md @@ -4,7 +4,6 @@ Import-Module Microsoft.Graph.Users -# A UPN can also be used as -UserId. Get-MgUserOwnedObject -UserId $userId ``` diff --git a/src/Users/v1.0/examples/Get-MgUserSponsorByRef.md b/src/Users/v1.0/examples/Get-MgUserSponsorByRef.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users/v1.0/examples/New-MgUserSponsorByRef.md b/src/Users/v1.0/examples/New-MgUserSponsorByRef.md new file mode 100644 index 00000000000..6f84c67fd85 --- /dev/null +++ b/src/Users/v1.0/examples/New-MgUserSponsorByRef.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Users + +$params = @{ + "@odata.type" = "#microsoft.graph.directoryObject" +} + +New-MgUserSponsorByRef -UserId $userId -BodyParameter $params + +``` +This example shows how to use the New-MgUserSponsorByRef Cmdlet. + diff --git a/src/Users/v1.0/examples/Remove-MgUserSponsorByRef.md b/src/Users/v1.0/examples/Remove-MgUserSponsorByRef.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Users/v1.0/examples/Remove-MgUserSponsorDirectoryObjectByRef.md b/src/Users/v1.0/examples/Remove-MgUserSponsorDirectoryObjectByRef.md new file mode 100644 index 00000000000..d5ddd58621e --- /dev/null +++ b/src/Users/v1.0/examples/Remove-MgUserSponsorDirectoryObjectByRef.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Users + +Remove-MgUserSponsorDirectoryObjectByRef -UserId $userId -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Remove-MgUserSponsorDirectoryObjectByRef Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicy.md b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicy.md index 9f7bcc688e7..7fbd747fbde 100644 --- a/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicy.md +++ b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicy.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Beta.WindowsUpdates -Get-MgBetaWindowsUpdatesPolicy +Get-MgBetaWindowsUpdatesPolicy -Filter "isof('microsoft.graph.windowsUpdates.qualityUpdatePolicy')" ``` This example shows how to use the Get-MgBetaWindowsUpdatesPolicy Cmdlet. diff --git a/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyApplicableContent.md b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyApplicableContent.md new file mode 100644 index 00000000000..5b403057db4 --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyApplicableContent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +Get-MgBetaWindowsUpdatesPolicyApplicableContent -PolicyId $policyId + +``` +This example shows how to use the Get-MgBetaWindowsUpdatesPolicyApplicableContent Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyApproval.md b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyApproval.md new file mode 100644 index 00000000000..5d15b0fc86b --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyApproval.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +Get-MgBetaWindowsUpdatesPolicyApproval -PolicyId $policyId + +``` +This example shows how to use the Get-MgBetaWindowsUpdatesPolicyApproval Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyRing.md b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyRing.md new file mode 100644 index 00000000000..2d3b3e1a15b --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesPolicyRing.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +Get-MgBetaWindowsUpdatesPolicyRing -PolicyId $policyId -Filter "isof('microsoft.graph.windowsUpdates.qualityUpdateRing')" + +``` +This example shows how to use the Get-MgBetaWindowsUpdatesPolicyRing Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesUpdatePolicy.md b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesUpdatePolicy.md new file mode 100644 index 00000000000..3c317f5d919 --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Get-MgBetaWindowsUpdatesUpdatePolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +Get-MgBetaWindowsUpdatesUpdatePolicy + +``` +This example shows how to use the Get-MgBetaWindowsUpdatesUpdatePolicy Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicy.md b/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicy.md index 26329ae4b8c..be1a6817381 100644 --- a/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicy.md +++ b/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicy.md @@ -5,34 +5,17 @@ Import-Module Microsoft.Graph.Beta.WindowsUpdates $params = @{ - "@odata.type" = "#microsoft.graph.windowsUpdates.updatePolicy" - audience = @{ - id = "8c4eb1eb-d7a3-4633-8e2f-f926e82df08e" - } - complianceChanges = @( + "@odata.type" = "#microsoft.graph.windowsUpdates.qualityUpdatePolicy" + displayName = "Patch Tuesday 123" + description = "Testing Patch Tuesday in test environment" + approvalRules = @( @{ - "@odata.type" = "#microsoft.graph.windowsUpdates.contentApproval" + "@odata.type" = "microsoft.graph.windowsUpdates.qualityUpdateApprovalRule" + deferralInDays = 0 + classification = "nonSecurity" + cadence = "outOfBand" } ) - complianceChangeRules = @( - @{ - "@odata.type" = "#microsoft.graph.windowsUpdates.contentApprovalRule" - contentFilter = @{ - "@odata.type" = "#microsoft.graph.windowsUpdates.driverUpdateFilter" - } - durationBeforeDeploymentStart = "P7D" - } - ) - deploymentSettings = @{ - "@odata.type" = "microsoft.graph.windowsUpdates.deploymentSettings" - schedule = @{ - gradualRollout = @{ - "@odata.type" = "#microsoft.graph.windowsUpdates.rateDrivenRolloutSettings" - durationBetweenOffers = "P1D" - devicePerOffer = - } - } - } } New-MgBetaWindowsUpdatesPolicy -BodyParameter $params diff --git a/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicyApproval.md b/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicyApproval.md new file mode 100644 index 00000000000..43e0f13d8b7 --- /dev/null +++ b/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicyApproval.md @@ -0,0 +1,17 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.policyApproval" + catalogEntryId = "1d8864c1-531f-4d5b-8225-8653ef4316d8" + status = "approved" +} + +New-MgBetaWindowsUpdatesPolicyApproval -PolicyId $policyId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaWindowsUpdatesPolicyApproval Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicyRing.md b/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicyRing.md new file mode 100644 index 00000000000..bad46d727f2 --- /dev/null +++ b/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesPolicyRing.md @@ -0,0 +1,25 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.qualityUpdateRing" + displayName = "Ring0 - IT devices" + description = "First deployment ring to test updates before going to prod." + includedGroupAssignment = @{ + "@odata.type" = "microsoft.graph.windowsUpdates.includedGroupAssignment" + } + excludedGroupAssignment = @{ + "@odata.type" = "microsoft.graph.windowsUpdates.excludedGroupAssignment" + } + deferralInDays = 5 + isPaused = $false +} + +New-MgBetaWindowsUpdatesPolicyRing -PolicyId $policyId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaWindowsUpdatesPolicyRing Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesUpdatePolicy.md b/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesUpdatePolicy.md new file mode 100644 index 00000000000..538fb713299 --- /dev/null +++ b/src/WindowsUpdates/beta/examples/New-MgBetaWindowsUpdatesUpdatePolicy.md @@ -0,0 +1,42 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.updatePolicy" + audience = @{ + id = "8c4eb1eb-d7a3-4633-8e2f-f926e82df08e" + } + complianceChanges = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.contentApproval" + } + ) + complianceChangeRules = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.contentApprovalRule" + contentFilter = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.driverUpdateFilter" + } + durationBeforeDeploymentStart = "P7D" + } + ) + deploymentSettings = @{ + "@odata.type" = "microsoft.graph.windowsUpdates.deploymentSettings" + schedule = @{ + gradualRollout = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.rateDrivenRolloutSettings" + durationBetweenOffers = "P1D" + devicePerOffer = + } + } + } +} + +New-MgBetaWindowsUpdatesUpdatePolicy -BodyParameter $params + +``` +This example shows how to use the New-MgBetaWindowsUpdatesUpdatePolicy Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicy.md b/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicy.md index 4cae4f11306..7e257d2dd77 100644 --- a/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicy.md +++ b/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicy.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Beta.WindowsUpdates -Remove-MgBetaWindowsUpdatesPolicy -UpdatePolicyId $updatePolicyId +Remove-MgBetaWindowsUpdatesPolicy -PolicyId $policyId ``` This example shows how to use the Remove-MgBetaWindowsUpdatesPolicy Cmdlet. diff --git a/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicyApproval.md b/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicyApproval.md new file mode 100644 index 00000000000..392eb55a9fd --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicyApproval.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +Remove-MgBetaWindowsUpdatesPolicyApproval -PolicyId $policyId -PolicyApprovalId $policyApprovalId + +``` +This example shows how to use the Remove-MgBetaWindowsUpdatesPolicyApproval Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicyRing.md b/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicyRing.md new file mode 100644 index 00000000000..85dd6240e72 --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesPolicyRing.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +Remove-MgBetaWindowsUpdatesPolicyRing -PolicyId $policyId -RingId $ringId + +``` +This example shows how to use the Remove-MgBetaWindowsUpdatesPolicyRing Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesUpdatePolicy.md b/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesUpdatePolicy.md new file mode 100644 index 00000000000..a3986d4139f --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Remove-MgBetaWindowsUpdatesUpdatePolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +Remove-MgBetaWindowsUpdatesUpdatePolicy -UpdatePolicyId $updatePolicyId + +``` +This example shows how to use the Remove-MgBetaWindowsUpdatesUpdatePolicy Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicy.md b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicy.md index 5f21409b950..49c5b59353d 100644 --- a/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicy.md +++ b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicy.md @@ -5,20 +5,20 @@ Import-Module Microsoft.Graph.Beta.WindowsUpdates $params = @{ - "@odata.type" = "#microsoft.graph.windowsUpdates.updatePolicy" - deploymentSettings = @{ - "@odata.type" = "microsoft.graph.windowsUpdates.deploymentSettings" - schedule = @{ - gradualRollout = @{ - "@odata.type" = "#microsoft.graph.windowsUpdates.rateDrivenRolloutSettings" - durationBetweenOffers = "P1D" - devicePerOffer = - } + "@odata.type" = "#microsoft.graph.windowsUpdates.qualityUpdatePolicy" + displayName = "Patch Tuesday Test" + description = "Quality update policy to test upcoming Patch Tuesday updates" + approvalRules = @( + @{ + "@odata.type" = "microsoft.graph.windowsUpdates.qualityUpdateApprovalRule" + deferralInDays = 0 + classification = "nonSecurity" + cadence = "outOfBand" } - } + ) } -Update-MgBetaWindowsUpdatesPolicy -UpdatePolicyId $updatePolicyId -BodyParameter $params +Update-MgBetaWindowsUpdatesPolicy -PolicyId $policyId -BodyParameter $params ``` This example shows how to use the Update-MgBetaWindowsUpdatesPolicy Cmdlet. diff --git a/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyApproval.md b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyApproval.md new file mode 100644 index 00000000000..eab1cf6b820 --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyApproval.md @@ -0,0 +1,17 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.policyApproval" + catalogEntryId = "1d8864c1-531f-4d5b-8225-8653ef4316d8" + status = "suspended" +} + +Update-MgBetaWindowsUpdatesPolicyApproval -PolicyId $policyId -PolicyApprovalId $policyApprovalId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaWindowsUpdatesPolicyApproval Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyRing.md b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyRing.md new file mode 100644 index 00000000000..df125ca9508 --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyRing.md @@ -0,0 +1,20 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.qualityUpdateRing" + displayName = "Test Policy 123" + description = "Pre-production test policy" + deferralInDays = 5 + isPaused = $true + isHotpatchEnabled = $true +} + +Update-MgBetaWindowsUpdatesPolicyRing -PolicyId $policyId -RingId $ringId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaWindowsUpdatesPolicyRing Cmdlet. + diff --git a/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesUpdatePolicy.md b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesUpdatePolicy.md new file mode 100644 index 00000000000..ea3cea814cd --- /dev/null +++ b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesUpdatePolicy.md @@ -0,0 +1,25 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.WindowsUpdates + +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.updatePolicy" + deploymentSettings = @{ + "@odata.type" = "microsoft.graph.windowsUpdates.deploymentSettings" + schedule = @{ + gradualRollout = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.rateDrivenRolloutSettings" + durationBetweenOffers = "P1D" + devicePerOffer = + } + } + } +} + +Update-MgBetaWindowsUpdatesUpdatePolicy -UpdatePolicyId $updatePolicyId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaWindowsUpdatesUpdatePolicy Cmdlet. +