diff --git a/src/Applications/Applications/examples/v1.0-beta/Add-MgApplicationKey.md b/src/Applications/Applications/examples/v1.0-beta/Add-MgApplicationKey.md index 093355d11d5..a9022723b6b 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Add-MgApplicationKey.md +++ b/src/Applications/Applications/examples/v1.0-beta/Add-MgApplicationKey.md @@ -1,18 +1,34 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgApplicationKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyCredential = @{ + Type = "AsymmetricX509Cert" + Usage = "Verify" + Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + } + PasswordCredential = $null + Proof = "eyJ0eXAiOiJ..." +} +Add-MgApplicationKey -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgApplicationKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgApplicationKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyCredential = @{ + Type = "X509CertAndPassword" + Usage = "Sign" + Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + } + PasswordCredential = @{ + SecretText = "MKTr0w1..." + } + Proof = "eyJ0eXAiOiJ..." +} +Add-MgApplicationKey -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Add-MgApplicationKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Add-MgServicePrincipalTokenSigningCertificate.md b/src/Applications/Applications/examples/v1.0-beta/Add-MgServicePrincipalTokenSigningCertificate.md index 093355d11d5..57a548717d1 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Add-MgServicePrincipalTokenSigningCertificate.md +++ b/src/Applications/Applications/examples/v1.0-beta/Add-MgServicePrincipalTokenSigningCertificate.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgServicePrincipalTokenSigningCertificate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + DisplayName = "CN=customDisplayName" + EndDateTime = [System.DateTime]::Parse("2024-01-25T00:00:00Z") +} +Add-MgServicePrincipalTokenSigningCertificate -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgServicePrincipalTokenSigningCertificate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Clear-MgApplicationVerifiedPublisher.md b/src/Applications/Applications/examples/v1.0-beta/Clear-MgApplicationVerifiedPublisher.md index 093355d11d5..77f5447e896 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Clear-MgApplicationVerifiedPublisher.md +++ b/src/Applications/Applications/examples/v1.0-beta/Clear-MgApplicationVerifiedPublisher.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Clear-MgApplicationVerifiedPublisher Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Clear-MgApplicationVerifiedPublisher -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Clear-MgApplicationVerifiedPublisher Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Find-MgServicePrincipalSynchronizationJobSchemaDirectory.md b/src/Applications/Applications/examples/v1.0-beta/Find-MgServicePrincipalSynchronizationJobSchemaDirectory.md index 093355d11d5..bdb3ce04afc 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Find-MgServicePrincipalSynchronizationJobSchemaDirectory.md +++ b/src/Applications/Applications/examples/v1.0-beta/Find-MgServicePrincipalSynchronizationJobSchemaDirectory.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Find-MgServicePrincipalSynchronizationJobSchemaDirectory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Find-MgServicePrincipalSynchronizationJobSchemaDirectory -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId -DirectoryDefinitionId $directoryDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Find-MgServicePrincipalSynchronizationJobSchemaDirectory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationDelta.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationDelta.md index 093355d11d5..4b42606118c 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationDelta.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationExtensionProperty.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationExtensionProperty.md index 093355d11d5..14b1502be22 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationExtensionProperty.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationExtensionProperty.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationExtensionProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationExtensionProperty -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgApplicationExtensionProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgApplicationExtensionProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationExtensionProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationFederatedIdentityCredential.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationFederatedIdentityCredential.md index 093355d11d5..869826d975b 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationFederatedIdentityCredential.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationOwner.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationOwner.md index 093355d11d5..9e432ab20d0 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationOwner.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationOwner.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationOwner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationOwner -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationOwner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationSynchronizationAccessToken.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationSynchronizationAccessToken.md index 093355d11d5..0f9e5b6795b 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationSynchronizationAccessToken.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationSynchronizationAccessToken.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationSynchronizationAccessToken Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Credentials = @( + @{ + "@odata.type" = "microsoft.graph.synchronizationSecretKeyStringValuePair" + } + ) +} +Get-MgApplicationSynchronizationAccessToken -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationSynchronizationAccessToken Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTemplate.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTemplate.md index 093355d11d5..3d6e1be9646 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTemplate.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTemplate.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationTemplate -ApplicationTemplateId $applicationTemplateId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgApplicationTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgApplicationTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationTemplate ``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTokenIssuancePolicy.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTokenIssuancePolicy.md index 093355d11d5..7451d402851 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTokenIssuancePolicy.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTokenIssuancePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationTokenIssuancePolicy -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTokenLifetimePolicy.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTokenLifetimePolicy.md index 093355d11d5..d5f59e6c02e 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTokenLifetimePolicy.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationTokenLifetimePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationTokenLifetimePolicy -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfile.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfile.md index 093355d11d5..7f636232108 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfile.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfile.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOnPremisePublishingProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfile -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ExpandProperty "publishedResources,agents,agentGroups" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOnPremisePublishingProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileAgent.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileAgent.md index 093355d11d5..a1d94d98b5c 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileAgent.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileAgent.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOnPremisePublishingProfileAgent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileAgent -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ExpandProperty "agentGroups" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOnPremisePublishingProfileAgent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOnPremisePublishingProfileAgent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileAgent -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -OnPremisesAgentId $onPremisesAgentId -ExpandProperty "agentGroups" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOnPremisePublishingProfileAgent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileAgentGroup.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileAgentGroup.md index 093355d11d5..26b31edd002 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileAgentGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileAgentGroup.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOnPremisePublishingProfileAgentGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileAgentGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ExpandProperty "agents,publishedResources" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOnPremisePublishingProfileAgentGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOnPremisePublishingProfileAgentGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileAgentGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -OnPremisesAgentGroupId $onPremisesAgentGroupId -ExpandProperty "publishedResources,agents" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOnPremisePublishingProfileAgentGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnector.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnector.md index 093355d11d5..de0b43cfc78 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnector.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnector.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOnPremisePublishingProfileConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileConnector -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorId $connectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOnPremisePublishingProfileConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOnPremisePublishingProfileConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileConnector -OnPremisesPublishingProfileId $onPremisesPublishingProfileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOnPremisePublishingProfileConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroup.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroup.md index 093355d11d5..c3f6983e85f 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroup.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOnPremisePublishingProfileConnectorGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileConnectorGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorGroupId $connectorGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOnPremisePublishingProfileConnectorGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOnPremisePublishingProfileConnectorGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileConnectorGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOnPremisePublishingProfileConnectorGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroupApplication.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroupApplication.md index 093355d11d5..943c7a846e0 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroupApplication.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroupApplication.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOnPremisePublishingProfileConnectorGroupApplication Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileConnectorGroupApplication -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorGroupId $connectorGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOnPremisePublishingProfileConnectorGroupApplication Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroupMember.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroupMember.md index 093355d11d5..b5a64f5fd4a 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroupMember.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorGroupMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOnPremisePublishingProfileConnectorGroupMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileConnectorGroupMember -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorGroupId $connectorGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOnPremisePublishingProfileConnectorGroupMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorMemberOf.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorMemberOf.md index 093355d11d5..567e71d2ac7 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorMemberOf.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfileConnectorMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOnPremisePublishingProfileConnectorMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfileConnectorMemberOf -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorId $connectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOnPremisePublishingProfileConnectorMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfilePublishedResource.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfilePublishedResource.md index 093355d11d5..dddbad0a051 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfilePublishedResource.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgOnPremisePublishingProfilePublishedResource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOnPremisePublishingProfilePublishedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfilePublishedResource -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -PublishedResourceId $publishedResourceId -ExpandProperty "agentGroups" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOnPremisePublishingProfilePublishedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOnPremisePublishingProfilePublishedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgOnPremisePublishingProfilePublishedResource -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ExpandProperty "agentGroups" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOnPremisePublishingProfilePublishedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalAppRoleAssignedTo.md index 093355d11d5..82ca0f055ea 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalAppRoleAssignedTo.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalAppRoleAssignedTo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalAppRoleAssignedTo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalClaimMappingPolicy.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalClaimMappingPolicy.md index 093355d11d5..5ddf2575c67 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalClaimMappingPolicy.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalClaimMappingPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalClaimMappingPolicy -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalCreatedObject.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalCreatedObject.md index 093355d11d5..246a628170e 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalCreatedObject.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalCreatedObject.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalCreatedObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalCreatedObject -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalCreatedObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalDelegatedPermissionClassification.md index 093355d11d5..710883795e7 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalDelegatedPermissionClassification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalDelegatedPermissionClassification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalDelta.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalDelta.md index 093355d11d5..2d3f5c4b44b 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalDelta.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md index 093355d11d5..20b4ce0ea49 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalHomeRealmDiscoveryPolicy -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberOf.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberOf.md index 093355d11d5..e2a2cd77235 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberOf.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalMemberOf -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalOauth2PermissionGrant.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalOauth2PermissionGrant.md index 093355d11d5..ebf19f7c46d 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalOauth2PermissionGrant.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalOauth2PermissionGrant.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalOauth2PermissionGrant -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalOwnedObject.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalOwnedObject.md index 093355d11d5..7443ae80461 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalOwnedObject.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalOwnedObject.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalOwnedObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalOwnedObject -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalOwnedObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalPasswordSingleSignOnCredentials.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalPasswordSingleSignOnCredentials.md index 093355d11d5..bbc25b76d28 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalPasswordSingleSignOnCredentials.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalPasswordSingleSignOnCredentials.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalPasswordSingleSignOnCredentials Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Id = "5793aa3b-cca9-4794-679a240f8b58" +} +Get-MgServicePrincipalPasswordSingleSignOnCredentials -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalPasswordSingleSignOnCredentials Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationJob.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationJob.md index 093355d11d5..0b9406c3057 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationJob.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationJob.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalSynchronizationJob Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServicePrincipalSynchronizationJob Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServicePrincipalSynchronizationJob Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalSynchronizationJob Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationJobSchema.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationJobSchema.md index 093355d11d5..a086ee7d47b 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationJobSchema.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationJobSchema.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalSynchronizationJobSchema Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalSynchronizationJobSchema -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServicePrincipalSynchronizationJobSchema Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServicePrincipalSynchronizationJobSchema Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalSynchronizationJobSchema -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalSynchronizationJobSchema Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgServicePrincipalSynchronizationJobSchema Cmdlet +```powershell +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalSynchronizationJobSchema -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId +``` +This example shows how to use the Get-MgServicePrincipalSynchronizationJobSchema Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationTemplate.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationTemplate.md index 093355d11d5..8b619ee2f26 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalSynchronizationTemplate.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalSynchronizationTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalTransitiveMemberOf.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalTransitiveMemberOf.md index 093355d11d5..26d11050a49 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalTransitiveMemberOf.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalTransitiveMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalTransitiveMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalTransitiveMemberOf -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalTransitiveMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Invoke-MgFilterServicePrincipalSynchronizationJobSchemaOperator.md b/src/Applications/Applications/examples/v1.0-beta/Invoke-MgFilterServicePrincipalSynchronizationJobSchemaOperator.md index 093355d11d5..47f0dcf9239 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Invoke-MgFilterServicePrincipalSynchronizationJobSchemaOperator.md +++ b/src/Applications/Applications/examples/v1.0-beta/Invoke-MgFilterServicePrincipalSynchronizationJobSchemaOperator.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgFilterServicePrincipalSynchronizationJobSchemaOperator Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Invoke-MgFilterServicePrincipalSynchronizationJobSchemaOperator -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgFilterServicePrincipalSynchronizationJobSchemaOperator Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Invoke-MgFunctionServicePrincipalSynchronizationJobSchema.md b/src/Applications/Applications/examples/v1.0-beta/Invoke-MgFunctionServicePrincipalSynchronizationJobSchema.md index 093355d11d5..b789eb88bf4 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Invoke-MgFunctionServicePrincipalSynchronizationJobSchema.md +++ b/src/Applications/Applications/examples/v1.0-beta/Invoke-MgFunctionServicePrincipalSynchronizationJobSchema.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgFunctionServicePrincipalSynchronizationJobSchema Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Invoke-MgFunctionServicePrincipalSynchronizationJobSchema -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgFunctionServicePrincipalSynchronizationJobSchema Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Invoke-MgInstantiateApplicationTemplate.md b/src/Applications/Applications/examples/v1.0-beta/Invoke-MgInstantiateApplicationTemplate.md index 093355d11d5..39a99662a9e 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Invoke-MgInstantiateApplicationTemplate.md +++ b/src/Applications/Applications/examples/v1.0-beta/Invoke-MgInstantiateApplicationTemplate.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgInstantiateApplicationTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + DisplayName = "testProperties" +} +Invoke-MgInstantiateApplicationTemplate -ApplicationTemplateId $applicationTemplateId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgInstantiateApplicationTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationAppManagementPolicyByRef.md b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationAppManagementPolicyByRef.md index 093355d11d5..e6572e1c4dd 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationAppManagementPolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationAppManagementPolicyByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgApplicationAppManagementPolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/policies/appManagementPolicies/{id}" +} +New-MgApplicationAppManagementPolicyByRef -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgApplicationAppManagementPolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationExtensionProperty.md b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationExtensionProperty.md index 093355d11d5..eb112b818fd 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationExtensionProperty.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationExtensionProperty.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgApplicationExtensionProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Name = "jobGroup" + DataType = "String" + TargetObjects = @( + "User" + ) +} +New-MgApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgApplicationExtensionProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationFederatedIdentityCredential.md b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationFederatedIdentityCredential.md index 093355d11d5..334052bdac3 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationFederatedIdentityCredential.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Name = "testing02" + Issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + Subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + Audiences = @( + "api://AzureADTokenExchange" + ) +} +New-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationSynchronizationTemplate.md b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationSynchronizationTemplate.md index 093355d11d5..cffb81ce3f8 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationSynchronizationTemplate.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationSynchronizationTemplate.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgApplicationSynchronizationTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Id = "SCIM-Test1" + ApplicationId = "{id}" + FactoryTag = "CustomSCIM" +} +New-MgApplicationSynchronizationTemplate -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgApplicationSynchronizationTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationTokenIssuancePolicyByRef.md b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationTokenIssuancePolicyByRef.md index 093355d11d5..30b6ed2c9cc 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgApplicationTokenIssuancePolicyByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgApplicationTokenIssuancePolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/policies/tokenIssuancePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" +} +New-MgApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgApplicationTokenIssuancePolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileAgentGroup.md b/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileAgentGroup.md index 093355d11d5..b565e7c2c6d 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileAgentGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileAgentGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgOnPremisePublishingProfileAgentGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +New-MgOnPremisePublishingProfileAgentGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgOnPremisePublishingProfileAgentGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileConnectorGroup.md b/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileConnectorGroup.md index 093355d11d5..c5ad2376cb5 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileConnectorGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileConnectorGroup.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgOnPremisePublishingProfileConnectorGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Name = "name-value" + IsDefault = $false +} +New-MgOnPremisePublishingProfileConnectorGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgOnPremisePublishingProfileConnectorGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgOnPremisePublishingProfileConnectorGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Name = "Connector Group Demo" +} +New-MgOnPremisePublishingProfileConnectorGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgOnPremisePublishingProfileConnectorGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileConnectorMemberOfByRef.md b/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileConnectorMemberOfByRef.md index 093355d11d5..cf053b629f0 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileConnectorMemberOfByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfileConnectorMemberOfByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgOnPremisePublishingProfileConnectorMemberOfByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/onPremisesPublishingProfiles/applicationProxy/connectorGroups/{id}" +} +New-MgOnPremisePublishingProfileConnectorMemberOfByRef -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorId $connectorId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgOnPremisePublishingProfileConnectorMemberOfByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfilePublishedResource.md b/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfilePublishedResource.md index 093355d11d5..9e2874a5263 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfilePublishedResource.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgOnPremisePublishingProfilePublishedResource.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgOnPremisePublishingProfilePublishedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + DisplayName = "New provisioning" + ResourceName = "domain1.contoso.com" +} +New-MgOnPremisePublishingProfilePublishedResource -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgOnPremisePublishingProfilePublishedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalAppRoleAssignedTo.md index 093355d11d5..ecb8a812e56 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalAppRoleAssignedTo.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalAppRoleAssignedTo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + PrincipalId = "33ad69f9-da99-4bed-acd0-3f24235cb296" + ResourceId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" + AppRoleId = "ef7437e6-4f94-4a0a-a110-a439eb2aa8f7" +} +New-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalAppRoleAssignedTo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalAppRoleAssignment.md b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalAppRoleAssignment.md index 39f9ee467b4..2fbc476eb3c 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalAppRoleAssignment.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalAppRoleAssignment.md @@ -1,37 +1,12 @@ -### Example 1: {{ Add title here }} - +### Example 1: Using the New-MgServicePrincipalAppRoleAssignment Cmdlet ```powershell -$appRoleAssignment = @{ - "principalId"= "0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61" - "resourceId"= "557aedfc-007c-4904-918a-7e6fed2e7403" - "appRoleId"= "00000000-0000-0000-0000-000000000000" - } - -New-MgServicePrincipalAppRoleAssignment -ServicePrincipalId 0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61 -BodyParameter $appRoleAssignment | Format-List - -AppRoleId : 00000000-0000-0000-0000-000000000000 -CreatedDateTime : 8/31/2021 2:01:28 PM -DeletedDateTime : -Id : PRLbC6e4yUyMwr0XutBvYfZHkKGzlbxDr2I-QJWN9rs -PrincipalDisplayName : Example App -PrincipalId : 0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61 -PrincipalType : ServicePrincipal -ResourceDisplayName : Office 365 Management APIs -ResourceId : 557aedfc-007c-4904-918a-7e6fed2e7403 -AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#servicePrincipals('0bdb123d-b8a7-4cc9-8cc2-bd17 - bad06f61')/appRoleAssignments/$entity], [@odata.id, https://graph.microsoft.com/v2/fb625e04-52aa-42da-b10d-1 - 4f1195d665f/directoryObjects/$/Microsoft.DirectoryServices.ServicePrincipal('0bdb123d-b8a7-4cc9-8cc2-bd17bad - 06f61')/appRoleAssignments/PRLbC6e4yUyMwr0XutBvYfZHkKGzlbxDr2I-QJWN9rs]} +Import-Module Microsoft.Graph.Applications +$params = @{ + PrincipalId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" + ResourceId = "8fce32da-1246-437b-99cd-76d1d4677bd5" + AppRoleId = "498476ce-e0fe-48b0-b801-37ba7e2685c6" +} +New-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -In this example, the first command defines the `$appRoleAssignment` variable that defines the following: - --`principalId`: The id of the client service principal to which you are assigning the app role. - --`resourceId`: The id of the resource `servicePrincipal` (the API) which has defined the app role (the application permission). - --`appRoleId`: The id of the appRole (defined on the resource service principal) to assign to the client service principal. - -Learn more about the [AppRoleAssignment resource](/graph/api/resources/approleassignment?view=graph-rest-1.0). - -The second command adds the role to the specified service principal. +This example shows how to use the New-MgServicePrincipalAppRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalClaimMappingPolicyByRef.md index 093355d11d5..1200cdb4596 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalClaimMappingPolicyByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalClaimMappingPolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/policies/claimsMappingPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" +} +New-MgServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalDelegatedPermissionClassification.md index 093355d11d5..10a2a668b0e 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalDelegatedPermissionClassification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + PermissionId = "e1fe6dd8-ba31-4d61-89e7-88639da4683d" + PermissionName = "User.Read" + Classification = "low" +} +New-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalDelegatedPermissionClassification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index 093355d11d5..6b6b3a8b3a6 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/policies/homeRealmDiscoveryPolicies/6c6f154f-cb39-4ff9-bf5b-62d5ad585cde" +} +New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalPasswordSingleSignOnCredentials.md b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalPasswordSingleSignOnCredentials.md index 093355d11d5..50cad4f588e 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalPasswordSingleSignOnCredentials.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalPasswordSingleSignOnCredentials.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalPasswordSingleSignOnCredentials Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Id = "5793aa3b-cca9-4794-679a240f8b58" + Credentials = @( + @{ + FieldId = "param_username" + Value = "myusername" + Type = "username" + } + @{ + FieldId = "param_password" + Value = "pa$$w0rd" + Type = "password" + } + ) +} +New-MgServicePrincipalPasswordSingleSignOnCredentials -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalPasswordSingleSignOnCredentials Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalSynchronizationJob.md b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalSynchronizationJob.md index 093355d11d5..27cd1b8b712 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalSynchronizationJob.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalSynchronizationJob.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalSynchronizationJob Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + TemplateId = "BoxOutDelta" +} +New-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalSynchronizationJob Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalSynchronizationJobOnDemand.md b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalSynchronizationJobOnDemand.md index 093355d11d5..c3994b68235 100644 --- a/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalSynchronizationJobOnDemand.md +++ b/src/Applications/Applications/examples/v1.0-beta/New-MgServicePrincipalSynchronizationJobOnDemand.md @@ -1,18 +1,92 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalSynchronizationJobOnDemand Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Parameters = @( + @{ + RuleId = "6c409270-f78a-4bc6-af23-7cf3ab6482fe" + Subjects = @( + @{ + ObjectId = "CN=AdeleV,CN=Users,DC=corp,DC=chicago,DC=com" + ObjectTypeName = "user" + } + ) + } + ) +} +New-MgServicePrincipalSynchronizationJobOnDemand -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgServicePrincipalSynchronizationJobOnDemand Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgServicePrincipalSynchronizationJobOnDemand Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Parameters = @( + @{ + Subjects = @( + @{ + ObjectId = "9bb0f679-a883-4a6f-8260-35b491b8b8c8" + ObjectTypeName = "User" + } + ) + RuleId = "ea807875-5618-4f0a-9125-0b46a05298ca" + } + ) +} +New-MgServicePrincipalSynchronizationJobOnDemand -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalSynchronizationJobOnDemand Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgServicePrincipalSynchronizationJobOnDemand Cmdlet +```powershell +Import-Module Microsoft.Graph.Applications +$params = @{ + Parameters = @( + @{ + RuleId = "33f7c90d-bf71-41b1-bda6-aaf0ddbee5d8#V2" + Subjects = @( + @{ + ObjectId = "8213fd99-d6b6-417b-8e13-af6334856215" + ObjectTypeName = "Group" + Links = @{ + Members = @( + @{ + ObjectId = "cbc86211-6ada-4803-b73f-8039cf56d8a2" + ObjectTypeName = "User" + } + @{ + ObjectId = "2bc86211-6ada-4803-b73f-8039cf56d8a2" + ObjectTypeName = "User" + } + ) + } + } + ) + } + ) +} +New-MgServicePrincipalSynchronizationJobOnDemand -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId -BodyParameter $params +``` +This example shows how to use the New-MgServicePrincipalSynchronizationJobOnDemand Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgServicePrincipalSynchronizationJobOnDemand Cmdlet +```powershell +Import-Module Microsoft.Graph.Applications +$params = @{ + Parameters = @( + @{ + Subjects = @( + @{ + ObjectId = "9bb0f679-a883-4a6f-8260-35b491b8b8c8" + ObjectTypeName = "User" + } + ) + RuleId = "ea807875-5618-4f0a-9125-0b46a05298ca" + } + ) +} +New-MgServicePrincipalSynchronizationJobOnDemand -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId -BodyParameter $params +``` +This example shows how to use the New-MgServicePrincipalSynchronizationJobOnDemand Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationExtensionProperty.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationExtensionProperty.md index 093355d11d5..a9d88ed5110 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationExtensionProperty.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationExtensionProperty.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationExtensionProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationExtensionProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationFederatedIdentityCredential.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationFederatedIdentityCredential.md index 093355d11d5..2874fed579c 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationFederatedIdentityCredential.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationKey.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationKey.md index 093355d11d5..211bb8cbb0d 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationKey.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationKey.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyId = "f0b0b335-1d71-4883-8f98-567911bfdca6" + Proof = "eyJ0eXAiOiJ..." +} +Remove-MgApplicationKey -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationOwnerByRef.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationOwnerByRef.md index 093355d11d5..f7a280b7768 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationOwnerByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationOwnerByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationOwnerByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationOwnerByRef -ApplicationId $applicationId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationOwnerByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationPassword.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationPassword.md index 093355d11d5..1f78cfcb31b 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationPassword.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationPassword.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationPassword Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyId = "f0b0b335-1d71-4883-8f98-567911bfdca6" +} +Remove-MgApplicationPassword -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationPassword Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationTokenIssuancePolicyByRef.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationTokenIssuancePolicyByRef.md index 093355d11d5..55ccb6304e9 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationTokenIssuancePolicyByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationTokenIssuancePolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -TokenIssuancePolicyId $tokenIssuancePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationTokenIssuancePolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationTokenLifetimePolicyByRef.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationTokenLifetimePolicyByRef.md index 093355d11d5..777a40a3775 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgApplicationTokenLifetimePolicyByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationTokenLifetimePolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -TokenLifetimePolicyId $tokenLifetimePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationTokenLifetimePolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgGroupAppRoleAssignment.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgGroupAppRoleAssignment.md index 093355d11d5..77e7e67590f 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgGroupAppRoleAssignment.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgGroupAppRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupAppRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgGroupAppRoleAssignment -GroupId $groupId -AppRoleAssignmentId $appRoleAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupAppRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfileAgentGroup.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfileAgentGroup.md index 093355d11d5..cf18db7c78e 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfileAgentGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfileAgentGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgOnPremisePublishingProfileAgentGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgOnPremisePublishingProfileAgentGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -OnPremisesAgentGroupId $onPremisesAgentGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgOnPremisePublishingProfileAgentGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfileConnectorGroup.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfileConnectorGroup.md index 093355d11d5..116e8aee032 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfileConnectorGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfileConnectorGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgOnPremisePublishingProfileConnectorGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgOnPremisePublishingProfileConnectorGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorGroupId $connectorGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgOnPremisePublishingProfileConnectorGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef.md index 093355d11d5..807fc8356b8 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -PublishedResourceId $publishedResourceId -OnPremisesAgentGroupId $onPremisesAgentGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -PublishedResourceId $publishedResourceId -OnPremisesAgentGroupId $onPremisesAgentGroupId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgOnPremisePublishingProfilePublishedResourceAgentGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipal.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipal.md index 093355d11d5..c8cdcb99005 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipal.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipal.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipal Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipal -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipal Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalAppRoleAssignedTo.md index 093355d11d5..eeca1c742c8 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalAppRoleAssignedTo.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalAppRoleAssignedTo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalAppRoleAssignedTo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalClaimMappingPolicyByRef.md index 093355d11d5..3bc662a8b15 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalClaimMappingPolicyByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalClaimMappingPolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -ClaimsMappingPolicyId $claimsMappingPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalDelegatedPermissionClassification.md index 093355d11d5..d57746674c7 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalDelegatedPermissionClassification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalDelegatedPermissionClassification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index 093355d11d5..700f0f90dfd 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalPasswordSingleSignOnCredentials.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalPasswordSingleSignOnCredentials.md index 093355d11d5..b48c1eb1618 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalPasswordSingleSignOnCredentials.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalPasswordSingleSignOnCredentials.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalPasswordSingleSignOnCredentials Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Id = "5793aa3b-cca9-4794-679a240f8b58" +} +Remove-MgServicePrincipalPasswordSingleSignOnCredentials -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalPasswordSingleSignOnCredentials Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalSynchronizationJob.md b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalSynchronizationJob.md index 093355d11d5..a54ca4c1939 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalSynchronizationJob.md +++ b/src/Applications/Applications/examples/v1.0-beta/Remove-MgServicePrincipalSynchronizationJob.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalSynchronizationJob Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalSynchronizationJob Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Restart-MgServicePrincipalSynchronizationJob.md b/src/Applications/Applications/examples/v1.0-beta/Restart-MgServicePrincipalSynchronizationJob.md index 093355d11d5..3febbe0af85 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Restart-MgServicePrincipalSynchronizationJob.md +++ b/src/Applications/Applications/examples/v1.0-beta/Restart-MgServicePrincipalSynchronizationJob.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restart-MgServicePrincipalSynchronizationJob Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Criteria = @{ + ResetScope = "Watermark, Escrows, QuarantineState" + } +} +Restart-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restart-MgServicePrincipalSynchronizationJob Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Set-MgApplicationConnectorGroupByRef.md b/src/Applications/Applications/examples/v1.0-beta/Set-MgApplicationConnectorGroupByRef.md index 093355d11d5..ab3e7d3204a 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Set-MgApplicationConnectorGroupByRef.md +++ b/src/Applications/Applications/examples/v1.0-beta/Set-MgApplicationConnectorGroupByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgApplicationConnectorGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/onPremisesPublishingProfiles/applicationproxy/connectorGroups/{id}" +} +Set-MgApplicationConnectorGroupByRef -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgApplicationConnectorGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Set-MgApplicationVerifiedPublisher.md b/src/Applications/Applications/examples/v1.0-beta/Set-MgApplicationVerifiedPublisher.md index 093355d11d5..a0e347da0b9 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Set-MgApplicationVerifiedPublisher.md +++ b/src/Applications/Applications/examples/v1.0-beta/Set-MgApplicationVerifiedPublisher.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgApplicationVerifiedPublisher Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + VerifiedPublisherId = "1234567" +} +Set-MgApplicationVerifiedPublisher -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgApplicationVerifiedPublisher Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Start-MgServicePrincipalSynchronizationJob.md b/src/Applications/Applications/examples/v1.0-beta/Start-MgServicePrincipalSynchronizationJob.md index 093355d11d5..a616335ae89 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Start-MgServicePrincipalSynchronizationJob.md +++ b/src/Applications/Applications/examples/v1.0-beta/Start-MgServicePrincipalSynchronizationJob.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Start-MgServicePrincipalSynchronizationJob Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Start-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Start-MgServicePrincipalSynchronizationJob Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Suspend-MgServicePrincipalSynchronizationJob.md b/src/Applications/Applications/examples/v1.0-beta/Suspend-MgServicePrincipalSynchronizationJob.md index 093355d11d5..a79b6ddfae9 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Suspend-MgServicePrincipalSynchronizationJob.md +++ b/src/Applications/Applications/examples/v1.0-beta/Suspend-MgServicePrincipalSynchronizationJob.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Suspend-MgServicePrincipalSynchronizationJob Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Suspend-MgServicePrincipalSynchronizationJob -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Suspend-MgServicePrincipalSynchronizationJob Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Update-MgApplicationFederatedIdentityCredential.md b/src/Applications/Applications/examples/v1.0-beta/Update-MgApplicationFederatedIdentityCredential.md index 093355d11d5..80f87ba63ce 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Update-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/Applications/examples/v1.0-beta/Update-MgApplicationFederatedIdentityCredential.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Name = "testing02" + Issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + Subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + Description = "Updated description" + Audiences = @( + "api://AzureADTokenExchange" + ) +} +Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Update-MgOnPremisePublishingProfileAgentGroup.md b/src/Applications/Applications/examples/v1.0-beta/Update-MgOnPremisePublishingProfileAgentGroup.md index 093355d11d5..eadb65b6f2d 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Update-MgOnPremisePublishingProfileAgentGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Update-MgOnPremisePublishingProfileAgentGroup.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOnPremisePublishingProfileAgentGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + DisplayName = "Group New Name" +} +Update-MgOnPremisePublishingProfileAgentGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -OnPremisesAgentGroupId $onPremisesAgentGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOnPremisePublishingProfileAgentGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Update-MgOnPremisePublishingProfileConnectorGroup.md b/src/Applications/Applications/examples/v1.0-beta/Update-MgOnPremisePublishingProfileConnectorGroup.md index 093355d11d5..eb13cb61fec 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Update-MgOnPremisePublishingProfileConnectorGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Update-MgOnPremisePublishingProfileConnectorGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOnPremisePublishingProfileConnectorGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Name = "name-value" + Region = "region-value" +} +Update-MgOnPremisePublishingProfileConnectorGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorGroupId $connectorGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOnPremisePublishingProfileConnectorGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0-beta/Update-MgServicePrincipalPasswordSingleSignOnCredentials.md b/src/Applications/Applications/examples/v1.0-beta/Update-MgServicePrincipalPasswordSingleSignOnCredentials.md index 093355d11d5..e073ce5d200 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Update-MgServicePrincipalPasswordSingleSignOnCredentials.md +++ b/src/Applications/Applications/examples/v1.0-beta/Update-MgServicePrincipalPasswordSingleSignOnCredentials.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgServicePrincipalPasswordSingleSignOnCredentials Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Id = "5793aa3b-cca9-4794-679a240f8b58" + Credentials = @( + @{ + FieldId = "param_username" + Value = "myusername" + Type = "username" + } + @{ + FieldId = "param_password" + Value = "pa$$w0rd" + Type = "password" + } + ) +} +Update-MgServicePrincipalPasswordSingleSignOnCredentials -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgServicePrincipalPasswordSingleSignOnCredentials Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusiness.md index 093355d11d5..5e4e59495a4 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusiness.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusiness -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusiness ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgBookingBusiness Cmdlet +```powershell +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusiness -Query "Adventure" +``` +This example shows how to use the Get-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessAppointment.md index 093355d11d5..2a24f7e9ec7 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessAppointment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCalendarView.md b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCalendarView.md index 093355d11d5..39c2f5ef2c3 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCalendarView.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCalendarView.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessCalendarView Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCalendarView -BookingBusinessId $bookingBusinessId -Start "2018-04-30T00:00:00Z" -End "2018-05-10T00:00:00Z" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessCalendarView Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCustomQuestion.md b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCustomQuestion.md index 093355d11d5..b16a3d1cd22 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCustomQuestion.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCustomer.md b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCustomer.md index 093355d11d5..ab1515f7aa0 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCustomer.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessCustomer.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerId $bookingCustomerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessService.md b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessService.md index 093355d11d5..4269849934b 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessService.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessService.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BookingServiceId $bookingServiceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessService -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessStaffMember.md b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessStaffMember.md index 093355d11d5..60b44303428 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessStaffMember.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingBusinessStaffMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BookingStaffMemberId $bookingStaffMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingCurrency.md b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingCurrency.md index 093355d11d5..c483e26dabc 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingCurrency.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Get-MgBookingCurrency.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingCurrency Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingCurrency ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingCurrency Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingCurrency Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingCurrency -BookingCurrencyId $bookingCurrencyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingCurrency Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusiness.md index 093355d11d5..acefac58049 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusiness.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + DisplayName = "Fourth Coffee" + Address = @{ + PostOfficeBox = "P.O. Box 123" + Street = "4567 Main Street" + City = "Buffalo" + State = "NY" + CountryOrRegion = "USA" + PostalCode = "98052" + } + Phone = "206-555-0100" + Email = "manager@fourthcoffee.com" + WebSiteUrl = "https://www.fourthcoffee.com" + DefaultCurrencyIso = "USD" +} +New-MgBookingBusiness -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessAppointment.md index 093355d11d5..551fd2e189f 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessAppointment.md @@ -1,18 +1,151 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingAppointment" + CustomerEmailAddress = "jordanm@contoso.com" + CustomerLocation = @{ + "@odata.type" = "#microsoft.graph.location" + Address = @{ + "@odata.type" = "#microsoft.graph.physicalAddress" + City = "Buffalo" + CountryOrRegion = "USA" + PostalCode = "98052" + PostOfficeBox = $null + State = "NY" + Street = "123 First Avenue" + "Type@odata.type" = "#microsoft.graph.physicalAddressType" + Type = $null + } + Coordinates = $null + DisplayName = "Customer" + LocationEmailAddress = $null + "LocationType@odata.type" = "#microsoft.graph.locationType" + LocationType = $null + LocationUri = $null + UniqueId = $null + "UniqueIdType@odata.type" = "#microsoft.graph.locationUniqueIdType" + UniqueIdType = $null + } + CustomerName = "Jordan Miller" + CustomerNotes = "Please be on time." + CustomerPhone = "213-555-0199" + CustomerTimeZone = "America/Chicago" + SmsNotificationsEnabled = $true + End = @{ + "@odata.type" = "#microsoft.graph.dateTimeTimeZone" + DateTime = "2018-05-01T12:30:00.0000000+00:00" + TimeZone = "UTC" + } + InvoiceAmount = 10 + InvoiceDate = @{ + "@odata.type" = "#microsoft.graph.dateTimeTimeZone" + DateTime = "2018-05-01T12:30:00.0000000+00:00" + TimeZone = "UTC" + } + InvoiceId = "1001" + "InvoiceStatus@odata.type" = "#microsoft.graph.bookingInvoiceStatus" + InvoiceStatus = "open" + InvoiceUrl = "theInvoiceUrl" + IsLocationOnline = $true + OptOutOfCustomerEmail = $false + AnonymousJoinWebUrl = $null + PostBuffer = "PT10M" + PreBuffer = "PT5M" + Price = 10 + "PriceType@odata.type" = "#microsoft.graph.bookingPriceType" + PriceType = "fixedPrice" + "Reminders@odata.type" = "#Collection(microsoft.graph.bookingReminder)" + Reminders = @( + @{ + "@odata.type" = "#microsoft.graph.bookingReminder" + Message = "This service is tomorrow" + Offset = "P1D" + "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" + Recipients = "allAttendees" + } + @{ + "@odata.type" = "#microsoft.graph.bookingReminder" + Message = "Please be available to enjoy your lunch service." + Offset = "PT1H" + "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" + Recipients = "customer" + } + @{ + "@odata.type" = "#microsoft.graph.bookingReminder" + Message = "Please check traffic for next cater." + Offset = "PT2H" + "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" + Recipients = "staff" + } + ) + ServiceId = "57da6774-a087-4d69-b0e6-6fb82c339976" + ServiceLocation = @{ + "@odata.type" = "#microsoft.graph.location" + Address = @{ + "@odata.type" = "#microsoft.graph.physicalAddress" + City = "Buffalo" + CountryOrRegion = "USA" + PostalCode = "98052" + PostOfficeBox = $null + State = "NY" + Street = "123 First Avenue" + "Type@odata.type" = "#microsoft.graph.physicalAddressType" + Type = $null + } + Coordinates = $null + DisplayName = "Customer location" + LocationEmailAddress = $null + "LocationType@odata.type" = "#microsoft.graph.locationType" + LocationType = $null + LocationUri = $null + UniqueId = $null + "UniqueIdType@odata.type" = "#microsoft.graph.locationUniqueIdType" + UniqueIdType = $null + } + ServiceName = "Catered bento" + ServiceNotes = "Customer requires punctual service." + Start = @{ + "@odata.type" = "#microsoft.graph.dateTimeTimeZone" + DateTime = "2018-05-01T12:00:00.0000000+00:00" + TimeZone = "UTC" + } + MaximumAttendeesCount = 5 + FilledAttendeesCount = 1 + Customers = @( + @{ + "@odata.type" = "#microsoft.graph.bookingCustomerInformation" + CustomerId = "7ed53fa5-9ef2-4f2f-975b-27447440bc09" + Name = "Jordan Miller" + EmailAddress = "jordanm@contoso.com" + Phone = "213-555-0199" + Notes = $null + Location = @{ + "@odata.type" = "#microsoft.graph.location" + DisplayName = "Customer" + LocationEmailAddress = $null + LocationUri = "" + LocationType = $null + UniqueId = $null + UniqueIdType = $null + Address = @{ + "@odata.type" = "#microsoft.graph.physicalAddress" + Type = "home" + PostOfficeBox = "" + Street = "" + City = "" + State = "" + CountryOrRegion = "" + PostalCode = "" + } + } + TimeZone = "America/Chicago" + CustomQuestionAnswers = @( + ) + } + ) +} +New-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessCustomer.md b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessCustomer.md index 093355d11d5..4b96ce0602e 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessCustomer.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessCustomer.md @@ -1,18 +1,41 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + DisplayName = "Joni Sherman" + EmailAddress = "jonis@relecloud.com" + Addresses = @( + @{ + PostOfficeBox = "" + Street = "4567 Main Street" + City = "Buffalo" + State = "NY" + CountryOrRegion = "USA" + PostalCode = "98052" + Type = "home" + } + @{ + PostOfficeBox = "" + Street = "4570 Main Street" + City = "Buffalo" + State = "NY" + CountryOrRegion = "USA" + PostalCode = "98054" + Type = "business" + } + ) + Phones = @( + @{ + Number = "206-555-0100" + Type = "home" + } + @{ + Number = "206-555-0200" + Type = "business" + } + ) +} +New-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessService.md b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessService.md index 093355d11d5..110daa8f015 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessService.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessService.md @@ -1,18 +1,70 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingService" + DefaultDuration = "PT1H30M" + DefaultLocation = @{ + "@odata.type" = "#microsoft.graph.location" + Address = @{ + "@odata.type" = "#microsoft.graph.physicalAddress" + City = "Buffalo" + CountryOrRegion = "USA" + PostalCode = "98052" + PostOfficeBox = $null + State = "NY" + Street = "4567 First Street" + "Type@odata.type" = "#microsoft.graph.physicalAddressType" + Type = $null + } + Coordinates = $null + DisplayName = "Contoso Lunch Delivery" + LocationEmailAddress = $null + "LocationType@odata.type" = "#microsoft.graph.locationType" + LocationType = $null + LocationUri = $null + UniqueId = $null + "UniqueIdType@odata.type" = "#microsoft.graph.locationUniqueIdType" + UniqueIdType = $null + } + DefaultPrice = 10 + "DefaultPriceType@odata.type" = "#microsoft.graph.bookingPriceType" + DefaultPriceType = "fixedPrice" + "DefaultReminders@odata.type" = "#Collection(microsoft.graph.bookingReminder)" + DefaultReminders = @( + @{ + "@odata.type" = "#microsoft.graph.bookingReminder" + Message = "Please be reminded that this service is tomorrow." + Offset = "P1D" + "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" + Recipients = "allAttendees" + } + ) + Description = "Individual bento box lunch delivery" + DisplayName = "Bento" + IsLocationOnline = $true + SmsNotificationsEnabled = $true + LanguageTag = "en-US" + IsHiddenFromCustomers = $false + Notes = "Home-cooked special" + PostBuffer = "PT10M" + PreBuffer = "PT5M" + SchedulingPolicy = @{ + "@odata.type" = "#microsoft.graph.bookingSchedulingPolicy" + AllowStaffSelection = $true + MaximumAdvance = "P10D" + MinimumLeadTime = "PT10H" + SendConfirmationsToOwner = $true + TimeSlotInterval = "PT1H" + } + "StaffMemberIds@odata.type" = "#Collection(String)" + StaffMemberIds = @( + "d90d1e8c-5cfe-48cf-a2d5-966267375b6a" + "2f5f8794-0b29-45b5-b56a-2eb5ff7aa880" + ) + IsAnonymousJoinEnabled = $false +} +New-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessStaffMember.md b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessStaffMember.md index 093355d11d5..f4cbb633822 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessStaffMember.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/New-MgBookingBusinessStaffMember.md @@ -1,18 +1,86 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingStaffMember" + ColorIndex = 1 + DisplayName = "Dana Swope" + EmailAddress = "danas@contoso.com" + "Role@odata.type" = "#microsoft.graph.bookingStaffRole" + Role = "externalGuest" + TimeZone = "America/Chicago" + UseBusinessHours = $true + "WorkingHours@odata.type" = "#Collection(microsoft.graph.bookingWorkHours)" + WorkingHours = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "monday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + End = "17:00:00.0000000" + Start = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "tuesday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + End = "17:00:00.0000000" + Start = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "wednesday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + End = "17:00:00.0000000" + Start = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "thursday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + End = "17:00:00.0000000" + Start = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "friday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + End = "17:00:00.0000000" + Start = "08:00:00.0000000" + } + ) + } + ) + IsEmailNotificationEnabled = $false +} +New-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Publish-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0-beta/Publish-MgBookingBusiness.md index 093355d11d5..d91860344b5 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Publish-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Publish-MgBookingBusiness.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Publish-MgBookingBusiness -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusiness.md index 093355d11d5..84933be35a7 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusiness.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusiness -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessAppointment.md index 093355d11d5..f92bcc7df5c 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessAppointment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessCustomQuestion.md b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessCustomQuestion.md index 093355d11d5..51a0ba0af7e 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessCustomQuestion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessCustomer.md b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessCustomer.md index 093355d11d5..10e6df5c822 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessCustomer.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessCustomer.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerId $bookingCustomerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessService.md b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessService.md index 093355d11d5..e494b1f117d 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessService.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessService.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BookingServiceId $bookingServiceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessStaffMember.md b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessStaffMember.md index 093355d11d5..564dc011725 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessStaffMember.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Remove-MgBookingBusinessStaffMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BookingStaffMemberId $bookingStaffMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Stop-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0-beta/Stop-MgBookingBusinessAppointment.md index 093355d11d5..43a06d3ae9f 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Stop-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Stop-MgBookingBusinessAppointment.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + CancellationMessage = "Your appointment has been successfully cancelled. Please call us again." +} +Stop-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Unpublish-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0-beta/Unpublish-MgBookingBusiness.md index 093355d11d5..d1a3aa9f2d0 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Unpublish-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Unpublish-MgBookingBusiness.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Unpublish-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Unpublish-MgBookingBusiness -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Unpublish-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusiness.md index 093355d11d5..6a64110a44e 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusiness.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + Email = "admin@fabrikam.com" + SchedulingPolicy = @{ + TimeSlotInterval = "PT60M" + MinimumLeadTime = "P1D" + MaximumAdvance = "P30D" + SendConfirmationsToOwner = $true + AllowStaffSelection = $true + } +} +Update-MgBookingBusiness -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessAppointment.md index 093355d11d5..0b2755ec759 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessAppointment.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +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" + } + InvoiceDate = @{ + "@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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessCustomQuestion.md b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessCustomQuestion.md index 093355d11d5..b27df262376 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessCustomQuestion.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingCustomQuestion" + DisplayName = "What is your age?" + AnswerInputType = "text" + AnswerOptions = @( + ) +} +Update-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessCustomer.md b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessCustomer.md index 093355d11d5..70b79680189 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessCustomer.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessCustomer.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + DisplayName = "Adele" + EmailAddress = "adele@relecloud.com" +} +Update-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerId $bookingCustomerId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessService.md b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessService.md index 093355d11d5..12850936771 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessService.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessService.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingService" + DefaultDuration = "PT30M" +} +Update-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BookingServiceId $bookingServiceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessStaffMember.md b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessStaffMember.md index 093355d11d5..bc6a09214c2 100644 --- a/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessStaffMember.md +++ b/src/Bookings/Bookings/examples/v1.0-beta/Update-MgBookingBusinessStaffMember.md @@ -1,18 +1,71 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + WorkingHours = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "monday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "tuesday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + End = "17:00:00.0000000" + Start = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "wednesday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + End = "17:00:00.0000000" + Start = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "thursday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + End = "17:00:00.0000000" + Start = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "friday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + End = "17:00:00.0000000" + Start = "08:00:00.0000000" + } + ) + } + ) +} +Update-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BookingStaffMemberId $bookingStaffMemberId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgGroupEvent.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgGroupEvent.md index 093355d11d5..576d1eba13b 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgGroupEvent.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgGroupEvent.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgGroupEvent -GroupId $groupId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgGroupEvent -GroupId $groupId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgGroupEventExtension.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgGroupEventExtension.md index 093355d11d5..b7963e8c734 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgGroupEventExtension.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgGroupEventExtension.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupEventExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupEventExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgPlace.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgPlace.md index 093355d11d5..76f2da902c7 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgPlace.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgPlace.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPlace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPlace Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId +``` +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgPlace Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId +``` +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgPlace Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId +``` +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgPlace Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId +``` +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendar.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendar.md index 093355d11d5..c2cc0bf05b2 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendar.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendar -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarGroup.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarGroup.md index 093355d11d5..991c27561b2 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarGroup.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendarGroup -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarGroupCalendar.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarGroupCalendar.md index 093355d11d5..1c75f2e36ac 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarGroupCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarGroupCalendar.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendarGroupCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendarGroupCalendar -UserId $userId -CalendarGroupId $calendarGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendarGroupCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarPermission.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarPermission.md index 093355d11d5..7c6799f1684 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarPermission.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarPermission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendarPermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendarPermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarView.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarView.md index 093355d11d5..eb8c3653d2f 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarView.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserCalendarView.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendarView Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendarView -UserId $userId -Startdatetime "2017-01-01T19:00:00-08:00" -Enddatetime "2017-01-07T19:00:00-08:00" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendarView Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserDefaultCalendar.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserDefaultCalendar.md index 093355d11d5..9fed45b71bd 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserDefaultCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserDefaultCalendar.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDefaultCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserDefaultCalendar -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDefaultCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEvent.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEvent.md index 093355d11d5..b5bc0c1a73d 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEvent.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEvent.md @@ -1,18 +1,48 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" +``` +This example shows how to use the Get-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,start,end,occurrenceId,exceptionOccurrences,cancelledOccurrences" -ExpandProperty "exceptionOccurrences" +``` +This example shows how to use the Get-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -Property "subject,body,bodyPreview" +``` +This example shows how to use the Get-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location" +``` +This example shows how to use the Get-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEventAttachment.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEventAttachment.md index 093355d11d5..1e85ceb5fe2 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEventAttachment.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEventAttachment.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserEventAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEventAttachment -UserId $userId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserEventAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEventInstance.md b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEventInstance.md index 093355d11d5..08323588c4b 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEventInstance.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Get-MgUserEventInstance.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserEventInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEventInstance -UserId $userId -EventId $eventId -Startdatetime "2019-04-08T09:00:00.0000000" -Enddatetime "2019-04-30T09:00:00.0000000" -Property "subject,bodyPreview,seriesMasterId,type,recurrence,start,end" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserEventInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/New-MgGroupEvent.md b/src/Calendar/Calendar/examples/v1.0-beta/New-MgGroupEvent.md index 093355d11d5..4bf78c8910b 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/New-MgGroupEvent.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/New-MgGroupEvent.md @@ -1,18 +1,34 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does late morning work for you?" + } + Start = @{ + DateTime = "2019-06-15T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-06-15T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "adelev@contoso.onmicrosoft.com" + Name = "Adele Vance" + } + Type = "required" + } + ) +} +New-MgGroupEvent -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/New-MgGroupEventExtension.md b/src/Calendar/Calendar/examples/v1.0-beta/New-MgGroupEventExtension.md index 093355d11d5..cabc218dd0f 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/New-MgGroupEventExtension.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/New-MgGroupEventExtension.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupEventExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "microsoft.graph.openTypeExtension" + ExtensionName = "Com.Contoso.Deal" + CompanyName = "Alpine Skis" + DealValue = + ExpirationDate = "2015-07-03T13:04:00.000Z" +} +New-MgGroupEventExtension -GroupId $groupId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupEventExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendar.md b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendar.md index 093355d11d5..781e86826e4 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendar.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Name = "Volunteer" +} +# A UPN can also be used as -UserId. +New-MgUserCalendar -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarEvent.md b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarEvent.md index 093355d11d5..dee80e6d9ba 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarEvent.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarEvent.md @@ -1,18 +1,73 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserCalendarEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does next month work for you?" + } + Start = @{ + DateTime = "2019-03-10T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-03-10T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "adelev@contoso.onmicrosoft.com" + Name = "Adele Vance" + } + Type = "required" + } + ) + TransactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" +} +# A UPN can also be used as -UserId. +New-MgUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserCalendarEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserCalendarEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does next month work for you?" + } + Start = @{ + DateTime = "2019-03-10T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-03-10T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "adelev@contoso.onmicrosoft.com" + Name = "Adele Vance" + } + Type = "required" + } + ) + IsOnlineMeeting = $true + OnlineMeetingProvider = "teamsForBusiness" +} +# A UPN can also be used as -UserId. +New-MgUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserCalendarEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarGroup.md b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarGroup.md index 093355d11d5..59deb1bb319 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarGroup.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Name = "Personal events" +} +# A UPN can also be used as -UserId. +New-MgUserCalendarGroup -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarGroupCalendar.md b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarGroupCalendar.md index 093355d11d5..a86929c5c42 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarGroupCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserCalendarGroupCalendar.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserCalendarGroupCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Name = "Marketing calendar" +} +# A UPN can also be used as -UserId. +New-MgUserCalendarGroupCalendar -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserCalendarGroupCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserEvent.md b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserEvent.md index 093355d11d5..803716be1ee 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserEvent.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserEvent.md @@ -1,18 +1,236 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Plan summer company picnic" + Body = @{ + ContentType = "HTML" + Content = "Let's kick-start this event planning!" + } + Start = @{ + DateTime = "2017-08-30T11:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2017-08-30T12:00:00" + TimeZone = "Pacific Standard Time" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "DanaS@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + Type = "Required" + } + @{ + EmailAddress = @{ + Address = "AlexW@contoso.onmicrosoft.com" + Name = "Alex Wilber" + } + Type = "Required" + } + ) + Location = @{ + DisplayName = "Conf Room 3; Fourth Coffee; Home Office" + LocationType = "Default" + } + Locations = @( + @{ + DisplayName = "Conf Room 3" + } + @{ + DisplayName = "Fourth Coffee" + Address = @{ + Street = "4567 Main St" + City = "Redmond" + State = "WA" + CountryOrRegion = "US" + PostalCode = "32008" + } + Coordinates = @{ + Latitude = 47.672 + Longitude = -102.103 + } + } + @{ + DisplayName = "Home Office" + } + ) + AllowNewTimeProposals = $true +} +# A UPN can also be used as -UserId. +New-MgUserEvent -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does noon work for you?" + } + Start = @{ + DateTime = "2017-04-15T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2017-04-15T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + Type = "required" + } + ) + AllowNewTimeProposals = $true + TransactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" +} +# A UPN can also be used as -UserId. +New-MgUserEvent -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does noon work for you?" + } + Start = @{ + DateTime = "2017-04-15T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2017-04-15T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + Type = "required" + } + ) + AllowNewTimeProposals = $true + IsOnlineMeeting = $true + OnlineMeetingProvider = "teamsForBusiness" +} +# A UPN can also be used as -UserId. +New-MgUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does noon work for you?" + } + Start = @{ + DateTime = "2020-02-25T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2020-02-25T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "AlexW@contoso.OnMicrosoft.com" + Name = "Alex Wilbur" + } + Type = "required" + } + ) + Recurrence = @{ + Pattern = @{ + Type = "daily" + Interval = 1 + } + Range = @{ + Type = "numbered" + StartDate = "2020-02-25" + NumberOfOccurrences = 2 + } + } +} +# A UPN can also be used as -UserId. +New-MgUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does noon time work for you?" + } + Start = @{ + DateTime = "2017-09-04T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2017-09-04T14:00:00" + TimeZone = "Pacific Standard Time" + } + Recurrence = @{ + Pattern = @{ + Type = "weekly" + Interval = 1 + DaysOfWeek = @( + "Monday" + ) + } + Range = @{ + Type = "endDate" + StartDate = "2017-09-04" + EndDate = "2017-12-31" + } + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "AdeleV@contoso.onmicrosoft.com" + Name = "Adele Vance" + } + Type = "required" + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserEventAttachment.md b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserEventAttachment.md index 093355d11d5..52158009060 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserEventAttachment.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/New-MgUserEventAttachment.md @@ -1,18 +1,60 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserEventAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "menu.txt" + ContentBytes = "bWFjIGFuZCBjaGVlc2UgdG9kYXk=" +} +# A UPN can also be used as -UserId. +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserEventAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "#microsoft.graph.itemAttachment" + Name = "Holiday event" + Item = @{ + "@odata.type" = "microsoft.graph.event" + Subject = "Discuss gifts for children" + } +} +# A UPN can also be used as -UserId. +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgUserEventAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" + Name = "name-value" + Item = @{ + "@odata.type" = "microsoft.graph.message" + } +} +# A UPN can also be used as -UserId. +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgUserEventAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "#microsoft.graph.referenceAttachment" + Name = "Personal pictures" + SourceUrl = "https://contoso.com/personal/mario_contoso_net/Documents/Pics" + ProviderType = "oneDriveConsumer" + Permission = "Edit" + IsFolder = "True" +} +# A UPN can also be used as -UserId. +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgGroupEvent.md b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgGroupEvent.md index 093355d11d5..b69e6e26919 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgGroupEvent.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgGroupEvent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Remove-MgGroupEvent -GroupId $groupId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserCalendarGroup.md b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserCalendarGroup.md index 093355d11d5..0a5a38ea9a2 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserCalendarGroup.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserCalendarGroup.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Remove-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserCalendarPermission.md b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserCalendarPermission.md index 093355d11d5..a8dec818457 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserCalendarPermission.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserCalendarPermission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserCalendarPermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Remove-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserCalendarPermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserEvent.md b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserEvent.md index 093355d11d5..83f110d9576 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserEvent.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserEvent.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Remove-MgUserEvent -UserId $userId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserEventAttachment.md b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserEventAttachment.md index 093355d11d5..d12deabc02e 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserEventAttachment.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Remove-MgUserEventAttachment.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserEventAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Remove-MgUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgGroupEvent.md b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgGroupEvent.md index 093355d11d5..8e00c6e88e2 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgGroupEvent.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgGroupEvent.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgGroupEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + OriginalStartTimeZone = "originalStartTimeZone-value" + OriginalEndTimeZone = "originalEndTimeZone-value" + ResponseStatus = @{ + Response = "" + Time = [System.DateTime]::Parse("datetime-value") + } + Uid = "iCalUId-value" + ReminderMinutesBeforeStart = 99 + IsReminderOn = $true +} +Update-MgGroupEvent -GroupId $groupId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgGroupEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgPlace.md b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgPlace.md index 093355d11d5..5915276ef61 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgPlace.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgPlace.md @@ -1,18 +1,56 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "microsoft.graph.room" + Nickname = "Conf Room" + Building = "1" + Label = "100" + Capacity = + IsWheelChairAccessible = $false +} +Update-MgPlace -PlaceId $placeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgPlace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "microsoft.graph.roomList" + DisplayName = "Building 1" + Phone = "555-555-0100" + Address = @{ + Street = "4567 Main Street" + City = "Buffalo" + State = "NY" + PostalCode = "98052" + CountryOrRegion = "USA" + } + GeoCoordinates = @{ + Altitude = $null + Latitude = 47 + Longitude = -122 + Accuracy = $null + AltitudeAccuracy = $null + } +} +Update-MgPlace -PlaceId $placeId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgPlace Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "microsoft.graph.workspace" + Nickname = "Conf Room" + Building = "1" + Label = "100" + Capacity = + IsWheelChairAccessible = $false +} +Update-MgPlace -PlaceId $placeId -BodyParameter $params +``` +This example shows how to use the Update-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserCalendarGroup.md b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserCalendarGroup.md index 093355d11d5..b97af7a03ef 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserCalendarGroup.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserCalendarGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Name = "name-value" +} +# A UPN can also be used as -UserId. +Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserCalendarPermission.md b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserCalendarPermission.md index 093355d11d5..c18b7480d51 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserCalendarPermission.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserCalendarPermission.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserCalendarPermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Role = "write" +} +Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserCalendarPermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserEvent.md b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserEvent.md index 093355d11d5..876f507d7e8 100644 --- a/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserEvent.md +++ b/src/Calendar/Calendar/examples/v1.0-beta/Update-MgUserEvent.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + OriginalStartTimeZone = "originalStartTimeZone-value" + OriginalEndTimeZone = "originalEndTimeZone-value" + ResponseStatus = @{ + Response = "" + Time = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + } + Recurrence = $null + Uid = "iCalUId-value" + ReminderMinutesBeforeStart = 99 + IsOnlineMeeting = $true + OnlineMeetingProvider = "teamsForBusiness" + IsReminderOn = $true + HideAttendees = $false + Categories = @( + "Red category" + ) +} +# A UPN can also be used as -UserId. +Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Get-MgSubscription.md b/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Get-MgSubscription.md index 093355d11d5..1769d906f4e 100644 --- a/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Get-MgSubscription.md +++ b/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Get-MgSubscription.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +Get-MgSubscription -SubscriptionId $subscriptionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +Get-MgSubscription ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/New-MgSubscription.md b/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/New-MgSubscription.md index 093355d11d5..04a885a039d 100644 --- a/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/New-MgSubscription.md +++ b/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/New-MgSubscription.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +$params = @{ + ChangeType = "created" + NotificationUrl = "https://webhook.azurewebsites.net/api/send/myNotifyClient" + Resource = "me/mailFolders('Inbox')/messages" + ExpirationDateTime = [System.DateTime]::Parse("2016-11-20T18:23:45.9356913Z") + ClientState = "secretClientValue" + LatestSupportedTlsVersion = "v1_2" +} +New-MgSubscription -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Remove-MgSubscription.md b/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Remove-MgSubscription.md index 093355d11d5..b3e85fc18fc 100644 --- a/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Remove-MgSubscription.md +++ b/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Remove-MgSubscription.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +Remove-MgSubscription -SubscriptionId $subscriptionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Update-MgSubscription.md b/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Update-MgSubscription.md index 093355d11d5..63f13de21ad 100644 --- a/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Update-MgSubscription.md +++ b/src/ChangeNotifications/ChangeNotifications/examples/v1.0-beta/Update-MgSubscription.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +$params = @{ + ExpirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") +} +Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Add-MgCommunicationCallLargeGalleryView.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Add-MgCommunicationCallLargeGalleryView.md index 093355d11d5..79c20739b5c 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Add-MgCommunicationCallLargeGalleryView.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Add-MgCommunicationCallLargeGalleryView.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgCommunicationCallLargeGalleryView Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "785f4929-92ca-497b-863f-c778c77c9758" +} +Add-MgCommunicationCallLargeGalleryView -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgCommunicationCallLargeGalleryView Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCall.md index 093355d11d5..a72fdeaa6d5 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCall.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCall -CallId $callId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCall -CallId $callId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallAudioRoutingGroup.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallAudioRoutingGroup.md index 093355d11d5..aa29fc2fd9c 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallAudioRoutingGroup.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallAudioRoutingGroup.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCallAudioRoutingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallAudioRoutingGroup -CallId $callId -AudioRoutingGroupId $audioRoutingGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCallAudioRoutingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCallAudioRoutingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallAudioRoutingGroup -CallId $callId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCallAudioRoutingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallContentSharingSession.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallContentSharingSession.md index 093355d11d5..a28f7bd2a6e 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallContentSharingSession.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCallContentSharingSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallContentSharingSession -CallId $callId -ContentSharingSessionId $contentSharingSessionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCallContentSharingSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCallContentSharingSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallContentSharingSession -CallId $callId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCallContentSharingSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallOperation.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallOperation.md index 093355d11d5..f64f840ca45 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallOperation.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCallOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallOperation -CallId $callId -CommsOperationId $commsOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCallOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallParticipant.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallParticipant.md index 093355d11d5..72149e2e232 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallParticipant.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallParticipant.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallParticipant -CallId $callId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallRecord.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallRecord.md index 093355d11d5..98881a1e09c 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallRecord.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallRecord.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCallRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecord -CallRecordId $callRecordId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCallRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecord -CallRecordId $callRecordId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgCommunicationCallRecord Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecord -CallRecordId $callRecordId -ExpandProperty "sessions(`$expand=segments)" +``` +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgCommunicationCallRecord Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecord -CallRecordId $callRecordId +``` +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallRecordSession.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallRecordSession.md index 093355d11d5..bb37f1e1840 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallRecordSession.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationCallRecordSession.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCallRecordSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId -ExpandProperty "segments" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCallRecordSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCallRecordSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCallRecordSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationOnlineMeeting.md index 093355d11d5..f9a1cbbf31f 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationOnlineMeeting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationPresence.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationPresence.md index 093355d11d5..556595a1c6e 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationPresence.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationPresence.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationPresence -PresenceId $presenceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationPresenceByUserId.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationPresenceByUserId.md index 093355d11d5..a60acba208c 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationPresenceByUserId.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgCommunicationPresenceByUserId.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationPresenceByUserId Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Ids = @( + "fa8bf3dc-eca7-46b7-bad1-db199b62afc3" + "66825e03-7ef5-42da-9069-724602c31f6b" + ) +} +Get-MgCommunicationPresenceByUserId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationPresenceByUserId Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingAttendanceReport.md index 093355d11d5..1007c598f27 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingAttendanceReport.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeetingAttendanceReport Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId -ExpandProperty "attendanceRecords" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnlineMeetingAttendanceReport Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnlineMeetingAttendanceReport Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeetingAttendanceReport Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md index 093355d11d5..b24671c5786 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRecording.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRecording.md index 093355d11d5..c6007192202 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRecording.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRecording.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeetingRecording Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingRecording -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeetingRecording Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRegistration.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRegistration.md index 093355d11d5..f8af61b5ece 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRegistration.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRegistration.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeetingRegistration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingRegistration -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnlineMeetingRegistration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnlineMeetingRegistration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingRegistration -UserId $userId -OnlineMeetingId $onlineMeetingId -ExpandProperty "microsoft.graph.meetingRegistration/customQuestions" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeetingRegistration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRegistrationCustomQuestion.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRegistrationCustomQuestion.md index 093355d11d5..160d8510e00 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRegistrationCustomQuestion.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingRegistrationCustomQuestion.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeetingRegistrationCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingRegistrationCustomQuestion -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingRegistrationQuestionId $meetingRegistrationQuestionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeetingRegistrationCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingTranscript.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingTranscript.md index 093355d11d5..0aea8b57a02 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingTranscript.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingTranscript.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeetingTranscript Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgUserOnlineMeetingTranscript -UserId $userId -OnlineMeetingId $onlineMeetingId -CallTranscriptId $callTranscriptId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnlineMeetingTranscript Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnlineMeetingTranscript Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgUserOnlineMeetingTranscript -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeetingTranscript Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingTranscriptContent.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingTranscriptContent.md index 093355d11d5..29b29aff08b 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingTranscriptContent.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserOnlineMeetingTranscriptContent.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeetingTranscriptContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgUserOnlineMeetingTranscriptContent -UserId $userId -OnlineMeetingId $onlineMeetingId -CallTranscriptId $callTranscriptId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnlineMeetingTranscriptContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnlineMeetingTranscriptContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgUserOnlineMeetingTranscriptContent -UserId $userId -OnlineMeetingId $onlineMeetingId -CallTranscriptId $callTranscriptId -Format "text/vtt" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeetingTranscriptContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserOnlineMeetingTranscriptContent Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +Get-MgUserOnlineMeetingTranscriptContent -UserId $userId -OnlineMeetingId $onlineMeetingId -CallTranscriptId $callTranscriptId -Format "text/vtt" +``` +This example shows how to use the Get-MgUserOnlineMeetingTranscriptContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgUserOnlineMeetingTranscriptContent Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +Get-MgUserOnlineMeetingTranscriptContent -UserId $userId -OnlineMeetingId $onlineMeetingId -CallTranscriptId $callTranscriptId +``` +This example shows how to use the Get-MgUserOnlineMeetingTranscriptContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserPresence.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserPresence.md index 093355d11d5..f1e2247c590 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserPresence.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Get-MgUserPresence.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgUserPresence -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserPresence -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgAnswerCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgAnswerCommunicationCall.md index 093355d11d5..c5d621c3d32 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgAnswerCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgAnswerCommunicationCall.md @@ -1,18 +1,39 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAnswerCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + CallbackUri = "https://bot.contoso.com/api/calls" + AcceptedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + } +} +Invoke-MgAnswerCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgAnswerCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgAnswerCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + CallbackUri = "callbackUri-value" + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + } + AcceptedModalities = @( + "audio" + ) + CallOptions = @{ + "@odata.type" = "#microsoft.graph.incomingCallOptions" + IsContentSharingNotificationEnabled = $true + } + ParticipantCapacity = 200 +} +Invoke-MgAnswerCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAnswerCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgInviteCommunicationCallParticipant.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgInviteCommunicationCallParticipant.md index 093355d11d5..7976b6df033 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgInviteCommunicationCallParticipant.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgInviteCommunicationCallParticipant.md @@ -1,18 +1,179 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "278405a3-f568-4b3e-b684-009193463064" + IdentityProvider = "AAD" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "278405a3-f568-4b3e-b684-009193463064" + IdentityProvider = "AAD" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "278405a3-f568-4b3e-b684-009193463064" + IdentityProvider = "AAD" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe" + IdentityProvider = "AAD" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + ParticipantId = "7d501bf1-5ee4-4605-ba92-0ae4513c611c" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "682b6c37-0729-4fab-ace6-d730d5d9137e" + IdentityProvider = "AAD" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe" + IdentityProvider = "AAD" + } + } + } + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "1e126418-44a0-4a94-a6f8-0efe1ad71acb" + IdentityProvider = "AAD" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgKeepCommunicationCallAlive.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgKeepCommunicationCallAlive.md index 093355d11d5..c6c112f320d 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgKeepCommunicationCallAlive.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgKeepCommunicationCallAlive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgKeepCommunicationCallAlive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Invoke-MgKeepCommunicationCallAlive -CallId $callId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgKeepCommunicationCallAlive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality.md index 093355d11d5..4c27e107509 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality.md @@ -1,18 +1,91 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Quality = @{ + "@odata.type" = "#microsoft.graph.teleconferenceDeviceQuality" + CallChainId = "0622673d-9f69-49b3-9d4f-5ec64f42ecce" + ParticipantId = "ea078406-b5d4-4d3c-b85e-90103dcec7f6" + MediaLegId = "bd9ee398-4b9d-42c7-8b8d-4e8efad9435f" + DeviceName = "TestAgent" + DeviceDescription = "TestDescription" + MediaQualityList = @( + @{ + "@odata.type" = "#microsoft.graph.teleconferenceDeviceAudioQuality" + ChannelIndex = 1 + MediaDuration = "PT20M" + NetworkLinkSpeedInBytes = 13000 + LocalIPAddress = "127.0.0.1" + LocalPort = 6300 + RemoteIPAddress = "102.1.1.101" + RemotePort = 6301 + InboundPackets = 5500 + OutboundPackets = 5400 + AverageInboundPacketLossRateInPercentage = 0.01 + AverageOutboundPacketLossRateInPercentage = 0.02 + MaximumInboundPacketLossRateInPercentage = 0.05 + MaximumOutboundPacketLossRateInPercentage = 0.06 + AverageInboundRoundTripDelay = "PT0.03S" + AverageOutboundRoundTripDelay = "PT0.04S" + MaximumInboundRoundTripDelay = "PT0.13S" + MaximumOutboundRoundTripDelay = "PT0.14S" + AverageInboundJitter = "PT0.01S" + AverageOutboundJitter = "PT0.015S" + MaximumInboundJitter = "PT0.023S" + MaximumOutboundJitter = "PT0.024S" + } + @{ + "@odata.type" = "#microsoft.graph.teleconferenceDeviceVideoQuality" + ChannelIndex = 1 + MediaDuration = "PT20M" + NetworkLinkSpeedInBytes = 13000 + LocalIPAddress = "127.0.0.1" + LocalPort = 6300 + RemoteIPAddress = "102.1.1.101" + RemotePort = 6301 + InboundPackets = 5500 + OutboundPackets = 5400 + AverageInboundPacketLossRateInPercentage = 0.01 + AverageOutboundPacketLossRateInPercentage = 0.02 + MaximumInboundPacketLossRateInPercentage = 0.05 + MaximumOutboundPacketLossRateInPercentage = 0.06 + AverageInboundRoundTripDelay = "PT0.03S" + AverageOutboundRoundTripDelay = "PT0.04S" + MaximumInboundRoundTripDelay = "PT0.13S" + MaximumOutboundRoundTripDelay = "PT0.14S" + AverageInboundJitter = "PT0.01S" + AverageOutboundJitter = "PT0.015S" + MaximumInboundJitter = "PT0.023S" + MaximumOutboundJitter = "PT0.024S" + } + @{ + "@odata.type" = "#microsoft.graph.teleconferenceDeviceScreenSharingQuality" + ChannelIndex = 1 + MediaDuration = "PT20M" + NetworkLinkSpeedInBytes = 13000 + LocalIPAddress = "127.0.0.1" + LocalPort = 6300 + RemoteIPAddress = "102.1.1.101" + RemotePort = 6301 + InboundPackets = 5500 + OutboundPackets = 5400 + AverageInboundPacketLossRateInPercentage = 0.01 + AverageOutboundPacketLossRateInPercentage = 0.02 + MaximumInboundPacketLossRateInPercentage = 0.05 + MaximumOutboundPacketLossRateInPercentage = 0.06 + AverageInboundRoundTripDelay = "PT0.03S" + AverageOutboundRoundTripDelay = "PT0.04S" + MaximumInboundRoundTripDelay = "PT0.13S" + MaximumOutboundRoundTripDelay = "PT0.14S" + AverageInboundJitter = "PT0.01S" + AverageOutboundJitter = "PT0.015S" + MaximumInboundJitter = "PT0.023S" + MaximumOutboundJitter = "PT0.024S" + } + ) + } +} +Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteAllCommunicationCallParticipant.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteAllCommunicationCallParticipant.md index 093355d11d5..eb2389412c4 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteAllCommunicationCallParticipant.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteAllCommunicationCallParticipant.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMuteAllCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + "" + ) + ClientContext = "clientContext-value" +} +Invoke-MgMuteAllCommunicationCallParticipant -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMuteAllCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteCommunicationCall.md index 093355d11d5..3c22f79fe0e 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteCommunicationCall.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMuteCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "clientContext-value" +} +Invoke-MgMuteCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMuteCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteCommunicationCallParticipant.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteCommunicationCallParticipant.md index 093355d11d5..aed263de925 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteCommunicationCallParticipant.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgMuteCommunicationCallParticipant.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMuteCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" +} +Invoke-MgMuteCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMuteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgPlayCommunicationCallPrompt.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgPlayCommunicationCallPrompt.md index 093355d11d5..b44b69ee3cf 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgPlayCommunicationCallPrompt.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgPlayCommunicationCallPrompt.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgPlayCommunicationCallPrompt Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" + Prompts = @( + @{ + "@odata.type" = "#microsoft.graph.mediaPrompt" + MediaInfo = @{ + "@odata.type" = "#microsoft.graph.mediaInfo" + Uri = "https://cdn.contoso.com/beep.wav" + ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E" + } + } + ) + Loop = $false +} +Invoke-MgPlayCommunicationCallPrompt -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgPlayCommunicationCallPrompt Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRecordCommunicationCallResponse.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRecordCommunicationCallResponse.md index 093355d11d5..ea4770278a5 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRecordCommunicationCallResponse.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRecordCommunicationCallResponse.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRecordCommunicationCallResponse Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + BargeInAllowed = $true + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" + Prompts = @( + @{ + "@odata.type" = "#microsoft.graph.mediaPrompt" + } + ) + MaxRecordDurationInSeconds = 10 + InitialSilenceTimeoutInSeconds = 5 + MaxSilenceTimeoutInSeconds = 2 + PlayBeep = $true + StopTones = @( + "#" + "1" + "*" + ) +} +Invoke-MgRecordCommunicationCallResponse -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRecordCommunicationCallResponse Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRedirectCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRedirectCommunicationCall.md index 093355d11d5..78de10da0db 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRedirectCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRedirectCommunicationCall.md @@ -1,18 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRedirectCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Application = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "test bot 2" + Id = "22bfd41f-550e-477d-8789-f6f7bd2a5e8b" + } + } + } + ) + CallbackUri = "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039" +} +Invoke-MgRedirectCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgRedirectCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgRedirectCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + } + ) + CallbackUri = "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039" +} +Invoke-MgRedirectCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRedirectCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRejectCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRejectCommunicationCall.md index 093355d11d5..46c6566b76a 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRejectCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgRejectCommunicationCall.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRejectCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Reason = "none" +} +Invoke-MgRejectCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgRejectCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgRejectCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Reason = "busy" +} +Invoke-MgRejectCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRejectCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgSubscribeCommunicationCallToTone.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgSubscribeCommunicationCallToTone.md index 093355d11d5..77e69a9ac3d 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgSubscribeCommunicationCallToTone.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgSubscribeCommunicationCallToTone.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSubscribeCommunicationCallToTone Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "fd1c7836-4d84-4e24-b6aa-23188688cc54" +} +Invoke-MgSubscribeCommunicationCallToTone -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSubscribeCommunicationCallToTone Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgUnmuteCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgUnmuteCommunicationCall.md index 093355d11d5..be188d22540 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgUnmuteCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgUnmuteCommunicationCall.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnmuteCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "clientContext-value" +} +Invoke-MgUnmuteCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnmuteCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Move-MgCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Move-MgCommunicationCall.md index 093355d11d5..162577f71bb 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Move-MgCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Move-MgCommunicationCall.md @@ -1,18 +1,119 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Move-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + EndpointType = "default" + Identity = @{ + User = @{ + Id = "550fae72-d251-43ec-868c-373732c2704f" + TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" + DisplayName = "Heidi Steen" + } + } + LanguageId = "languageId-value" + Region = "region-value" + } +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Move-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + EndpointType = "default" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "550fae72-d251-43ec-868c-373732c2704f" + TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" + DisplayName = "Heidi Steen" + } + } + LanguageId = "en-us" + Region = "amer" + ReplacesCallId = "e5d39592-99bd-4db8-bca8-30fb894ec51d" + } +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Move-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + EndpointType = "default" + Identity = @{ + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + LanguageId = "languageId-value" + Region = "region-value" + } +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params +``` +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Move-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + EndpointType = "default" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + LanguageId = "en-us" + Region = "amer" + ReplacesCallId = "e5d39592-99bd-4db8-bca8-30fb894ec51d" + } +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params +``` +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Move-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + EndpointType = "default" + Identity = @{ + User = @{ + Id = "550fae72-d251-43ec-868c-373732c2704f" + TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" + DisplayName = "Heidi Steen" + } + } + } + Transferee = @{ + Identity = @{ + User = @{ + Id = "751f6800-3180-414d-bd94-333364659951" + TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + ParticipantId = "909c6581-5130-43e9-88f3-fcb3582cde37" + } + LanguageId = "languageId-value" + Region = "region-value" +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params +``` +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgCommunicationCall.md index 093355d11d5..4f5829c2799 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgCommunicationCall.md @@ -1,18 +1,493 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + Source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Application = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "Calling Bot" + Id = "2891555a-92ff-42e6-80fa-6e1300c6b5c6" + } + } + Region = $null + LanguageId = $null + } + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "John" + Id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + } +} +New-MgCommunicationCall -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "John" + Id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + CallOptions = @{ + "@odata.type" = "#microsoft.graph.outgoingCallOptions" + IsContentSharingNotificationEnabled = $true + } + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + } +} +New-MgCommunicationCall -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + Source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + ApplicationInstance = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "Calling Bot" + Id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" + } + } + CountryCode = $null + EndpointType = $null + Region = $null + LanguageId = $null + } + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + } + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + Source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + ApplicationInstance = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "Calling Bot" + Id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" + } + } + CountryCode = $null + EndpointType = $null + Region = $null + LanguageId = $null + } + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + } + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + Direction = "outgoing" + Subject = "Create a group call with app hosted media" + CallbackUri = "https://bot.contoso.com/callback" + Source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Application = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "TestBot" + Id = "dd3885da-f9ab-486b-bfae-85de3d445555" + } + } + } + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "user1" + Id = "98da8a1a-1b87-452c-a713-65d3f10b5555" + } + } + } + @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "user2" + Id = "bf5aae9a-d11d-47a8-93b1-782504c95555" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + RemoveFromDefaultAudioGroup = $false + } + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + Direction = "outgoing" + Subject = "Create a group call with service hosted media" + CallbackUri = "https://bot.contoso.com/callback" + Source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Application = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "TestBot" + Id = "dd3885da-f9ab-486b-bfae-85de3d445555" + } + } + } + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "user1" + Id = "98da8a1a-1b87-452c-a713-65d3f10b5555" + } + } + } + @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "user2" + Id = "bf5aae9a-d11d-47a8-93b1-782504c95555" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + RemoveFromDefaultAudioGroup = $false + } + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + Source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Guest = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "Guest User" + Id = "d7a3b999-17ac-4bca-9e77-e6a730d2ec2e" + } + } + } + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + PreFetchMedia = @( + ) + } + ChatInfo = @{ + "@odata.type" = "#microsoft.graph.chatInfo" + ThreadId = "19:cbee7c1c860e465f8258e3cebf7bee0d@thread.skype" + MessageId = "1533758867081" + } + MeetingInfo = @{ + "@odata.type" = "#microsoft.graph.organizerMeetingInfo" + Organizer = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" + DisplayName = "Bob" + } + } + AllowConversationWithoutHost = $true + } +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 8: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + PreFetchMedia = @( + ) + } + ChatInfo = @{ + "@odata.type" = "#microsoft.graph.chatInfo" + ThreadId = "19:cbee7c1c860e465f8258e3cebf7bee0d@thread.skype" + MessageId = "1533758867081" + } + MeetingInfo = @{ + "@odata.type" = "#microsoft.graph.organizerMeetingInfo" + Organizer = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" + DisplayName = "Bob" + } + } + AllowConversationWithoutHost = $true + } +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 9: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + Direction = "outgoing" + CallbackUri = "https://bot.contoso.com/callback" + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + } + ChatInfo = @{ + "@odata.type" = "#microsoft.graph.chatInfo" + ThreadId = "19:meeting_Win6Ydo4wsMijFjZS00ZGVjLTk5MGUtOTRjNWY2NmNkYTFm@thread.v2" + MessageId = "0" + } + MeetingInfo = @{ + "@odata.type" = "#microsoft.graph.organizerMeetingInfo" + Organizer = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" + DisplayName = "Bob" + } + } + AllowConversationWithoutHost = $true + } + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 10: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + PreFetchMedia = @( + ) + } + ChatInfo = @{ + "@odata.type" = "#microsoft.graph.chatInfo" + ThreadId = "19:meeting_Win6Ydo4wsMijFjZS00ZGVjLTk5MGUtOTRjNWY2NmNkYTFm@thread.v2" + MessageId = "0" + } + MeetingInfo = @{ + "@odata.type" = "#microsoft.graph.organizerMeetingInfo" + Organizer = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" + TenantId = "9f386a15-f9cc-445b-8106-ac85e314a07b" + DisplayName = "Bob" + } + } + AllowConversationWithoutHost = $true + } + TenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 11: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + PreFetchMedia = @( + ) + } + MeetingInfo = @{ + "@odata.type" = "#microsoft.graph.joinMeetingIdMeetingInfo" + JoinMeetingId = "1234567" + Passcode = "psw123" + } + TenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 12: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + PreFetchMedia = @( + ) + } + MeetingInfo = @{ + "@odata.type" = "#microsoft.graph.joinMeetingIdMeetingInfo" + JoinMeetingId = "1234567" + Passcode = $null + } + TenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgCommunicationCallAudioRoutingGroup.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgCommunicationCallAudioRoutingGroup.md index 093355d11d5..70a7a38db93 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgCommunicationCallAudioRoutingGroup.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgCommunicationCallAudioRoutingGroup.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgCommunicationCallAudioRoutingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Id = "oneToOne" + RoutingMode = "oneToOne" + Sources = @( + "632899f8-2ea1-4604-8413-27bd2892079f" + ) + Receivers = @( + "550fae72-d251-43ec-868c-373732c2704f" + ) +} +New-MgCommunicationCallAudioRoutingGroup -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgCommunicationCallAudioRoutingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgUserOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgUserOnlineMeeting.md index 093355d11d5..5365de1e1e4 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/New-MgUserOnlineMeeting.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + StartDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") + EndDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") + Subject = "User Token Meeting" +} +# A UPN can also be used as -UserId. +New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCall.md index 093355d11d5..ab885f07af7 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCall.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Remove-MgCommunicationCall -CallId $callId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCallAudioRoutingGroup.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCallAudioRoutingGroup.md index 093355d11d5..482c50640d8 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCallAudioRoutingGroup.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCallAudioRoutingGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgCommunicationCallAudioRoutingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Remove-MgCommunicationCallAudioRoutingGroup -CallId $callId -AudioRoutingGroupId $audioRoutingGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgCommunicationCallAudioRoutingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCallParticipant.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCallParticipant.md index 093355d11d5..2e2307375d1 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCallParticipant.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgCommunicationCallParticipant.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Remove-MgCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId +``` +This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeeting.md index 093355d11d5..4bb2a06bfde 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeeting.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Remove-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeetingRegistration.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeetingRegistration.md index 093355d11d5..a4b5b0c7e67 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeetingRegistration.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeetingRegistration.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOnlineMeetingRegistration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Remove-MgUserOnlineMeetingRegistration -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgUserOnlineMeetingRegistration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgUserOnlineMeetingRegistration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Remove-MgUserOnlineMeetingRegistration -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOnlineMeetingRegistration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeetingRegistrationCustomQuestion.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeetingRegistrationCustomQuestion.md index 093355d11d5..21cd4518238 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeetingRegistrationCustomQuestion.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Remove-MgUserOnlineMeetingRegistrationCustomQuestion.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOnlineMeetingRegistrationCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Remove-MgUserOnlineMeetingRegistrationCustomQuestion -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingRegistrationQuestionId $meetingRegistrationQuestionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOnlineMeetingRegistrationCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Rename-MgCommunicationCallScreenSharingRole.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Rename-MgCommunicationCallScreenSharingRole.md index 093355d11d5..d243da27c61 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Rename-MgCommunicationCallScreenSharingRole.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Rename-MgCommunicationCallScreenSharingRole.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Rename-MgCommunicationCallScreenSharingRole Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Role = "viewer" +} +Rename-MgCommunicationCallScreenSharingRole -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Rename-MgCommunicationCallScreenSharingRole Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Start-MgCommunicationCallParticipantHoldMusic.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Start-MgCommunicationCallParticipantHoldMusic.md index 093355d11d5..6806abfe935 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Start-MgCommunicationCallParticipantHoldMusic.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Start-MgCommunicationCallParticipantHoldMusic.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Start-MgCommunicationCallParticipantHoldMusic Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + CustomPrompt = @{ + "@odata.type" = "#microsoft.graph.mediaPrompt" + MediaInfo = @{ + "@odata.type" = "#microsoft.graph.mediaInfo" + Uri = "https://bot.contoso.com/onHold.wav" + } + } + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" +} +Start-MgCommunicationCallParticipantHoldMusic -CallId $callId -ParticipantId $participantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Start-MgCommunicationCallParticipantHoldMusic Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Stop-MgCommunicationCallMediaProcessing.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Stop-MgCommunicationCallMediaProcessing.md index 093355d11d5..27be968ba66 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Stop-MgCommunicationCallMediaProcessing.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Stop-MgCommunicationCallMediaProcessing.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgCommunicationCallMediaProcessing Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "clientContext-value" +} +Stop-MgCommunicationCallMediaProcessing -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgCommunicationCallMediaProcessing Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Stop-MgCommunicationCallParticipantHoldMusic.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Stop-MgCommunicationCallParticipantHoldMusic.md index 093355d11d5..5cee3411d01 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Stop-MgCommunicationCallParticipantHoldMusic.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Stop-MgCommunicationCallParticipantHoldMusic.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgCommunicationCallParticipantHoldMusic Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" +} +Stop-MgCommunicationCallParticipantHoldMusic -CallId $callId -ParticipantId $participantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgCommunicationCallParticipantHoldMusic Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgCommunicationCallAudioRoutingGroup.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgCommunicationCallAudioRoutingGroup.md index 093355d11d5..444b84c928a 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgCommunicationCallAudioRoutingGroup.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgCommunicationCallAudioRoutingGroup.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgCommunicationCallAudioRoutingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Id = "oneToOne" + RoutingMode = "oneToOne" + Sources = @( + "632899f8-2ea1-4604-8413-27bd2892079f" + ) + Receivers = @( + "550fae72-d251-43ec-868c-373732c2704f" + "72f988bf-86f1-41af-91ab-2d7cd011db47" + ) +} +Update-MgCommunicationCallAudioRoutingGroup -CallId $callId -AudioRoutingGroupId $audioRoutingGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgCommunicationCallAudioRoutingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgCommunicationCallRecordingStatus.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgCommunicationCallRecordingStatus.md index 093355d11d5..73347809cf7 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgCommunicationCallRecordingStatus.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgCommunicationCallRecordingStatus.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgCommunicationCallRecordingStatus Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "clientContext-value" + Status = "notRecording | recording | failed" +} +Update-MgCommunicationCallRecordingStatus -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgCommunicationCallRecordingStatus Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeeting.md index 093355d11d5..364851416fc 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeeting.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + LobbyBypassSettings = @{ + IsDialInBypassEnabled = $true + } +} +# A UPN can also be used as -UserId. +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + StartDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") + EndDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") + Subject = "Patch Meeting Subject" +} +# A UPN can also be used as -UserId. +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeetingRegistration.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeetingRegistration.md index 093355d11d5..8eefbf588e3 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeetingRegistration.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeetingRegistration.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserOnlineMeetingRegistration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Subject = "Microsoft Ignite: Day 1" + StartDateTime = [System.DateTime]::Parse("2021-11-02T08:00:00-08:00") + EndDateTime = [System.DateTime]::Parse("2021-11-02T15:45:00-08:00") + Speakers = @( + @{ + DisplayName = "Henry Ross" + Bio = "Chairman and Chief Executive Officer" + } + @{ + DisplayName = "Fred Ryan" + Bio = "CVP" + } + ) +} +# A UPN can also be used as -UserId. +Update-MgUserOnlineMeetingRegistration -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserOnlineMeetingRegistration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeetingRegistrationCustomQuestion.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeetingRegistrationCustomQuestion.md index 093355d11d5..f33c3d3835f 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeetingRegistrationCustomQuestion.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Update-MgUserOnlineMeetingRegistrationCustomQuestion.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserOnlineMeetingRegistrationCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + AnswerInputType = "radioButton" + AnswerOptions = @( + "Software Engineer" + "Software Development Manager" + "Product Manager" + "Data scientist" + "Other" + ) +} +# A UPN can also be used as -UserId. +Update-MgUserOnlineMeetingRegistrationCustomQuestion -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingRegistrationQuestionId $meetingRegistrationQuestionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserOnlineMeetingRegistrationCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Add-MgComplianceEdiscoveryCaseReviewSetQueryTag.md b/src/Compliance/Compliance/examples/v1.0-beta/Add-MgComplianceEdiscoveryCaseReviewSetQueryTag.md index 093355d11d5..e0cefc107dc 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Add-MgComplianceEdiscoveryCaseReviewSetQueryTag.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Add-MgComplianceEdiscoveryCaseReviewSetQueryTag.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgComplianceEdiscoveryCaseReviewSetQueryTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + TagsToAdd = @( + @{ + Id = "b4798d14-748d-468e-a1ec-96a2b1d49677" + } + ) +} +Add-MgComplianceEdiscoveryCaseReviewSetQueryTag -CaseId $caseId -ReviewSetId $reviewSetId -ReviewSetQueryId $reviewSetQueryId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgComplianceEdiscoveryCaseReviewSetQueryTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Add-MgComplianceEdiscoveryCaseReviewSetToReviewSet.md b/src/Compliance/Compliance/examples/v1.0-beta/Add-MgComplianceEdiscoveryCaseReviewSetToReviewSet.md index 093355d11d5..3014f288724 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Add-MgComplianceEdiscoveryCaseReviewSetToReviewSet.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Add-MgComplianceEdiscoveryCaseReviewSetToReviewSet.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgComplianceEdiscoveryCaseReviewSetToReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + SourceCollection = @{ + Id = "1a9b4145d8f84e39bc45a7f68c5c5119" + } + AdditionalData = "linkedFiles" +} +Add-MgComplianceEdiscoveryCaseReviewSetToReviewSet -CaseId $caseId -ReviewSetId $reviewSetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgComplianceEdiscoveryCaseReviewSetToReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Clear-MgComplianceEdiscoveryCaseSourceCollectionData.md b/src/Compliance/Compliance/examples/v1.0-beta/Clear-MgComplianceEdiscoveryCaseSourceCollectionData.md index 093355d11d5..625e384b241 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Clear-MgComplianceEdiscoveryCaseSourceCollectionData.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Clear-MgComplianceEdiscoveryCaseSourceCollectionData.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Clear-MgComplianceEdiscoveryCaseSourceCollectionData Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Clear-MgComplianceEdiscoveryCaseSourceCollectionData -CaseId $caseId -SourceCollectionId $sourceCollectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Clear-MgComplianceEdiscoveryCaseSourceCollectionData Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Close-MgComplianceEdiscoveryCase.md b/src/Compliance/Compliance/examples/v1.0-beta/Close-MgComplianceEdiscoveryCase.md index 093355d11d5..41fd60d5a8c 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Close-MgComplianceEdiscoveryCase.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Close-MgComplianceEdiscoveryCase.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Close-MgComplianceEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Close-MgComplianceEdiscoveryCase -CaseId $caseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Close-MgComplianceEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Export-MgComplianceEdiscoveryCaseReviewSet.md b/src/Compliance/Compliance/examples/v1.0-beta/Export-MgComplianceEdiscoveryCaseReviewSet.md index 093355d11d5..d50442585e0 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Export-MgComplianceEdiscoveryCaseReviewSet.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Export-MgComplianceEdiscoveryCaseReviewSet.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Export-MgComplianceEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + OutputName = "2020-12-06 Contoso investigation export" + Description = "Export for the Contoso investigation" + ExportOptions = "originalFiles,fileInfo,tags" + ExportStructure = "directory" +} +Export-MgComplianceEdiscoveryCaseReviewSet -CaseId $caseId -ReviewSetId $reviewSetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Export-MgComplianceEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCase.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCase.md index 093355d11d5..bec75550114 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCase.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCase.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCase -CaseId $caseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCase ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodian.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodian.md index 093355d11d5..611705fd4e1 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodian.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodian.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseCustodian -CaseId $caseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseCustodian -CaseId $caseId -CustodianId $custodianId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianSiteSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianSiteSource.md index 093355d11d5..d8413184db2 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianSiteSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianSiteSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseCustodianSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseCustodianSiteSource -CaseId $caseId -CustodianId $custodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseCustodianSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseCustodianSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseCustodianSiteSource -CaseId $caseId -CustodianId $custodianId -SiteSourceId $siteSourceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseCustodianSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md index 093355d11d5..57e62c7de5e 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource -CaseId $caseId -CustodianId $custodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource -CaseId $caseId -CustodianId $custodianId -UnifiedGroupSourceId $unifiedGroupSourceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianUserSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianUserSource.md index 093355d11d5..8c66253b816 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianUserSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseCustodianUserSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseCustodianUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseCustodianUserSource -CaseId $caseId -CustodianId $custodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseCustodianUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseCustodianUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseCustodianUserSource -CaseId $caseId -CustodianId $custodianId -UserSourceId $userSourceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseCustodianUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHold.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHold.md index 093355d11d5..b9c3485097d 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHold.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHold.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseLegalHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseLegalHold -CaseId $caseId -LegalHoldId $legalHoldId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseLegalHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseLegalHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseLegalHold -CaseId $caseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseLegalHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHoldSiteSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHoldSiteSource.md index 093355d11d5..a534552a63d 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHoldSiteSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHoldSiteSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseLegalHoldSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseLegalHoldSiteSource -CaseId $caseId -LegalHoldId $legalHoldId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseLegalHoldSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHoldUserSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHoldUserSource.md index 093355d11d5..5f0049bc640 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHoldUserSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseLegalHoldUserSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseLegalHoldUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseLegalHoldUserSource -CaseId $caseId -LegalHoldId $legalHoldId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseLegalHoldUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseNoncustodialDataSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseNoncustodialDataSource.md index 093355d11d5..ad05d18155d 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseNoncustodialDataSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseNoncustodialDataSource -CaseId $caseId -NoncustodialDataSourceId $noncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseNoncustodialDataSource -CaseId $caseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseOperation.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseOperation.md index 093355d11d5..cc198ba6e44 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseOperation.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseOperation -CaseId $caseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseOperationMicrosoftGraphEdiscoveryCaseExportOperationDownloadUrl.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseOperationMicrosoftGraphEdiscoveryCaseExportOperationDownloadUrl.md new file mode 100644 index 00000000000..f73c1e901d7 --- /dev/null +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseOperationMicrosoftGraphEdiscoveryCaseExportOperationDownloadUrl.md @@ -0,0 +1,7 @@ +### Example 1: Using the Get-MgComplianceEdiscoveryCaseOperationMicrosoftGraphEdiscoveryCaseExportOperationDownloadUrl Cmdlet +```powershell +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseOperationMicrosoftGraphEdiscoveryCaseExportOperationDownloadUrl -CaseId $caseId -CaseOperationId $caseOperationId +``` +This example shows how to use the Get-MgComplianceEdiscoveryCaseOperationMicrosoftGraphEdiscoveryCaseExportOperationDownloadUrl Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseReviewSet.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseReviewSet.md index 093355d11d5..6c6ec213674 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseReviewSet.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseReviewSet.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseReviewSet -CaseId $caseId -ReviewSetId $reviewSetId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseReviewSet -CaseId $caseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseReviewSetQuery.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseReviewSetQuery.md index 093355d11d5..14741bca340 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseReviewSetQuery.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseReviewSetQuery -CaseId $caseId -ReviewSetId $reviewSetId -ReviewSetQueryId $reviewSetQueryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseReviewSetQuery -CaseId $caseId -ReviewSetId $reviewSetId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSetting.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSetting.md index 093355d11d5..61f86f46d1e 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSetting.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSetting.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSetting -CaseId $caseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSetting -CaseId $caseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollection.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollection.md index 093355d11d5..efc0512d24e 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollection.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollection.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseSourceCollection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSourceCollection -CaseId $caseId -SourceCollectionId $sourceCollectionId -ExpandProperty "addToReviewSetOperation,custodianSources,lastEstimateStatisticsOperation" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseSourceCollection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseSourceCollection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSourceCollection -CaseId $caseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseSourceCollection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionAddToReviewSetOperation.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionAddToReviewSetOperation.md index 093355d11d5..f7a71ee36b1 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionAddToReviewSetOperation.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionAddToReviewSetOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseSourceCollectionAddToReviewSetOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSourceCollectionAddToReviewSetOperation -CaseId $caseId -SourceCollectionId $sourceCollectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseSourceCollectionAddToReviewSetOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource.md index 093355d11d5..5f457d460e0 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource -CaseId $caseId -SourceCollectionId $sourceCollectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionCustodianSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionCustodianSource.md index 093355d11d5..6c6659b3d21 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionCustodianSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionCustodianSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseSourceCollectionCustodianSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSourceCollectionCustodianSource -CaseId $caseId -SourceCollectionId $sourceCollectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseSourceCollectionCustodianSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionLastEstimateStatisticsOperation.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionLastEstimateStatisticsOperation.md index 093355d11d5..fe077adc855 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionLastEstimateStatisticsOperation.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionLastEstimateStatisticsOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseSourceCollectionLastEstimateStatisticsOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSourceCollectionLastEstimateStatisticsOperation -CaseId $caseId -SourceCollectionId $sourceCollectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseSourceCollectionLastEstimateStatisticsOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource.md index 093355d11d5..0e57a2a85a7 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource -CaseId $caseId -SourceCollectionId $sourceCollectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource -CaseId $caseId -SourceCollectionId $sourceCollectionId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseTag.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseTag.md index 093355d11d5..5c7a3ee61bb 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseTag.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseTag.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseTag -CaseId $caseId -TagId $tagId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgComplianceEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgComplianceEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseTag -CaseId $caseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseTagChildTag.md b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseTagChildTag.md index 093355d11d5..a71b36f2310 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseTagChildTag.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Get-MgComplianceEdiscoveryCaseTagChildTag.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgComplianceEdiscoveryCaseTagChildTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Get-MgComplianceEdiscoveryCaseTagChildTag -CaseId $caseId -TagId $tagId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgComplianceEdiscoveryCaseTagChildTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Initialize-MgComplianceEdiscoveryCaseCustodian.md b/src/Compliance/Compliance/examples/v1.0-beta/Initialize-MgComplianceEdiscoveryCaseCustodian.md index 093355d11d5..c3405f8af02 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Initialize-MgComplianceEdiscoveryCaseCustodian.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Initialize-MgComplianceEdiscoveryCaseCustodian.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Initialize-MgComplianceEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Initialize-MgComplianceEdiscoveryCaseCustodian -CaseId $caseId -CustodianId $custodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Initialize-MgComplianceEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgAsComplianceEdiscoveryCaseTagHierarchy.md b/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgAsComplianceEdiscoveryCaseTagHierarchy.md index 093355d11d5..0d9090f39fb 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgAsComplianceEdiscoveryCaseTagHierarchy.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgAsComplianceEdiscoveryCaseTagHierarchy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAsComplianceEdiscoveryCaseTagHierarchy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Invoke-MgAsComplianceEdiscoveryCaseTagHierarchy -CaseId $caseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAsComplianceEdiscoveryCaseTagHierarchy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgEstimateComplianceEdiscoveryCaseSourceCollectionStatistics.md b/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgEstimateComplianceEdiscoveryCaseSourceCollectionStatistics.md index 093355d11d5..5afe479c901 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgEstimateComplianceEdiscoveryCaseSourceCollectionStatistics.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgEstimateComplianceEdiscoveryCaseSourceCollectionStatistics.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgEstimateComplianceEdiscoveryCaseSourceCollectionStatistics Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Invoke-MgEstimateComplianceEdiscoveryCaseSourceCollectionStatistics -CaseId $caseId -SourceCollectionId $sourceCollectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgEstimateComplianceEdiscoveryCaseSourceCollectionStatistics Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgReopenComplianceEdiscoveryCase.md b/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgReopenComplianceEdiscoveryCase.md index 093355d11d5..3c7001f6316 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgReopenComplianceEdiscoveryCase.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Invoke-MgReopenComplianceEdiscoveryCase.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReopenComplianceEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Invoke-MgReopenComplianceEdiscoveryCase -CaseId $caseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReopenComplianceEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCase.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCase.md index 093355d11d5..13c2aaeeb10 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCase.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCase.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + DisplayName = "My Case 1" +} +New-MgComplianceEdiscoveryCase -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodian.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodian.md index 093355d11d5..d2e9f1fe202 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodian.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodian.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + Email = "AdeleV@contoso.com" + ApplyHoldToSources = "true" +} +New-MgComplianceEdiscoveryCaseCustodian -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianSiteSource.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianSiteSource.md index 093355d11d5..590b69c2384 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianSiteSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianSiteSource.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseCustodianSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + Site = @{ + WebUrl = "https://contoso.sharepoint.com/sites/HumanResources" + } +} +New-MgComplianceEdiscoveryCaseCustodianSiteSource -CaseId $caseId -CustodianId $custodianId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseCustodianSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md index 093355d11d5..68f8e4f2064 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + Group = @{ + Mail = "SecretGroup@contoso.com" + } + IncludedSources = "mailbox, site" +} +New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource -CaseId $caseId -CustodianId $custodianId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/b96f95c5-b1b3-4142-b039-8ac79e7d2c84" + IncludedSources = "mailbox, site" +} +New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource -CaseId $caseId -CustodianId $custodianId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianUserSource.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianUserSource.md index 093355d11d5..cc287cad539 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianUserSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseCustodianUserSource.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseCustodianUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + Email = "megan@contoso.com" + IncludedSources = "mailbox, site" +} +New-MgComplianceEdiscoveryCaseCustodianUserSource -CaseId $caseId -CustodianId $custodianId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseCustodianUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHold.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHold.md index 093355d11d5..f7c874a7a1d 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHold.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHold.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseLegalHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + "@odata.type" = "#microsoft.graph.ediscovery.legalHold" + Description = "String" + CreatedBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } + IsEnabled = "Boolean" + Status = "String" + ContentQuery = "String" + Errors = @( + "String" + ) + DisplayName = "String" +} +New-MgComplianceEdiscoveryCaseLegalHold -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseLegalHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHoldSiteSource.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHoldSiteSource.md index 093355d11d5..57d32cdf6e8 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHoldSiteSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHoldSiteSource.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseLegalHoldSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + Site = @{ + WebUrl = "https://contoso.sharepoint.com/sites/SecretSite" + } +} +New-MgComplianceEdiscoveryCaseLegalHoldSiteSource -CaseId $caseId -LegalHoldId $legalHoldId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseLegalHoldSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHoldUserSource.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHoldUserSource.md index 093355d11d5..0a1785b5a8a 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHoldUserSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseLegalHoldUserSource.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseLegalHoldUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + Email = "adelev@contoso.com" + IncludedSources = "mailbox" +} +New-MgComplianceEdiscoveryCaseLegalHoldUserSource -CaseId $caseId -LegalHoldId $legalHoldId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseLegalHoldUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseNoncustodialDataSource.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseNoncustodialDataSource.md index 093355d11d5..867b70a3b55 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseNoncustodialDataSource.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + ApplyHoldToSource = $true + DataSource = @{ + "@odata.type" = "microsoft.graph.ediscovery.userSource" + Email = "adelev@contoso.com" + } +} +New-MgComplianceEdiscoveryCaseNoncustodialDataSource -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + ApplyHoldToSource = $false + DataSource = @{ + "@odata.type" = "microsoft.graph.ediscovery.siteSource" + } +} +New-MgComplianceEdiscoveryCaseNoncustodialDataSource -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseReviewSet.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseReviewSet.md index 093355d11d5..6d2731f0c2c 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseReviewSet.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseReviewSet.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + DisplayName = "My Reviewset 3" +} +New-MgComplianceEdiscoveryCaseReviewSet -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseReviewSetQuery.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseReviewSetQuery.md index 093355d11d5..e663454a3b6 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseReviewSetQuery.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + DisplayName = "My Query 1" + Query = "(subject:"Quarterly Financials")" +} +New-MgComplianceEdiscoveryCaseReviewSetQuery -CaseId $caseId -ReviewSetId $reviewSetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollection.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollection.md index 093355d11d5..5847a1ebac2 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollection.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollection.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseSourceCollection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + DisplayName = "Quarterly Financials search" + ContentQuery = "subject:'Quarterly Financials'" + "CustodianSources@odata.bind" = @( + "https://graph.microsoft.com/beta/compliance/ediscovery/cases/47746044-fd0b-4a30-acfc-5272b691ba5b/custodians/2192ca408ea2410eba3bec8ae873be6b/userSources/46384443-4137-3032-3437-363939433735" + ) +} +New-MgComplianceEdiscoveryCaseSourceCollection -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseSourceCollection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource.md index 093355d11d5..46489a125fe 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource.md @@ -1,18 +1,31 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + "@odata.type" = "microsoft.graph.ediscovery.siteSource" +} +New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource -CaseId $caseId -SourceCollectionId $sourceCollectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + "@odata.type" = "microsoft.graph.ediscovery.userSource" + Email = "badguy@contoso.com" +} +New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource -CaseId $caseId -SourceCollectionId $sourceCollectionId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource Cmdlet +```powershell +Import-Module Microsoft.Graph.Compliance +$params = @{ + "@odata.type" = "microsoft.graph.ediscovery.siteSource" +} +New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource -CaseId $caseId -SourceCollectionId $sourceCollectionId -BodyParameter $params +``` +This example shows how to use the New-MgComplianceEdiscoveryCaseSourceCollectionAdditionalSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionCustodianSourceByRef.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionCustodianSourceByRef.md new file mode 100644 index 00000000000..b4897d3f8f7 --- /dev/null +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionCustodianSourceByRef.md @@ -0,0 +1,10 @@ +### Example 1: Using the New-MgComplianceEdiscoveryCaseSourceCollectionCustodianSourceByRef Cmdlet +```powershell +Import-Module Microsoft.Graph.Compliance +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/compliance/ediscovery/cases/47746044-fd0b-4a30-acfc-5272b691ba5b/custodians/ab3a628a383045eba344b3caecba3104/userSources/31423539-3846-4333-4136-353644383531" +} +New-MgComplianceEdiscoveryCaseSourceCollectionCustodianSourceByRef -CaseId $caseId -SourceCollectionId $sourceCollectionId -BodyParameter $params +``` +This example shows how to use the New-MgComplianceEdiscoveryCaseSourceCollectionCustodianSourceByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSourceByRef.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSourceByRef.md new file mode 100644 index 00000000000..7c6021c2eaf --- /dev/null +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSourceByRef.md @@ -0,0 +1,10 @@ +### Example 1: Using the New-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSourceByRef Cmdlet +```powershell +Import-Module Microsoft.Graph.Compliance +$params = @{ + "@odata.id" = "https://canary.graph.microsoft.com/testprodbetancsdsaslist/compliance/ediscovery/cases/06d52284-ed81-49b8-904a-b863d3164731/noncustodialDataSources/39383530323537383742433232433246" +} +New-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSourceByRef -CaseId $caseId -SourceCollectionId $sourceCollectionId -BodyParameter $params +``` +This example shows how to use the New-MgComplianceEdiscoveryCaseSourceCollectionNoncustodialSourceByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseTag.md b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseTag.md index 093355d11d5..344d202df37 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseTag.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/New-MgComplianceEdiscoveryCaseTag.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgComplianceEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + DisplayName = "Privileged" + Description = "The document is privileged" + "Parent@odata.bind" = "https://graph.microsoft.com/beta/compliance/ediscovery/cases/47746044-fd0b-4a30-acfc-5272b691ba5b/tags/98fdad78bbce4519b75474bc150575c3" +} +New-MgComplianceEdiscoveryCaseTag -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgComplianceEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Publish-MgComplianceEdiscoveryCaseCustodian.md b/src/Compliance/Compliance/examples/v1.0-beta/Publish-MgComplianceEdiscoveryCaseCustodian.md index 093355d11d5..50b97970889 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Publish-MgComplianceEdiscoveryCaseCustodian.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Publish-MgComplianceEdiscoveryCaseCustodian.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgComplianceEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Publish-MgComplianceEdiscoveryCaseCustodian -CaseId $caseId -CustodianId $custodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgComplianceEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Publish-MgComplianceEdiscoveryCaseNoncustodialDataSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Publish-MgComplianceEdiscoveryCaseNoncustodialDataSource.md index 093355d11d5..53cf3df6585 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Publish-MgComplianceEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Publish-MgComplianceEdiscoveryCaseNoncustodialDataSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Publish-MgComplianceEdiscoveryCaseNoncustodialDataSource -CaseId $caseId -NoncustodialDataSourceId $noncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgComplianceEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCase.md b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCase.md index 093355d11d5..a9fe1ef0b5d 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCase.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCase.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgComplianceEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Remove-MgComplianceEdiscoveryCase -CaseId $caseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgComplianceEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianSiteSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianSiteSource.md index 093355d11d5..050a03256b8 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianSiteSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianSiteSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgComplianceEdiscoveryCaseCustodianSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Remove-MgComplianceEdiscoveryCaseCustodianSiteSource -CaseId $caseId -CustodianId $custodianId -SiteSourceId $siteSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgComplianceEdiscoveryCaseCustodianSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md index 093355d11d5..e9d21137c0c 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Remove-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource -CaseId $caseId -CustodianId $custodianId -UnifiedGroupSourceId $unifiedGroupSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgComplianceEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianUserSource.md b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianUserSource.md index 093355d11d5..69eac83740e 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianUserSource.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseCustodianUserSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgComplianceEdiscoveryCaseCustodianUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Remove-MgComplianceEdiscoveryCaseCustodianUserSource -CaseId $caseId -CustodianId $custodianId -UserSourceId $userSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgComplianceEdiscoveryCaseCustodianUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseLegalHold.md b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseLegalHold.md index 093355d11d5..cc84ff0cbf3 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseLegalHold.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseLegalHold.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgComplianceEdiscoveryCaseLegalHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Remove-MgComplianceEdiscoveryCaseLegalHold -CaseId $caseId -LegalHoldId $legalHoldId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgComplianceEdiscoveryCaseLegalHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseReviewSetQuery.md b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseReviewSetQuery.md index 093355d11d5..a5f5d994839 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseReviewSetQuery.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Remove-MgComplianceEdiscoveryCaseReviewSetQuery -CaseId $caseId -ReviewSetId $reviewSetId -ReviewSetQueryId $reviewSetQueryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseSourceCollection.md b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseSourceCollection.md index 093355d11d5..ffbecde55ed 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseSourceCollection.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseSourceCollection.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgComplianceEdiscoveryCaseSourceCollection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Remove-MgComplianceEdiscoveryCaseSourceCollection -CaseId $caseId -SourceCollectionId $sourceCollectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgComplianceEdiscoveryCaseSourceCollection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseTag.md b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseTag.md index 093355d11d5..b684fdaf163 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseTag.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Remove-MgComplianceEdiscoveryCaseTag.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgComplianceEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Remove-MgComplianceEdiscoveryCaseTag -CaseId $caseId -TagId $tagId -Forcedelete true ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgComplianceEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Reset-MgComplianceEdiscoveryCaseSettingToDefault.md b/src/Compliance/Compliance/examples/v1.0-beta/Reset-MgComplianceEdiscoveryCaseSettingToDefault.md index 093355d11d5..380cb81ed76 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Reset-MgComplianceEdiscoveryCaseSettingToDefault.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Reset-MgComplianceEdiscoveryCaseSettingToDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgComplianceEdiscoveryCaseSettingToDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +Reset-MgComplianceEdiscoveryCaseSettingToDefault -CaseId $caseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgComplianceEdiscoveryCaseSettingToDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCase.md b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCase.md index 093355d11d5..3f7405b8825 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCase.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCase.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgComplianceEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + DisplayName = "My Case 1 - Renamed" + Description = "Updated description" + ExternalId = "Updated externalId" +} +Update-MgComplianceEdiscoveryCase -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgComplianceEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseCustodian.md b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseCustodian.md index 093355d11d5..09b273fa532 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseCustodian.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseCustodian.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgComplianceEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + ApplyHoldToSources = "false" +} +Update-MgComplianceEdiscoveryCaseCustodian -CaseId $caseId -CustodianId $custodianId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgComplianceEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseLegalHold.md b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseLegalHold.md index 093355d11d5..22ea65a8b7f 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseLegalHold.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseLegalHold.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgComplianceEdiscoveryCaseLegalHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + Description = "This is a description for a legalHold" +} +Update-MgComplianceEdiscoveryCaseLegalHold -CaseId $caseId -LegalHoldId $legalHoldId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgComplianceEdiscoveryCaseLegalHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseReviewSetQuery.md b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseReviewSetQuery.md index 093355d11d5..3aba3c8daca 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseReviewSetQuery.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + DisplayName = "My Query 1 - Renamed" +} +Update-MgComplianceEdiscoveryCaseReviewSetQuery -CaseId $caseId -ReviewSetId $reviewSetId -ReviewSetQueryId $reviewSetQueryId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgComplianceEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseSetting.md b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseSetting.md index 093355d11d5..6cdf0afcfc2 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseSetting.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseSetting.md @@ -1,18 +1,50 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgComplianceEdiscoveryCaseSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + RedundancyDetection = @{ + IsEnabled = $false + SimilarityThreshold = 70 + MinWords = 12 + MaxWords = 400000 + } + TopicModeling = @{ + IsEnabled = $false + IgnoreNumbers = $false + TopicCount = 50 + DynamicallyAdjustTopicCount = $false + } + Ocr = @{ + IsEnabled = $true + MaxImageSize = 12000 + } +} +Update-MgComplianceEdiscoveryCaseSetting -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgComplianceEdiscoveryCaseSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgComplianceEdiscoveryCaseSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + RedundancyDetection = @{ + IsEnabled = $false + SimilarityThreshold = 70 + MinWords = 12 + MaxWords = 400000 + } + TopicModeling = @{ + IsEnabled = $false + IgnoreNumbers = $false + TopicCount = 50 + DynamicallyAdjustTopicCount = $false + } + Ocr = @{ + IsEnabled = $true + MaxImageSize = 12000 + } +} +Update-MgComplianceEdiscoveryCaseSetting -CaseId $caseId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgComplianceEdiscoveryCaseSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseSourceCollection.md b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseSourceCollection.md index 093355d11d5..a98b1d18fa8 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseSourceCollection.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseSourceCollection.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgComplianceEdiscoveryCaseSourceCollection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + DisplayName = "Quarterly Financials search" +} +Update-MgComplianceEdiscoveryCaseSourceCollection -CaseId $caseId -SourceCollectionId $sourceCollectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgComplianceEdiscoveryCaseSourceCollection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseTag.md b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseTag.md index 093355d11d5..28ef8dd93b0 100644 --- a/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseTag.md +++ b/src/Compliance/Compliance/examples/v1.0-beta/Update-MgComplianceEdiscoveryCaseTag.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgComplianceEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Compliance +$params = @{ + Description = "This is an updated description." +} +Update-MgComplianceEdiscoveryCaseTag -CaseId $caseId -TagId $tagId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgComplianceEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CrossDeviceExperiences/CrossDeviceExperiences/examples/v1.0-beta/Remove-MgUserActivity.md b/src/CrossDeviceExperiences/CrossDeviceExperiences/examples/v1.0-beta/Remove-MgUserActivity.md index 093355d11d5..2668fe4af6e 100644 --- a/src/CrossDeviceExperiences/CrossDeviceExperiences/examples/v1.0-beta/Remove-MgUserActivity.md +++ b/src/CrossDeviceExperiences/CrossDeviceExperiences/examples/v1.0-beta/Remove-MgUserActivity.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserActivity Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CrossDeviceExperiences +# A UPN can also be used as -UserId. +Remove-MgUserActivity -UserId $userId -UserActivityId $userActivityId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserActivity Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus.md index 093355d11d5..5f268e8e94e 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + ManagedDeviceIds = @( + "30d0e128-de93-41dc-89ec-33d84bb662a0" + "7c82a3e3-9459-44e4-94d9-b92f93bf78dd" + ) + ReviewStatus = @{ + InReview = $true + UserAccessLevel = "restricted" + AzureStorageAccountId = "/subscriptions/f68bd846-16ad-4b51-a7c6-c84944a3367c/resourceGroups/Review/providers/Microsoft.Storage/storageAccounts/snapshotsUnderReview" + } +} +Invoke-MgBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgBulkRestoreDeviceManagementManagedDeviceCloudPc.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgBulkRestoreDeviceManagementManagedDeviceCloudPc.md index 093355d11d5..4f77b17caf0 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgBulkRestoreDeviceManagementManagedDeviceCloudPc.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgBulkRestoreDeviceManagementManagedDeviceCloudPc.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgBulkRestoreDeviceManagementManagedDeviceCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + ManagedDeviceIds = @( + "30d0e128-de93-41dc-89ec-33d84bb662a0" + "7c82a3e3-9459-44e4-94d9-b92f93bf78dd" + ) + RestorePointDateTime = [System.DateTime]::Parse("2021-09-23T04:00:00.0000000") + TimeRange = "before" +} +Invoke-MgBulkRestoreDeviceManagementManagedDeviceCloudPc -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgBulkRestoreDeviceManagementManagedDeviceCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReprovisionDeviceManagementManagedDeviceCloudPc.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReprovisionDeviceManagementManagedDeviceCloudPc.md index 093355d11d5..00c14ce7bd3 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReprovisionDeviceManagementManagedDeviceCloudPc.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReprovisionDeviceManagementManagedDeviceCloudPc.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReprovisionDeviceManagementManagedDeviceCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +Invoke-MgReprovisionDeviceManagementManagedDeviceCloudPc -ManagedDeviceId $managedDeviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReprovisionDeviceManagementManagedDeviceCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReprovisionDeviceManagementVirtualEndpointCloudPc.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReprovisionDeviceManagementVirtualEndpointCloudPc.md index 093355d11d5..0715acc65b1 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReprovisionDeviceManagementVirtualEndpointCloudPc.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReprovisionDeviceManagementVirtualEndpointCloudPc.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReprovisionDeviceManagementVirtualEndpointCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + UserAccountType = "administrator" + OsVersion = "windows10" +} +Invoke-MgReprovisionDeviceManagementVirtualEndpointCloudPc -CloudPCId $cloudPCId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReprovisionDeviceManagementVirtualEndpointCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReuploadDeviceManagementVirtualEndpointDeviceImage.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReuploadDeviceManagementVirtualEndpointDeviceImage.md index 093355d11d5..8f482e592a3 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReuploadDeviceManagementVirtualEndpointDeviceImage.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgReuploadDeviceManagementVirtualEndpointDeviceImage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReuploadDeviceManagementVirtualEndpointDeviceImage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +Invoke-MgReuploadDeviceManagementVirtualEndpointDeviceImage -CloudPcDeviceImageId $cloudPcDeviceImageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReuploadDeviceManagementVirtualEndpointDeviceImage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgTroubleshootDeviceManagementVirtualEndpointCloudPc.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgTroubleshootDeviceManagementVirtualEndpointCloudPc.md index 093355d11d5..670be8ddb1c 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgTroubleshootDeviceManagementVirtualEndpointCloudPc.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Invoke-MgTroubleshootDeviceManagementVirtualEndpointCloudPc.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgTroubleshootDeviceManagementVirtualEndpointCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +Invoke-MgTroubleshootDeviceManagementVirtualEndpointCloudPc -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgTroubleshootDeviceManagementVirtualEndpointCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Rename-MgDeviceManagementVirtualEndpointCloudPcUserAccountType.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Rename-MgDeviceManagementVirtualEndpointCloudPcUserAccountType.md index 093355d11d5..669cddd82e0 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Rename-MgDeviceManagementVirtualEndpointCloudPcUserAccountType.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Rename-MgDeviceManagementVirtualEndpointCloudPcUserAccountType.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Rename-MgDeviceManagementVirtualEndpointCloudPcUserAccountType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + UserAccountType = "administrator" +} +Rename-MgDeviceManagementVirtualEndpointCloudPcUserAccountType -CloudPCId $cloudPCId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Rename-MgDeviceManagementVirtualEndpointCloudPcUserAccountType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Resize-MgDeviceManagementManagedDeviceCloudPc.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Resize-MgDeviceManagementManagedDeviceCloudPc.md index 093355d11d5..415e7d5cba4 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Resize-MgDeviceManagementManagedDeviceCloudPc.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Resize-MgDeviceManagementManagedDeviceCloudPc.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Resize-MgDeviceManagementManagedDeviceCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + TargetServicePlanId = "30d0e128-de93-41dc-89ec-33d84bb662a0" +} +Resize-MgDeviceManagementManagedDeviceCloudPc -ManagedDeviceId $managedDeviceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Resize-MgDeviceManagementManagedDeviceCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Restart-MgDeviceManagementVirtualEndpointCloudPc.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Restart-MgDeviceManagementVirtualEndpointCloudPc.md index 093355d11d5..5f691bc5dbb 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Restart-MgDeviceManagementVirtualEndpointCloudPc.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Restart-MgDeviceManagementVirtualEndpointCloudPc.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restart-MgDeviceManagementVirtualEndpointCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +Restart-MgDeviceManagementVirtualEndpointCloudPc -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restart-MgDeviceManagementVirtualEndpointCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Restore-MgDeviceManagementManagedDeviceCloudPc.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Restore-MgDeviceManagementManagedDeviceCloudPc.md index 093355d11d5..0efb10f539c 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Restore-MgDeviceManagementManagedDeviceCloudPc.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Restore-MgDeviceManagementManagedDeviceCloudPc.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgDeviceManagementManagedDeviceCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + CloudPcSnapshotId = "A00009UV000_93aff428-61f2-467f-a879-1102af6fd4a8" +} +Restore-MgDeviceManagementManagedDeviceCloudPc -ManagedDeviceId $managedDeviceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgDeviceManagementManagedDeviceCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementManagedDeviceCloudPcReviewStatus.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementManagedDeviceCloudPcReviewStatus.md index 093355d11d5..5d3064b48b5 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementManagedDeviceCloudPcReviewStatus.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementManagedDeviceCloudPcReviewStatus.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgDeviceManagementManagedDeviceCloudPcReviewStatus Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + ReviewStatus = @{ + InReview = $true + UserAccessLevel = "restricted" + AzureStorageAccountId = "/subscriptions/f68bd846-16ad-4b51-a7c6-c84944a3367c/resourceGroups/Review/providers/Microsoft.Storage/storageAccounts/snapshotsUnderReview" + } +} +Set-MgDeviceManagementManagedDeviceCloudPcReviewStatus -ManagedDeviceId $managedDeviceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgDeviceManagementManagedDeviceCloudPcReviewStatus Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementVirtualEndpointProvisioningPolicy.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementVirtualEndpointProvisioningPolicy.md index 093355d11d5..2bf24643c49 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementVirtualEndpointProvisioningPolicy.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementVirtualEndpointProvisioningPolicy.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcProvisioningPolicyAssignment" + Assignments = @( + @{ + Id = "b0c2d35f-3385-46c8-a6f5-6c3dfad7708b_64ff06de-9c00-4a5a-98b5-7f5abe26ffff" + Target = @{ + "@odata.type" = "microsoft.graph.cloudPcManagementGroupAssignmentTarget" + GroupId = "64ff06de-9c00-4a5a-98b5-7f5abe26ffff" + } + } + ) +} +Set-MgDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementVirtualEndpointUserSetting.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementVirtualEndpointUserSetting.md index 093355d11d5..8c2f7321efc 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementVirtualEndpointUserSetting.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Set-MgDeviceManagementVirtualEndpointUserSetting.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgDeviceManagementVirtualEndpointUserSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + Assignments = @( + @{ + Id = "b0c2d35f-3385-46c8-a6f5-6c3dfad7708b_64ff06de-9c00-4a5a-98b5-7f5abe26ffff" + Target = @{ + "@odata.type" = "microsoft.graph.cloudPcManagementGroupAssignmentTarget" + GroupId = "64ff06de-9c00-4a5a-98b5-7f5abe26ffff" + } + } + ) +} +Set-MgDeviceManagementVirtualEndpointUserSetting -CloudPcUserSettingId $cloudPcUserSettingId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgDeviceManagementVirtualEndpointUserSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Start-MgDeviceManagementVirtualEndpointOnPremisConnectionHealthCheck.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Start-MgDeviceManagementVirtualEndpointOnPremisConnectionHealthCheck.md index 093355d11d5..146ac717aca 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Start-MgDeviceManagementVirtualEndpointOnPremisConnectionHealthCheck.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Start-MgDeviceManagementVirtualEndpointOnPremisConnectionHealthCheck.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Start-MgDeviceManagementVirtualEndpointOnPremisConnectionHealthCheck Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +Start-MgDeviceManagementVirtualEndpointOnPremisConnectionHealthCheck -CloudPcOnPremisesConnectionId $cloudPcOnPremisesConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Start-MgDeviceManagementVirtualEndpointOnPremisConnectionHealthCheck Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Stop-MgDeviceManagementVirtualEndpointCloudPcGracePeriod.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Stop-MgDeviceManagementVirtualEndpointCloudPcGracePeriod.md index 093355d11d5..6fdb32d218b 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Stop-MgDeviceManagementVirtualEndpointCloudPcGracePeriod.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Stop-MgDeviceManagementVirtualEndpointCloudPcGracePeriod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgDeviceManagementVirtualEndpointCloudPcGracePeriod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +Stop-MgDeviceManagementVirtualEndpointCloudPcGracePeriod -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgDeviceManagementVirtualEndpointCloudPcGracePeriod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOnPremisConnectionAdDomainPassword.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOnPremisConnectionAdDomainPassword.md index 093355d11d5..4ec494a4105 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOnPremisConnectionAdDomainPassword.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOnPremisConnectionAdDomainPassword.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDeviceManagementVirtualEndpointOnPremisConnectionAdDomainPassword Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Actions +$params = @{ + AdDomainPassword = "AdDomainPassword value" +} +Update-MgDeviceManagementVirtualEndpointOnPremisConnectionAdDomainPassword -CloudPcOnPremisesConnectionId $cloudPcOnPremisesConnectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDeviceManagementVirtualEndpointOnPremisConnectionAdDomainPassword Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointAuditEvent.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointAuditEvent.md index 093355d11d5..84e999e651a 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointAuditEvent.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointAuditEvent.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointAuditEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointAuditEvent -CloudPcAuditEventId $cloudPcAuditEventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceManagementVirtualEndpointAuditEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceManagementVirtualEndpointAuditEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointAuditEvent ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointAuditEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointCloudPC.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointCloudPC.md index 093355d11d5..e071aeae02f 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointCloudPC.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointCloudPC.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointCloudPC Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointCloudPC -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceManagementVirtualEndpointCloudPC Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceManagementVirtualEndpointCloudPC Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointCloudPC -CloudPCId $cloudPCId -Property "id,displayName,imageDisplayName,lastModifiedDateTime,lastRemoteActionResult,lastLoginResult,connectivityResult" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointCloudPC Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDeviceManagementVirtualEndpointCloudPC Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointCloudPC +``` +This example shows how to use the Get-MgDeviceManagementVirtualEndpointCloudPC Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointDeviceImage.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointDeviceImage.md index 093355d11d5..7adfe40d28b 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointDeviceImage.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointDeviceImage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointDeviceImage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointDeviceImage -CloudPcDeviceImageId $cloudPcDeviceImageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceManagementVirtualEndpointDeviceImage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceManagementVirtualEndpointDeviceImage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointDeviceImage ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointDeviceImage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md index 093355d11d5..6261d9170f9 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting -CloudPcExternalPartnerSettingId $cloudPcExternalPartnerSettingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting -Property "id,partnerId,enableConnection" -OutFile $outFileId +``` +This example shows how to use the Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting -Property "id,partnerId,enableConnection" +``` +This example shows how to use the Get-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointGalleryImage.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointGalleryImage.md index 093355d11d5..57553100ae2 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointGalleryImage.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointGalleryImage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointGalleryImage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointGalleryImage -CloudPcGalleryImageId $cloudPcGalleryImageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceManagementVirtualEndpointGalleryImage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceManagementVirtualEndpointGalleryImage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointGalleryImage ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointGalleryImage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointOnPremisesConnection.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointOnPremisesConnection.md index 093355d11d5..fc79650a34b 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointOnPremisesConnection.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointOnPremisesConnection.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointOnPremisesConnection -CloudPcOnPremisesConnectionId $cloudPcOnPremisesConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointOnPremisesConnection -CloudPcOnPremisesConnectionId $cloudPcOnPremisesConnectionId -Property "id,displayName,healthCheckStatus,healthCheckStatusDetails,inUse" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointOnPremisesConnection +``` +This example shows how to use the Get-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointOrganizationSetting.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointOrganizationSetting.md index 093355d11d5..a9a285c05ac 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointOrganizationSetting.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointOrganizationSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointOrganizationSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointOrganizationSetting ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointOrganizationSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointProvisioningPolicy.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointProvisioningPolicy.md index 093355d11d5..f76cb58e5a7 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointProvisioningPolicy.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointProvisioningPolicy.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId -ExpandProperty "assignments" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId -Property "id,description,displayName,displayName,domainJoinConfiguration,imageDisplayName,imageId,imageType,onPremisesConnectionId,windowsSettings,managedBy,cloudPcGroupDisplayName,gracePeriodInHours,localAdminEnabled,alternateResourceUrl" +``` +This example shows how to use the Get-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointProvisioningPolicy +``` +This example shows how to use the Get-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointServicePlan.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointServicePlan.md index 093355d11d5..4539736853a 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointServicePlan.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointServicePlan.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointServicePlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointServicePlan ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointServicePlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSnapshot.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSnapshot.md index 093355d11d5..da3576b9a00 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSnapshot.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSnapshot.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointSnapshot Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointSnapshot -CloudPcSnapshotId $cloudPcSnapshotId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceManagementVirtualEndpointSnapshot Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceManagementVirtualEndpointSnapshot Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointSnapshot -CloudPcSnapshotId $cloudPcSnapshotId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointSnapshot Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDeviceManagementVirtualEndpointSnapshot Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointSnapshot +``` +This example shows how to use the Get-MgDeviceManagementVirtualEndpointSnapshot Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSupportedRegion.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSupportedRegion.md index 093355d11d5..d5b96c2fa9b 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSupportedRegion.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSupportedRegion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointSupportedRegion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointSupportedRegion ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointSupportedRegion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointUserSetting.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointUserSetting.md index 093355d11d5..8cc841445ea 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointUserSetting.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointUserSetting.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointUserSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointUserSetting -CloudPcUserSettingId $cloudPcUserSettingId -ExpandProperty "assignments" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceManagementVirtualEndpointUserSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceManagementVirtualEndpointUserSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointUserSetting -CloudPcUserSettingId $cloudPcUserSettingId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointUserSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDeviceManagementVirtualEndpointUserSetting Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Administration +Get-MgDeviceManagementVirtualEndpointUserSetting +``` +This example shows how to use the Get-MgDeviceManagementVirtualEndpointUserSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointDeviceImage.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointDeviceImage.md index 093355d11d5..f920468865e 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointDeviceImage.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointDeviceImage.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDeviceManagementVirtualEndpointDeviceImage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcDeviceImage" + DisplayName = "Display Name value" + OsBuildNumber = "OS Build Number value" + OperatingSystem = "Operating System value" + Version = "Version value" + SourceImageResourceId = "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.Compute/images/exampleImage" +} +New-MgDeviceManagementVirtualEndpointDeviceImage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDeviceManagementVirtualEndpointDeviceImage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md index 093355d11d5..bafecc4b974 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcExternalPartnerSetting" + PartnerId = "198d7140-80bb-4843-8cc4-811377a49a92" + EnableConnection = $true +} +New-MgDeviceManagementVirtualEndpointExternalPartnerSetting -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointOnPremisesConnection.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointOnPremisesConnection.md index 093355d11d5..e53db5ced26 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointOnPremisesConnection.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointOnPremisesConnection.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcOnPremisesConnection" + DisplayName = "test-canary-02" + Type = "hybridAzureADJoin" + SubscriptionId = "0ac520ee-14c0-480f-b6c9-0a90c585ffff" + SubscriptionName = "CPC customer 001 test subscription" + AdDomainName = "contoso001.com" + AdDomainUsername = "dcadmin" + OrganizationalUnit = "OU=Domain Controllers, DC=contoso001, DC=com" + ResourceGroupId = "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c585ad47/resourceGroups/CustomerRG" + VirtualNetworkId = "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c585ad47/resourceGroups/CustomerRG/providers/Microsoft.Network/virtualNetworks/canary01-MyVNET" + SubnetId = "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c585ad47/resourceGroups/CustomerRG/providers/Microsoft.Network/virtualNetworks/canary01-MyVNET/subnets/canary01-Subnet" +} +New-MgDeviceManagementVirtualEndpointOnPremisesConnection -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointProvisioningPolicy.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointProvisioningPolicy.md index 093355d11d5..b297440d911 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointProvisioningPolicy.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointProvisioningPolicy.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcProvisioningPolicy" + Description = "Description value" + DisplayName = "Display Name value" + DomainJoinConfiguration = @{ + DomainJoinType = "hybridAzureADJoin" + OnPremisesConnectionId = "16ee6c71-fc10-438b-88ac-daa1ccafffff" + } + Id = "1d164206-bf41-4fd2-8424-a3192d39ffff" + ImageDisplayName = "Windows-10 19h1-evd" + ImageId = "MicrosoftWindowsDesktop_Windows-10_19h1-evd" + ImageType = "gallery" + OnPremisesConnectionId = "4e47d0f6-6f77-44f0-8893-c0fe1701ffff" + WindowsSettings = @{ + Language = "en-US" + } +} +New-MgDeviceManagementVirtualEndpointProvisioningPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointUserSetting.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointUserSetting.md index 093355d11d5..5946cafb493 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointUserSetting.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/New-MgDeviceManagementVirtualEndpointUserSetting.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDeviceManagementVirtualEndpointUserSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcUserSetting" + DisplayName = "Example" + SelfServiceEnabled = $false + LocalAdminEnabled = $true + RestorePointSetting = @{ + FrequencyInHours = 16 + UserRestoreEnabled = $true + } +} +New-MgDeviceManagementVirtualEndpointUserSetting -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDeviceManagementVirtualEndpointUserSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointDeviceImage.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointDeviceImage.md index 093355d11d5..e07563874d3 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointDeviceImage.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointDeviceImage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDeviceManagementVirtualEndpointDeviceImage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Remove-MgDeviceManagementVirtualEndpointDeviceImage -CloudPcDeviceImageId $cloudPcDeviceImageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDeviceManagementVirtualEndpointDeviceImage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointOnPremisesConnection.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointOnPremisesConnection.md index 093355d11d5..06d284d2787 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointOnPremisesConnection.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointOnPremisesConnection.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Remove-MgDeviceManagementVirtualEndpointOnPremisesConnection -CloudPcOnPremisesConnectionId $cloudPcOnPremisesConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointProvisioningPolicy.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointProvisioningPolicy.md index 093355d11d5..7529b6ad54a 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointProvisioningPolicy.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointProvisioningPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Remove-MgDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointUserSetting.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointUserSetting.md index 093355d11d5..eca6f0398cd 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointUserSetting.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Remove-MgDeviceManagementVirtualEndpointUserSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDeviceManagementVirtualEndpointUserSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +Remove-MgDeviceManagementVirtualEndpointUserSetting -CloudPcUserSettingId $cloudPcUserSettingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDeviceManagementVirtualEndpointUserSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md index 093355d11d5..ec7038ed548 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointExternalPartnerSetting.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcExternalPartnerSetting" + EnableConnection = $true +} +Update-MgDeviceManagementVirtualEndpointExternalPartnerSetting -CloudPcExternalPartnerSettingId $cloudPcExternalPartnerSettingId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDeviceManagementVirtualEndpointExternalPartnerSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOnPremisesConnection.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOnPremisesConnection.md index 093355d11d5..4b05f8e9237 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOnPremisesConnection.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOnPremisesConnection.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcOnPremisesConnection" + DisplayName = "Display Name value" + SubscriptionId = "0ac520ee-14c0-480f-b6c9-0a90c585ffff" + SubscriptionName = "Subscription Name value" + AdDomainName = "Active Directory Domain Name value" + AdDomainUsername = "Active Directory Domain User Name value" + OrganizationalUnit = "Organization Unit value" + ResourceGroupId = "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c585ffff/resourceGroups/ExampleRG" + VirtualNetworkId = "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet" + SubnetId = "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c585ffff/resourceGroups/ExampleRG/providers/Microsoft.Network/virtualNetworks/ExampleVNet/subnets/default" +} +Update-MgDeviceManagementVirtualEndpointOnPremisesConnection -CloudPcOnPremisesConnectionId $cloudPcOnPremisesConnectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDeviceManagementVirtualEndpointOnPremisesConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOrganizationSetting.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOrganizationSetting.md index 093355d11d5..b8821bd0f8d 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOrganizationSetting.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointOrganizationSetting.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDeviceManagementVirtualEndpointOrganizationSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcOrganizationSettings" + EnableMEMAutoEnroll = $true + OsVersion = "windows11" + UserAccountType = "standardUser" + WindowsSettings = @{ + Language = "en-US" + } +} +Update-MgDeviceManagementVirtualEndpointOrganizationSetting -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDeviceManagementVirtualEndpointOrganizationSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointProvisioningPolicy.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointProvisioningPolicy.md index 093355d11d5..d88a167a12e 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointProvisioningPolicy.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointProvisioningPolicy.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcProvisioningPolicy" + DisplayName = "HR provisioning policy" + Description = "Provisioning policy for India HR employees" + OnPremisesConnectionId = "4e47d0f6-6f77-44f0-8893-c0fe1701ffff" + ImageId = "Image ID value" + ImageDisplayName = "Image Display Name value" + ImageType = "custom" + WindowsSettings = @{ + Language = "en-US" + } +} +Update-MgDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDeviceManagementVirtualEndpointProvisioningPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointUserSetting.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointUserSetting.md index 093355d11d5..543a25ef82b 100644 --- a/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointUserSetting.md +++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/examples/v1.0-beta/Update-MgDeviceManagementVirtualEndpointUserSetting.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDeviceManagementVirtualEndpointUserSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Administration +$params = @{ + "@odata.type" = "#microsoft.graph.cloudPcUserSetting" + DisplayName = "Example" + SelfServiceEnabled = $true + RestorePointSetting = @{ + FrequencyInHours = 16 + UserRestoreEnabled = $true + } + LocalAdminEnabled = $false +} +Update-MgDeviceManagementVirtualEndpointUserSetting -CloudPcUserSettingId $cloudPcUserSettingId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDeviceManagementVirtualEndpointUserSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementCloudPcRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementCloudPcRoleAssignment.md index 093355d11d5..56440532301 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementCloudPcRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementCloudPcRoleAssignment.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementCloudPcRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId -ExpandProperty "roleDefinition" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementCloudPcRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId -ExpandProperty "roleDefinition" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementCloudPcRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId +``` +This example shows how to use the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementCloudPcRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId +``` +This example shows how to use the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementCloudPcRoleAssignment +``` +This example shows how to use the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementCloudPcRoleAssignment -Filter "roleDefinitionId eq 'b5c08161-a7af-481c-ace2-a20a69a48fb1'" +``` +This example shows how to use the Get-MgRoleManagementCloudPcRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementCloudPcRoleDefinition.md index 093355d11d5..97ff0b9f0de 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementCloudPcRoleDefinition.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementCloudPcRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementCloudPcRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementCloudPcRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementCloudPcRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementCloudPcRoleDefinition ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementCloudPcRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDeviceManagementRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDeviceManagementRoleAssignment.md index 093355d11d5..68e6fc7a0f8 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDeviceManagementRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDeviceManagementRoleAssignment.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDeviceManagementRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId -ExpandProperty "roleDefinition,principals,directoryScopes" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDeviceManagementRoleAssignment -Filter " principalIds/any(x:x eq '564ae70c-73d9-476b-820b-fb61eb7384b9')" -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDeviceManagementRoleAssignment -Filter " principalIds/any(x:x eq '564ae70c-73d9-476b-820b-fb61eb7384b9')" +``` +This example shows how to use the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDeviceManagementRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId +``` +This example shows how to use the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDeviceManagementRoleAssignment -Filter "principalId eq '9e47fc6f-2d7a-464c-944e-d3dd0de522e4'" +``` +This example shows how to use the Get-MgRoleManagementDeviceManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryResourceNamespace.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryResourceNamespace.md index 093355d11d5..4e0f283c02f 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryResourceNamespace.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryResourceNamespace.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryResourceNamespace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryResourceNamespace -UnifiedRbacResourceNamespaceId $unifiedRbacResourceNamespaceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryResourceNamespace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryResourceNamespace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryResourceNamespace ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryResourceNamespace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryResourceNamespaceResourceAction.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryResourceNamespaceResourceAction.md index 093355d11d5..d065afbd857 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryResourceNamespaceResourceAction.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryResourceNamespaceResourceAction.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryResourceNamespaceResourceAction Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryResourceNamespaceResourceAction -UnifiedRbacResourceNamespaceId $unifiedRbacResourceNamespaceId -UnifiedRbacResourceActionId $unifiedRbacResourceActionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryResourceNamespaceResourceAction Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryResourceNamespaceResourceAction Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryResourceNamespaceResourceAction -UnifiedRbacResourceNamespaceId $unifiedRbacResourceNamespaceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryResourceNamespaceResourceAction Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryResourceNamespaceResourceAction Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryResourceNamespaceResourceAction -UnifiedRbacResourceNamespaceId $unifiedRbacResourceNamespaceId +``` +This example shows how to use the Get-MgRoleManagementDirectoryResourceNamespaceResourceAction Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryRoleAssignment.md index 093355d11d5..61a458ab2b4 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryRoleAssignment.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignment -Filter "roleDefinitionId eq '62e90394-69f5-4237-9190-012177145e10'" -ExpandProperty "principal" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignment -Filter " principalId eq 'f1847572-48aa-47aa-96a3-2ec61904f41f'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignment -UnifiedRoleAssignmentId $unifiedRoleAssignmentId +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignment -UnifiedRoleAssignmentId $unifiedRoleAssignmentId -ExpandProperty "roleDefinition" +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryRoleDefinition.md index 093355d11d5..68c7b8e4a6d 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryRoleDefinition.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId -ExpandProperty "inheritsPermissionsFrom" +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleDefinition +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryTransitiveRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryTransitiveRoleAssignment.md index 093355d11d5..192fd790d07 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryTransitiveRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementDirectoryTransitiveRoleAssignment.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryTransitiveRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryTransitiveRoleAssignment -CountVariable CountVar -Filter "principalId eq '2c7936bc-3517-40f3-8eda-4806637b6516'" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryTransitiveRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryTransitiveRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryTransitiveRoleAssignment -CountVariable CountVar -Filter "principalId eq '2c7936bc-3517-40f3-8eda-4806637b6516' and directoryScopeId eq '/administrativeUnits/26e79164-0c5c-4281-8c5b-be7bc7809fb2'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryTransitiveRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryTransitiveRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryTransitiveRoleAssignment -CountVariable CountVar -Filter "principalId eq '2c7936bc-3517-40f3-8eda-4806637b6516' and roleDefinitionId eq 'fe930be7-5e62-47db-91af-98c3a49a38b1'" +``` +This example shows how to use the Get-MgRoleManagementDirectoryTransitiveRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementEntitlementManagementRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementEntitlementManagementRoleAssignment.md index 093355d11d5..dd572c60008 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementEntitlementManagementRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementEntitlementManagementRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementEntitlementManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementEntitlementManagementRoleAssignment -Filter "appScopeId eq '/AccessPackageCatalog/4cee616b-fdf9-4890-9d10-955e0ccb12bc'" -ExpandProperty "principal" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementEntitlementManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementEntitlementManagementRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementEntitlementManagementRoleDefinition.md index 093355d11d5..c6f35f06387 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementEntitlementManagementRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Get-MgRoleManagementEntitlementManagementRoleDefinition.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementEntitlementManagementRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementEntitlementManagementRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementEntitlementManagementRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementEntitlementManagementRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementEntitlementManagementRoleDefinition ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementEntitlementManagementRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementCloudPcRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementCloudPcRoleAssignment.md index 093355d11d5..6fb7b5916ce 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementCloudPcRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementCloudPcRoleAssignment.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementCloudPcRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleAssignmentMultiple" + DisplayName = "My test role assignment 1" + Description = "My role assignment description" + RoleDefinitionId = "b5c08161-a7af-481c-ace2-a20a69a48fb1" + PrincipalIds = @( + "f8ca5a85-489a-49a0-b555-0a6d81e56f0d" + "c1518aa9-4da5-4c84-a902-a31404023890" + ) +} +New-MgRoleManagementCloudPcRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementCloudPcRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementCloudPcRoleDefinition.md index 093355d11d5..076a291d609 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementCloudPcRoleDefinition.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementCloudPcRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Description = "An example custom role" + DisplayName = "ExampleCustomRole" + RolePermissions = @( + @{ + AllowedResourceActions = @( + "Microsoft.CloudPC/CloudPCs/Read" + ) + } + ) + Condition = "null" +} +New-MgRoleManagementCloudPcRoleDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementCloudPcRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDeviceManagementRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDeviceManagementRoleAssignment.md index 093355d11d5..6724f490a48 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDeviceManagementRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDeviceManagementRoleAssignment.md @@ -1,18 +1,39 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementDeviceManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleAssignmentMultiple" + DisplayName = "My test role assignment 1" + RoleDefinitionId = "c2cf284d-6c41-4e6b-afac-4b80928c9034" + PrincipalIds = @( + "f8ca5a85-489a-49a0-b555-0a6d81e56f0d" + "c1518aa9-4da5-4c84-a902-a31404023890" + ) + DirectoryScopeIds = @( + "28ca5a85-489a-49a0-b555-0a6d81e56f0d" + "8152656a-cf9a-4928-a457-1512d4cae295" + ) +} +New-MgRoleManagementDeviceManagementRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgRoleManagementDeviceManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgRoleManagementDeviceManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleAssignmentMultiple" + DisplayName = "My test role assignment 1" + RoleDefinitionId = "c2cf284d-6c41-4e6b-afac-4b80928c9034" + PrincipalIds = @( + "f8ca5a85-489a-49a0-b555-0a6d81e56f0d" + "c1518aa9-4da5-4c84-a902-a31404023890" + ) + AppScopeIds = @( + "allDevices" + ) +} +New-MgRoleManagementDeviceManagementRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementDeviceManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDirectoryRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDirectoryRoleAssignment.md index 093355d11d5..71558060fba 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDirectoryRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDirectoryRoleAssignment.md @@ -1,18 +1,39 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleAssignment" + RoleDefinitionId = "58a13ea3-c632-46ae-9ee0-9c0d43cd7f3d" + PrincipalId = "f8ca5a85-489a-49a0-b555-0a6d81e56f0d" + DirectoryScopeId = "/attributeSets/Engineering" +} +New-MgRoleManagementDirectoryRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleAssignment" + RoleDefinitionId = "c2cf284d-6c41-4e6b-afac-4b80928c9034" + PrincipalId = "f8ca5a85-489a-49a0-b555-0a6d81e56f0d" + DirectoryScopeId = "/" +} +New-MgRoleManagementDirectoryRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgRoleManagementDirectoryRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleAssignment" + RoleDefinitionId = "fe930be7-5e62-47db-91af-98c3a49a38b1" + PrincipalId = "f8ca5a85-489a-49a0-b555-0a6d81e56f0d" + DirectoryScopeId = "/administrativeUnits/5d107bba-d8e2-4e13-b6ae-884be90e5d1a" +} +New-MgRoleManagementDirectoryRoleAssignment -BodyParameter $params +``` +This example shows how to use the New-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDirectoryRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDirectoryRoleDefinition.md index 093355d11d5..495a3da8d3a 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDirectoryRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementDirectoryRoleDefinition.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Description = "Update basic properties of application registrations" + DisplayName = "Application Registration Support Administrator" + RolePermissions = @( + @{ + AllowedResourceActions = @( + "microsoft.directory/applications/basic/read" + ) + } + ) + IsEnabled = "true" +} +New-MgRoleManagementDirectoryRoleDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementEntitlementManagementRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementEntitlementManagementRoleAssignment.md index 093355d11d5..a22be7bf15b 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementEntitlementManagementRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/New-MgRoleManagementEntitlementManagementRoleAssignment.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementEntitlementManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + PrincipalId = "679a9213-c497-48a4-830a-8d3d25d94ddc" + RoleDefinitionId = "ae79f266-94d4-4dab-b730-feca7e132178" + AppScopeId = "/AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997" +} +New-MgRoleManagementEntitlementManagementRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementEntitlementManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementCloudPcRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementCloudPcRoleAssignment.md index 093355d11d5..a97408869fb 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementCloudPcRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementCloudPcRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgRoleManagementCloudPcRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Remove-MgRoleManagementCloudPcRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgRoleManagementCloudPcRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementCloudPcRoleDefinition.md index 093355d11d5..61f63e2a067 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementCloudPcRoleDefinition.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgRoleManagementCloudPcRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Remove-MgRoleManagementCloudPcRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgRoleManagementCloudPcRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDeviceManagementRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDeviceManagementRoleAssignment.md index 093355d11d5..a3ceb48a9c2 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDeviceManagementRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDeviceManagementRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgRoleManagementDeviceManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Remove-MgRoleManagementDeviceManagementRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgRoleManagementDeviceManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDirectoryRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDirectoryRoleAssignment.md index 093355d11d5..fa11597ae7f 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDirectoryRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDirectoryRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Remove-MgRoleManagementDirectoryRoleAssignment -UnifiedRoleAssignmentId $unifiedRoleAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDirectoryRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDirectoryRoleDefinition.md index 093355d11d5..7d6974a7fd7 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDirectoryRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Remove-MgRoleManagementDirectoryRoleDefinition.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Remove-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md index 093355d11d5..d40d990ad13 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -UnifiedRoleAssignmentScheduleRequestId $unifiedRoleAssignmentScheduleRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md index 093355d11d5..37f08677460 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -UnifiedRoleEligibilityScheduleRequestId $unifiedRoleEligibilityScheduleRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementCloudPcRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementCloudPcRoleAssignment.md index 093355d11d5..2bfee879f3d 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementCloudPcRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementCloudPcRoleAssignment.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgRoleManagementCloudPcRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + DisplayName = "NewName" + Description = "A new roleAssignment" +} +Update-MgRoleManagementCloudPcRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgRoleManagementCloudPcRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementCloudPcRoleDefinition.md index 093355d11d5..09ae222f4f0 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementCloudPcRoleDefinition.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgRoleManagementCloudPcRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Description = "Update basic properties and permission of application registrations" + DisplayName = "ExampleCustomRole" + RolePermissions = @( + @{ + AllowedResourceActions = @( + "Microsoft.CloudPC/CloudPCs/Read" + "Microsoft.CloudPC/CloudPCs/Reprovision" + ) + } + ) +} +Update-MgRoleManagementCloudPcRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgRoleManagementCloudPcRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementDeviceManagementRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementDeviceManagementRoleAssignment.md index 093355d11d5..d1436951419 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementDeviceManagementRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementDeviceManagementRoleAssignment.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgRoleManagementDeviceManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + PrincipalIds = @( + "0aeec2c1-fee7-4e02-b534-6f920d25b300" + "2d5386a7-732f-44db-9cf8-f82dd2a1c0e0" + ) +} +Update-MgRoleManagementDeviceManagementRoleAssignment -UnifiedRoleAssignmentMultipleId $unifiedRoleAssignmentMultipleId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgRoleManagementDeviceManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementDirectoryRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementDirectoryRoleDefinition.md index 093355d11d5..348d6d62f2c 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementDirectoryRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Update-MgRoleManagementDirectoryRoleDefinition.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Description = "Update basic properties of application registrations" + DisplayName = "Application Registration Support Administrator" + RolePermissions = @( + @{ + AllowedResourceActions = @( + "microsoft.directory/applications/basic/read" + ) + } + ) +} +Update-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementManagedDeviceCloudPcRemoteActionResult.md b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementManagedDeviceCloudPcRemoteActionResult.md index 093355d11d5..ca4d9d2de22 100644 --- a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementManagedDeviceCloudPcRemoteActionResult.md +++ b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementManagedDeviceCloudPcRemoteActionResult.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementManagedDeviceCloudPcRemoteActionResult Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Functions +Get-MgDeviceManagementManagedDeviceCloudPcRemoteActionResult -ManagedDeviceId $managedDeviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementManagedDeviceCloudPcRemoteActionResult Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementManagedDeviceCloudPcReviewStatus.md b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementManagedDeviceCloudPcReviewStatus.md index 093355d11d5..db062045afd 100644 --- a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementManagedDeviceCloudPcReviewStatus.md +++ b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementManagedDeviceCloudPcReviewStatus.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementManagedDeviceCloudPcReviewStatus Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Functions +Get-MgDeviceManagementManagedDeviceCloudPcReviewStatus -ManagedDeviceId $managedDeviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementManagedDeviceCloudPcReviewStatus Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointAuditEventAuditActivityType.md b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointAuditEventAuditActivityType.md index 093355d11d5..60fe9ce4351 100644 --- a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointAuditEventAuditActivityType.md +++ b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointAuditEventAuditActivityType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointAuditEventAuditActivityType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Functions +Get-MgDeviceManagementVirtualEndpointAuditEventAuditActivityType ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointAuditEventAuditActivityType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointCloudPcConnectivityHistory.md b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointCloudPcConnectivityHistory.md index 093355d11d5..8071017db44 100644 --- a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointCloudPcConnectivityHistory.md +++ b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointCloudPcConnectivityHistory.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointCloudPcConnectivityHistory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Functions +Get-MgDeviceManagementVirtualEndpointCloudPcConnectivityHistory -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointCloudPcConnectivityHistory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointDeviceImageSourceImage.md b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointDeviceImageSourceImage.md index 093355d11d5..5f2709b16ff 100644 --- a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointDeviceImageSourceImage.md +++ b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointDeviceImageSourceImage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointDeviceImageSourceImage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Functions +Get-MgDeviceManagementVirtualEndpointDeviceImageSourceImage ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointDeviceImageSourceImage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointEffectivePermission.md b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointEffectivePermission.md index 093355d11d5..53c7117af2d 100644 --- a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointEffectivePermission.md +++ b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointEffectivePermission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointEffectivePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Functions +Get-MgDeviceManagementVirtualEndpointEffectivePermission ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointEffectivePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSnapshotSubscription.md b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSnapshotSubscription.md index 093355d11d5..3547aa54ea6 100644 --- a/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSnapshotSubscription.md +++ b/src/DeviceManagement.Functions/DeviceManagement.Functions/examples/v1.0-beta/Get-MgDeviceManagementVirtualEndpointSnapshotSubscription.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceManagementVirtualEndpointSnapshotSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Functions +Get-MgDeviceManagementVirtualEndpointSnapshotSubscription ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceManagementVirtualEndpointSnapshotSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintConnector.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintConnector.md index 093355d11d5..585b0396a4b 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintConnector.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintConnector.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintConnector -PrintConnectorId $printConnectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintConnector ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintOperation.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintOperation.md index 093355d11d5..3a9558682fa 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintOperation.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintOperation -PrintOperationId $printOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinter.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinter.md index 093355d11d5..715aaec1fb4 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinter.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinter -PrinterId $printerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinter ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterCapability.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterCapability.md index 093355d11d5..f860d518f63 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterCapability.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterCapability.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintPrinterCapability Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinterCapability -PrinterId $printerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintPrinterCapability Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterConnector.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterConnector.md index 093355d11d5..e9afe44fe2c 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterConnector.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterConnector.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintPrinterConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinterConnector -PrinterId $printerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintPrinterConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterTaskTrigger.md index 093355d11d5..10a3c518a4c 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintPrinterTaskTrigger.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintPrinterTaskTrigger Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintPrinterTaskTrigger Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintPrinterTaskTrigger Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinterTaskTrigger -PrinterId $printerId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintPrinterTaskTrigger Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintService.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintService.md index 093355d11d5..6ab750cf1e1 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintService.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintService.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintService -PrintServiceId $printServiceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintService ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintServiceEndpoint.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintServiceEndpoint.md index 093355d11d5..5472274cc8a 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintServiceEndpoint.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintServiceEndpoint Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintServiceEndpoint -PrintServiceId $printServiceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintServiceEndpoint Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintServiceEndpoint Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintServiceEndpoint -PrintServiceId $printServiceId -PrintServiceEndpointId $printServiceEndpointId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintServiceEndpoint Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShare.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShare.md index 093355d11d5..043c14a7f22 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShare.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShare.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShare -PrinterShareId $printerShareId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShare ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShareAllowedGroup.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShareAllowedGroup.md index 093355d11d5..dd8a5e19b37 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShareAllowedGroup.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShareAllowedGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintShareAllowedGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShareAllowedGroup -PrinterShareId $printerShareId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintShareAllowedGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShareAllowedUser.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShareAllowedUser.md index 093355d11d5..a48f3c74576 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShareAllowedUser.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintShareAllowedUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintShareAllowedUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShareAllowedUser -PrinterShareId $printerShareId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintShareAllowedUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintTaskDefinition.md index 093355d11d5..cdab7a1e499 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintTaskDefinition.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintTaskDefinition ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintTaskDefinitionTask.md index 093355d11d5..b122889f9e6 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Get-MgPrintTaskDefinitionTask.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintTaskDefinitionTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintTaskDefinitionTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintTaskDefinitionTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintTaskDefinitionTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShare.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShare.md index 093355d11d5..32b775dd81e 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShare.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShare.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + Name = "name-value" + "Printer@odata.bind" = "https://graph.microsoft.com/beta/print/printers/{id}" +} +New-MgPrintShare -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShareAllowedGroupByRef.md index 093355d11d5..9dbbda4eb0d 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShareAllowedGroupByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrintShareAllowedGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/groups/{id}" +} +New-MgPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrintShareAllowedGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShareAllowedUserByRef.md index 093355d11d5..533499f70d5 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintShareAllowedUserByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrintShareAllowedUserByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/users/{id}" +} +New-MgPrintShareAllowedUserByRef -PrinterShareId $printerShareId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrintShareAllowedUserByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintTaskDefinition.md index 093355d11d5..5297b4e6239 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/New-MgPrintTaskDefinition.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + DisplayName = "Test TaskDefinitionName" + CreatedBy = @{ + DisplayName = "Requesting App Display Name" + } +} +New-MgPrintTaskDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintConnector.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintConnector.md index 093355d11d5..b6b03acbbd9 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintConnector.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintConnector.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintConnector -PrintConnectorId $printConnectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinter.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinter.md index 093355d11d5..c88a5f00d66 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinter.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintPrinter -PrinterId $printerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinterShareAllowedUserByRef.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinterShareAllowedUserByRef.md index 093355d11d5..33226281efb 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinterShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinterShareAllowedUserByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintPrinterShareAllowedUserByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintPrinterShareAllowedUserByRef -PrinterShareId $printerShareId -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintPrinterShareAllowedUserByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinterTaskTrigger.md index 093355d11d5..7bf987720c8 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintPrinterTaskTrigger.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintPrinterTaskTrigger Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintPrinterTaskTrigger Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintShare.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintShare.md index 093355d11d5..35927f171d2 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintShare.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintShare.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintShare -PrinterShareId $printerShareId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintShareAllowedGroupByRef.md index 093355d11d5..4065fc85784 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintShareAllowedGroupByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintShareAllowedGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintShareAllowedGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintTaskDefinition.md index 093355d11d5..0e86aa99d4a 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Remove-MgPrintTaskDefinition.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Restore-MgPrintPrinterFactoryDefault.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Restore-MgPrintPrinterFactoryDefault.md index 093355d11d5..a536b37ba3a 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Restore-MgPrintPrinterFactoryDefault.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Restore-MgPrintPrinterFactoryDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgPrintPrinterFactoryDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Restore-MgPrintPrinterFactoryDefault -PrinterId $printerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgPrintPrinterFactoryDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintConnector.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintConnector.md index 093355d11d5..3b0f9997821 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintConnector.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintConnector.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrintConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + DisplayName = "ConnectorName" + FullyQualifiedDomainName = "CONNECTOR-MACHINE" + OperatingSystem = "Microsoft Windows 10 Enterprise Insider Preview | 10.0.19555" + AppVersion = "0.19.7338.23496" + Location = @{ + Latitude = 1.1 + Longitude = 2.2 + AltitudeInMeters = 3 + } +} +Update-MgPrintConnector -PrintConnectorId $printConnectorId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrintConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintPrinter.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintPrinter.md index 093355d11d5..eefb23ee35e 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintPrinter.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrintPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + Name = "PrinterName" + Location = @{ + Latitude = 1.1 + Longitude = 2.2 + AltitudeInMeters = 3 + } +} +Update-MgPrintPrinter -PrinterId $printerId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrintPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintShare.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintShare.md index 093355d11d5..3a066e3599e 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintShare.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintShare.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + DisplayName = "ShareName" + AllowAllUsers = $true + "Printer@odata.bind" = "https://graph.microsoft.com/beta/print/printers/{id}" +} +Update-MgPrintShare -PrinterShareId $printerShareId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintTaskDefinition.md index 093355d11d5..ee40fa3719f 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0-beta/Update-MgPrintTaskDefinition.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + DisplayName = "Test TaskDefinitionName" + CreatedBy = @{ + DisplayName = "Requesting App Display Name" + } +} +Update-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementHealthOverview.md index 093355d11d5..aadf228bc08 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementHealthOverview.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId -ExpandProperty "issues" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet +```powershell +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementHealthOverview +``` +This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet +```powershell +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementHealthOverview -ExpandProperty "issues" +``` +This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementIssue.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementIssue.md index 093355d11d5..f911fe6db29 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementIssue.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementIssue Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementIssue -ServiceHealthIssueId $serviceHealthIssueId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementIssue Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementIssue Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementIssue ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementIssue Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessage.md index 093355d11d5..c739f4180ab 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessage -ServiceUpdateMessageId $serviceUpdateMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessage ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachment.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachment.md index 093355d11d5..e5ffddff277 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachmentArchive.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachmentArchive.md index 093355d11d5..3b3bfc41fa9 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachmentArchive.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachmentArchive.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachmentContent.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachmentContent.md index 093355d11d5..895e5ca8e5f 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachmentContent.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Get-MgServiceAnnouncementMessageAttachmentContent.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgArchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgArchiveServiceAnnouncementMessage.md index 093355d11d5..61d9e4df39d 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgArchiveServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgArchiveServiceAnnouncementMessage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgArchiveServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgFavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgFavoriteServiceAnnouncementMessage.md index 093355d11d5..e16061e638c 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgFavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgFavoriteServiceAnnouncementMessage.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgFavoriteServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgFavoriteServiceAnnouncementMessage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgFavoriteServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgMarkServiceAnnouncementMessageRead.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgMarkServiceAnnouncementMessageRead.md index 093355d11d5..fb09fa91814 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgMarkServiceAnnouncementMessageRead.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgMarkServiceAnnouncementMessageRead.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMarkServiceAnnouncementMessageRead Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgMarkServiceAnnouncementMessageRead -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMarkServiceAnnouncementMessageRead Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgMarkServiceAnnouncementMessageUnread.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgMarkServiceAnnouncementMessageUnread.md index 093355d11d5..0deb99127e4 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgMarkServiceAnnouncementMessageUnread.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgMarkServiceAnnouncementMessageUnread.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMarkServiceAnnouncementMessageUnread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgMarkServiceAnnouncementMessageUnread -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMarkServiceAnnouncementMessageUnread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgReportServiceAnnouncementIssueIncident.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgReportServiceAnnouncementIssueIncident.md index 093355d11d5..342aeaad400 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgReportServiceAnnouncementIssueIncident.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgReportServiceAnnouncementIssueIncident.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReportServiceAnnouncementIssueIncident Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Invoke-MgReportServiceAnnouncementIssueIncident -ServiceHealthIssueId $serviceHealthIssueId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReportServiceAnnouncementIssueIncident Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgUnarchiveServiceAnnouncementMessage.md index 093355d11d5..702d2b0907b 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnarchiveServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgUnarchiveServiceAnnouncementMessage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnarchiveServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgUnfavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgUnfavoriteServiceAnnouncementMessage.md index 093355d11d5..21ff1c40eec 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgUnfavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0-beta/Invoke-MgUnfavoriteServiceAnnouncementMessage.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnfavoriteServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgUnfavoriteServiceAnnouncementMessage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnfavoriteServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Confirm-MgDirectoryObjectMemberGroup.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Confirm-MgDirectoryObjectMemberGroup.md index 093355d11d5..2dbde67e20b 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Confirm-MgDirectoryObjectMemberGroup.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Confirm-MgDirectoryObjectMemberGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgDirectoryObjectMemberGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgDirectoryObjectMemberGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObject.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObject.md index 093355d11d5..c78fa264d7b 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObject.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObject.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +Get-MgDirectoryObject -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectById.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectById.md index 093355d11d5..2140ce07471 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectById.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectById.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryObjectById Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryObjectById Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectMemberGroup.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectMemberGroup.md index 093355d11d5..6fbbed6e2da 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectMemberGroup.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectMemberGroup.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryObjectMemberGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +$params = @{ + SecurityEnabledOnly = $false +} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryObjectMemberGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Remove-MgDirectoryObject.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Remove-MgDirectoryObject.md index 093355d11d5..225c5f869ba 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Remove-MgDirectoryObject.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Remove-MgDirectoryObject.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +Remove-MgDirectoryObject -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Test-MgDirectoryObjectProperty.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Test-MgDirectoryObjectProperty.md index 093355d11d5..a726f215691 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Test-MgDirectoryObjectProperty.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Test-MgDirectoryObjectProperty.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgDirectoryObjectProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgDirectoryObjectProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClass.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClass.md index 093355d11d5..d142a282bf3 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClass.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClass.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClass ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClass -EducationClassId $educationClassId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignment.md index 093355d11d5..d081317394f 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignment.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignment -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignment -EducationClassId $educationClassId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignment -EducationClassId $educationClassId -ExpandProperty "resources" +``` +This example shows how to use the Get-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgEducationClassAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Get-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentCategory.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentCategory.md index 093355d11d5..9a08565bec3 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentCategory.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentCategory.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentCategoryDelta.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentCategoryDelta.md index 093355d11d5..e9d0f660c39 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentCategoryDelta.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentCategoryDelta.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentCategoryDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategoryDelta -EducationClassId $educationClassId -Top 3 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentCategoryDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentCategoryDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategoryDelta -EducationClassId $educationClassId -Deltatoken "7ORzTfzlUEGDy6BRE3OC-3ePBbvLHCRe4aJ_hjaBKJxUHmn_ODgoM4xreLS7YRaxc-iACeqCQsT5Tb0u9vn6QXYflO6j0sRgRQlhcfR7DApZYl6uZqiXcR7H0G14btPqR761sKWNc0jgiczrHGF6dGfSQwsLzPT46og-84ArhOU.Jnxvkr08FE-QBvEYstYel3JZUrgwgTauo-GmpbdWeSA" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentCategoryDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentCategoryDelta Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategoryDelta -EducationClassId $educationClassId -Deltatoken "7ORzTfzlUEGDy6BRE3OC-3ePBbvLHCRe4aJ_hjaBKJxUHmn_ODgoM4xreLS7YRaxc-iACeqCQsT5Tb0u9vn6QXYflO6j0sRgRQlhcfR7DApZYl6uZqiXcR7H0G14btPqR761sKWNc0jgiczrHGF6dGfSQwsLzPT46og-84ArhOU.Jnxvkr08FE-QBvEYstYel3JZUrgwgTauo-GmpbdWeSA" -OutFile $outFileId +``` +This example shows how to use the Get-MgEducationClassAssignmentCategoryDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgEducationClassAssignmentCategoryDelta Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategoryDelta -EducationClassId $educationClassId -Skiptoken "U43TyYWKlRvJ6wWxZOfJvkp22nMqShRw9f-GxBtG2FDy9b1hMDaAJGdLb7n2fh1IVSFtBcXz0jxjIEihcR91dS3R7i8Z2IMtxIn9rKbK9Jvurj6jCH-lDbSNatdesrK0PJ5zpZ_-i8HyqkdtLhWD9tewXVArIqQWJA7gJz8z4paG2q0MU9rixrQOTe7WIXikPiBTUPilHuUW-o1k7cvqke3K7llJbU3G7z_O7WGoVGE.l8-2OcBi9ZWAhwhPnXvJ-kyyk8GNb6-H4o6qofP5YBY" +``` +This example shows how to use the Get-MgEducationClassAssignmentCategoryDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentDefault.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentDefault.md index 093355d11d5..abe6aa4b78f 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentDefault.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentDefault -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentDelta.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentDelta.md index 093355d11d5..160f1ef5840 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentDelta.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentDelta.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentDelta -EducationClassId $educationClassId -Deltatoken "7ORzTfzlUEGDy6BRE3OC-3ePBbvLHCRe4aJ_hjaBKJxUHmn_ODgoM4xreLS7YRaxROmLjac48n-iXm5j6n5aQwlsnC-2OvL3lI0Z8M4klERNmJQjnBn7MHqwXZ6L8GlI3VPnya3E-p1bisiZX97jLvQUAopseIYhvnD6v7fiYrk.fVsHempT6X2CiBh6aN9Ex5nVJ71adKdcf-mdke8OHKs" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentDelta -EducationClassId $educationClassId -Skiptoken "U43TyYWKlRvJ6wWxZOfJvkp22nMqShRw9f-GxBtG2FDy9b1hMDaAJGdLb7n2fh1IdHoweKQs1czM4Ry1LVsNqwIFXftTcRHvgSCbcszvbJHEWDCO3QO7K7zwCM8DdXNepZOa1gqldecjIUM0NFRbGQoQ5yR6RmGnMgtko8TDMOyMH_yg1my82PTXA_t4Nj-DhMDZWvuNTd_lbLeTngc7mIJPMCR2gHN9CSKsW_kw850.UM9tUqwOu5Ln1pnxaP6KdMmfJHszGqY3EKPlQkOiyGs" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentDelta Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentDelta -EducationClassId $educationClassId -Top 2 +``` +This example shows how to use the Get-MgEducationClassAssignmentDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentResource.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentResource.md index 093355d11d5..1a917c81730 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentResource.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentResource.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentRubric.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentRubric.md index 093355d11d5..b991a476d2c 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentRubric.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentRubric.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSetting.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSetting.md index 093355d11d5..e315eabe738 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSetting.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSetting -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmission.md index 093355d11d5..e2543817c50 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmission.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentSubmission Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgEducationClassAssignmentSubmission Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgEducationClassAssignmentSubmission Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgEducationClassAssignmentSubmission Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmissionOutcome.md index 093355d11d5..868301116a0 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmissionResource.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmissionResource.md index 093355d11d5..6c6a6c40d26 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassAssignmentSubmissionResource.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassDelta.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassDelta.md index 093355d11d5..21042a9005f 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassDelta.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassGroup.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassGroup.md index 093355d11d5..54c0eb33b78 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassGroup.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassGroup -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassMember.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassMember.md index 093355d11d5..9dd47d93abf 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassMember.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassMember -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassSchool.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassSchool.md index 093355d11d5..957fbfc323c 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassSchool.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassSchool.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassSchool -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassTeacher.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassTeacher.md index 093355d11d5..473fe1c18b8 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassTeacher.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationClassTeacher.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassTeacher Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassTeacher -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassTeacher Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeAssignment.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeAssignment.md index 093355d11d5..87f61a0c158 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeAssignment.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationMeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeAssignment ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationMeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeClass.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeClass.md index 093355d11d5..c2fc5b19747 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeClass.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeClass.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationMeClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeClass ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationMeClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeRubric.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeRubric.md index 093355d11d5..514fcbf769a 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeRubric.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeRubric.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeRubric -EducationRubricId $educationRubricId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeRubric ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeSchool.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeSchool.md index 093355d11d5..4d601152127 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeSchool.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationMeSchool.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationMeSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeSchool ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationMeSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchool.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchool.md index 093355d11d5..14f7cd8885e 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchool.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchool.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchool -EducationSchoolId $educationSchoolId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchool ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolAdministrativeUnit.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolAdministrativeUnit.md index 093355d11d5..c6a119c334a 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolAdministrativeUnit.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolAdministrativeUnit.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSchoolAdministrativeUnit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchoolAdministrativeUnit -EducationSchoolId $educationSchoolId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSchoolAdministrativeUnit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolClass.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolClass.md index 093355d11d5..d62c4b40053 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolClass.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolClass.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSchoolClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchoolClass -EducationSchoolId $educationSchoolId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSchoolClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolDelta.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolDelta.md index 093355d11d5..27fd275b361 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolDelta.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSchoolDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchoolDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSchoolDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolUser.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolUser.md index 093355d11d5..74fbaed65bd 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolUser.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSchoolUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSchoolUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchoolUser -EducationSchoolId $educationSchoolId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSchoolUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfile.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfile.md index 093355d11d5..040346af7f7 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfile.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfile.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSynchronizationProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSynchronizationProfile -EducationSynchronizationProfileId $educationSynchronizationProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationSynchronizationProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationSynchronizationProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSynchronizationProfile ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSynchronizationProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfileError.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfileError.md index 093355d11d5..29fdbe24e5a 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfileError.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfileError.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSynchronizationProfileError Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSynchronizationProfileError -EducationSynchronizationProfileId $educationSynchronizationProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSynchronizationProfileError Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfileStatus.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfileStatus.md index 093355d11d5..f4e31f00ca7 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfileStatus.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationSynchronizationProfileStatus.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSynchronizationProfileStatus Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSynchronizationProfileStatus -EducationSynchronizationProfileId $educationSynchronizationProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSynchronizationProfileStatus Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationUser.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationUser.md index 093355d11d5..615ce2a886d 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationUser.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationUser.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUser ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUser -EducationUserId $educationUserId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationUserAssignment.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationUserAssignment.md index 093355d11d5..37d17933a46 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationUserAssignment.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationUserAssignment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationUserAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUserAssignment -EducationUserId $educationUserId -ExpandProperty "submissions" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationUserAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationUserAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUserAssignment -EducationUserId $educationUserId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationUserAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Get-MgEducationUserDelta.md b/src/Education/Education/examples/v1.0-beta/Get-MgEducationUserDelta.md index 093355d11d5..8ebded8c6c2 100644 --- a/src/Education/Education/examples/v1.0-beta/Get-MgEducationUserDelta.md +++ b/src/Education/Education/examples/v1.0-beta/Get-MgEducationUserDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationUserDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUserDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationUserDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Invoke-MgReassignEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Invoke-MgReassignEducationClassAssignmentSubmission.md index 093355d11d5..09045ac6546 100644 --- a/src/Education/Education/examples/v1.0-beta/Invoke-MgReassignEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Invoke-MgReassignEducationClassAssignmentSubmission.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Invoke-MgReassignEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Invoke-MgReassignEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationClassAssignmentSubmission.md index 093355d11d5..02af8895caf 100644 --- a/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationClassAssignmentSubmission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReturnEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Invoke-MgReturnEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReturnEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md index 093355d11d5..696c90941ec 100644 --- a/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnsubmitEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Invoke-MgUnsubmitEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnsubmitEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Invoke-MgUploadEducationSynchronizationProfileUrl.md b/src/Education/Education/examples/v1.0-beta/Invoke-MgUploadEducationSynchronizationProfileUrl.md index 093355d11d5..b419e19db58 100644 --- a/src/Education/Education/examples/v1.0-beta/Invoke-MgUploadEducationSynchronizationProfileUrl.md +++ b/src/Education/Education/examples/v1.0-beta/Invoke-MgUploadEducationSynchronizationProfileUrl.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUploadEducationSynchronizationProfileUrl Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Invoke-MgUploadEducationSynchronizationProfileUrl -EducationSynchronizationProfileId $educationSynchronizationProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUploadEducationSynchronizationProfileUrl Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationClass.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationClass.md index 093355d11d5..313cb2f111d 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationClass.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationClass.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + Description = "Health Level 1" + ClassCode = "Health 501" + DisplayName = "Health 1" + ExternalId = "11019" + ExternalName = "Health Level 1" + ExternalSource = "sis" + MailNickname = "fineartschool.net" +} +New-MgEducationClass -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignment.md index 093355d11d5..447949218e0 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignment.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DueDateTime = [System.DateTime]::Parse("2021-09-07T00:00:00Z") + DisplayName = "Reading test 09.03 #4" + Instructions = @{ + ContentType = "text" + Content = "Read chapter 4" + } + Grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentGradeType" + MaxPoints = + } + AssignTo = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentGradeType" + } + Status = "draft" + AllowStudentsToAddResourcesToSubmission = $true +} +New-MgEducationClassAssignment -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentResource.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentResource.md index 093355d11d5..ef0da8552cd 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentResource.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentResource.md @@ -1,18 +1,108 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + "@odata.type" = "microsoft.graph.educationExcelResource" + DisplayName = "Graph Doc pages.xlsx" + FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + DisplayName = "article.pdf" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + DisplayName = "Where the Wonders of Learning Never Cease | Wonderopolis" + Link = "https://wonderopolis.org/" + ThumbnailPreviewUrl = $null + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + "@odata.type" = "microsoft.graph.educationMediaResource" + DisplayName = "homework example.PNG" + FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + "@odata.type" = "microsoft.graph.educationPowerPointResource" + DisplayName = "state diagram.pptx" + FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RN327OXRN6EVFE2Q5FRJZTN5EOJ" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + DisplayName = "Template - My Story" + AppId = "6fbeb90c-3d55-4bd5-82c4-bfe824be4300" + AppIconWebUrl = "https://statics.teams.cdn.office.net/evergreen-assets/ThirdPartyApps/6fbeb90c-3d55-4bd5-82c4-bfe824be4300_largeImage.png?v=2.0.2" + TeamsEmbeddedContentUrl = "https://app.api.edu.buncee.com/player/C7B0866C9B7E485EAE21AE14DBC3FD08?embed=1&render_slide_panel=1" + WebUrl = "https://app.edu.buncee.com/buncee/C7B0866C9B7E485EAE21AE14DBC3FD08" + "@odata.type" = "#microsoft.graph.educationTeamsAppResource" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the New-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + DisplayName = "Issues and PR in guthub.docx" + FileUrl = "https://graph.microsoft.com/beta/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentSubmissionOutcome.md index 093355d11d5..14d53469c1b 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassAssignmentSubmissionOutcome Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackResourceOutcome" + FeedbackResource = @{ + "@odata.type" = "#microsoft.graph.educationWordResource" + DisplayName = "Document1.docx" + } +} +New-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentSubmissionResource.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentSubmissionResource.md index 093355d11d5..25fc3cc0468 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassAssignmentSubmissionResource.md @@ -1,18 +1,84 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + "@odata.type" = "#microsoft.graph.educationExcelResource" + DisplayName = "userAgeGroup QueryParameter Test.xlsx" + FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + DisplayName = "_FTP_EDC-61424749-250820211136.pdf" + FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + DisplayName = "Wikipedia" + Link = "https://en.wikipedia.org/wiki/Main_Page" + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + DisplayName = "category.jpg" + FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" + "@odata.type" = "#microsoft.graph.educationMediaResource" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + "@odata.type" = "#microsoft.graph.educationPowerPointResource" + DisplayName = "state diagram.pptx" + FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + DisplayName = "Report.docx" + FileUrl = "https://graph.microsoft.com/beta/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassMemberByRef.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassMemberByRef.md index 093355d11d5..807fba8d62d 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassMemberByRef.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassMemberByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/education/users/13015" +} +New-MgEducationClassMemberByRef -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassTeacherByRef.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassTeacherByRef.md index 093355d11d5..b4c0cdbf514 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationClassTeacherByRef.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationClassTeacherByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassTeacherByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/education/users/14011" +} +New-MgEducationClassTeacherByRef -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassTeacherByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationMeRubric.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationMeRubric.md index 093355d11d5..e8b652d0380 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationMeRubric.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationMeRubric.md @@ -1,18 +1,157 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Example Credit Rubric" + Description = @{ + Content = "This is an example of a credit rubric (no points)" + ContentType = "text" + } + Levels = @( + @{ + DisplayName = "Good" + Description = @{ + Content = "" + ContentType = "text" + } + } + @{ + DisplayName = "Poor" + Description = @{ + Content = "" + ContentType = "text" + } + } + ) + Qualities = @( + @{ + Description = @{ + Content = "Argument" + ContentType = "text" + } + Criteria = @( + @{ + Description = @{ + Content = "The essay's argument is persuasive." + ContentType = "text" + } + } + @{ + Description = @{ + Content = "The essay's argument does not make sense." + ContentType = "text" + } + } + ) + } + @{ + Description = @{ + Content = "Spelling and Grammar" + ContentType = "text" + } + Criteria = @( + @{ + Description = @{ + Content = "The essay uses proper spelling and grammar with few or no errors." + ContentType = "text" + } + } + @{ + Description = @{ + Content = "The essay has numerous errors in spelling and/or grammar." + ContentType = "text" + } + } + ) + } + ) +} +New-MgEducationMeRubric -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Example Points Rubric" + Description = @{ + Content = "This is an example of a rubric with points" + ContentType = "text" + } + Levels = @( + @{ + DisplayName = "Good" + Description = @{ + Content = "" + ContentType = "text" + } + Grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" + MaxPoints = + } + } + @{ + DisplayName = "Poor" + Description = @{ + Content = "" + ContentType = "text" + } + Grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" + MaxPoints = + } + } + ) + Qualities = @( + @{ + Description = @{ + Content = "Argument" + ContentType = "text" + } + Criteria = @( + @{ + Description = @{ + Content = "The essay's argument is persuasive." + ContentType = "text" + } + } + @{ + Description = @{ + Content = "The essay's argument does not make sense." + ContentType = "text" + } + } + ) + Weight = 50.0 + } + @{ + Description = @{ + Content = "Spelling and Grammar" + ContentType = "text" + } + Criteria = @( + @{ + Description = @{ + Content = "The essay uses proper spelling and grammar with few or no errors." + ContentType = "text" + } + } + @{ + Description = @{ + Content = "The essay has numerous errors in spelling and/or grammar." + ContentType = "text" + } + } + ) + Weight = 50.0 + } + ) + Grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" + } +} +New-MgEducationMeRubric -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationSchool.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationSchool.md index 093355d11d5..2f7333d397a 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationSchool.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationSchool.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Fabrikam High School" + Description = "Magnate school for the arts. Los Angeles School District" + ExternalSource = "String" + PrincipalEmail = "AmyR@fabrikam.com" + PrincipalName = "Amy Roebuck" + ExternalPrincipalId = "14007" + HighestGrade = "12" + LowestGrade = "9" + SchoolNumber = "10002" + Address = @{ + City = "Los Angeles" + CountryOrRegion = "United States" + PostalCode = "98055" + State = "CA" + Street = "12345 Main St." + } + ExternalId = "10002" + Phone = "+1 (253) 555-0102" +} +New-MgEducationSchool -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationSchoolClassByRef.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationSchoolClassByRef.md index 093355d11d5..33ca265abc0 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationSchoolClassByRef.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationSchoolClassByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationSchoolClassByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/education/classes/11006" +} +New-MgEducationSchoolClassByRef -EducationSchoolId $educationSchoolId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationSchoolClassByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationSchoolUserByRef.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationSchoolUserByRef.md index 093355d11d5..41d0f7ab0bc 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationSchoolUserByRef.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationSchoolUserByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationSchoolUserByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/education/users/14008" +} +New-MgEducationSchoolUserByRef -EducationSchoolId $educationSchoolId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationSchoolUserByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/New-MgEducationUser.md b/src/Education/Education/examples/v1.0-beta/New-MgEducationUser.md index 093355d11d5..e61dc678bc9 100644 --- a/src/Education/Education/examples/v1.0-beta/New-MgEducationUser.md +++ b/src/Education/Education/examples/v1.0-beta/New-MgEducationUser.md @@ -1,18 +1,37 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Dion Matheson" + GivenName = "Dion" + MiddleName = $null + Surname = "Matheson" + Mail = "DionM@contoso.com" + MobilePhone = "+1 (253) 555-0101" + CreatedBy = @{ + User = @{ + DisplayName = "Susana Rocha" + Id = "14012" + } + } + ExternalSource = "sis" + MailingAddress = @{ + City = "Los Angeles" + CountryOrRegion = "United States" + PostalCode = "98055" + State = "CA" + Street = "12345 Main St." + } + PrimaryRole = "student" + ResidenceAddress = @{ + City = "Los Angeles" + CountryOrRegion = "United States" + PostalCode = "98055" + State = "CA" + Street = "12345 Main St." + } +} +New-MgEducationUser -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Publish-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0-beta/Publish-MgEducationClassAssignment.md index 093355d11d5..60310cb3a0c 100644 --- a/src/Education/Education/examples/v1.0-beta/Publish-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0-beta/Publish-MgEducationClassAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Publish-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClass.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClass.md index 093355d11d5..b96838cab33 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClass.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClass.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClass -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignment.md index 093355d11d5..c8b2fb842d2 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentCategory.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentCategory.md index 093355d11d5..c41b8ef9ccc 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentCategory.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentCategory.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentResource.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentResource.md index 093355d11d5..41e2d166aeb 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentResource.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentResource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentRubricByRef.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentRubricByRef.md index 093355d11d5..d3f39ff4857 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentRubricByRef.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentRubricByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentRubricByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentRubricByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentSubmissionOutcome.md index 093355d11d5..b6ff70e8c03 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentSubmissionOutcome Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentSubmissionResource.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentSubmissionResource.md index 093355d11d5..df2337a43da 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationClassAssignmentSubmissionResource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationMeRubric.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationMeRubric.md index 093355d11d5..24dade8fdb0 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationMeRubric.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationMeRubric.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationMeRubric -EducationRubricId $educationRubricId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationSchool.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationSchool.md index 093355d11d5..2f094bc798d 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationSchool.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationSchool.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationSchool -EducationSchoolId $educationSchoolId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationSynchronizationProfile.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationSynchronizationProfile.md index 093355d11d5..438d8b08c39 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationSynchronizationProfile.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationSynchronizationProfile.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationSynchronizationProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationSynchronizationProfile -EducationSynchronizationProfileId $educationSynchronizationProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationSynchronizationProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationUser.md b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationUser.md index 093355d11d5..4fa932e5fc0 100644 --- a/src/Education/Education/examples/v1.0-beta/Remove-MgEducationUser.md +++ b/src/Education/Education/examples/v1.0-beta/Remove-MgEducationUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationUser -EducationUserId $educationUserId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Reset-MgEducationSynchronizationProfile.md b/src/Education/Education/examples/v1.0-beta/Reset-MgEducationSynchronizationProfile.md index 093355d11d5..bc5e4eaaa12 100644 --- a/src/Education/Education/examples/v1.0-beta/Reset-MgEducationSynchronizationProfile.md +++ b/src/Education/Education/examples/v1.0-beta/Reset-MgEducationSynchronizationProfile.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgEducationSynchronizationProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Reset-MgEducationSynchronizationProfile -EducationSynchronizationProfileId $educationSynchronizationProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgEducationSynchronizationProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Resume-MgEducationSynchronizationProfile.md b/src/Education/Education/examples/v1.0-beta/Resume-MgEducationSynchronizationProfile.md index 093355d11d5..98fffd92d21 100644 --- a/src/Education/Education/examples/v1.0-beta/Resume-MgEducationSynchronizationProfile.md +++ b/src/Education/Education/examples/v1.0-beta/Resume-MgEducationSynchronizationProfile.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Resume-MgEducationSynchronizationProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Resume-MgEducationSynchronizationProfile -EducationSynchronizationProfileId $educationSynchronizationProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Resume-MgEducationSynchronizationProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Set-MgEducationClassAssignmentRubricByRef.md b/src/Education/Education/examples/v1.0-beta/Set-MgEducationClassAssignmentRubricByRef.md index 093355d11d5..cbf18b98d34 100644 --- a/src/Education/Education/examples/v1.0-beta/Set-MgEducationClassAssignmentRubricByRef.md +++ b/src/Education/Education/examples/v1.0-beta/Set-MgEducationClassAssignmentRubricByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgEducationClassAssignmentRubricByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/{id}" +} +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgEducationClassAssignmentRubricByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Start-MgEducationSynchronizationProfile.md b/src/Education/Education/examples/v1.0-beta/Start-MgEducationSynchronizationProfile.md index 093355d11d5..2f175d67f7e 100644 --- a/src/Education/Education/examples/v1.0-beta/Start-MgEducationSynchronizationProfile.md +++ b/src/Education/Education/examples/v1.0-beta/Start-MgEducationSynchronizationProfile.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Start-MgEducationSynchronizationProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Start-MgEducationSynchronizationProfile -EducationSynchronizationProfileId $educationSynchronizationProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Start-MgEducationSynchronizationProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Submit-MgEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Submit-MgEducationClassAssignmentSubmission.md index 093355d11d5..2e1a632398a 100644 --- a/src/Education/Education/examples/v1.0-beta/Submit-MgEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Submit-MgEducationClassAssignmentSubmission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Submit-MgEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Submit-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Submit-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Suspend-MgEducationSynchronizationProfile.md b/src/Education/Education/examples/v1.0-beta/Suspend-MgEducationSynchronizationProfile.md index 093355d11d5..f846e7a185b 100644 --- a/src/Education/Education/examples/v1.0-beta/Suspend-MgEducationSynchronizationProfile.md +++ b/src/Education/Education/examples/v1.0-beta/Suspend-MgEducationSynchronizationProfile.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Suspend-MgEducationSynchronizationProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Suspend-MgEducationSynchronizationProfile -EducationSynchronizationProfileId $educationSynchronizationProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Suspend-MgEducationSynchronizationProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClass.md b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClass.md index 093355d11d5..7defc755f60 100644 --- a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClass.md +++ b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClass.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + Description = "History - World History 1" + DisplayName = "World History Level 1" +} +Update-MgEducationClass -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignment.md index 093355d11d5..e56659a85ed 100644 --- a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignment.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Reading and review test 09.03 #5" + Instructions = @{ + ContentType = "text" + Content = "Read chapter 5 and write your review" + } + DueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") + AddedStudentAction = "none" + AddToCalendarAction = "studentsAndPublisher" +} +Update-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentDefault.md b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentDefault.md index 093355d11d5..ff1e846890a 100644 --- a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentDefault.md +++ b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentDefault.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClassAssignmentDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + AddedStudentAction = "assignIfOpen" + AddToCalendarAction = "studentsAndTeamOwners" + NotificationChannelUrl = "https://graph.microsoft.com/beta/teams('id')/channels('id')" +} +Update-MgEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClassAssignmentDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentSetting.md b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentSetting.md index 093355d11d5..7f42606bd35 100644 --- a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentSetting.md +++ b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentSetting.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClassAssignmentSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + SubmissionAnimationDisabled = $true +} +Update-MgEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClassAssignmentSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentSubmissionOutcome.md index 093355d11d5..2b0be5c9bcd 100644 --- a/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/Education/examples/v1.0-beta/Update-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" +} +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + RubricQualityFeedback = @( + ) + RubricQualitySelectedLevels = @( + ) +} +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationPointsOutcome" + Points = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" + Points = + } +} +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Update-MgEducationMeRubric.md b/src/Education/Education/examples/v1.0-beta/Update-MgEducationMeRubric.md index 093355d11d5..8142e8dc7bf 100644 --- a/src/Education/Education/examples/v1.0-beta/Update-MgEducationMeRubric.md +++ b/src/Education/Education/examples/v1.0-beta/Update-MgEducationMeRubric.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Example Credit Rubric after display name patch" +} +Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Update-MgEducationSchool.md b/src/Education/Education/examples/v1.0-beta/Update-MgEducationSchool.md index 093355d11d5..47dfcc53182 100644 --- a/src/Education/Education/examples/v1.0-beta/Update-MgEducationSchool.md +++ b/src/Education/Education/examples/v1.0-beta/Update-MgEducationSchool.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Fabrikam Arts High School" + Description = "Magnate school for the arts. Los Angeles School District" +} +Update-MgEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0-beta/Update-MgEducationUser.md b/src/Education/Education/examples/v1.0-beta/Update-MgEducationUser.md index 093355d11d5..b89f6cd8f90 100644 --- a/src/Education/Education/examples/v1.0-beta/Update-MgEducationUser.md +++ b/src/Education/Education/examples/v1.0-beta/Update-MgEducationUser.md @@ -1,18 +1,51 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + RelatedContacts = @( + @{ + DisplayName = "Father Time" + EmailAddress = "father@time.com" + MobilePhone = "4251231234" + Relationship = "guardian" + AccessConsent = $true + } + @{ + DisplayName = "Mother Nature" + EmailAddress = "mother@nature.co.uk" + MobilePhone = "3251231234" + Relationship = "parent" + AccessConsent = $true + } + ) +} +Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Rogelio Cazares" + GivenName = "Rogelio" + MiddleName = "Fernando" + Surname = "Cazares" +} +Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgEducationUser Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Rogelio Cazares" + GivenName = "Rogelio" + MiddleName = "Fernando" + Surname = "Cazares" +} +Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Get-MgDrive.md b/src/Files/Files/examples/v1.0-beta/Get-MgDrive.md index 093355d11d5..cdf71c3bf1a 100644 --- a/src/Files/Files/examples/v1.0-beta/Get-MgDrive.md +++ b/src/Files/Files/examples/v1.0-beta/Get-MgDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgDrive -DriveId $driveId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Get-MgDriveItemAnalytic.md b/src/Files/Files/examples/v1.0-beta/Get-MgDriveItemAnalytic.md index 093355d11d5..b51ac38f2fa 100644 --- a/src/Files/Files/examples/v1.0-beta/Get-MgDriveItemAnalytic.md +++ b/src/Files/Files/examples/v1.0-beta/Get-MgDriveItemAnalytic.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDriveItemAnalytic Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgDriveItemAnalytic -DriveId $driveId -DriveItemId $driveItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDriveItemAnalytic Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Get-MgDriveItemChild.md b/src/Files/Files/examples/v1.0-beta/Get-MgDriveItemChild.md index 093355d11d5..a5cfd4c7166 100644 --- a/src/Files/Files/examples/v1.0-beta/Get-MgDriveItemChild.md +++ b/src/Files/Files/examples/v1.0-beta/Get-MgDriveItemChild.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDriveItemChild Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgDriveItemChild -DriveId $driveId -DriveItemId $driveItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDriveItemChild Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Get-MgGroupDefaultDrive.md b/src/Files/Files/examples/v1.0-beta/Get-MgGroupDefaultDrive.md index 093355d11d5..955c51214ff 100644 --- a/src/Files/Files/examples/v1.0-beta/Get-MgGroupDefaultDrive.md +++ b/src/Files/Files/examples/v1.0-beta/Get-MgGroupDefaultDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupDefaultDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgGroupDefaultDrive -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupDefaultDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Get-MgGroupDrive.md b/src/Files/Files/examples/v1.0-beta/Get-MgGroupDrive.md index 093355d11d5..a5c93851d46 100644 --- a/src/Files/Files/examples/v1.0-beta/Get-MgGroupDrive.md +++ b/src/Files/Files/examples/v1.0-beta/Get-MgGroupDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgGroupDrive -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Get-MgShareDriveItem.md b/src/Files/Files/examples/v1.0-beta/Get-MgShareDriveItem.md index 093355d11d5..2ed20e7b12d 100644 --- a/src/Files/Files/examples/v1.0-beta/Get-MgShareDriveItem.md +++ b/src/Files/Files/examples/v1.0-beta/Get-MgShareDriveItem.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgShareDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgShareDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgShareDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgShareDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Get-MgShareSharedDriveItemSharedDriveItem.md b/src/Files/Files/examples/v1.0-beta/Get-MgShareSharedDriveItemSharedDriveItem.md index 093355d11d5..bf2eb45757a 100644 --- a/src/Files/Files/examples/v1.0-beta/Get-MgShareSharedDriveItemSharedDriveItem.md +++ b/src/Files/Files/examples/v1.0-beta/Get-MgShareSharedDriveItemSharedDriveItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Get-MgUserDefaultDrive.md b/src/Files/Files/examples/v1.0-beta/Get-MgUserDefaultDrive.md index 093355d11d5..8a536b750af 100644 --- a/src/Files/Files/examples/v1.0-beta/Get-MgUserDefaultDrive.md +++ b/src/Files/Files/examples/v1.0-beta/Get-MgUserDefaultDrive.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDefaultDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgUserDefaultDrive -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserDefaultDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserDefaultDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +# A UPN can also be used as -UserId. +Get-MgUserDefaultDrive -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDefaultDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Get-MgUserDrive.md b/src/Files/Files/examples/v1.0-beta/Get-MgUserDrive.md index 093355d11d5..4ee20f6d7d8 100644 --- a/src/Files/Files/examples/v1.0-beta/Get-MgUserDrive.md +++ b/src/Files/Files/examples/v1.0-beta/Get-MgUserDrive.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +# A UPN can also be used as -UserId. +Get-MgUserDrive -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgUserDrive -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Grant-MgSharePermission.md b/src/Files/Files/examples/v1.0-beta/Grant-MgSharePermission.md index 093355d11d5..702c8dbc620 100644 --- a/src/Files/Files/examples/v1.0-beta/Grant-MgSharePermission.md +++ b/src/Files/Files/examples/v1.0-beta/Grant-MgSharePermission.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Grant-MgSharePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Grant-MgSharePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Invoke-MgCheckinDriveItem.md b/src/Files/Files/examples/v1.0-beta/Invoke-MgCheckinDriveItem.md index 093355d11d5..b1f06e3a43c 100644 --- a/src/Files/Files/examples/v1.0-beta/Invoke-MgCheckinDriveItem.md +++ b/src/Files/Files/examples/v1.0-beta/Invoke-MgCheckinDriveItem.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgCheckinDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgCheckinDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Invoke-MgCheckoutDriveItem.md b/src/Files/Files/examples/v1.0-beta/Invoke-MgCheckoutDriveItem.md index 093355d11d5..1369b601643 100644 --- a/src/Files/Files/examples/v1.0-beta/Invoke-MgCheckoutDriveItem.md +++ b/src/Files/Files/examples/v1.0-beta/Invoke-MgCheckoutDriveItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgCheckoutDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgCheckoutDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0-beta/Restore-MgDriveItemVersion.md b/src/Files/Files/examples/v1.0-beta/Restore-MgDriveItemVersion.md index 093355d11d5..d184a260a9e 100644 --- a/src/Files/Files/examples/v1.0-beta/Restore-MgDriveItemVersion.md +++ b/src/Files/Files/examples/v1.0-beta/Restore-MgDriveItemVersion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgDriveItemVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Restore-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgDriveItemVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupFavorite.md b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupFavorite.md index 093355d11d5..d0fba8517ea 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupFavorite.md +++ b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupFavorite.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgGroupFavorite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Add-MgGroupFavorite -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgGroupFavorite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupAcceptedSender.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupAcceptedSender.md index 093355d11d5..99b4f1ef2e8 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupAcceptedSender.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupAcceptedSender.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupAcceptedSender Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupAcceptedSender -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupAcceptedSender Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupConversation.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupConversation.md index 093355d11d5..a37e7fe7fc6 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupConversation.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupConversation.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupConversation -GroupId $groupId -ConversationId $conversationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupConversation -GroupId $groupId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgGroupConversation Cmdlet +```powershell +Import-Module Microsoft.Graph.Groups +Get-MgGroupConversation -GroupId $groupId -ConversationId $conversationId +``` +This example shows how to use the Get-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupConversationThread.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupConversationThread.md index 093355d11d5..960b3d9f5f9 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupConversationThread.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupConversationThread.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupConversationThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupConversationThread -GroupId $groupId -ConversationId $conversationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupConversationThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupDelta.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupDelta.md index 093355d11d5..dff3a484153 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupDelta.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupDelta.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupDelta -Property "displayName,description,mailNickname" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupEndpoint.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupEndpoint.md index 093355d11d5..1db419ff8e1 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupEndpoint.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupEndpoint.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupEndpoint Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupEndpoint -GroupId $groupId -EndpointId $endpointId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupEndpoint Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupEndpoint Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupEndpoint -GroupId $groupId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupEndpoint Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupLifecyclePolicy.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupLifecyclePolicy.md index 093355d11d5..7f106a34079 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupLifecyclePolicy.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupLifecyclePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupLifecyclePolicy ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupLifecyclePolicyByGroup.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupLifecyclePolicyByGroup.md index 093355d11d5..ef79c66389f 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupLifecyclePolicyByGroup.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupLifecyclePolicyByGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupLifecyclePolicyByGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupLifecyclePolicyByGroup -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupLifecyclePolicyByGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberOf.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberOf.md index 093355d11d5..43e6f5c11ee 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberOf.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupMemberOf -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrant.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrant.md index 093355d11d5..7a758e041a1 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrant.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrant.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupPermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupPermissionGrant -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupPermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPhoto.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPhoto.md index 093355d11d5..2c1dee45862 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPhoto.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPhoto.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupPhoto Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupPhoto -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupPhoto Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupRejectedSender.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupRejectedSender.md index 093355d11d5..aa9baa519e0 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupRejectedSender.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupRejectedSender.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupRejectedSender Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupRejectedSender -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupRejectedSender Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThread.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThread.md index 093355d11d5..d5e4f0650b4 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThread.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThread.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgGroupThread Cmdlet +```powershell +Import-Module Microsoft.Graph.Groups +Get-MgGroupThread -GroupId $groupId +``` +This example shows how to use the Get-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPost.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPost.md index 093355d11d5..b023fd6622c 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPost.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPost.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupThreadPost Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupThreadPost Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPostAttachment.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPostAttachment.md index 093355d11d5..ac521468139 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPostAttachment.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPostAttachment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupThreadPostAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThreadPostAttachment -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupThreadPostAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPostExtension.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPostExtension.md index 093355d11d5..ad651224283 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPostExtension.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupThreadPostExtension.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupThreadPostExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupThreadPostExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupTransitiveMember.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupTransitiveMember.md index 093355d11d5..b7ca5b23cdd 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupTransitiveMember.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupTransitiveMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupTransitiveMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupTransitiveMember -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupTransitiveMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupTransitiveMemberOf.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupTransitiveMemberOf.md index 093355d11d5..a97b23a9555 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupTransitiveMemberOf.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupTransitiveMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupTransitiveMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupTransitiveMemberOf -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupTransitiveMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupThreadPost.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupThreadPost.md index 093355d11d5..0b786482c0b 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupThreadPost.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupThreadPost.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgForwardGroupThreadPost Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +Invoke-MgForwardGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgForwardGroupThreadPost Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgGraphGroup.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgGraphGroup.md index 093355d11d5..7cd55b752b4 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgGraphGroup.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgGraphGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgGraphGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Invoke-MgGraphGroup -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgGraphGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgRenewGroup.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgRenewGroup.md index 093355d11d5..0172a929034 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgRenewGroup.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgRenewGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRenewGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Invoke-MgRenewGroup -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRenewGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgRenewGroupLifecyclePolicy.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgRenewGroupLifecyclePolicy.md index 093355d11d5..0db570d68c3 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgRenewGroupLifecyclePolicy.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgRenewGroupLifecyclePolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRenewGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + GroupId = "ffffffff-ffff-ffff-ffff-ffffffffffff" +} +Invoke-MgRenewGroupLifecyclePolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRenewGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThread.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThread.md index 093355d11d5..2e68a25341d 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThread.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThread.md @@ -1,18 +1,87 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReplyGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Post = @{ + Body = @{ + ContentType = "" + Content = "content-value" + } + } +} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgReplyGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgReplyGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Post = @{ + Body = @{ + ContentType = "text" + Content = "Which quarter does that file cover? See my attachment." + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "Another file as attachment" + ContentBytes = "VGhpcyBpcyBhIGZpbGUgdG8gYmUgYXR0YWNoZWQu" + } + ) + } +} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReplyGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Invoke-MgReplyGroupThread Cmdlet +```powershell +Import-Module Microsoft.Graph.Groups +$params = @{ + Post = @{ + Body = @{ + ContentType = "text" + Content = "I attached an event." + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.itemAttachment" + Name = "Holiday event" + Item = @{ + "@odata.type" = "microsoft.graph.event" + Subject = "Discuss gifts for children" + } + } + ) + } +} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Invoke-MgReplyGroupThread Cmdlet +```powershell +Import-Module Microsoft.Graph.Groups +$params = @{ + Post = @{ + Body = @{ + ContentType = "text" + Content = "I attached a reference to a file on OneDrive." + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.referenceAttachment" + Name = "Personal pictures" + SourceUrl = "https://contoso.com/personal/mario_contoso_net/Documents/Pics" + ProviderType = "oneDriveConsumer" + Permission = "Edit" + IsFolder = "True" + } + ) + } +} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThreadPost.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThreadPost.md index 093355d11d5..d1ad6998f1a 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThreadPost.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThreadPost.md @@ -1,18 +1,87 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReplyGroupThreadPost Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Post = @{ + Body = @{ + ContentType = "html" + Content = "
When and where?
" + } + Extensions = @( + @{ + "@odata.type" = "microsoft.graph.openTypeExtension" + ExtensionName = "Com.Contoso.HR" + CompanyName = "Contoso" + ExpirationDate = "2015-07-03T13:04:00.000Z" + TopPicks = @( + "Employees only" + "Add spouse or guest" + "Add family" + ) + } + ) + } +} +Invoke-MgReplyGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgReplyGroupThreadPost Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgReplyGroupThreadPost Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Post = @{ + Body = @{ + ContentType = "" + Content = "content-value" + } + ReceivedDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + HasAttachments = $true + From = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + Sender = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ConversationThreadId = "conversationThreadId-value" + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) + ConversationId = "conversationId-value" + CreatedDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + LastModifiedDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + ChangeKey = "changeKey-value" + Categories = @( + "categories-value" + ) + Id = "id-value" + InReplyTo = @{ + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + LastModifiedDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + Name = "name-value" + ContentType = "contentType-value" + Size = 99 + IsInline = $true + Id = "id-value" + } + ) + } +} +Invoke-MgReplyGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReplyGroupThreadPost Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSubscribeGroupByMail.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSubscribeGroupByMail.md index 093355d11d5..f314f5fa27f 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSubscribeGroupByMail.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSubscribeGroupByMail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSubscribeGroupByMail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Invoke-MgSubscribeGroupByMail -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSubscribeGroupByMail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupAcceptedSenderByRef.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupAcceptedSenderByRef.md index 093355d11d5..9c24b40ae1b 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupAcceptedSenderByRef.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupAcceptedSenderByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupAcceptedSenderByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/users/alexd@contoso.com" +} +New-MgGroupAcceptedSenderByRef -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupAcceptedSenderByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversation.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversation.md index 093355d11d5..4148398d754 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversation.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversation.md @@ -1,18 +1,65 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Topic = "New head count" + Threads = @( + @{ + Posts = @( + @{ + Body = @{ + ContentType = "html" + Content = "The confirmation will come by the end of the week." + } + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "Adele Vance" + Address = "AdeleV@contoso.onmicrosoft.com" + } + } + ) + } + ) + } + ) +} +New-MgGroupConversation -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Topic = "Does anyone have a second?" + Threads = @( + @{ + Posts = @( + @{ + Body = @{ + ContentType = "HTML" + Content = "This is urgent!" + } + Extensions = @( + @{ + "@odata.type" = "microsoft.graph.openTypeExtension" + ExtensionName = "Com.Contoso.Benefits" + CompanyName = "Contoso" + ExpirationDate = "2016-08-03T11:00:00.000Z" + TopPicks = @( + "Employees only" + "Add spouse or guest" + "Add family" + ) + } + ) + } + ) + } + ) +} +New-MgGroupConversation -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThread.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThread.md index 093355d11d5..aa13718af43 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThread.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThread.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupConversationThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Topic = "Take your wellness days and rest" + Posts = @( + @{ + Body = @{ + ContentType = "html" + Content = "Waiting for the summer holidays." + } + } + ) +} +New-MgGroupConversationThread -GroupId $groupId -ConversationId $conversationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupConversationThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupLifecyclePolicy.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupLifecyclePolicy.md index 093355d11d5..c8c8d6981bc 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupLifecyclePolicy.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupLifecyclePolicy.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + GroupLifetimeInDays = 100 + ManagedGroupTypes = "Selected" + AlternateNotificationEmails = "admin@contoso.com" +} +New-MgGroupLifecyclePolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupMemberByRef.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupMemberByRef.md index 093355d11d5..f4bb792860f 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupMemberByRef.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupMemberByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/directoryObjects/{id}" +} +New-MgGroupMemberByRef -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupRejectedSenderByRef.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupRejectedSenderByRef.md index 093355d11d5..43f6a879a23 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupRejectedSenderByRef.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupRejectedSenderByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupRejectedSenderByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/users/alexd@contoso.com" +} +New-MgGroupRejectedSenderByRef -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupRejectedSenderByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupSetting.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupSetting.md index 093355d11d5..db6f46e0df6 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupSetting.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupSetting.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + TemplateId = "08d542b9-071f-4e16-94b0-74abb372e3d9" + Values = @( + @{ + Name = "AllowToAddGuests" + Value = "false" + } + ) +} +New-MgGroupSetting -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupThread.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupThread.md index 093355d11d5..9abf0569b6f 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupThread.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupThread.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Topic = "New Conversation Thread Topic" + Posts = @( + @{ + Body = @{ + ContentType = "html" + Content = "this is body content" + } + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "Alex Darrow" + Address = "alexd@contoso.com" + } + } + ) + } + ) +} +New-MgGroupThread -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupConversation.md b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupConversation.md index 093355d11d5..8cf3f2c1726 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupConversation.md +++ b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupConversation.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupConversation -GroupId $groupId -ConversationId $conversationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupConversation -GroupId $groupId -ConversationId $conversationId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupFavorite.md b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupFavorite.md index 093355d11d5..7c030b1c197 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupFavorite.md +++ b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupFavorite.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupFavorite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupFavorite -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupFavorite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupLifecyclePolicy.md b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupLifecyclePolicy.md index 093355d11d5..e35851c5eb5 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupLifecyclePolicy.md +++ b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupLifecyclePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupMemberByRef.md b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupMemberByRef.md index 093355d11d5..cdc572481d3 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupMemberByRef.md +++ b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupMemberByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupMemberByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupOwnerByRef.md b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupOwnerByRef.md index 093355d11d5..ae97b0608e7 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupOwnerByRef.md +++ b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupOwnerByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupOwnerByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupOwnerByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupOwnerByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupThread.md b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupThread.md index 093355d11d5..3f81cb5b28e 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupThread.md +++ b/src/Groups/Groups/examples/v1.0-beta/Remove-MgGroupThread.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Reset-MgGroupUnseenCount.md b/src/Groups/Groups/examples/v1.0-beta/Reset-MgGroupUnseenCount.md index 093355d11d5..2e75ffdf2f5 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Reset-MgGroupUnseenCount.md +++ b/src/Groups/Groups/examples/v1.0-beta/Reset-MgGroupUnseenCount.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgGroupUnseenCount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Reset-MgGroupUnseenCount -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgGroupUnseenCount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Set-MgGroupLicense.md b/src/Groups/Groups/examples/v1.0-beta/Set-MgGroupLicense.md index 093355d11d5..a6b7f1f2ac7 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Set-MgGroupLicense.md +++ b/src/Groups/Groups/examples/v1.0-beta/Set-MgGroupLicense.md @@ -1,18 +1,41 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgGroupLicense Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + AddLicenses = @( + @{ + DisabledPlans = @( + "113feb6c-3fe4-4440-bddc-54d774bf0318" + "14ab5db5-e6c4-4b20-b4bc-13e36fd2227f" + ) + SkuId = "b05e124f-c7cc-45a0-a6aa-8cf78c946968" + } + @{ + DisabledPlans = @( + "a413a9ff-720c-4822-98ef-2f37c2a21f4c" + ) + SkuId = "c7df2760-2c81-4ef7-b578-5b5392b571df" + } + ) + RemoveLicenses = @( + ) +} +Set-MgGroupLicense -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Set-MgGroupLicense Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Set-MgGroupLicense Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + AddLicenses = @( + ) + RemoveLicenses = @( + "c7df2760-2c81-4ef7-b578-5b5392b571df" + "b05e124f-c7cc-45a0-a6aa-8cf78c946968" + ) +} +Set-MgGroupLicense -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Set-MgGroupLicense Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupDynamicMembership.md b/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupDynamicMembership.md index 093355d11d5..be6740516b2 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupDynamicMembership.md +++ b/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupDynamicMembership.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgGroupDynamicMembership Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + MemberId = "319b41e8-d9e4-42f8-bdc9-741113f48b33" +} +Test-MgGroupDynamicMembership -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgGroupDynamicMembership Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupDynamicMembershipRule.md b/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupDynamicMembershipRule.md index 093355d11d5..309668d854e 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupDynamicMembershipRule.md +++ b/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupDynamicMembershipRule.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgGroupDynamicMembershipRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + MemberId = "319b41e8-d9e4-42f8-bdc9-741113f48b33" + MembershipRule = "(user.displayName -startsWith "EndTestUser")" +} +Test-MgGroupDynamicMembershipRule -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgGroupDynamicMembershipRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupProperty.md b/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupProperty.md index 093355d11d5..1ba38d9f927 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupProperty.md +++ b/src/Groups/Groups/examples/v1.0-beta/Test-MgGroupProperty.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgGroupProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgGroupProperty -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgGroupProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupLifecyclePolicy.md b/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupLifecyclePolicy.md index 093355d11d5..5c1306ba208 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupLifecyclePolicy.md +++ b/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupLifecyclePolicy.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + GroupLifetimeInDays = 180 + ManagedGroupTypes = "Selected" + AlternateNotificationEmails = "admin@contoso.com" +} +Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupThread.md b/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupThread.md index 093355d11d5..e2b49b2c237 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupThread.md +++ b/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupThread.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + OriginalStartTimeZone = "originalStartTimeZone-value" + OriginalEndTimeZone = "originalEndTimeZone-value" + Uid = "iCalUId-value" + ReminderMinutesBeforeStart = + IsReminderOn = $true +} +Update-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupThreadPostExtension.md b/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupThreadPostExtension.md index 093355d11d5..46ab207995e 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupThreadPostExtension.md +++ b/src/Groups/Groups/examples/v1.0-beta/Update-MgGroupThreadPostExtension.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgGroupThreadPostExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + "@odata.type" = "#microsoft.outlookServices.openTypeExtension" + ExtensionName = "Com.Contoso.Estimate" + CompanyName = "Contoso" + ExpirationDate = "2016-07-30T11:00:00.000Z" + DealValue = + TopPicks = @( + "Employees only" + "Add spouse or guest" + "Add family" + ) +} +Update-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgGroupThreadPostExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDomain.md index 093355d11d5..4790401e679 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDomain.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgDomain Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Confirm-MgDomain -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgDomain Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgAdministrativeUnitDelta.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgAdministrativeUnitDelta.md index 093355d11d5..99a1f235cc6 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgAdministrativeUnitDelta.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgAdministrativeUnitDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAdministrativeUnitDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgAdministrativeUnitDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgAdministrativeUnitDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgAdministrativeUnitScopedRoleMember.md index 093355d11d5..9e55a37a371 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgAdministrativeUnitScopedRoleMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAdministrativeUnitScopedRoleMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAdministrativeUnitScopedRoleMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAdministrativeUnitScopedRoleMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAdministrativeUnitScopedRoleMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactDelta.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactDelta.md index 093355d11d5..db93604d695 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactDelta.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContactDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContactDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgContactDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactDirectReport.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactDirectReport.md index 093355d11d5..a67e12d3974 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactDirectReport.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactDirectReport.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContactDirectReport Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContactDirectReport -OrgContactId $orgContactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgContactDirectReport Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactManager.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactManager.md index 093355d11d5..110f1c146c1 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactManager.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactManager.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContactManager Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContactManager -OrgContactId $orgContactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgContactManager Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberOf.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberOf.md index 093355d11d5..48d8ebf9a7e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberOf.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContactMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContactMemberOf -OrgContactId $orgContactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgContactMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContract.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContract.md index 093355d11d5..c2d402b792b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContract.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContract.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContract Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContract -ContractId $contractId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgContract Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgContract Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContract ``` - -{{ Add description here }} - +This example shows how to use the Get-MgContract Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDevice.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDevice.md index 093355d11d5..c41183e4c53 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDevice.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDevice.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -DeviceId $deviceId -Property "id,extensionAttributes" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDevice Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -Filter "extensionAttributes/extensionAttribute1 eq 'BYOD-Device'" -CountVariable CountVar -ConsistencyLevel eventual +``` +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgDevice Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice +``` +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgDevice Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -Property "id,extensionAttributes" +``` +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgDevice Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -Filter "startswith(displayName, 'a')" -CountVariable CountVar -Top 1 -Sort "displayName" -ConsistencyLevel eventual +``` +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberOf.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberOf.md index 093355d11d5..d83557ee5cb 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberOf.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceMemberOf -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceRegisteredOwner.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceRegisteredOwner.md index 093355d11d5..a1180f205f5 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceRegisteredOwner.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceRegisteredOwner.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceRegisteredOwner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceRegisteredOwner -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceRegisteredOwner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceRegisteredUser.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceRegisteredUser.md index 093355d11d5..c99c9ce8aac 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceRegisteredUser.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceRegisteredUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceRegisteredUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceRegisteredUser -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceRegisteredUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceTransitiveMemberOf.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceTransitiveMemberOf.md index 093355d11d5..4edc82d6207 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceTransitiveMemberOf.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceTransitiveMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceTransitiveMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceTransitiveMemberOf -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceTransitiveMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceUsageRights.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceUsageRights.md index 093355d11d5..9c5917f37a3 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceUsageRights.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceUsageRights.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceUsageRights Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceUsageRights -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDeviceUsageRights Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDeviceUsageRights Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceUsageRights -DeviceId $deviceId -Filter "state in ('active', 'suspended') and serviceIdentifier in ('ABCD')" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceUsageRights Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryAttributeSet.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryAttributeSet.md index 093355d11d5..63555c43b81 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryAttributeSet.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryAttributeSet.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryAttributeSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAttributeSet -AttributeSetId $attributeSetId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryAttributeSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryAttributeSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAttributeSet ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryAttributeSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDirectoryAttributeSet Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAttributeSet -Sort "id" +``` +This example shows how to use the Get-MgDirectoryAttributeSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgDirectoryAttributeSet Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAttributeSet -Top 10 +``` +This example shows how to use the Get-MgDirectoryAttributeSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryCustomSecurityAttributeDefinition.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryCustomSecurityAttributeDefinition.md index 093355d11d5..5ba504799aa 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryCustomSecurityAttributeDefinition.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryCustomSecurityAttributeDefinition.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryCustomSecurityAttributeDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryCustomSecurityAttributeDefinition -CustomSecurityAttributeDefinitionId $customSecurityAttributeDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryCustomSecurityAttributeDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryCustomSecurityAttributeDefinition -Filter "attributeSet eq 'Engineering' and status eq 'Available' and type eq 'String'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDirectoryCustomSecurityAttributeDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryCustomSecurityAttributeDefinition -Filter "name eq 'Project' and status eq 'Available'" +``` +This example shows how to use the Get-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgDirectoryCustomSecurityAttributeDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryCustomSecurityAttributeDefinition +``` +This example shows how to use the Get-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md index 093355d11d5..0637d81529a 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue -CustomSecurityAttributeDefinitionId $customSecurityAttributeDefinitionId -AllowedValueId $allowedValueId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue -CustomSecurityAttributeDefinitionId $customSecurityAttributeDefinitionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryFederationConfiguration.md index 093355d11d5..81a1bf6821d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryFederationConfiguration.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryFederationConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId -Filter "domains/any(x: x/id eq 'contoso.com')" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryFederationConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryFederationConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryFederationConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleDelta.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleDelta.md index 093355d11d5..66ae1efd076 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleDelta.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryRoleDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryRoleDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryRoleDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleScopedMember.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleScopedMember.md index 093355d11d5..989d203cba8 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleScopedMember.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleScopedMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryRoleScopedMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryRoleScopedMember -DirectoryRoleId $directoryRoleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryRoleScopedMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryRoleScopedMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryRoleScopedMember -DirectoryRoleId $directoryRoleId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryRoleScopedMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplate.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplate.md index 093355d11d5..e8e27e057f0 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplate.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplate.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryRoleTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryRoleTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryRoleTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryRoleTemplate ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryRoleTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectorySetting.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectorySetting.md index 093355d11d5..e5528dfb8eb 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectorySetting.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectorySetting.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectorySetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectorySetting -DirectorySettingId $directorySettingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectorySetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectorySetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectorySetting ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectorySetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectorySettingTemplate.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectorySettingTemplate.md index 093355d11d5..51026aaade1 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectorySettingTemplate.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectorySettingTemplate.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectorySettingTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectorySettingTemplate -DirectorySettingTemplateId $directorySettingTemplateId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectorySettingTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectorySettingTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectorySettingTemplate ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectorySettingTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainNameReference.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainNameReference.md index 093355d11d5..64754851c9d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainNameReference.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainNameReference.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDomainNameReference Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDomainNameReference -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDomainNameReference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainServiceConfigurationRecord.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainServiceConfigurationRecord.md index 093355d11d5..09290208592 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainServiceConfigurationRecord.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainServiceConfigurationRecord.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDomainServiceConfigurationRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDomainServiceConfigurationRecord -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDomainServiceConfigurationRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainVerificationDnsRecord.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainVerificationDnsRecord.md index 093355d11d5..8508acb879e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainVerificationDnsRecord.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDomainVerificationDnsRecord.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDomainVerificationDnsRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDomainVerificationDnsRecord -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDomainVerificationDnsRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganization.md index 093355d11d5..bf1a20a58cb 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganization.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganization -OrganizationId $organizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganization ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBranding.md index 093355d11d5..9d542a4611e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBranding.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationBranding Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBranding -OrganizationId $organizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganizationBranding Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganizationBranding Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBranding -OrganizationId $organizationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationBranding Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgOrganizationBranding Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgOrganizationBranding Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBrandingLocalization.md index 093355d11d5..0572ed0fe94 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBrandingLocalization.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBrandingLocalizationBannerLogo.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBrandingLocalizationBannerLogo.md index 093355d11d5..706ee8c5ba5 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBrandingLocalizationBannerLogo.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationBrandingLocalizationBannerLogo.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId +``` +This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSetting.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSetting.md index 093355d11d5..228fbc68470 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSetting.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationSetting -OrganizationId $organizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingItemInsight.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingItemInsight.md index 093355d11d5..a55c09e4adc 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingItemInsight.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingItemInsight.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationSettingItemInsight Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationSettingItemInsight -OrganizationId $organizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationSettingItemInsight Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingMicrosoftApplicationDataAccess.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingMicrosoftApplicationDataAccess.md index 093355d11d5..457f9914898 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingMicrosoftApplicationDataAccess.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingMicrosoftApplicationDataAccess.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationSettingMicrosoftApplicationDataAccess Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationSettingMicrosoftApplicationDataAccess -OrganizationId $organizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationSettingMicrosoftApplicationDataAccess Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingPersonInsight.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingPersonInsight.md index 093355d11d5..ef47aa66074 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingPersonInsight.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingPersonInsight.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationSettingPersonInsight Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationSettingPersonInsight -OrganizationId $organizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationSettingPersonInsight Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingProfileCardProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingProfileCardProperty.md index 093355d11d5..a8607aced49 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingProfileCardProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationSettingProfileCardProperty.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationSettingProfileCardProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationSettingProfileCardProperty -OrganizationId $organizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganizationSettingProfileCardProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganizationSettingProfileCardProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationSettingProfileCardProperty -OrganizationId $organizationId -ProfileCardPropertyId $profileCardPropertyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationSettingProfileCardProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgUserScopedRoleMemberOf.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgUserScopedRoleMemberOf.md index 093355d11d5..04d933e5e97 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgUserScopedRoleMemberOf.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgUserScopedRoleMemberOf.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserScopedRoleMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +# A UPN can also be used as -UserId. +Get-MgUserScopedRoleMemberOf -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserScopedRoleMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Initialize-MgOrganizationService.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Initialize-MgOrganizationService.md index 093355d11d5..d161421fb6b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Initialize-MgOrganizationService.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Initialize-MgOrganizationService.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Initialize-MgOrganizationService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + SkuId = "6fd2c87f-b296-42f0-b197-1e91e994b900" + ServicePlanId = "a23b959c-7ce8-4e57-9140-b90eb88a9e97" +} +Initialize-MgOrganizationService -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Initialize-MgOrganizationService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Invoke-MgForceDomainDelete.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Invoke-MgForceDomainDelete.md index 093355d11d5..aca2d80b927 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Invoke-MgForceDomainDelete.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Invoke-MgForceDomainDelete.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgForceDomainDelete Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + DisableUserAccounts = $true +} +Invoke-MgForceDomainDelete -DomainId $domainId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgForceDomainDelete Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Invoke-MgPromoteDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Invoke-MgPromoteDomain.md index 093355d11d5..9cdc42f5d79 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Invoke-MgPromoteDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Invoke-MgPromoteDomain.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgPromoteDomain Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Invoke-MgPromoteDomain -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgPromoteDomain Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnit.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnit.md index eda3b22fb18..98af2c7b0a1 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnit.md @@ -1,12 +1,14 @@ -### Example 1: {{ Add title here }} - +### Example 1: Using the New-MgAdministrativeUnit Cmdlet ```powershell -New-MgDirectoryAdministrativeUnit -DisplayName 'Test Unit' - -DeletedDateTime Id Description DisplayName Visibility ---------------- -- ----------- ----------- ---------- - 416f19a5-2e01-4d15-a78c-d9028fee1ebb Test Unit - +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + DisplayName = "Seattle District Technical Schools" + Description = "Seattle district technical schools administration" + MembershipType = "Dynamic" + MembershipRule = "(user.country -eq "United States")" + MembershipRuleProcessingState = "On" +} +New-MgAdministrativeUnit -BodyParameter $params ``` - -This example creates a new administrative unit. +This example shows how to use the New-MgAdministrativeUnit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnitMemberByRef.md index 093355d11d5..e1168025964 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnitMemberByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgAdministrativeUnitMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/groups/{id}" +} +New-MgAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgAdministrativeUnitMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnitScopedRoleMember.md index 093355d11d5..fc2314b58f2 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgAdministrativeUnitScopedRoleMember.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgAdministrativeUnitScopedRoleMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + RoleId = "roleId-value" + RoleMemberInfo = @{ + Id = "id-value" + } +} +New-MgAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgAdministrativeUnitScopedRoleMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDevice.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDevice.md index 093355d11d5..60fef51b1c8 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDevice.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDevice.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + AccountEnabled = $true + AlternativeSecurityIds = @( + @{ + Type = 99 + IdentityProvider = "identityProvider-value" + Key = [System.Text.Encoding]::ASCII.GetBytes("base64Y3YxN2E1MWFlYw==") + } + ) + ApproximateLastSignInDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + DeviceId = "deviceId-value" + DeviceMetadata = "deviceMetadata-value" + DeviceVersion = 99 +} +New-MgDevice -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDeviceRegisteredOwnerByRef.md index 093355d11d5..3c3c8c755b1 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDeviceRegisteredOwnerByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDeviceRegisteredOwnerByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/directoryObjects/{id}" +} +New-MgDeviceRegisteredOwnerByRef -DeviceId $deviceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDeviceRegisteredOwnerByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDeviceRegisteredUserByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDeviceRegisteredUserByRef.md new file mode 100644 index 00000000000..f52f9a29ffc --- /dev/null +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDeviceRegisteredUserByRef.md @@ -0,0 +1,10 @@ +### Example 1: Using the New-MgDeviceRegisteredUserByRef Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/directoryObjects/{id}" +} +New-MgDeviceRegisteredUserByRef -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the New-MgDeviceRegisteredUserByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryAttributeSet.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryAttributeSet.md index 093355d11d5..621a62fbec5 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryAttributeSet.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryAttributeSet.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryAttributeSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + Id = "Engineering" + Description = "Attributes for engineering team" + MaxAttributesPerSet = 25 +} +New-MgDirectoryAttributeSet -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryAttributeSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryCustomSecurityAttributeDefinition.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryCustomSecurityAttributeDefinition.md index 093355d11d5..a9952b218ea 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryCustomSecurityAttributeDefinition.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryCustomSecurityAttributeDefinition.md @@ -1,18 +1,65 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryCustomSecurityAttributeDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + AttributeSet = "Engineering" + Description = "Active projects for user" + IsCollection = $true + IsSearchable = $true + Name = "Project" + Status = "Available" + Type = "String" + UsePreDefinedValuesOnly = $true + AllowedValues = @( + @{ + Id = "Alpine" + IsActive = $true + } + @{ + Id = "Baker" + IsActive = $true + } + @{ + Id = "Cascade" + IsActive = $true + } + ) +} +New-MgDirectoryCustomSecurityAttributeDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgDirectoryCustomSecurityAttributeDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + AttributeSet = "Engineering" + Description = "Target completion date" + IsCollection = $false + IsSearchable = $true + Name = "ProjectDate" + Status = "Available" + Type = "String" + UsePreDefinedValuesOnly = $false +} +New-MgDirectoryCustomSecurityAttributeDefinition -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgDirectoryCustomSecurityAttributeDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + AttributeSet = "Engineering" + Description = "Active projects for user" + IsCollection = $true + IsSearchable = $true + Name = "Project" + Status = "Available" + Type = "String" + UsePreDefinedValuesOnly = $true +} +New-MgDirectoryCustomSecurityAttributeDefinition -BodyParameter $params +``` +This example shows how to use the New-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md index 093355d11d5..5a21f4383c4 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + Id = "Alpine" + IsActive = "true" +} +New-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue -CustomSecurityAttributeDefinitionId $customSecurityAttributeDefinitionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryFederationConfiguration.md index 093355d11d5..96f4e935ab4 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryFederationConfiguration.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryFederationConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + "@odata.type" = "microsoft.graph.samlOrWsFedExternalDomainFederation" + IssuerUri = "https://contoso.com/issuerUri" + DisplayName = "contoso display name" + MetadataExchangeUri = "https://contoso.com/metadataExchangeUri" + PassiveSignInUri = "https://contoso.com/signin" + PreferredAuthenticationProtocol = "wsFed" + Domains = @( + @{ + "@odata.type" = "microsoft.graph.externalDomainName" + Id = "contoso.com" + } + ) + SigningCertificate = "MIIDADCCAeigAwIBAgIQEX41y8r6" +} +New-MgDirectoryFederationConfiguration -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryFederationConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryRole.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryRole.md index 093355d11d5..14ef0502506 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryRole.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectoryRole.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryRole Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + RoleTemplateId = "fe930be7-5e62-47db-91af-98c3a49a38b1" +} +New-MgDirectoryRole -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryRole Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectorySetting.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectorySetting.md index 093355d11d5..4cd442b7c0d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectorySetting.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDirectorySetting.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectorySetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + TemplateId = "62375ab9-6b52-47ed-826b-58e47e0e304b" + Values = @( + @{ + Name = "GuestUsageGuidelinesUrl" + Value = "https://privacy.contoso.com/privacystatement" + } + @{ + Name = "EnableMSStandardBlockedWords" + Value = "true" + } + @{ + Name = "EnableMIPLabels" + Value = "true" + } + @{ + Name = "PrefixSuffixNamingRequirement" + Value = "[Contoso-][GroupName]" + } + ) +} +New-MgDirectorySetting -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectorySetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDomain.md index 093355d11d5..f88d172ca2d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDomain.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDomain Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + Id = "contoso.com" +} +New-MgDomain -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDomain Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgOrganizationBrandingLocalization.md index 093355d11d5..c80e7735f90 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgOrganizationBrandingLocalization.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + BackgroundColor = "#00000F" + Id = "fr-FR" + SignInPageText = " " +} +New-MgOrganizationBrandingLocalization -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgOrganizationSettingProfileCardProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgOrganizationSettingProfileCardProperty.md index 093355d11d5..027ebf482cb 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgOrganizationSettingProfileCardProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgOrganizationSettingProfileCardProperty.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgOrganizationSettingProfileCardProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + DirectoryPropertyName = "CustomAttribute1" + Annotations = @( + @{ + DisplayName = "Cost Center" + Localizations = @( + @{ + LanguageTag = "ru-RU" + DisplayName = "центр затрат" + } + ) + } + ) +} +New-MgOrganizationSettingProfileCardProperty -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgOrganizationSettingProfileCardProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgAdministrativeUnitScopedRoleMember.md index 093355d11d5..7a3d081b43d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgAdministrativeUnitScopedRoleMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgAdministrativeUnitScopedRoleMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgAdministrativeUnitScopedRoleMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDevice.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDevice.md index 093355d11d5..f95ac3817a5 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDevice.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDevice.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDevice -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDeviceRegisteredOwnerByRef.md index 093355d11d5..e39709f5bd4 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDeviceRegisteredOwnerByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDeviceRegisteredOwnerByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDeviceRegisteredOwnerByRef -DeviceId $deviceId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDeviceRegisteredOwnerByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryDeletedItem.md index 093355d11d5..f78331b425b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryDeletedItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryDeletedItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectoryDeletedItem -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryDeletedItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryFederationConfiguration.md index 093355d11d5..c0f0946b4b6 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryFederationConfiguration.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryFederationConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryFederationConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryRoleMemberByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryRoleMemberByRef.md index 093355d11d5..31685a3cad6 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryRoleMemberByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectoryRoleMemberByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryRoleMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectoryRoleMemberByRef -DirectoryRoleId $directoryRoleId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryRoleMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectorySetting.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectorySetting.md index 093355d11d5..7c0bd28cf65 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectorySetting.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDirectorySetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectorySetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectorySetting -DirectorySettingId $directorySettingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectorySetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDomain.md index 093355d11d5..9a3adcac02e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgDomain.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDomain Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDomain -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDomain Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgOrganizationBrandingLocalization.md index 093355d11d5..65e78f222c8 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgOrganizationBrandingLocalization.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgOrganizationSettingProfileCardProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgOrganizationSettingProfileCardProperty.md index 093355d11d5..1f806a3c95f 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgOrganizationSettingProfileCardProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Remove-MgOrganizationSettingProfileCardProperty.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgOrganizationSettingProfileCardProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgOrganizationSettingProfileCardProperty -OrganizationId $organizationId -ProfileCardPropertyId $profileCardPropertyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgOrganizationSettingProfileCardProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Restore-MgDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Restore-MgDirectoryDeletedItem.md index 093355d11d5..1633d1d41f2 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Restore-MgDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Restore-MgDirectoryDeletedItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgDirectoryDeletedItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Restore-MgDirectoryDeletedItem -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgDirectoryDeletedItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDevice.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDevice.md index 093355d11d5..b3cb724c543 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDevice.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDevice.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + ExtensionAttributes = @{ + ExtensionAttribute1 = "BYOD-Device" + } +} +Update-MgDevice -DeviceId $deviceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + AccountEnabled = $false +} +Update-MgDevice -DeviceId $deviceId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryAttributeSet.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryAttributeSet.md index 093355d11d5..8aaeb3724f2 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryAttributeSet.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryAttributeSet.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDirectoryAttributeSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + Description = "Attributes for engineering team" + MaxAttributesPerSet = 20 +} +Update-MgDirectoryAttributeSet -AttributeSetId $attributeSetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDirectoryAttributeSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryCustomSecurityAttributeDefinition.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryCustomSecurityAttributeDefinition.md index 093355d11d5..1820708061c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryCustomSecurityAttributeDefinition.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryCustomSecurityAttributeDefinition.md @@ -1,18 +1,31 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDirectoryCustomSecurityAttributeDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + "AllowedValues@delta" = @( + ) +} +Update-MgDirectoryCustomSecurityAttributeDefinition -CustomSecurityAttributeDefinitionId $customSecurityAttributeDefinitionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgDirectoryCustomSecurityAttributeDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + Status = "Deprecated" +} +Update-MgDirectoryCustomSecurityAttributeDefinition -CustomSecurityAttributeDefinitionId $customSecurityAttributeDefinitionId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgDirectoryCustomSecurityAttributeDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + Description = "Target completion date (YYYY/MM/DD)" +} +Update-MgDirectoryCustomSecurityAttributeDefinition -CustomSecurityAttributeDefinitionId $customSecurityAttributeDefinitionId -BodyParameter $params +``` +This example shows how to use the Update-MgDirectoryCustomSecurityAttributeDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md index 093355d11d5..ab749b9a270 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + IsActive = "false" +} +Update-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue -CustomSecurityAttributeDefinitionId $customSecurityAttributeDefinitionId -AllowedValueId $allowedValueId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDirectoryCustomSecurityAttributeDefinitionAllowedValue Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectorySetting.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectorySetting.md index 093355d11d5..2da4763522d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectorySetting.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDirectorySetting.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDirectorySetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + Values = @( + @{ + Name = "CustomBlockedWordsList" + Value = "Contoso" + } + ) +} +Update-MgDirectorySetting -DirectorySettingId $directorySettingId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDirectorySetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDomain.md index 093355d11d5..1ff91394b8f 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgDomain.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDomain Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + IsDefault = $true + SupportedServices = @( + "Email" + "OfficeCommunicationsOnline" + ) +} +Update-MgDomain -DomainId $domainId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDomain Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganization.md index 093355d11d5..5e266c3d37d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganization.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + MarketingNotificationEmails = @( + "marketing@contoso.com" + ) + PrivacyProfile = @{ + ContactEmail = "alice@contoso.com" + StatementUrl = "https://contoso.com/privacyStatement" + } + SecurityComplianceNotificationMails = @( + "security@contoso.com" + ) + SecurityComplianceNotificationPhones = @( + "(123) 456-7890" + ) + TechnicalNotificationMails = @( + "tech@contoso.com" + ) +} +Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationBranding.md index 093355d11d5..a52a4669fef 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationBranding.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganizationBranding Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + SignInPageText = "Default" + UsernameHintText = "DefaultHint" +} +Update-MgOrganizationBranding -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganizationBranding Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationBrandingLocalization.md index 093355d11d5..9e02549df28 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationBrandingLocalization.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + BackgroundColor = "#00000F" + SignInPageText = "Welcome to Contoso France" +} +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + SignInPageText = "Welcome to Contoso France." + UsernameHintText = " " +} +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingItemInsight.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingItemInsight.md index 093355d11d5..37440f65f18 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingItemInsight.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingItemInsight.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganizationSettingItemInsight Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + DisabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" +} +Update-MgOrganizationSettingItemInsight -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganizationSettingItemInsight Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingMicrosoftApplicationDataAccess.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingMicrosoftApplicationDataAccess.md index 093355d11d5..3a056951c0c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingMicrosoftApplicationDataAccess.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingMicrosoftApplicationDataAccess.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganizationSettingMicrosoftApplicationDataAccess Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + DisabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" +} +Update-MgOrganizationSettingMicrosoftApplicationDataAccess -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganizationSettingMicrosoftApplicationDataAccess Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingPersonInsight.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingPersonInsight.md index 093355d11d5..eda7777f74f 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingPersonInsight.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingPersonInsight.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganizationSettingPersonInsight Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + IsEnabledInOrganization = $true + DisabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" +} +Update-MgOrganizationSettingPersonInsight -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganizationSettingPersonInsight Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingProfileCardProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingProfileCardProperty.md index 093355d11d5..91c4d4d6d1a 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingProfileCardProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Update-MgOrganizationSettingProfileCardProperty.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganizationSettingProfileCardProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + Annotations = @( + @{ + Localizations = @( + @{ + LanguageTag = "no-NB" + DisplayName = "Kostnads Senter" + } + ) + } + ) +} +Update-MgOrganizationSettingProfileCardProperty -OrganizationId $organizationId -ProfileCardPropertyId $profileCardPropertyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganizationSettingProfileCardProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Add-MgAccessReviewDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Add-MgAccessReviewDecision.md index 093355d11d5..b1e2bb1c9bc 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Add-MgAccessReviewDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Add-MgAccessReviewDecision.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgAccessReviewDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Add-MgAccessReviewDecision -AccessReviewId $accessReviewId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgAccessReviewDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..b47c8495eb0 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReview.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReview.md index 093355d11d5..a948c2691cb 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReview.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReview.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAccessReview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgAccessReview -AccessReviewId $accessReviewId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAccessReview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAccessReview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgAccessReview -Filter "businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68'" -Top 100 -Skip 0 ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAccessReview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewDecision.md index 093355d11d5..bd0a1b057bb 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewDecision.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAccessReviewDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgAccessReviewDecision -AccessReviewId $accessReviewId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgAccessReviewDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewMyDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewMyDecision.md index 093355d11d5..98f9e6a332f 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewMyDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewMyDecision.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAccessReviewMyDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgAccessReviewMyDecision -AccessReviewId $accessReviewId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgAccessReviewMyDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewReviewer.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewReviewer.md index 093355d11d5..a95aa2b5b17 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewReviewer.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgAccessReviewReviewer.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAccessReviewReviewer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgAccessReviewReviewer -AccessReviewId $accessReviewId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgAccessReviewReviewer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgBusinessFlowTemplate.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgBusinessFlowTemplate.md index 093355d11d5..79d964e6eb5 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgBusinessFlowTemplate.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgBusinessFlowTemplate.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBusinessFlowTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgBusinessFlowTemplate ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgBusinessFlowTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md index 093355d11d5..68e1cff8a15 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement -AccessPackageId $accessPackageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageAssignment.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageAssignment.md index 093355d11d5..997af8021b0 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageAssignment.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageAssignment.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageAssignment -AccessPackageAssignmentId $accessPackageAssignmentId -ExpandProperty "target" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementAccessPackageAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageAssignment -AccessPackageAssignmentId $accessPackageAssignmentId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEntitlementManagementAccessPackageAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageAssignment +``` +This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageAssignmentResourceRole.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageAssignmentResourceRole.md index 093355d11d5..d4165ecc64b 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageAssignmentResourceRole.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageAssignmentResourceRole.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageAssignmentResourceRole Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageAssignmentResourceRole -AccessPackageAssignmentResourceRoleId $accessPackageAssignmentResourceRoleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignmentResourceRole Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementAccessPackageAssignmentResourceRole Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageAssignmentResourceRole ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignmentResourceRole Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md index 093355d11d5..3a0427071a3 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension -AccessPackageCatalogId $accessPackageCatalogId -CustomAccessPackageWorkflowExtensionId $customAccessPackageWorkflowExtensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension -AccessPackageCatalogId $accessPackageCatalogId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage.md index 093355d11d5..c2632b9c6e5 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage -AccessPackageId $accessPackageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleGroup.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleGroup.md index 093355d11d5..dff760304cd 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleGroup.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageIncompatibleGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageIncompatibleGroup -AccessPackageId $accessPackageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageIncompatibleGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleWith.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleWith.md index 093355d11d5..198818237dc 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleWith.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageIncompatibleWith.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageIncompatibleWith Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageIncompatibleWith -AccessPackageId $accessPackageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageIncompatibleWith Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageResourceEnvironment.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageResourceEnvironment.md index 093355d11d5..13b3670a9d5 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageResourceEnvironment.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementAccessPackageResourceEnvironment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageResourceEnvironment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageResourceEnvironment -AccessPackageResourceEnvironmentId $accessPackageResourceEnvironmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementAccessPackageResourceEnvironment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementAccessPackageResourceEnvironment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageResourceEnvironment -Filter "originSystem eq 'SharePointOnline'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageResourceEnvironment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganization.md index 093355d11d5..10e9971e12e 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganization.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementConnectedOrganization ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationExternalSponsor.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationExternalSponsor.md index 093355d11d5..a4965960552 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationExternalSponsor.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationExternalSponsor.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementConnectedOrganizationExternalSponsor Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementConnectedOrganizationExternalSponsor -ConnectedOrganizationId $connectedOrganizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementConnectedOrganizationExternalSponsor Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationInternalSponsor.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationInternalSponsor.md index 093355d11d5..095429b17bf 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationInternalSponsor.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationInternalSponsor.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementConnectedOrganizationInternalSponsor Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementConnectedOrganizationInternalSponsor -ConnectedOrganizationId $connectedOrganizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementConnectedOrganizationInternalSponsor Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDecision.md index 093355d11d5..53c1bddceda 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDecision.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDecision -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -ExpandProperty "instance(`$expand=definition)" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinition.md index 093355d11d5..c1c3a5bc264 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinition -Filter "contains(scope/microsoft.graph.accessReviewQueryScope/query, './members')" +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinition -Top 100 -Skip 0 +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 093355d11d5..2ba3a32509c 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -Top 100 -Skip 0 +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md index 093355d11d5..a338bf14029 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..35a1b518df5 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -ExpandProperty "insights" +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -Top 100 -Skip 0 +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 093355d11d5..4764bacf290 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index 093355d11d5..b1567ab4c77 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md index 093355d11d5..b34e64f97fe 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewHistoryDefinition -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewHistoryDefinition ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance.md index 093355d11d5..b87b960b7a0 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewPolicy.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewPolicy.md index 093355d11d5..308594942bb 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewPolicy.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAccessReviewPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAppConsentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAppConsentRequest.md index 093355d11d5..9d0900dc77f 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAppConsentRequest.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId -Filter "userConsentRequests/any(u:u/status eq 'InProgress')" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequest +``` +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequest -Filter "userConsentRequests/any (u:u/status eq 'InProgress')" +``` +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md index 093355d11d5..c8b8d1b5286 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId -Filter " (status eq 'Completed')" +``` +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceTermOfUseAgreement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceTermOfUseAgreement.md index 093355d11d5..1fcf9544f45 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceTermOfUseAgreement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceTermOfUseAgreement.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId -ExpandProperty "files" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreement +``` +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId -ExpandProperty "files" +``` +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceTermOfUseAgreementFile.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceTermOfUseAgreementFile.md index 093355d11d5..fe6826865fb 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceTermOfUseAgreementFile.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgIdentityGovernanceTermOfUseAgreementFile.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceTermOfUseAgreementFile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreementFile -AgreementId $agreementId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreementFile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedAccessResource.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedAccessResource.md index 093355d11d5..162edb3737a 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedAccessResource.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedAccessResource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrivilegedAccessResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedAccessResource -PrivilegedAccessId $privilegedAccessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrivilegedAccessResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedAccessRoleSetting.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedAccessRoleSetting.md index 093355d11d5..41dbde7cfb5 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedAccessRoleSetting.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedAccessRoleSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrivilegedAccessRoleSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedAccessRoleSetting -PrivilegedAccessId $privilegedAccessId -GovernanceRoleSettingId $governanceRoleSettingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrivilegedAccessRoleSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedApproval.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedApproval.md index 093355d11d5..a7196e36467 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedApproval.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedApproval.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrivilegedApproval Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedApproval -PrivilegedApprovalId $privilegedApprovalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrivilegedApproval Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrivilegedApproval Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedApproval ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrivilegedApproval Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedOperationEvent.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedOperationEvent.md index 093355d11d5..13549c19b37 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedOperationEvent.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedOperationEvent.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrivilegedOperationEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedOperationEvent -Filter "requestType eq 'Assign'" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrivilegedOperationEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrivilegedOperationEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedOperationEvent -Filter "requestType eq 'Activate'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrivilegedOperationEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPrivilegedOperationEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedOperationEvent -Filter "requestType eq 'Deactivate'" +``` +This example shows how to use the Get-MgPrivilegedOperationEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgPrivilegedOperationEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedOperationEvent -Filter "(creationDateTime ge 2017-06-25T07:00:00Z) and (creationDateTime le 2017-07-25T17:30:17Z)" -CountVariable CountVar -Sort "creationDateTime desc" +``` +This example shows how to use the Get-MgPrivilegedOperationEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRole.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRole.md index 093355d11d5..4e6e245ccca 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRole.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRole.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrivilegedRole Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRole -PrivilegedRoleId $privilegedRoleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrivilegedRole Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrivilegedRole Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRole ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrivilegedRole Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleAssignmentRequest.md index 093355d11d5..db441faea1d 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleAssignmentRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrivilegedRoleAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRoleAssignmentRequest ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrivilegedRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleRoleAssignment.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleRoleAssignment.md index 093355d11d5..a2bbfbfab8c 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleRoleAssignment.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleRoleAssignment.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrivilegedRoleRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRoleRoleAssignment -PrivilegedRoleAssignmentId $privilegedRoleAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrivilegedRoleRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrivilegedRoleRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRoleRoleAssignment ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrivilegedRoleRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPrivilegedRoleRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRoleRoleAssignment -Filter "isElevated eq true" +``` +This example shows how to use the Get-MgPrivilegedRoleRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgPrivilegedRoleRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRoleRoleAssignment -Filter "isElevated eq true and expirationDateTime eq null" +``` +This example shows how to use the Get-MgPrivilegedRoleRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgPrivilegedRoleRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRoleRoleAssignment -Filter "isElevated eq true and expirationDateTime ne null or isElevated eq false" +``` +This example shows how to use the Get-MgPrivilegedRoleRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleSetting.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleSetting.md index 093355d11d5..61e8da6d027 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleSetting.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrivilegedRoleSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRoleSetting -PrivilegedRoleId $privilegedRoleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrivilegedRoleSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleSummary.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleSummary.md index 093355d11d5..1fcb1821028 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleSummary.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgPrivilegedRoleSummary.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrivilegedRoleSummary Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgPrivilegedRoleSummary -PrivilegedRoleId $privilegedRoleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrivilegedRoleSummary Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgram.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgram.md index 093355d11d5..f202fe903ee 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgram.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgram.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgProgram Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgProgram ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgProgram Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgramControl.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgramControl.md index 093355d11d5..3ee08051da5 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgramControl.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgramControl.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgProgramControl Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgProgramControl ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgProgramControl Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgramControlType.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgramControlType.md index 093355d11d5..f98b868fd34 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgramControlType.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgProgramControlType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgProgramControlType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgProgramControlType ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgProgramControlType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgUserAgreementAcceptance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgUserAgreementAcceptance.md index 093355d11d5..76614e3db15 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgUserAgreementAcceptance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgUserAgreementAcceptance.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAgreementAcceptance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +# A UPN can also be used as -UserId. +Get-MgUserAgreementAcceptance -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAgreementAcceptance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedApprovalRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedApprovalRequest.md index 093355d11d5..edc47dd6198 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedApprovalRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedApprovalRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMyPrivilegedApprovalRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Invoke-MgMyPrivilegedApprovalRequest ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMyPrivilegedApprovalRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedRoleAssignment.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedRoleAssignment.md index 093355d11d5..a621e627688 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedRoleAssignment.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMyPrivilegedRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Invoke-MgMyPrivilegedRoleAssignment ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMyPrivilegedRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedRoleAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedRoleAssignmentRequest.md index 093355d11d5..5bad627c0b4 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedRoleAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgMyPrivilegedRoleAssignmentRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMyPrivilegedRoleAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Invoke-MgMyPrivilegedRoleAssignmentRequest ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMyPrivilegedRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgSelfPrivilegedRoleActivate.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgSelfPrivilegedRoleActivate.md index 093355d11d5..524bad66c94 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgSelfPrivilegedRoleActivate.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgSelfPrivilegedRoleActivate.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSelfPrivilegedRoleActivate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Reason = "reason-value" + Duration = "duration-value" + TicketNumber = "ticketNumber-value" + TicketSystem = "ticketSystem-value" +} +Invoke-MgSelfPrivilegedRoleActivate -PrivilegedRoleId $privilegedRoleId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSelfPrivilegedRoleActivate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgSelfPrivilegedRoleDeactivate.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgSelfPrivilegedRoleDeactivate.md index 093355d11d5..336a6a68319 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgSelfPrivilegedRoleDeactivate.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgSelfPrivilegedRoleDeactivate.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSelfPrivilegedRoleDeactivate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Invoke-MgSelfPrivilegedRoleDeactivate -PrivilegedRoleId $privilegedRoleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSelfPrivilegedRoleDeactivate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgAccessReview.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgAccessReview.md index 093355d11d5..bf5f2c822fa 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgAccessReview.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgAccessReview.md @@ -1,18 +1,44 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgAccessReview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "TestReview" + StartDateTime = [System.DateTime]::Parse("2017-02-10T00:35:53.214Z") + EndDateTime = [System.DateTime]::Parse("2017-03-12T00:35:53.214Z") + ReviewedEntity = @{ + Id = "99025615-a0b1-47ec-9117-35377b10998b" + } + ReviewerType = "delegated" + BusinessFlowTemplateId = "6e4f3d20-c5c3-407f-9695-8460952bcc68" + Description = "Sample description" + Reviewers = @( + @{ + Id = "f260246a-09b1-4fd5-8d18-daed736071ec" + } + @{ + Id = "5a4e184c-4ee5-4883-96e9-b371f8da88e3" + } + ) + Settings = @{ + MailNotificationsEnabled = $true + RemindersEnabled = $true + JustificationRequiredOnApproval = $true + AutoReviewEnabled = $false + ActivityDurationInDays = 30 + AutoApplyReviewResultsEnabled = $false + AccessRecommendationsEnabled = $false + RecurrenceSettings = @{ + RecurrenceType = "onetime" + RecurrenceEndType = "endBy" + DurationInDays = 0 + RecurrenceCount = 0 + } + AutoReviewSettings = @{ + NotReviewedResult = "Deny" + } + } +} +New-MgAccessReview -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgAccessReview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgAccessReviewReviewer.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgAccessReviewReviewer.md index 093355d11d5..780128854b2 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgAccessReviewReviewer.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgAccessReviewReviewer.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgAccessReviewReviewer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Id = "006111db-0810-4494-a6df-904d368bd81b" +} +New-MgAccessReviewReviewer -AccessReviewId $accessReviewId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgAccessReviewReviewer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageCatalog.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageCatalog.md index 093355d11d5..1c669f66935 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageCatalog.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageCatalog.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementAccessPackageCatalog Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "sales" + Description = "for employees working with sales and outside sales partners" + IsExternallyVisible = $true +} +New-MgEntitlementManagementAccessPackageCatalog -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementAccessPackageCatalog Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md index 093355d11d5..451b8d244d1 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "test_action_0124" + Description = "this is for graph testing only" + EndpointConfiguration = @{ + "@odata.type" = "#microsoft.graph.logicAppTriggerEndpointConfiguration" + SubscriptionId = "38ab2ccc-3747-4567-b36b-9478f5602f0d" + ResourceGroupName = "EMLogicApp" + LogicAppWorkflowName = "customextension_test" + } + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.azureAdTokenAuthentication" + ResourceId = "f604bd15-f785-4309-ad7c-6fad18ddb6cb" + } +} +New-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md index 093355d11d5..182b7208591 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackages/c0a74b4d-2694-4d5d-a964-1bee4ff0aaf2" +} +New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef -AccessPackageId $accessPackageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganization.md index 093355d11d5..6615b36b19b 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganization.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Connected organization name" + Description = "Connected organization description" + IdentitySources = @( + @{ + "@odata.type" = "#microsoft.graph.domainIdentitySource" + DomainName = "example.com" + DisplayName = "example.com" + } + ) + State = "proposed" +} +New-MgEntitlementManagementConnectedOrganization -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md index 093355d11d5..bab456d54bb 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/users/{id}" +} +New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md index 093355d11d5..60966ab8b51 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/users/{id}" +} +New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewDefinition.md index 093355d11d5..272f53c4818 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,18 +1,282 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Review employee access to LinkedIn" + DescriptionForAdmins = "Review employee access to LinkedIn" + Scope = @{ + "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" + PrincipalScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/users" + QueryType = "MicrosoftGraph" + } + ) + ResourceScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/servicePrincipals/bae11f90-7d5d-46ba-9f55-8112b59d92ae" + QueryType = "MicrosoftGraph" + } + ) + } + Reviewers = @( + @{ + Query = "./manager" + QueryType = "MicrosoftGraph" + QueryRoot = "decisions" + } + ) + BackupReviewers = @( + @{ + Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" + QueryType = "MicrosoftGraph" + } + ) + FallbackReviewers = @( + @{ + Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" + QueryType = "MicrosoftGraph" + } + ) + Settings = @{ + MailNotificationsEnabled = $true + ReminderNotificationsEnabled = $true + JustificationRequiredOnApproval = $true + DefaultDecisionEnabled = $true + DefaultDecision = "Recommendation" + InstanceDurationInDays = 180 + AutoApplyDecisionsEnabled = $true + RecommendationsEnabled = $true + Recurrence = @{ + Pattern = @{ + Type = "absoluteMonthly" + Interval = 6 + DayOfMonth = 0 + } + Range = @{ + Type = "numbered" + StartDate = "2021-05-05" + EndDate = "2022-05-05" + } + } + } +} +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Group Multi-stage Access Review" + DescriptionForAdmins = "New scheduled access review" + DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" + Scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" + QueryType = "MicrosoftGraph" + } + StageSettings = @( + @{ + StageId = "1" + DurationInDays = 2 + RecommendationsEnabled = $false + DecisionsThatWillMoveToNextStage = @( + "NotReviewed" + "Approve" + ) + Reviewers = @( + @{ + Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" + QueryType = "MicrosoftGraph" + } + ) + } + @{ + StageId = "2" + DependsOn = @( + "1" + ) + DurationInDays = 2 + RecommendationsEnabled = $true + Reviewers = @( + @{ + Query = "./manager" + QueryType = "MicrosoftGraph" + QueryRoot = "decisions" + } + ) + FallbackReviewers = @( + @{ + Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" + QueryType = "MicrosoftGraph" + } + ) + } + ) + Settings = @{ + InstanceDurationInDays = 4 + Recurrence = @{ + Pattern = @{ + Type = "weekly" + Interval = 1 + } + Range = @{ + Type = "noEnd" + StartDate = "2020-09-08T12:02:30.667Z" + } + } + DecisionHistoriesForReviewersEnabled = $true + } +} +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Review inactive guests on teams" + DescriptionForAdmins = "Control guest user access to our teams." + DescriptionForReviewers = "Information security is everyone's responsibility. Review our access policy for more." + InstanceEnumerationScope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/groups?$filter=(groupTypes/any(c:c+eq+'Unified') and resourceProvisioningOptions/Any(x:x eq 'Team')')" + QueryType = "MicrosoftGraph" + } + Scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewInactiveUsersQueryScope" + Query = "./members/microsoft.graph.user/?$filter=(userType eq 'Guest')" + QueryType = "MicrosoftGraph" + InactiveDuration = "P30D" + } + Reviewers = @( + @{ + Query = "./owners" + QueryType = "MicrosoftGraph" + } + ) + FallbackReviewers = @( + @{ + Query = "/users/fc9a2c2b-1ddc-486d-a211-5fe8ca77fa1f" + QueryType = "MicrosoftGraph" + } + ) + Settings = @{ + MailNotificationsEnabled = $true + ReminderNotificationsEnabled = $true + JustificationRequiredOnApproval = $true + RecommendationsEnabled = $true + InstanceDurationInDays = 3 + Recurrence = @{ + Pattern = @{ + Type = "absoluteMonthly" + DayOfMonth = 5 + Interval = 3 + } + Range = @{ + Type = "noEnd" + StartDate = "2020-05-04T00:00:00.000Z" + } + } + DefaultDecisionEnabled = $true + DefaultDecision = "Deny" + AutoApplyDecisionsEnabled = $true + } +} +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Test create" + DescriptionForAdmins = "New scheduled access review" + DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" + Scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" + QueryType = "MicrosoftGraph" + } + Reviewers = @( + @{ + Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" + QueryType = "MicrosoftGraph" + } + ) + Settings = @{ + InstanceDurationInDays = 1 + Recurrence = @{ + Pattern = @{ + Type = "weekly" + Interval = 1 + } + Range = @{ + Type = "noEnd" + StartDate = "2020-09-08T12:02:30.667Z" + } + } + RecommendationInsightSettings = @( + @{ + "@odata.type" = "#microsoft.graph.userLastSignInRecommendationInsightSetting" + RecommendationLookBackDuration = "P30D" + SignInScope = "tenant" + } + @{ + "@odata.type" = "#microsoft.graph.groupPeerOutlierRecommendationInsightSettings" + } + ) + } +} +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Test create" + DescriptionForAdmins = "New scheduled access review" + DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" + Scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" + QueryType = "MicrosoftGraph" + } + Reviewers = @( + @{ + Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" + QueryType = "MicrosoftGraph" + } + ) + Settings = @{ + MailNotificationsEnabled = $true + ReminderNotificationsEnabled = $true + JustificationRequiredOnApproval = $true + DefaultDecisionEnabled = $false + DefaultDecision = "None" + InstanceDurationInDays = 1 + RecommendationsEnabled = $true + Recurrence = @{ + Pattern = @{ + Type = "weekly" + Interval = 1 + } + Range = @{ + Type = "noEnd" + StartDate = "2020-09-08T12:02:30.667Z" + } + } + } +} +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md index 093355d11d5..6b8e7b80cd2 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,18 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Last quarter's group reviews April 2021" + Decisions = @( + "approve" + "deny" + "dontKnow" + "notReviewed" + "notNotified" + ) + ScheduleSettings = @{ + ReportRange = "P1M" + Recurrence = @{ + Pattern = @{ + Type = "monthly" + Interval = 1 + } + Range = @{ + Type = "noEnd" + StartDate = "2018-08-03T21:02:30.667Z" + Count = + } + } + } + Scopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + QueryType = "MicrosoftGraph" + Query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, 'accessPackageAssignments')" + QueryRoot = $null + } + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + QueryType = "MicrosoftGraph" + Query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, '/groups')" + QueryRoot = $null + } + ) +} +New-MgIdentityGovernanceAccessReviewHistoryDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.md index 093355d11d5..b7d0811595d 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId -AccessReviewHistoryInstanceId $accessReviewHistoryInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceTermOfUseAgreement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceTermOfUseAgreement.md index 093355d11d5..65515ad10fb 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceTermOfUseAgreement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgIdentityGovernanceTermOfUseAgreement.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Contoso ToU for guest users" + IsViewingBeforeAcceptanceRequired = $true + Files = @( + @{ + FileName = "TOU.pdf" + Language = "en" + IsDefault = $true + FileData = @{ + Data = [System.Text.Encoding]::ASCII.GetBytes("SGVsbG8gd29ybGQ=//truncated-binary") + } + } + ) +} +New-MgIdentityGovernanceTermOfUseAgreement -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedAccessRoleAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedAccessRoleAssignmentRequest.md index 093355d11d5..6c1393ba3af 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedAccessRoleAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedAccessRoleAssignmentRequest.md @@ -1,18 +1,110 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RoleDefinitionId = "ea48ad5e-e3b0-4d10-af54-39a45bbfe68d" + ResourceId = "e5e7d29d-5465-45ac-885f-4716a5ee74b5" + SubjectId = "918e54be-12c4-4f4c-a6d3-2ee0e3661c51" + AssignmentState = "Eligible" + Type = "AdminAdd" + Reason = "Assign an eligible role" + Schedule = @{ + StartDateTime = [System.DateTime]::Parse("2018-05-12T23:37:43.356Z") + EndDateTime = [System.DateTime]::Parse("2018-11-08T23:37:43.356Z") + Type = "Once" + } +} +New-MgPrivilegedAccessRoleAssignmentRequest -PrivilegedAccessId $privilegedAccessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RoleDefinitionId = "8b4d1d51-08e9-4254-b0a6-b16177aae376" + ResourceId = "e5e7d29d-5465-45ac-885f-4716a5ee74b5" + SubjectId = "918e54be-12c4-4f4c-a6d3-2ee0e3661c51" + AssignmentState = "Active" + Type = "UserAdd" + Reason = "Activate the owner role" + Schedule = @{ + Type = "Once" + StartDateTime = [System.DateTime]::Parse("2018-05-12T23:28:43.537Z") + Duration = "PT9H" + } + LinkedEligibleRoleAssignmentId = "e327f4be-42a0-47a2-8579-0a39b025b394" +} +New-MgPrivilegedAccessRoleAssignmentRequest -PrivilegedAccessId $privilegedAccessId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RoleDefinitionId = "bc75b4e6-7403-4243-bf2f-d1f6990be122" + ResourceId = "fb016e3a-c3ed-4d9d-96b6-a54cd4f0b735" + SubjectId = "918e54be-12c4-4f4c-a6d3-2ee0e3661c51" + AssignmentState = "Active" + Type = "UserRemove" + Reason = "Deactivate the role" + LinkedEligibleRoleAssignmentId = "cb8a533e-02d5-42ad-8499-916b1e4822ec" +} +New-MgPrivilegedAccessRoleAssignmentRequest -PrivilegedAccessId $privilegedAccessId -BodyParameter $params +``` +This example shows how to use the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RoleDefinitionId = "65bb4622-61f5-4f25-9d75-d0e20cf92019" + ResourceId = "e5e7d29d-5465-45ac-885f-4716a5ee74b5" + SubjectId = "74765671-9ca4-40d7-9e36-2f4a570608a6" + AssignmentState = "Eligible" + Type = "AdminRemove" +} +New-MgPrivilegedAccessRoleAssignmentRequest -PrivilegedAccessId $privilegedAccessId -BodyParameter $params +``` +This example shows how to use the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RoleDefinitionId = "70521f3e-3b95-4e51-b4d2-a2f485b02103" + ResourceId = "e5e7d29d-5465-45ac-885f-4716a5ee74b5" + SubjectId = "1566d11d-d2b6-444a-a8de-28698682c445" + AssignmentState = "Eligible" + Type = "AdminUpdate" + Schedule = @{ + Type = "Once" + StartDateTime = [System.DateTime]::Parse("2018-03-08T05:42:45.317Z") + EndDateTime = [System.DateTime]::Parse("2018-06-05T05:42:31.000Z") + } +} +New-MgPrivilegedAccessRoleAssignmentRequest -PrivilegedAccessId $privilegedAccessId -BodyParameter $params +``` +This example shows how to use the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RoleDefinitionId = "0e88fd18-50f5-4ee1-9104-01c3ed910065" + ResourceId = "e5e7d29d-5465-45ac-885f-4716a5ee74b5" + SubjectId = "74765671-9ca4-40d7-9e36-2f4a570608a6" + AssignmentState = "Eligible" + Type = "AdminExtend" + Reason = "extend role assignment" + Schedule = @{ + Type = "Once" + StartDateTime = [System.DateTime]::Parse("2018-05-12T23:53:55.327Z") + EndDateTime = [System.DateTime]::Parse("2018-08-10T23:53:55.327Z") + } +} +New-MgPrivilegedAccessRoleAssignmentRequest -PrivilegedAccessId $privilegedAccessId -BodyParameter $params +``` +This example shows how to use the New-MgPrivilegedAccessRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedApproval.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedApproval.md index 093355d11d5..f32b1027cc8 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedApproval.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedApproval.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrivilegedApproval Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + UserId = "userId-value" + RoleId = "roleId-value" + ApprovalType = "approvalType-value" + ApprovalState = "approvalState-value" + ApprovalDuration = "datetime-value" +} +New-MgPrivilegedApproval -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrivilegedApproval Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignment.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignment.md index 093355d11d5..65cc33fcd62 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignment.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignment.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrivilegedRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + UserId = "userId-value" + RoleId = "roleId-value" +} +New-MgPrivilegedRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrivilegedRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentEligible.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentEligible.md index 093355d11d5..069fe98bcdd 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentEligible.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentEligible.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrivilegedRoleAssignmentEligible Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +New-MgPrivilegedRoleAssignmentEligible -PrivilegedRoleAssignmentId $privilegedRoleAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrivilegedRoleAssignmentEligible Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentPermanent.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentPermanent.md index 093355d11d5..40c58ce8b80 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentPermanent.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentPermanent.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrivilegedRoleAssignmentPermanent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Reason = "reason-value" + TicketNumber = "ticketNumber-value" + TicketSystem = "ticketSystem-value" +} +New-MgPrivilegedRoleAssignmentPermanent -PrivilegedRoleAssignmentId $privilegedRoleAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrivilegedRoleAssignmentPermanent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentRequest.md index 093355d11d5..335b5926e78 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgPrivilegedRoleAssignmentRequest.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrivilegedRoleAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Duration = "2" + Reason = "Activate the role for business purpose" + TicketNumber = "234" + TicketSystem = "system" + Schedule = @{ + StartDateTime = [System.DateTime]::Parse("2018-02-08T02:35:17.903Z") + } + Type = "UserAdd" + AssignmentState = "Active" + RoleId = "88d8e3e3-8f55-4a1e-953a-9b9898b8876b" +} +New-MgPrivilegedRoleAssignmentRequest -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrivilegedRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgProgram.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgProgram.md index 093355d11d5..e453f505577 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgProgram.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgProgram.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgProgram Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "testprogram3" + Description = "test description" +} +New-MgProgram -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgProgram Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgProgramControl.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgProgramControl.md index 093355d11d5..0b20435b9e2 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgProgramControl.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/New-MgProgramControl.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgProgramControl Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + ControlId = "7e59d237-2fb0-4e5d-b7bb-d4f9f9129213" + ControlTypeId = "6e4f3d20-c5c3-407f-9695-8460952bcc68" + ProgramId = "7e59d237-2fb0-4e5d-b7bb-d4f9f9129213" +} +New-MgProgramControl -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgProgramControl Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgAccessReview.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgAccessReview.md index 093355d11d5..c6cd918b546 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgAccessReview.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgAccessReview.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgAccessReview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgAccessReview -AccessReviewId $accessReviewId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgAccessReview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgAccessReviewReviewer.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgAccessReviewReviewer.md index 093355d11d5..67c42910c3d 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgAccessReviewReviewer.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgAccessReviewReviewer.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgAccessReviewReviewer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgAccessReviewReviewer -AccessReviewId $accessReviewId -AccessReviewReviewerId $accessReviewReviewerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgAccessReviewReviewer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageAssignmentRequest.md index 093355d11d5..968a4fdf843 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageAssignmentRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementAccessPackageAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAccessPackageAssignmentRequest -AccessPackageAssignmentRequestId $accessPackageAssignmentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementAccessPackageAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageCatalog.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageCatalog.md index 093355d11d5..29b4828124c 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageCatalog.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageCatalog.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementAccessPackageCatalog Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAccessPackageCatalog -AccessPackageCatalogId $accessPackageCatalogId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementAccessPackageCatalog Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md index 093355d11d5..3fdb909c1e1 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension -AccessPackageCatalogId $accessPackageCatalogId -CustomAccessPackageWorkflowExtensionId $customAccessPackageWorkflowExtensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementAccessPackageCatalogCustomAccessPackageWorkflowExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md index 093355d11d5..904fefe668e 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef -AccessPackageId $accessPackageId -AccessPackageId1 $accessPackageId1 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md index 093355d11d5..c3936de81d1 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef -AccessPackageId $accessPackageId -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganization.md index 093355d11d5..feca4fdd7af 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganization.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md index 093355d11d5..b42d7c7f4d3 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md index 093355d11d5..33e8ec27a51 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgIdentityGovernanceAccessReviewDefinition.md index 093355d11d5..6cbaec7fc58 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgIdentityGovernanceTermOfUseAgreement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgIdentityGovernanceTermOfUseAgreement.md index 093355d11d5..144a7eca0b4 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgIdentityGovernanceTermOfUseAgreement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgIdentityGovernanceTermOfUseAgreement.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgPrivilegedRoleAssignment.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgPrivilegedRoleAssignment.md index 093355d11d5..aed21593c22 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgPrivilegedRoleAssignment.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgPrivilegedRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrivilegedRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgPrivilegedRoleAssignment -PrivilegedRoleAssignmentId $privilegedRoleAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrivilegedRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgProgram.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgProgram.md index 093355d11d5..8a0f0a8db84 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgProgram.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgProgram.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgProgram Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgProgram -ProgramId $programId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgProgram Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgProgramControl.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgProgramControl.md index 093355d11d5..d4a68bd5a42 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgProgramControl.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Remove-MgProgramControl.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgProgramControl Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgProgramControl -ProgramControlId $programControlId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgProgramControl Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Reset-MgAccessReviewDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Reset-MgAccessReviewDecision.md index 093355d11d5..5cd95a838fe 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Reset-MgAccessReviewDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Reset-MgAccessReviewDecision.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgAccessReviewDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Reset-MgAccessReviewDecision -AccessReviewId $accessReviewId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgAccessReviewDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..3ef62cfef24 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Send-MgAccessReviewReminder.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Send-MgAccessReviewReminder.md index 093355d11d5..86ba636b85f 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Send-MgAccessReviewReminder.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Send-MgAccessReviewReminder.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgAccessReviewReminder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Send-MgAccessReviewReminder -AccessReviewId $accessReviewId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Send-MgAccessReviewReminder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder.md index 093355d11d5..7ba2e3c82ec 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgAccessReview.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgAccessReview.md index 093355d11d5..702fa01b26a 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgAccessReview.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgAccessReview.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgAccessReview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Stop-MgAccessReview -AccessReviewId $accessReviewId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgAccessReview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 093355d11d5..8609e140da7 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Stop-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 093355d11d5..61dca690e09 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgPrivilegedAccessRoleAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgPrivilegedAccessRoleAssignmentRequest.md index 093355d11d5..fae8dcdb4ea 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgPrivilegedAccessRoleAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgPrivilegedAccessRoleAssignmentRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgPrivilegedAccessRoleAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Stop-MgPrivilegedAccessRoleAssignmentRequest -PrivilegedAccessId $privilegedAccessId -GovernanceRoleAssignmentRequestId $governanceRoleAssignmentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgPrivilegedAccessRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgPrivilegedRoleAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgPrivilegedRoleAssignmentRequest.md index 093355d11d5..47863535cd7 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgPrivilegedRoleAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Stop-MgPrivilegedRoleAssignmentRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgPrivilegedRoleAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Stop-MgPrivilegedRoleAssignmentRequest -PrivilegedRoleAssignmentRequestId $privilegedRoleAssignmentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgPrivilegedRoleAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgAccessReview.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgAccessReview.md index 093355d11d5..4ad58da1c23 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgAccessReview.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgAccessReview.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgAccessReview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "TestReview new name" +} +Update-MgAccessReview -AccessReviewId $accessReviewId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgAccessReview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackage.md index 093355d11d5..dde105e5dba 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackage.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEntitlementManagementAccessPackage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Access Package New Name" +} +Update-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEntitlementManagementAccessPackage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackageAssignmentApprovalStep.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackageAssignmentApprovalStep.md index 093355d11d5..0f40306e9ea 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackageAssignmentApprovalStep.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackageAssignmentApprovalStep.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEntitlementManagementAccessPackageAssignmentApprovalStep Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Update-MgEntitlementManagementAccessPackageAssignmentApprovalStep -ApprovalId $approvalId -ApprovalStepId $approvalStepId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEntitlementManagementAccessPackageAssignmentApprovalStep Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackageCatalog.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackageCatalog.md index 093355d11d5..9f2c6408ddd 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackageCatalog.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementAccessPackageCatalog.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEntitlementManagementAccessPackageCatalog Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Catalog One" +} +Update-MgEntitlementManagementAccessPackageCatalog -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEntitlementManagementAccessPackageCatalog Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementConnectedOrganization.md index 093355d11d5..3ece92d710d 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementConnectedOrganization.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Connected organization new name" + Description = "Connected organization new description" + State = "configured" +} +Update-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementSetting.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementSetting.md index 093355d11d5..ad9d0ca1b55 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementSetting.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgEntitlementManagementSetting.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEntitlementManagementSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + ExternalUserLifecycleAction = "None" +} +Update-MgEntitlementManagementSetting -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEntitlementManagementSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 093355d11d5..418a6ea2988 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,18 +1,47 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Scope = @{ + "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" + PrincipalScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/v1.0/users" + QueryType = "MicrosoftGraph" + } + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/v1.0/groups" + QueryType = "MicrosoftGraph" + } + ) + ResourceScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" + QueryType = "MicrosoftGraph" + } + ) + } + Reviewers = @( + @{ + Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + QueryType = "MicrosoftGraph" + } + ) + FallbackReviewers = @( + @{ + Query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + QueryType = "MicrosoftGraph" + } + @{ + Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + QueryType = "MicrosoftGraph" + } + ) +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 093355d11d5..c8074176ebd 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + "@odata.type" = "#microsoft.graph.accessReviewStage" + Reviewers = @( + @{ + Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + QueryType = "MicrosoftGraph" + } + ) + FallbackReviewers = @( + @{ + Query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + QueryType = "MicrosoftGraph" + } + @{ + Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + QueryType = "MicrosoftGraph" + } + ) +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index 093355d11d5..b4985a58038 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,18 +1,33 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Decision = "Approve" + Justification = "This person is still on my team" +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Decision = "Approve" + Justification = "This person is still on my team" +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Decision = "Approve" + Justification = "This person is still on my team" +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewPolicy.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewPolicy.md index 093355d11d5..bd58673d9b4 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewPolicy.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceAccessReviewPolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityGovernanceAccessReviewPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + IsGroupOwnerManagementEnabled = $true +} +Update-MgIdentityGovernanceAccessReviewPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityGovernanceAccessReviewPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceTermOfUseAgreement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceTermOfUseAgreement.md index 093355d11d5..26ef56ffc80 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceTermOfUseAgreement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgIdentityGovernanceTermOfUseAgreement.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "All Contoso volunteers - Terms of use" + IsViewingBeforeAcceptanceRequired = $true +} +Update-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgPrivilegedAccessRoleSetting.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgPrivilegedAccessRoleSetting.md index 093355d11d5..15981ef66e2 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgPrivilegedAccessRoleSetting.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgPrivilegedAccessRoleSetting.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrivilegedAccessRoleSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + AdminEligibleSettings = @( + @{ + RuleIdentifier = "ExpirationRule" + Setting = "{"permanentAssignment":false,"maximumGrantPeriodInMinutes":129600}" + } + ) +} +Update-MgPrivilegedAccessRoleSetting -PrivilegedAccessId $privilegedAccessId -GovernanceRoleSettingId $governanceRoleSettingId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrivilegedAccessRoleSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgPrivilegedApproval.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgPrivilegedApproval.md index 093355d11d5..0317e5c0990 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgPrivilegedApproval.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgPrivilegedApproval.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrivilegedApproval Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + ApprovalState = "approvalState-value" + ApproverReason = "approverReason-value" +} +Update-MgPrivilegedApproval -PrivilegedApprovalId $privilegedApprovalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrivilegedApproval Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgProgram.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgProgram.md index 093355d11d5..96b31fac6a4 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgProgram.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Update-MgProgram.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgProgram Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "testprogram3 new name" +} +Update-MgProgram -ProgramId $programId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgProgram Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Confirm-MgRiskyServicePrincipalCompromised.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Confirm-MgRiskyServicePrincipalCompromised.md index 093355d11d5..a4b3f2b0943 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Confirm-MgRiskyServicePrincipalCompromised.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Confirm-MgRiskyServicePrincipalCompromised.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgRiskyServicePrincipalCompromised Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ServicePrincipalIds = @( + "9089a539-a539-9089-39a5-899039a58990" + ) +} +Confirm-MgRiskyServicePrincipalCompromised -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgRiskyServicePrincipalCompromised Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgDataPolicyOperation.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgDataPolicyOperation.md index 093355d11d5..af06a44cfe9 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgDataPolicyOperation.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgDataPolicyOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDataPolicyOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDataPolicyOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityApiConnector.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityApiConnector.md index 093355d11d5..471582843c2 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityApiConnector.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityApiConnector ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlow.md index 093355d11d5..c6b1aaf63e9 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlow.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2CUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlow -B2cIdentityUserFlowId $b2cIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityB2CUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityB2CUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlow -ExpandProperty "identityProviders" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2CUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityB2CUserFlow Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlow +``` +This example shows how to use the Get-MgIdentityB2CUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowIdentityProvider.md index 093355d11d5..0bfa214a98b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowIdentityProvider.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2CUserFlowIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowIdentityProvider -B2cIdentityUserFlowId $b2cIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2CUserFlowIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguage.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguage.md index 093355d11d5..c690bcd28e4 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguage.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguage.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2CUserFlowLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowLanguage -B2cIdentityUserFlowId $b2cIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityB2CUserFlowLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityB2CUserFlowLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowLanguage -B2cIdentityUserFlowId $b2cIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2CUserFlowLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityB2CUserFlowLanguage Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowLanguage -B2cIdentityUserFlowId $b2cIdentityUserFlowId -Filter "isEnabled eq true" +``` +This example shows how to use the Get-MgIdentityB2CUserFlowLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageDefaultPage.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageDefaultPage.md index 093355d11d5..435e1c68cba 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageDefaultPage.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageDefaultPage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2CUserFlowLanguageDefaultPage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowLanguageDefaultPage -B2cIdentityUserFlowId $b2cIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2CUserFlowLanguageDefaultPage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageDefaultPageContent.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageDefaultPageContent.md index 093355d11d5..956399d8300 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageDefaultPageContent.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageDefaultPageContent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2CUserFlowLanguageDefaultPageContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowLanguageDefaultPageContent -B2cIdentityUserFlowId $b2cIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -UserFlowLanguagePageId $userFlowLanguagePageId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2CUserFlowLanguageDefaultPageContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageOverridePage.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageOverridePage.md index 093355d11d5..429e5b1b6bc 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageOverridePage.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowLanguageOverridePage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2CUserFlowLanguageOverridePage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowLanguageOverridePage -B2cIdentityUserFlowId $b2cIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2CUserFlowLanguageOverridePage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowUserAttributeAssignment.md index 093355d11d5..90a87a6a657 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowUserAttributeAssignment.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowUserAttributeAssignment -B2cIdentityUserFlowId $b2cIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowUserAttributeAssignment -B2cIdentityUserFlowId $b2cIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowUserAttributeAssignment -B2cIdentityUserFlowId $b2cIdentityUserFlowId -ExpandProperty "userAttribute" +``` +This example shows how to use the Get-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowUserAttributeAssignment -B2cIdentityUserFlowId $b2cIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -ExpandProperty "userAttribute" +``` +This example shows how to use the Get-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowUserAttributeAssignmentOrder.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowUserAttributeAssignmentOrder.md index 093355d11d5..3b511ab346d 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowUserAttributeAssignmentOrder.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2CUserFlowUserAttributeAssignmentOrder.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2CUserFlowUserAttributeAssignmentOrder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2CUserFlowUserAttributeAssignmentOrder -B2cIdentityUserFlowId $b2cIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2CUserFlowUserAttributeAssignmentOrder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlow.md index 093355d11d5..f080a277fb2 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlow.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlow -ExpandProperty "identityProviders" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityB2XUserFlow Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlow +``` +This example shows how to use the Get-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowIdentityProvider.md index 093355d11d5..4f2ad8123cc 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowIdentityProvider.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlowIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowIdentityProvider -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlowIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowLanguage.md index 093355d11d5..f20412d444e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowLanguage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlowLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlowLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md index 093355d11d5..b4239c403f7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -ExpandProperty "userAttribute" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityConditionalAccessAuthenticationContextClassReference.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityConditionalAccessAuthenticationContextClassReference.md index 093355d11d5..1dc60757b20 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityConditionalAccessAuthenticationContextClassReference.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityConditionalAccessAuthenticationContextClassReference.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityConditionalAccessAuthenticationContextClassReference -AuthenticationContextClassReferenceId $authenticationContextClassReferenceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityConditionalAccessAuthenticationContextClassReference ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityConditionalAccessAuthenticationContextClassReference -AuthenticationContextClassReferenceId $authenticationContextClassReferenceId +``` +This example shows how to use the Get-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityContinuouAccessEvaluationPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityContinuouAccessEvaluationPolicy.md index 093355d11d5..12c3fd4eefd 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityContinuouAccessEvaluationPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityContinuouAccessEvaluationPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityContinuouAccessEvaluationPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityContinuouAccessEvaluationPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityContinuouAccessEvaluationPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityProvider.md index 093355d11d5..4fae7342030 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityProvider.md @@ -1,18 +1,70 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderId $identityProviderId +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderId $identityProviderId +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 8: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -OutFile $outFileId +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 9: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 10: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityUserFlow.md index 093355d11d5..797f2326acf 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityUserFlow.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityUserFlow -IdentityUserFlowId $identityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityUserFlow ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityUserFlowAttribute.md index 093355d11d5..559459b4d9a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgIdentityUserFlowAttribute.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityUserFlowAttribute ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgInformationProtectionBitlockerRecoveryKey.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgInformationProtectionBitlockerRecoveryKey.md index 093355d11d5..de811afd0a5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgInformationProtectionBitlockerRecoveryKey.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgInformationProtectionBitlockerRecoveryKey.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionBitlockerRecoveryKey ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionBitlockerRecoveryKey -Filter "deviceId eq '1ab40ab2-32a8-4b00-b6b5-ba724e407de9'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $bitlockerRecoveryKeyId +``` +This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $bitlockerRecoveryKeyId -Property "key" +``` +This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgInformationProtectionThreatAssessmentRequest.md index 093355d11d5..28ea7eda368 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgInformationProtectionThreatAssessmentRequest.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId +``` +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -ExpandProperty "results" +``` +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest +``` +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId +``` +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOauth2PermissionGrant.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOauth2PermissionGrant.md index 093355d11d5..6886116e856 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOauth2PermissionGrant.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOauth2PermissionGrant ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOauth2PermissionGrantDelta.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOauth2PermissionGrantDelta.md index 093355d11d5..51ba17a10be 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOauth2PermissionGrantDelta.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOauth2PermissionGrantDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOauth2PermissionGrantDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOauth2PermissionGrantDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOauth2PermissionGrantDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOrganizationCertificateBasedAuthConfiguration.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOrganizationCertificateBasedAuthConfiguration.md index 093355d11d5..62dba8d8694 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOrganizationCertificateBasedAuthConfiguration.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgOrganizationCertificateBasedAuthConfiguration.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId -CertificateBasedAuthConfigurationId $certificateBasedAuthConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAccessReviewPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAccessReviewPolicy.md index 093355d11d5..2eb7b532773 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAccessReviewPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAccessReviewPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAccessReviewPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAccessReviewPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAccessReviewPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyActivityBasedTimeoutPolicy.md index 093355d11d5..c81eb394fd0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyActivityBasedTimeoutPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAdminConsentRequestPolicy.md index 093355d11d5..ee06d4621b7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAdminConsentRequestPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAdminConsentRequestPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAdminConsentRequestPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAdminConsentRequestPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAppManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAppManagementPolicy.md index 093355d11d5..daad95252f3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAppManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAppManagementPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAppManagementPolicy -AppManagementPolicyId $appManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAppManagementPolicy ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAppManagementPolicyApplyTo.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAppManagementPolicyApplyTo.md index 093355d11d5..5782fd24d66 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAppManagementPolicyApplyTo.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAppManagementPolicyApplyTo.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAppManagementPolicyApplyTo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAppManagementPolicyApplyTo -AppManagementPolicyId $appManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyAppManagementPolicyApplyTo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyAppManagementPolicyApplyTo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAppManagementPolicyApplyTo -AppManagementPolicyId $appManagementPolicyId -Property "id,appId,displayName,createdDateTime" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAppManagementPolicyApplyTo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationFlowPolicy.md index 093355d11d5..a13c86a1e80 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationFlowPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAuthenticationFlowPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationFlowPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAuthenticationFlowPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationMethodPolicy.md index 093355d11d5..75477a41d29 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationMethodPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAuthenticationMethodPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md index 093355d11d5..024fcf7d838 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyB2CAuthenticationMethodPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyB2CAuthenticationMethodPolicy.md index 093355d11d5..e66704047b7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyB2CAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyB2CAuthenticationMethodPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyB2CAuthenticationMethodPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyB2CAuthenticationMethodPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyB2CAuthenticationMethodPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyClaimMappingPolicy.md index 093355d11d5..c08a9fbb2da 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyClaimMappingPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyClaimMappingPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicy.md index 093355d11d5..1652fc09ccd 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyCrossTenantAccessPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyCrossTenantAccessPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicyDefault.md index 093355d11d5..7ae532c239b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicyDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyCrossTenantAccessPolicyDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyCrossTenantAccessPolicyDefault ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicyPartner.md index 093355d11d5..33ae6aa3f98 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyCrossTenantAccessPolicyPartner ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyDefaultAppManagementPolicy.md index 093355d11d5..8f55df0d7f7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyDefaultAppManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyDefaultAppManagementPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyDefaultAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyDefaultAppManagementPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyDefaultAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyDeviceRegistrationPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyDeviceRegistrationPolicy.md index 093355d11d5..5945c82167b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyDeviceRegistrationPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyDeviceRegistrationPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyDeviceRegistrationPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyDeviceRegistrationPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyDeviceRegistrationPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyExternalIdentityPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyExternalIdentityPolicy.md index 093355d11d5..68aa476bfcf 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyExternalIdentityPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyExternalIdentityPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyExternalIdentityPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyExternalIdentityPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyExternalIdentityPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyFeatureRolloutPolicy.md index 093355d11d5..409f7518584 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyFeatureRolloutPolicy.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyFeatureRolloutPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPolicyFeatureRolloutPolicy Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId +``` +This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyHomeRealmDiscoveryPolicy.md index 093355d11d5..f111110a7fd 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyHomeRealmDiscoveryPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 093355d11d5..d99fd54d041 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileAppManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileAppManagementPolicy.md index 093355d11d5..fdff51b31ac 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileAppManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileAppManagementPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyMobileAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyMobileAppManagementPolicy -MobilityManagementPolicyId $mobilityManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyMobileAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyMobileAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyMobileAppManagementPolicy ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyMobileAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileAppManagementPolicyIncludedGroup.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileAppManagementPolicyIncludedGroup.md index 093355d11d5..6c89c7fda11 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileAppManagementPolicyIncludedGroup.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileAppManagementPolicyIncludedGroup.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyMobileAppManagementPolicyIncludedGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyMobileAppManagementPolicyIncludedGroup -MobilityManagementPolicyId $mobilityManagementPolicyId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyMobileAppManagementPolicyIncludedGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyMobileAppManagementPolicyIncludedGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyMobileAppManagementPolicyIncludedGroup -MobilityManagementPolicyId $mobilityManagementPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyMobileAppManagementPolicyIncludedGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileDeviceManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileDeviceManagementPolicy.md index 093355d11d5..736bd05a277 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileDeviceManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileDeviceManagementPolicy.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyMobileDeviceManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyMobileDeviceManagementPolicy -MobilityManagementPolicyId $mobilityManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyMobileDeviceManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyMobileDeviceManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyMobileDeviceManagementPolicy -MobilityManagementPolicyId $mobilityManagementPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyMobileDeviceManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPolicyMobileDeviceManagementPolicy Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyMobileDeviceManagementPolicy +``` +This example shows how to use the Get-MgPolicyMobileDeviceManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgPolicyMobileDeviceManagementPolicy Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyMobileDeviceManagementPolicy -OutFile $outFileId +``` +This example shows how to use the Get-MgPolicyMobileDeviceManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileDeviceManagementPolicyIncludedGroup.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileDeviceManagementPolicyIncludedGroup.md index 093355d11d5..c3569f6fd38 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileDeviceManagementPolicyIncludedGroup.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyMobileDeviceManagementPolicyIncludedGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyMobileDeviceManagementPolicyIncludedGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyMobileDeviceManagementPolicyIncludedGroup -MobilityManagementPolicyId $mobilityManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyMobileDeviceManagementPolicyIncludedGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicy.md index c7d78701138..82f8c246244 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicy.md @@ -43,4 +43,5 @@ AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metad [includes@odata.context, https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions')/includes]…} ``` -This command retrieves a specified permission grant policy in Azure AD. \ No newline at end of file +This command retrieves a specified permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyExclude.md index 32571820719..94218d6bb6b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyExclude.md @@ -30,3 +30,4 @@ AdditionalProperties : {[scopeSensitivityLabels, System.C ``` This command retrieves a specified permission grant policy exclude configuration in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicy.md index 093355d11d5..5133ead3bcb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyRoleManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyRoleManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyAssignment.md index 093355d11d5..c6e7cb51b5f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyAssignment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'Directory'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyEffectiveRule.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyEffectiveRule.md index 093355d11d5..1f616889b71 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyEffectiveRule.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyEffectiveRule.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyRoleManagementPolicyEffectiveRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyEffectiveRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyRoleManagementPolicyEffectiveRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyRule.md index 093355d11d5..984a79e96e8 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyRoleManagementPolicyRule.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyRoleManagementPolicyRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyRoleManagementPolicyRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyRoleManagementPolicyRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyRoleManagementPolicyRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPolicyRoleManagementPolicyRule Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicyRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyTokenIssuancePolicy.md index 093355d11d5..db347e52326 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyTokenIssuancePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyTokenIssuancePolicy ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyTokenLifetimePolicy.md index 093355d11d5..b0732911a74 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyTokenLifetimePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyTokenLifetimePolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgRiskyServicePrincipal.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgRiskyServicePrincipal.md index 093355d11d5..8df103a96e0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgRiskyServicePrincipal.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgRiskyServicePrincipal.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRiskyServicePrincipal Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgRiskyServicePrincipal -RiskyServicePrincipalId $riskyServicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRiskyServicePrincipal Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRiskyServicePrincipal Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgRiskyServicePrincipal ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRiskyServicePrincipal Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgRiskyServicePrincipalHistory.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgRiskyServicePrincipalHistory.md index 093355d11d5..085c63f7998 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgRiskyServicePrincipalHistory.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgRiskyServicePrincipalHistory.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRiskyServicePrincipalHistory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgRiskyServicePrincipalHistory -RiskyServicePrincipalId $riskyServicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgRiskyServicePrincipalHistory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgServicePrincipalRiskDetection.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgServicePrincipalRiskDetection.md index 093355d11d5..fe11a0e9dd7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgServicePrincipalRiskDetection.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgServicePrincipalRiskDetection.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalRiskDetection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgServicePrincipalRiskDetection -ServicePrincipalRiskDetectionId $servicePrincipalRiskDetectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServicePrincipalRiskDetection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServicePrincipalRiskDetection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgServicePrincipalRiskDetection -Filter "riskEventType eq 'investigationsThreatIntelligence' or riskLevel eq 'medium'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalRiskDetection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgServicePrincipalRiskDetection Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgServicePrincipalRiskDetection +``` +This example shows how to use the Get-MgServicePrincipalRiskDetection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkKeySet.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkKeySet.md index 093355d11d5..66ac42a1274 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkKeySet.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkKeySet.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTrustFrameworkKeySet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgTrustFrameworkKeySet ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTrustFrameworkKeySet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTrustFrameworkKeySet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgTrustFrameworkKeySet -TrustFrameworkKeySetId $trustFrameworkKeySetId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTrustFrameworkKeySet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkKeySetActiveKey.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkKeySetActiveKey.md index 093355d11d5..96ee9eade52 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkKeySetActiveKey.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkKeySetActiveKey.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTrustFrameworkKeySetActiveKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgTrustFrameworkKeySetActiveKey -TrustFrameworkKeySetId $trustFrameworkKeySetId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTrustFrameworkKeySetActiveKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkPolicy.md index 093355d11d5..da18709429b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgTrustFrameworkPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTrustFrameworkPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgTrustFrameworkPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTrustFrameworkPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationEmailMethod.md index 093355d11d5..c6ce2c9abbe 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationEmailMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationEmailMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationFido2Method.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationFido2Method.md index 093355d11d5..4da1bab2b42 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationFido2Method.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationFido2Method.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationFido2Method Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationFido2Method Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationFido2Method Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationFido2Method -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationFido2Method Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationMethod.md index 093355d11d5..9e393024163 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationMethod -UserId $userId -AuthenticationMethodId $authenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md index 093355d11d5..decbc7b38a5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationOperation.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationOperation.md index 093355d11d5..be39c89e922 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationOperation.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationOperation -UserId $userId -LongRunningOperationId $longRunningOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPasswordMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPasswordMethod.md index 093355d11d5..cefc8bfa00f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPasswordMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPasswordMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationPasswordMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPasswordMethod -UserId $userId -PasswordAuthenticationMethodId $passwordAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationPasswordMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationPasswordMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPasswordMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationPasswordMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod.md index 093355d11d5..381a2d16e65 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod -UserId $userId -PasswordlessMicrosoftAuthenticatorAuthenticationMethodId $passwordlessMicrosoftAuthenticatorAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPhoneMethod.md index 093355d11d5..2bc9fa82043 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationPhoneMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPhoneMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationSoftwareOathMethod.md index 093355d11d5..bd08915fec1 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationSoftwareOathMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationSoftwareOathMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationTemporaryAccessPassMethod.md index 093355d11d5..7ffe8feb4e0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethod.md index 093355d11d5..6ec810677a5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethod.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationWindowHelloForBusinessMethod -UserId $userId -WindowsHelloForBusinessAuthenticationMethodId $windowsHelloForBusinessAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationWindowHelloForBusinessMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserInformationProtectionPolicyLabel.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserInformationProtectionPolicyLabel.md index 093355d11d5..01cd88efe7d 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserInformationProtectionPolicyLabel.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgUserInformationProtectionPolicyLabel.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserInformationProtectionPolicyLabel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserInformationProtectionPolicyLabel -UserId $userId -InformationProtectionLabelId $informationProtectionLabelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserInformationProtectionPolicyLabel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserInformationProtectionPolicyLabel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserInformationProtectionPolicyLabel -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserInformationProtectionPolicyLabel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgAvailableIdentityProviderType.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgAvailableIdentityProviderType.md index 093355d11d5..6360c5ceb24 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgAvailableIdentityProviderType.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgAvailableIdentityProviderType.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAvailableIdentityProviderType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Invoke-MgAvailableIdentityProviderType ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgAvailableIdentityProviderType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgAvailableIdentityProviderType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Invoke-MgAvailableIdentityProviderType ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAvailableIdentityProviderType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Invoke-MgAvailableIdentityProviderType Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Invoke-MgAvailableIdentityProviderType -OutFile $outFileId +``` +This example shows how to use the Invoke-MgAvailableIdentityProviderType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgDismissRiskyServicePrincipal.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgDismissRiskyServicePrincipal.md index 093355d11d5..7f547fb8b67 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgDismissRiskyServicePrincipal.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgDismissRiskyServicePrincipal.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgDismissRiskyServicePrincipal Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ServicePrincipalIds = @( + "9089a539-a539-9089-39a5-899039a58990" + ) +} +Invoke-MgDismissRiskyServicePrincipal -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgDismissRiskyServicePrincipal Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgDismissRiskyUser.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgDismissRiskyUser.md index 093355d11d5..16bbe303c32 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgDismissRiskyUser.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgDismissRiskyUser.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgDismissRiskyUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + UserIds = @( + "04487ee0-f4f6-4e7f-8999-facc5a30e232" + "13387ee0-f4f6-4e7f-8999-facc5120e345" + ) +} +Invoke-MgDismissRiskyUser -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgDismissRiskyUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgExtractInformationProtectionPolicyLabel.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgExtractInformationProtectionPolicyLabel.md index 093355d11d5..aca9162b21a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgExtractInformationProtectionPolicyLabel.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgExtractInformationProtectionPolicyLabel.md @@ -1,18 +1,55 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgExtractInformationProtectionPolicyLabel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ContentInfo = @{ + "@odata.type" = "#microsoft.graph.contentInfo" + "Format@odata.type" = "#microsoft.graph.contentFormat" + Format = "default" + Identifier = $null + "State@odata.type" = "#microsoft.graph.contentState" + State = "rest" + "Metadata@odata.type" = "#Collection(microsoft.graph.keyValuePair)" + Metadata = @( + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_Enabled" + Value = "True" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_Method" + Value = "Standard" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_SetDate" + Value = "1/1/0001 12:00:00 AM" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_SiteId" + Value = "cfa4cf1d-a337-4481-aa99-19d8f3d63f7c" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_Name" + Value = "Top Secret" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_ContentBits" + Value = "0" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_ActionId" + Value = "00000000-0000-0000-0000-000000000000" + } + ) + } +} +Invoke-MgExtractInformationProtectionPolicyLabel -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgExtractInformationProtectionPolicyLabel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadIdentityApiConnectorClientCertificate.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadIdentityApiConnectorClientCertificate.md index 093355d11d5..80281cb67fb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadIdentityApiConnectorClientCertificate.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadIdentityApiConnectorClientCertificate.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUploadIdentityApiConnectorClientCertificate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "" +} +Invoke-MgUploadIdentityApiConnectorClientCertificate -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUploadIdentityApiConnectorClientCertificate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetCertificate.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetCertificate.md index 093355d11d5..8d4e2b28a0e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetCertificate.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetCertificate.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUploadTrustFrameworkKeySetCertificate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Key = "key-value" +} +Invoke-MgUploadTrustFrameworkKeySetCertificate -TrustFrameworkKeySetId $trustFrameworkKeySetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUploadTrustFrameworkKeySetCertificate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetPkcs12.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetPkcs12.md index 093355d11d5..ea981bd3a6b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetPkcs12.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetPkcs12.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUploadTrustFrameworkKeySetPkcs12 Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Key = "Base64-encoded-pfx-content" + Password = "password-value" +} +Invoke-MgUploadTrustFrameworkKeySetPkcs12 -TrustFrameworkKeySetId $trustFrameworkKeySetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUploadTrustFrameworkKeySetPkcs12 Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetSecret.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetSecret.md index 093355d11d5..9b08a9e914b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetSecret.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Invoke-MgUploadTrustFrameworkKeySetSecret.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUploadTrustFrameworkKeySetSecret Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Use = "use-value" + K = "application-secret-to-be-uploaded" + Nbf = 1508969811 + Exp = 1508973711 +} +Invoke-MgUploadTrustFrameworkKeySetSecret -TrustFrameworkKeySetId $trustFrameworkKeySetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUploadTrustFrameworkKeySetSecret Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityApiConnector.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityApiConnector.md index 093355d11d5..429e24ae1a4 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityApiConnector.md @@ -1,18 +1,48 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "Test API" + TargetUrl = "https://someapi.com/api" + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.basicAuthentication" + Username = "" + Password = "" + } +} +New-MgIdentityApiConnector -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "Test API" + TargetUrl = "https://someotherapi.com/api" + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "" + } +} +New-MgIdentityApiConnector -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgIdentityApiConnector Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "Test API" + TargetUrl = "https://someotherapi.com/api" + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "" + } +} +New-MgIdentityApiConnector -BodyParameter $params +``` +This example shows how to use the New-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlow.md index 093355d11d5..803f68a258b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlow.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityB2CUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "UserFlowWithAPIConnector" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 1 + ApiConnectorConfiguration = @{ + PostFederationSignup = @{ + "@odata.id" = "{apiConnectorId}" + } + PostAttributeCollection = @{ + "@odata.id" = "{apiConnectorId}" + } + } +} +New-MgIdentityB2CUserFlow -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgIdentityB2CUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgIdentityB2CUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "Customer" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 3 + IdentityProviders = @( + @{ + Id = "Facebook-OAuth" + } + ) +} +New-MgIdentityB2CUserFlow -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityB2CUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgIdentityB2CUserFlow Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "Customer" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 3 +} +New-MgIdentityB2CUserFlow -BodyParameter $params +``` +This example shows how to use the New-MgIdentityB2CUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlowIdentityProviderByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlowIdentityProviderByRef.md index 093355d11d5..466cc70f0b8 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlowIdentityProviderByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlowIdentityProviderByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityB2CUserFlowIdentityProviderByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.id" = "https://graph.microsoft.com/beta/identityProviders/{id}" +} +New-MgIdentityB2CUserFlowIdentityProviderByRef -B2cIdentityUserFlowId $b2cIdentityUserFlowId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityB2CUserFlowIdentityProviderByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlowUserAttributeAssignment.md index 093355d11d5..60112b73a80 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2CUserFlowUserAttributeAssignment.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + IsOptional = $false + RequiresVerification = $false + UserInputType = "TextBox" + DisplayName = "Shoe size" + UserAttributeValues = @( + ) + UserAttribute = @{ + Id = "extension_guid_shoeSize" + } +} +New-MgIdentityB2CUserFlowUserAttributeAssignment -B2cIdentityUserFlowId $b2cIdentityUserFlowId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2XUserFlow.md index 093355d11d5..25bca12bb00 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2XUserFlow.md @@ -1,18 +1,51 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "UserFlowWithAPIConnector" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 1 + ApiConnectorConfiguration = @{ + PostFederationSignup = @{ + "@odata.id" = "{apiConnectorId}" + } + PostAttributeCollection = @{ + "@odata.id" = "{apiConnectorId}" + } + } +} +New-MgIdentityB2XUserFlow -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "Partner" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 1 + IdentityProviders = @( + @{ + Id = "Facebook-OAuth" + Type = "Facebook" + Name = "Facebook" + } + ) +} +New-MgIdentityB2XUserFlow -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgIdentityB2XUserFlow Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "Partner" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 1 +} +New-MgIdentityB2XUserFlow -BodyParameter $params +``` +This example shows how to use the New-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2XUserFlowUserAttributeAssignment.md index 093355d11d5..aca99cdf086 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + IsOptional = $false + RequiresVerification = $false + UserInputType = "TextBox" + DisplayName = "Shoe size" + UserAttributeValues = @( + ) + UserAttribute = @{ + Id = "extension_guid_shoeSize" + } +} +New-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityConditionalAccessAuthenticationContextClassReference.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityConditionalAccessAuthenticationContextClassReference.md index 093355d11d5..24a99619ca0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityConditionalAccessAuthenticationContextClassReference.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityConditionalAccessAuthenticationContextClassReference.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "c1" + DisplayName = "Contoso medium" + Description = "Medium protection level defined for Contoso policy" + IsAvailable = $true +} +New-MgIdentityConditionalAccessAuthenticationContextClassReference -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityProvider.md index 093355d11d5..997119a532d 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityProvider.md @@ -1,18 +1,80 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "microsoft.graph.appleManagedIdentityProvider" + DisplayName = "Sign in with Apple" + DeveloperId = "UBF8T346G9" + ServiceId = "com.microsoft.rts.b2c.test.client" + KeyId = "99P6D879C4" + CertificateData = "******" +} +New-MgIdentityProvider -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "microsoft.graph.identityProvider" + Name = "Login with Amazon" + Type = "Amazon" + ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" + ClientSecret = "000000000000" +} +New-MgIdentityProvider -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "microsoft.graph.openIdConnectIdentityProvider" + DisplayName = "Login with the Contoso identity provider" + ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" + ClientSecret = "12345" + DomainHint = "mycustomoidc" + MetadataUrl = "https://mycustomoidc.com/.well-known/openid-configuration" + ResponseMode = "form_post" + ResponseType = "code" + Scope = "openid" +} +New-MgIdentityProvider -BodyParameter $params +``` +This example shows how to use the New-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "microsoft.graph.openIdConnectProvider" + Name = "Login with the Contoso identity provider" + Type = "OpenIDConnect" + ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" + ClientSecret = "12345" + DomainHint = "mycustomoidc" + MetadataUrl = "https://mycustomoidc.com/.well-known/openid-configuration" + ResponseMode = "form_post" + ResponseType = "code" + Scope = "openid" +} +New-MgIdentityProvider -BodyParameter $params +``` +This example shows how to use the New-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "microsoft.graph.socialIdentityProvider" + DisplayName = "Login with Amazon" + IdentityProviderType = "Amazon" + ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" + ClientSecret = "000000000000" +} +New-MgIdentityProvider -BodyParameter $params +``` +This example shows how to use the New-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityUserFlow.md index 093355d11d5..8faaf714a60 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityUserFlow.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "Pol1" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 1 +} +New-MgIdentityUserFlow -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityUserFlowAttribute.md index 093355d11d5..e296bf1fa7f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgIdentityUserFlowAttribute.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "Hobby" + Description = "Your hobby" + DataType = "string" +} +New-MgIdentityUserFlowAttribute -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgInformationProtectionThreatAssessmentRequest.md index 093355d11d5..901e71ead7d 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgInformationProtectionThreatAssessmentRequest.md @@ -1,18 +1,55 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.emailFileAssessmentRequest" + RecipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + ExpectedAssessment = "block" + Category = "malware" + ContentData = "UmVjZWl2ZWQ6IGZyb20gTVcyUFIwME1CMDMxNC5uYW1wcmQwMC....." +} +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.fileAssessmentRequest" + ExpectedAssessment = "block" + Category = "malware" + FileName = "test.txt" + ContentData = "VGhpcyBpcyBhIHRlc3QgZmlsZQ==" +} +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.mailAssessmentRequest" + RecipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + ExpectedAssessment = "block" + Category = "spam" + MessageUri = "https://graph.microsoft.com/beta/users/c52ce8db-3e4b-4181-93c4-7d6b6bffaf60/messages/AAMkADU3MWUxOTU0LWNlOTEt=" +} +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.urlAssessmentRequest" + Url = "http://test.com" + ExpectedAssessment = "block" + Category = "phishing" +} +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgOauth2PermissionGrant.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgOauth2PermissionGrant.md index 093355d11d5..092a9c0a9b4 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgOauth2PermissionGrant.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ClientId = "ef969797-201d-4f6b-960c-e9ed5f31dab5" + ConsentType = "AllPrincipals" + ResourceId = "943603e4-e787-4fe9-93d1-e30f749aae39" + Scope = "DelegatedPermissionGrant.ReadWrite.All" + StartTime = [System.DateTime]::Parse("2022-03-17T00:00:00Z") + ExpiryTime = [System.DateTime]::Parse("2023-03-17T00:00:00Z") +} +New-MgOauth2PermissionGrant -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyActivityBasedTimeoutPolicy.md index 093355d11d5..004e0922584 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +New-MgPolicyActivityBasedTimeoutPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyClaimMappingPolicy.md index 093355d11d5..02afa593e74 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyClaimMappingPolicy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "{"ClaimsMappingPolicy":{"Version":1,"IncludeBasicClaimSet":"true","ClaimsSchema": [{"Source":"user","ID":"userprincipalname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"},{"Source":"user","ID":"givenname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"},{"Source":"user","ID":"displayname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},{"Source":"user","ID":"surname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"},{"Source":"user","ID":"userprincipalname","SamlClaimType":"username"}],"ClaimsTransformation":[{"ID":"CreateTermsOfService","TransformationMethod":"CreateStringClaim","InputParameters": [{"ID":"value","DataType":"string", "Value":"sandbox"}],"OutputClaims":[{"ClaimTypeReferenceId":"TOS","TransformationClaimType":"createdClaim"}]}]}}" + ) + DisplayName = "Test1234" +} +New-MgPolicyClaimMappingPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyCrossTenantAccessPolicyPartner.md index 093355d11d5..08248d42e4e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,18 +1,32 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + TenantId = "3d0f5dec-5d3d-455c-8016-e2af1ae4d31a" + B2bDirectConnectOutbound = @{ + UsersAndGroups = @{ + AccessType = "blocked" + Targets = @( + @{ + Target = "6f546279-4da5-4b53-a095-09ea0cef9971" + TargetType = "group" + } + ) + } + } + B2bDirectConnectInbound = @{ + Applications = @{ + AccessType = "allowed" + Targets = @( + @{ + Target = "Office365" + TargetType = "application" + } + ) + } + } +} +New-MgPolicyCrossTenantAccessPolicyPartner -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyFeatureRolloutPolicy.md index 093355d11d5..373de32eaff 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyFeatureRolloutPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "PassthroughAuthentication rollout policy" + Description = "PassthroughAuthentication rollout policy" + Feature = "passthroughAuthentication" + IsEnabled = $true + IsAppliedToOrganization = $false +} +New-MgPolicyFeatureRolloutPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md index 093355d11d5..0dab98d8600 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.id" = " https://graph.microsoft.com/beta/directoryObjects/2441b489-4f12-4882-b039-8f6006bd66da" +} +New-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyHomeRealmDiscoveryPolicy.md index 093355d11d5..e1b04fb9256 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +New-MgPolicyHomeRealmDiscoveryPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyMobileAppManagementPolicyIncludedGroupByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyMobileAppManagementPolicyIncludedGroupByRef.md index 093355d11d5..57aee1a0639 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyMobileAppManagementPolicyIncludedGroupByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyMobileAppManagementPolicyIncludedGroupByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyMobileAppManagementPolicyIncludedGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.id" = "https://graph.microsoft.com/odata/groups('1a9db3ab-0acf-4808-99ae-e8ed581cb2e0')" +} +New-MgPolicyMobileAppManagementPolicyIncludedGroupByRef -MobilityManagementPolicyId $mobilityManagementPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyMobileAppManagementPolicyIncludedGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef.md index 093355d11d5..26091980269 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.id" = "https://graph.microsoft.com/odata/groups('dc3d2ce5-7c5e-4dca-a0ef-2145bf6e53ef')" +} +New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef -MobilityManagementPolicyId $mobilityManagementPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.id" = "https://graph.microsoft.com/odata/groups('dc3d2ce5-7c5e-4dca-a0ef-2145bf6e53ef')" +} +New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef -MobilityManagementPolicyId $mobilityManagementPolicyId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicy.md index 3ed4353404f..cdbebee9907 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicy.md @@ -14,3 +14,4 @@ AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metad ``` This command creates a new permission grant policy in Azure AD. Specific include and exclude configurations can be created using the `New-MgPolicyPermissionGrantPolicyInclude` and `New-MgPolicyPermissionGrantPolicyExclude` cmdlets. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyExclude.md index 517327b3404..e54279a37b5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyExclude.md @@ -17,3 +17,4 @@ AdditionalProperties : {[@odata.context, https://graph.mi ``` This command creates a new permission grant policy exclude configuration for the specified permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyTokenIssuancePolicy.md index 093355d11d5..9d7351e87fd 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyTokenIssuancePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +New-MgPolicyTokenIssuancePolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyTokenLifetimePolicy.md index 093355d11d5..00b365ba89a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyTokenLifetimePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +New-MgPolicyTokenLifetimePolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgTrustFrameworkKeySet.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgTrustFrameworkKeySet.md index 093355d11d5..fbff9b08760 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgTrustFrameworkKeySet.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgTrustFrameworkKeySet.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTrustFrameworkKeySet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "keyset1" + Keys = @( + @{ + K = "k-value" + X5c = @( + "x5c-value" + ) + X5t = "x5t-value" + Kty = "kty-value" + Use = "use-value" + Exp = 99 + Nbf = 99 + Kid = "kid-value" + E = "e-value" + N = "n-value" + D = "d-value" + P = "p-value" + Q = "q-value" + Dp = "dp-value" + Dq = "dq-value" + Qi = "qi-value" + } + ) +} +New-MgTrustFrameworkKeySet -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTrustFrameworkKeySet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTrustFrameworkKeySet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "keyset1" +} +New-MgTrustFrameworkKeySet -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTrustFrameworkKeySet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgTrustFrameworkKeySetKey.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgTrustFrameworkKeySetKey.md index 093355d11d5..341a1c44077 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgTrustFrameworkKeySetKey.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgTrustFrameworkKeySetKey.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTrustFrameworkKeySetKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Use = "sig" + Kty = "RSA" + Nbf = 1508969811 + Exp = 1508969811 +} +New-MgTrustFrameworkKeySetKey -TrustFrameworkKeySetId $trustFrameworkKeySetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTrustFrameworkKeySetKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationEmailMethod.md index 093355d11d5..71c41f18dc3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationEmailMethod.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + EmailAddress = "kim@contoso.com" +} +New-MgUserAuthenticationEmailMethod -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationPhoneMethod.md index 093355d11d5..a4751566f82 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationPhoneMethod.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + PhoneNumber = "+1 2065555555" + PhoneType = "mobile" +} +# A UPN can also be used as -UserId. +New-MgUserAuthenticationPhoneMethod -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationTemporaryAccessPassMethod.md index 093355d11d5..7a823021bde 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + StartDateTime = [System.DateTime]::Parse("2022-06-05T00:00:00.000Z") + LifetimeInMinutes = 60 + IsUsableOnce = $false +} +New-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityApiConnector.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityApiConnector.md index 093355d11d5..2c391416e36 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityApiConnector.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlow.md index 093355d11d5..30687e36200 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlow.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityB2CUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityB2CUserFlow -B2cIdentityUserFlowId $b2cIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityB2CUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowIdentityProviderByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowIdentityProviderByRef.md index 093355d11d5..2687eaca2a7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowIdentityProviderByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowIdentityProviderByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityB2CUserFlowIdentityProviderByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityB2CUserFlowIdentityProviderByRef -B2cIdentityUserFlowId $b2cIdentityUserFlowId -IdentityProviderId $identityProviderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityB2CUserFlowIdentityProviderByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowLanguage.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowLanguage.md index 093355d11d5..982a6131bed 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowLanguage.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowLanguage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityB2CUserFlowLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityB2CUserFlowLanguage -B2cIdentityUserFlowId $b2cIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityB2CUserFlowLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowUserAttributeAssignment.md index 093355d11d5..260038a2783 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2CUserFlowUserAttributeAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityB2CUserFlowUserAttributeAssignment -B2cIdentityUserFlowId $b2cIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2XUserFlow.md index 093355d11d5..41afb02897f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2XUserFlow.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2XUserFlowIdentityProviderByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2XUserFlowIdentityProviderByRef.md index 093355d11d5..1da9e5b7aba 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2XUserFlowIdentityProviderByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityB2XUserFlowIdentityProviderByRef.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityB2XUserFlowIdentityProviderByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityB2XUserFlowIdentityProviderByRef -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgIdentityB2XUserFlowIdentityProviderByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgIdentityB2XUserFlowIdentityProviderByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityB2XUserFlowIdentityProviderByRef -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityB2XUserFlowIdentityProviderByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityProvider.md index 093355d11d5..e5d0701e143 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityProvider.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityUserFlow.md index 093355d11d5..58c775af378 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityUserFlow.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityUserFlow -IdentityUserFlowId $identityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityUserFlowAttribute.md index 093355d11d5..4428c56f617 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgIdentityUserFlowAttribute.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgOauth2PermissionGrant.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgOauth2PermissionGrant.md index 093355d11d5..9b181d80bb5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgOauth2PermissionGrant.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyActivityBasedTimeoutPolicy.md index 093355d11d5..52a82621278 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyAppManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyAppManagementPolicy.md index 093355d11d5..41aae11eb6f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyAppManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyAppManagementPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAppManagementPolicy -AppManagementPolicyId $appManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md index 093355d11d5..8e7042040ae 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyClaimMappingPolicy.md index 093355d11d5..bce6459f0ff 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyClaimMappingPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyCrossTenantAccessPolicyPartner.md index 093355d11d5..f1ade290468 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyFeatureRolloutPolicy.md index 093355d11d5..dadb557f6f5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyFeatureRolloutPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md index 093355d11d5..16aac6be8c0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyHomeRealmDiscoveryPolicy.md index 093355d11d5..42c25002d03 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileAppManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileAppManagementPolicy.md index 093355d11d5..48b3f4829a9 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileAppManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileAppManagementPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyMobileAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyMobileAppManagementPolicy -MobilityManagementPolicyId $mobilityManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyMobileAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileAppManagementPolicyIncludedGroupByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileAppManagementPolicyIncludedGroupByRef.md index 093355d11d5..7e1051c8bd8 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileAppManagementPolicyIncludedGroupByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileAppManagementPolicyIncludedGroupByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyMobileAppManagementPolicyIncludedGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyMobileAppManagementPolicyIncludedGroupByRef -MobilityManagementPolicyId $mobilityManagementPolicyId -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyMobileAppManagementPolicyIncludedGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileDeviceManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileDeviceManagementPolicy.md index 093355d11d5..b9acf12abb3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileDeviceManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileDeviceManagementPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyMobileDeviceManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyMobileDeviceManagementPolicy -MobilityManagementPolicyId $mobilityManagementPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgPolicyMobileDeviceManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgPolicyMobileDeviceManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyMobileDeviceManagementPolicy -MobilityManagementPolicyId $mobilityManagementPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyMobileDeviceManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef.md index 093355d11d5..2a2c57be1fe 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef -MobilityManagementPolicyId $mobilityManagementPolicyId -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyMobileDeviceManagementPolicyIncludedGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md index 20bef32f0af..26725a5179b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md @@ -6,3 +6,4 @@ Remove-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "60ba ``` This command deletes the specified exclude configuration from the specific permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md index b4ac9a24cfd..543f41d1d48 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md @@ -5,4 +5,4 @@ Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.Permission Remove-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b9abc-cf56-4d84-bdb0-5ad8f3a51038" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` -This command deletes the specified include configuration from the specific permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyTokenIssuancePolicy.md index 093355d11d5..c2333972a62 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyTokenIssuancePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyTokenLifetimePolicy.md index 093355d11d5..9a32bcccd62 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyTokenLifetimePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgTrustFrameworkKeySet.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgTrustFrameworkKeySet.md index 093355d11d5..cb39222e5c7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgTrustFrameworkKeySet.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgTrustFrameworkKeySet.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTrustFrameworkKeySet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgTrustFrameworkKeySet -TrustFrameworkKeySetId $trustFrameworkKeySetId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTrustFrameworkKeySet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgTrustFrameworkPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgTrustFrameworkPolicy.md index 093355d11d5..263c705309a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgTrustFrameworkPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgTrustFrameworkPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTrustFrameworkPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgTrustFrameworkPolicy -TrustFrameworkPolicyId $trustFrameworkPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTrustFrameworkPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationEmailMethod.md index 093355d11d5..c5a2f4ffb16 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationEmailMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationFido2Method.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationFido2Method.md index 093355d11d5..a10bc3e26a0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationFido2Method.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationFido2Method.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationFido2Method Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationFido2Method Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md index 093355d11d5..8ad03994dda 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod.md index 093355d11d5..a8a1e328d94 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod -UserId $userId -PasswordlessMicrosoftAuthenticatorAuthenticationMethodId $passwordlessMicrosoftAuthenticatorAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationPasswordlessMicrosoftAuthenticatorMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationPhoneMethod.md index 093355d11d5..7ff17c6323a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationPhoneMethod.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Remove-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationSoftwareOathMethod.md index 093355d11d5..ffcb8a49662 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationSoftwareOathMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationSoftwareOathMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationSoftwareOathMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md index 093355d11d5..f8351df4ef4 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationWindowHelloForBusinessMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationWindowHelloForBusinessMethod.md index 093355d11d5..c1e25594be3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationWindowHelloForBusinessMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgUserAuthenticationWindowHelloForBusinessMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationWindowHelloForBusinessMethod -UserId $userId -WindowsHelloForBusinessAuthenticationMethodId $windowsHelloForBusinessAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.md index 093355d11d5..7347182ffeb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2CUserFlowLanguageOverridePageContent.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2CUserFlowLanguageOverridePageContent.md index 093355d11d5..f2321f9fc6d 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2CUserFlowLanguageOverridePageContent.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2CUserFlowLanguageOverridePageContent.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgIdentityB2CUserFlowLanguageOverridePageContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + LocalizedStrings = @( + ) +} +Set-MgIdentityB2CUserFlowLanguageOverridePageContent -B2cIdentityUserFlowId $b2cIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -UserFlowLanguagePageId $userFlowLanguagePageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgIdentityB2CUserFlowLanguageOverridePageContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2CUserFlowUserAttributeAssignmentOrder.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2CUserFlowUserAttributeAssignmentOrder.md index 093355d11d5..ddb696c953c 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2CUserFlowUserAttributeAssignmentOrder.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2CUserFlowUserAttributeAssignmentOrder.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgIdentityB2CUserFlowUserAttributeAssignmentOrder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + NewAssignmentOrder = @{ + Order = @( + "City" + "extension_GUID_ShoeSize" + ) + } +} +Set-MgIdentityB2CUserFlowUserAttributeAssignmentOrder -B2cIdentityUserFlowId $b2cIdentityUserFlowId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgIdentityB2CUserFlowUserAttributeAssignmentOrder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelApplication.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelApplication.md index 093355d11d5..ab175d837af 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelApplication.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelApplication.md @@ -1,18 +1,66 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgInformationProtectionPolicyLabelApplication Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ContentInfo = @{ + "@odata.type" = "#microsoft.graph.contentInfo" + "Format@odata.type" = "#microsoft.graph.contentFormat" + Format = "default" + Identifier = $null + "State@odata.type" = "#microsoft.graph.contentState" + State = "rest" + "Metadata@odata.type" = "#Collection(microsoft.graph.keyValuePair)" + Metadata = @( + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_Enabled" + Value = "True" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_Method" + Value = "Standard" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_SetDate" + Value = "1/1/0001 12:00:00 AM" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_SiteId" + Value = "cfa4cf1d-a337-4481-aa99-19d8f3d63f7c" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_Name" + Value = "General" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_ContentBits" + Value = "0" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_ActionId" + Value = "00000000-0000-0000-0000-000000000000" + } + ) + } + LabelingOptions = @{ + "@odata.type" = "#microsoft.graph.labelingOptions" + "AssignmentMethod@odata.type" = "#microsoft.graph.assignmentMethod" + AssignmentMethod = "standard" + "LabelId@odata.type" = "#Guid" + LabelId = "97309856-9c28-4ac6-9382-5f8bc20c457b" + DowngradeJustification = $null + "ExtendedProperties@odata.type" = "#Collection(microsoft.graph.keyValuePair)" + ExtendedProperties = @( + ) + } +} +Test-MgInformationProtectionPolicyLabelApplication -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgInformationProtectionPolicyLabelApplication Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelClassificationResult.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelClassificationResult.md index 093355d11d5..c06cab31def 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelClassificationResult.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelClassificationResult.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgInformationProtectionPolicyLabelClassificationResult Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ContentInfo = @{ + "@odata.type" = "#microsoft.graph.contentInfo" + "Format@odata.type" = "#microsoft.graph.contentFormat" + Format = "default" + Identifier = $null + "State@odata.type" = "#microsoft.graph.contentState" + State = "rest" + } + ClassificationResults = @( + @{ + SensitiveTypeId = "cb353f78-2b72-4c3c-8827-92ebe4f69fdf" + Count = 4 + ConfidenceLevel = 75 + } + ) +} +Test-MgInformationProtectionPolicyLabelClassificationResult -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgInformationProtectionPolicyLabelClassificationResult Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelRemoval.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelRemoval.md index 093355d11d5..60451e0b80f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelRemoval.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgInformationProtectionPolicyLabelRemoval.md @@ -1,18 +1,59 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgInformationProtectionPolicyLabelRemoval Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ContentInfo = @{ + "@odata.type" = "#microsoft.graph.contentInfo" + "Format@odata.type" = "#microsoft.graph.contentFormat" + Format = "default" + Identifier = $null + "State@odata.type" = "#microsoft.graph.contentState" + State = "rest" + "Metadata@odata.type" = "#Collection(microsoft.graph.keyValuePair)" + Metadata = @( + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_Enabled" + Value = "True" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_Method" + Value = "Standard" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_SetDate" + Value = "1/1/0001 12:00:00 AM" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_SiteId" + Value = "cfa4cf1d-a337-4481-aa99-19d8f3d63f7c" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_Name" + Value = "General" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_ContentBits" + Value = "0" + } + @{ + "@odata.type" = "#microsoft.graph.keyValuePair" + Name = "MSIP_Label_722a5300-ac39-4c9a-88e3-f54c46676417_ActionId" + Value = "00000000-0000-0000-0000-000000000000" + } + ) + } + DowngradeJustification = @{ + JustificationMessage = "The information has been declassified." + IsDowngradeJustified = $true + } +} +Test-MgInformationProtectionPolicyLabelRemoval -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgInformationProtectionPolicyLabelRemoval Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityApiConnector.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityApiConnector.md index 093355d11d5..d237445369c 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityApiConnector.md @@ -1,18 +1,44 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "New Test API" + TargetUrl = "https://otherapi.com/api/endpoint" + AuthenticationConfiguration = @{ + "@odata.type" = "microsoft.graph.basicAuthentication" + Username = "" + Password = "" + } +} +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "secret" + } +} +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgIdentityApiConnector Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "secret" + } +} +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityB2CUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityB2CUserFlow.md index 093355d11d5..36a16676f98 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityB2CUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityB2CUserFlow.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityB2CUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + IsLanguageCustomizationEnabled = $true + DefaultLanguageTag = "en" +} +Update-MgIdentityB2CUserFlow -B2cIdentityUserFlowId $b2cIdentityUserFlowId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityB2CUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityB2CUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityB2CUserFlowUserAttributeAssignment.md index 093355d11d5..59d1378863e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityB2CUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityB2CUserFlowUserAttributeAssignment.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + UserInputType = "textBox" +} +Update-MgIdentityB2CUserFlowUserAttributeAssignment -B2cIdentityUserFlowId $b2cIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityB2CUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityConditionalAccessAuthenticationContextClassReference.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityConditionalAccessAuthenticationContextClassReference.md index 093355d11d5..7b5e2003f7c 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityConditionalAccessAuthenticationContextClassReference.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityConditionalAccessAuthenticationContextClassReference.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Value = @( + ) +} +Update-MgIdentityConditionalAccessAuthenticationContextClassReference -AuthenticationContextClassReferenceId $authenticationContextClassReferenceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityContinuouAccessEvaluationPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityContinuouAccessEvaluationPolicy.md index 093355d11d5..ab819ef2b57 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityContinuouAccessEvaluationPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityContinuouAccessEvaluationPolicy.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityContinuouAccessEvaluationPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.continuousAccessEvaluationPolicy" + Migrate = $true +} +Update-MgIdentityContinuouAccessEvaluationPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityContinuouAccessEvaluationPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityProvider.md index 093355d11d5..9c009bbb0c3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityProvider.md @@ -1,18 +1,54 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + DisplayName = "Apple" +} +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ClientSecret = "1111111111111" +} +Update-MgIdentityProvider -IdentityProviderId $identityProviderId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + ResponseType = "id_token" +} +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Update-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + ResponseType = "id_token" +} +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Update-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + ClientSecret = "1111111111111" +} +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityUserFlowAttribute.md index 093355d11d5..a6f4a521f06 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgIdentityUserFlowAttribute.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Description = "Your new hobby" +} +Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgOauth2PermissionGrant.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgOauth2PermissionGrant.md index 093355d11d5..7a1f2d7b0e7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgOauth2PermissionGrant.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Scope = "User.ReadBasic.All Group.ReadWrite.All" +} +Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAccessReviewPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAccessReviewPolicy.md index 093355d11d5..5dd621f157f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAccessReviewPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAccessReviewPolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyAccessReviewPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + IsGroupOwnerManagementEnabled = $true +} +Update-MgPolicyAccessReviewPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyAccessReviewPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyActivityBasedTimeoutPolicy.md index 093355d11d5..f9f4b84afa4 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationFlowPolicy.md index 093355d11d5..578c6acbcea 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationFlowPolicy.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyAuthenticationFlowPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + SelfServiceSignUp = @{ + IsEnabled = $true + } +} +Update-MgPolicyAuthenticationFlowPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyAuthenticationFlowPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationMethodPolicy.md index 093355d11d5..e5e75be0c4f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationMethodPolicy.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyAuthenticationMethodPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + RegistrationEnforcement = @{ + AuthenticationMethodsRegistrationCampaign = @{ + SnoozeDurationInDays = 1 + State = "enabled" + ExcludeTargets = @( + ) + IncludeTargets = @( + @{ + Id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" + TargetType = "group" + TargetedAuthenticationMethod = "microsoftAuthenticator" + } + ) + } + } +} +Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md index 093355d11d5..1a9c3adba07 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md @@ -1,18 +1,84 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.emailAuthenticationMethodConfiguration" + AllowExternalIdToUseEmailOtp = "disabled" +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.fido2AuthenticationMethodConfiguration" + State = "enabled" + IsAttestationEnforced = "true" +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.microsoftAuthenticatorAuthenticationMethodConfiguration" + State = "enabled" +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.passwordlessMicrosoftAuthenticatorAuthenticationMethodConfiguration" + State = "enabled" +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.smsAuthenticationMethodConfiguration" + Id = "Sms" + State = "enabled" +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration" + IsUsableOnce = $true +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.x509CertificateAuthenticationMethodConfiguration" + Id = "X509Certificate" + State = "enabled" + CertificateUserBindings = @( + ) + IncludeTargets = @( + ) +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyClaimMappingPolicy.md index 093355d11d5..cad82458421 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyClaimMappingPolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "UpdateClaimsPolicy" +} +Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicy.md index 093355d11d5..00b6cb8f9f0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyCrossTenantAccessPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + AllowedCloudEndpoints = @( + "microsoftonline.us" + "partner.microsoftonline.cn" + ) +} +Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicyDefault.md index 093355d11d5..5f42277105e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicyDefault.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyCrossTenantAccessPolicyDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + B2bCollaborationOutbound = @{ + UsersAndGroups = @{ + AccessType = "blocked" + Targets = @( + @{ + Target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" + TargetType = "group" + } + ) + } + Applications = @{ + AccessType = "blocked" + Targets = @( + @{ + Target = "AllApplications" + TargetType = "application" + } + ) + } + } +} +Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicyPartner.md index 093355d11d5..2c53523988b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + InboundTrust = @{ + IsMfaAccepted = $true + IsCompliantDeviceAccepted = $true + IsHybridAzureADJoinedDeviceAccepted = $true + } +} +Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyDefaultAppManagementPolicy.md index 093355d11d5..e1415370332 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyDefaultAppManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyDefaultAppManagementPolicy.md @@ -1,18 +1,46 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyDefaultAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + IsEnabled = $true + ApplicationRestrictions = @{ + PasswordCredentials = @( + @{ + RestrictionType = "passwordAddition" + MaxLifetime = $null + RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") + } + @{ + RestrictionType = "passwordLifetime" + MaxLifetime = "P4DT12H30M5S" + RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2017-01-01T10:37:00Z") + } + @{ + RestrictionType = "symmetricKeyAddition" + MaxLifetime = $null + RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") + } + @{ + RestrictionType = "customPasswordAddition" + MaxLifetime = $null + RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + } + @{ + RestrictionType = "symmetricKeyLifetime" + MaxLifetime = "P40D" + RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + } + ) + KeyCredentials = @( + @{ + RestrictionType = "asymmetricKeyLifetime" + MaxLifetime = "P30D" + RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + } + ) + } +} +Update-MgPolicyDefaultAppManagementPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyDefaultAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyFeatureRolloutPolicy.md index 093355d11d5..d3999dd6483 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyFeatureRolloutPolicy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "PasswordHashSync Rollout Policy" + Description = "PasswordHashSync Rollout Policy" + IsEnabled = $true + IsAppliedToOrganization = $false +} +Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyHomeRealmDiscoveryPolicy.md index 093355d11d5..c2f7669d545 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +Update-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 093355d11d5..916fda78477 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + IsEnabled = $false +} +Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyMobileAppManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyMobileAppManagementPolicy.md index 093355d11d5..b4167357d9e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyMobileAppManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyMobileAppManagementPolicy.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyMobileAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.mobilityManagementPolicy" + ComplianceUrl = "https://portal.mg.contoso.com/?portalAction=Compliance" + DiscoveryUrl = "https://enrollment.mg.contoso.com/enrollmentserver/discovery.svc" + TermsOfUseUrl = "https://portal.mg.contoso.com/TermsofUse.aspx" +} +Update-MgPolicyMobileAppManagementPolicy -MobilityManagementPolicyId $mobilityManagementPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgPolicyMobileAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgPolicyMobileAppManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.mobilityManagementPolicy" + ComplianceUrl = "https://portal.mg.contoso.com/?portalAction=Compliance" + DiscoveryUrl = "https://enrollment.mg.contoso.com/enrollmentserver/discovery.svc" + TermsOfUseUrl = "https://portal.mg.contoso.com/TermsofUse.aspx" +} +Update-MgPolicyMobileAppManagementPolicy -MobilityManagementPolicyId $mobilityManagementPolicyId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyMobileAppManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyMobileDeviceManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyMobileDeviceManagementPolicy.md index 093355d11d5..a545d7015a4 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyMobileDeviceManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyMobileDeviceManagementPolicy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyMobileDeviceManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.mobilityManagementPolicy" + ComplianceUrl = "https://portal.uem.contoso.com/?portalAction=Compliance" + DiscoveryUrl = "https://enrollment.uem.contoso.com/enrollmentserver/discovery.svc" + TermsOfUseUrl = "https://portal.uem.contoso.com/TermsofUse.aspx" +} +Update-MgPolicyMobileDeviceManagementPolicy -MobilityManagementPolicyId $mobilityManagementPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyMobileDeviceManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md index 1299f29dba9..e6f07233c3a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md @@ -6,3 +6,4 @@ Update-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sample ``` This command replaces the existing values with the provided new values for the specified properties in the specified permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyRoleManagementPolicyRule.md index 093355d11d5..bfdc4bdf4c5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyRoleManagementPolicyRule.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyRoleManagementPolicyRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" + Id = "Expiration_EndUser_Assignment" + IsExpirationRequired = $true + MaximumDuration = "PT1H45M" + Target = @{ + "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" + Caller = "EndUser" + Operations = @( + "All" + ) + Level = "Assignment" + InheritableSettings = @( + ) + EnforcedSettings = @( + ) + } +} +Update-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyRoleManagementPolicyRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyTokenIssuancePolicy.md index 093355d11d5..991279d9a37 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyTokenIssuancePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyTokenLifetimePolicy.md index 093355d11d5..e3c17506ca7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyTokenLifetimePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgUserAuthenticationEmailMethod.md index 093355d11d5..1e91b1f02eb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgUserAuthenticationEmailMethod.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + EmailAddress = "kim@contoso.com" +} +Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgUserAuthenticationPhoneMethod.md index 093355d11d5..7375b689937 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgUserAuthenticationPhoneMethod.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + PhoneNumber = "+1 2065555554" + PhoneType = "mobile" +} +# A UPN can also be used as -UserId. +Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserInferenceClassificationOverride.md b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserInferenceClassificationOverride.md index 093355d11d5..17be1eb8173 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserInferenceClassificationOverride.md +++ b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserInferenceClassificationOverride.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserInferenceClassificationOverride Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserInferenceClassificationOverride -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserInferenceClassificationOverride Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolder.md b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolder.md index 093355d11d5..b2305146281 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolder.md +++ b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolder.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolder -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserMailFolder Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId +``` +This example shows how to use the Get-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderChildFolder.md b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderChildFolder.md index 093355d11d5..56207ac1530 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderChildFolder.md +++ b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderChildFolder.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserMailFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserMailFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderMessage.md b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderMessage.md index 093355d11d5..f8c1a762842 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderMessage.md +++ b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderMessage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailFolderMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolderMessage -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailFolderMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderMessageRule.md b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderMessageRule.md index 093355d11d5..8ba4ec629ff 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderMessageRule.md +++ b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMailFolderMessageRule.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessage.md b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessage.md index 093355d11d5..c49e84743a3 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessage.md +++ b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessage.md @@ -1,18 +1,64 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "mentions" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -Property "subject,body,bodyPreview,uniqueBody" +``` +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -Property "internetMessageHeaders" +``` +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -Property "subject,body,bodyPreview,uniqueBody" +``` +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -Property "sender,subject" +``` +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 8: Using the Get-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -Filter "MentionsPreview/IsMentioned eq true" -Property "Subject,Sender,ReceivedDateTime,MentionsPreview" +``` +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessageAttachment.md b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessageAttachment.md index 093355d11d5..70ba155b634 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessageAttachment.md +++ b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessageAttachment.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserMessageAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessageExtension.md b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessageExtension.md index 093355d11d5..1e5c230c748 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessageExtension.md +++ b/src/Mail/Mail/examples/v1.0-beta/Get-MgUserMessageExtension.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMessageExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMessageExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/New-MgUserInferenceClassificationOverride.md b/src/Mail/Mail/examples/v1.0-beta/New-MgUserInferenceClassificationOverride.md index 093355d11d5..f7f8599f03f 100644 --- a/src/Mail/Mail/examples/v1.0-beta/New-MgUserInferenceClassificationOverride.md +++ b/src/Mail/Mail/examples/v1.0-beta/New-MgUserInferenceClassificationOverride.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserInferenceClassificationOverride Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + ClassifyAs = "focused" + SenderEmailAddress = @{ + Name = "Samantha Booth" + Address = "samanthab@adatum.onmicrosoft.com" + } +} +# A UPN can also be used as -UserId. +New-MgUserInferenceClassificationOverride -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserInferenceClassificationOverride Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolder.md b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolder.md index 093355d11d5..c07c53c18a1 100644 --- a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolder.md +++ b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolder.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "Clutter" + IsHidden = $true +} +# A UPN can also be used as -UserId. +New-MgUserMailFolder -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderChildFolder.md b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderChildFolder.md index 093355d11d5..dc8bdfe7be6 100644 --- a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderChildFolder.md +++ b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderChildFolder.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMailFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "displayName-value" + IsHidden = $true +} +# A UPN can also be used as -UserId. +New-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserMailFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserMailFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "microsoft.graph.mailSearchFolder" + DisplayName = "Weekly digests" + IncludeNestedFolders = $true + SourceFolderIds = @( + "AQMkADYAAAIBDAAAAA==" + ) + FilterQuery = "contains(subject, 'weekly digest')" +} +# A UPN can also be used as -UserId. +New-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMailFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderMessage.md b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderMessage.md index 093355d11d5..45f8b66b8ed 100644 --- a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderMessage.md +++ b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderMessage.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMailFolderMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + ReceivedDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + SentDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + HasAttachments = $true + Subject = "subject-value" + Body = @{ + ContentType = "" + Content = "content-value" + } + BodyPreview = "bodyPreview-value" +} +# A UPN can also be used as -UserId. +New-MgUserMailFolderMessage -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMailFolderMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderMessageRule.md b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderMessageRule.md index 093355d11d5..9665ec34a31 100644 --- a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderMessageRule.md +++ b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMailFolderMessageRule.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "From partner" + Sequence = 2 + IsEnabled = $true + Conditions = @{ + SenderContains = @( + "adele" + ) + } + Actions = @{ + ForwardTo = @( + @{ + EmailAddress = @{ + Name = "Alex Wilbur" + Address = "AlexW@contoso.onmicrosoft.com" + } + } + ) + StopProcessingRules = $true + } +} +# A UPN can also be used as -UserId. +New-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessage.md b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessage.md index 093355d11d5..b7c3b06669c 100644 --- a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessage.md +++ b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessage.md @@ -1,18 +1,113 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + Subject = "Did you see last night's game?" + Importance = "Low" + Body = @{ + ContentType = "HTML" + Content = "They were awesome!" + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "AdeleV@contoso.onmicrosoft.com" + } + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserMessage -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + Subject = "9/8/2018: concert" + Body = @{ + ContentType = "HTML" + Content = "The group represents Washington." + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "AlexW@contoso.OnMicrosoft.com" + } + } + ) + InternetMessageHeaders = @( + @{ + Name = "x-custom-header-group-name" + Value = "Washington" + } + @{ + Name = "x-custom-header-group-id" + Value = "WA001" + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserMessage -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +$params = @{ + Subject = "Party planning" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "Samantha Booth" + Address = "samanthab@contoso.onmicrosoft.com" + } + } + ) + Mentions = @( + @{ + Mentioned = @{ + Name = "Dana Swope" + Address = "danas@contoso.onmicrosoft.com" + } + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserMessage -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +$params = @{ + Subject = "Annual review" + Body = @{ + ContentType = "HTML" + Content = "You should be proud!" + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "rufus@contoso.com" + } + } + ) + Extensions = @( + @{ + "@odata.type" = "microsoft.graph.openTypeExtension" + ExtensionName = "Com.Contoso.Referral" + CompanyName = "Wingtip Toys" + ExpirationDate = "2015-12-30T11:00:00.000Z" + DealValue = + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserMessage -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessageAttachment.md b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessageAttachment.md index 093355d11d5..40c3a51f564 100644 --- a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessageAttachment.md +++ b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessageAttachment.md @@ -1,18 +1,61 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "#Microsoft.OutlookServices.FileAttachment" + Name = "name-value" + ContentType = "contentType-value" + IsInline = $false + ContentLocation = "contentLocation-value" + ContentBytes = "contentBytes-value" +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "smile" + ContentBytes = "a0b1c76de9f7=" +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgUserMessageAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "#microsoft.graph.itemAttachment" + Name = "Holiday event" + Item = @{ + "@odata.type" = "microsoft.graph.event" + Subject = "Discuss gifts for children" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgUserMessageAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "#microsoft.graph.referenceAttachment" + Name = "Personal pictures" + SourceUrl = "https://contoso.com/personal/mario_contoso_net/Documents/Pics" + ProviderType = "oneDriveConsumer" + Permission = "Edit" + IsFolder = "True" +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessageExtension.md b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessageExtension.md index 093355d11d5..0d052c41334 100644 --- a/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessageExtension.md +++ b/src/Mail/Mail/examples/v1.0-beta/New-MgUserMessageExtension.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "microsoft.graph.openTypeExtension" + ExtensionName = "Com.Contoso.Referral" + CompanyName = "Wingtip Toys" + DealValue = + ExpirationDate = "2015-12-03T10:00:00.000Z" +} +# A UPN can also be used as -UserId. +New-MgUserMessageExtension -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserInferenceClassificationOverride.md b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserInferenceClassificationOverride.md index 093355d11d5..6be2a44bbba 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserInferenceClassificationOverride.md +++ b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserInferenceClassificationOverride.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserInferenceClassificationOverride Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserInferenceClassificationOverride Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMailFolder.md b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMailFolder.md index 093355d11d5..4d4e4d75664 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMailFolder.md +++ b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMailFolder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMailFolderMessageRule.md b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMailFolderMessageRule.md index 093355d11d5..5580bf0cae1 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMailFolderMessageRule.md +++ b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMailFolderMessageRule.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessage.md b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessage.md index 093355d11d5..19137c5c0b4 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessage.md +++ b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessage.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMessage -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMessage -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessageExtension.md b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessageExtension.md index 093355d11d5..0e59fe62b40 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessageExtension.md +++ b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessageExtension.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserMessageExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserMessageExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessageMention.md b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessageMention.md index 093355d11d5..c10f9ffc18f 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessageMention.md +++ b/src/Mail/Mail/examples/v1.0-beta/Remove-MgUserMessageMention.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserMessageMention Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMessageMention -UserId $userId -MessageId $messageId -MentionId $mentionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserMessageMention Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Update-MgUserInferenceClassificationOverride.md b/src/Mail/Mail/examples/v1.0-beta/Update-MgUserInferenceClassificationOverride.md index 093355d11d5..3d86ddb676b 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Update-MgUserInferenceClassificationOverride.md +++ b/src/Mail/Mail/examples/v1.0-beta/Update-MgUserInferenceClassificationOverride.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserInferenceClassificationOverride Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + ClassifyAs = "focused" +} +# A UPN can also be used as -UserId. +Update-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserInferenceClassificationOverride Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMailFolder.md b/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMailFolder.md index 093355d11d5..037e7b990a3 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMailFolder.md +++ b/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMailFolder.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "displayName-value" +} +# A UPN can also be used as -UserId. +Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "microsoft.graph.mailSearchFolder" + FilterQuery = "contains(subject, 'Analytics')" +} +# A UPN can also be used as -UserId. +Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMailFolderMessageRule.md b/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMailFolderMessageRule.md index 093355d11d5..1892488eb31 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMailFolderMessageRule.md +++ b/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMailFolderMessageRule.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "Important from partner" + Actions = @{ + MarkImportance = "high" + } +} +# A UPN can also be used as -UserId. +Update-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMessage.md b/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMessage.md index 093355d11d5..f9835bf5a44 100644 --- a/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMessage.md +++ b/src/Mail/Mail/examples/v1.0-beta/Update-MgUserMessage.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + IsRead = "true" +} +# A UPN can also be used as -UserId. +Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + Subject = "subject-value" + Body = @{ + ContentType = "" + Content = "content-value" + } + InferenceClassification = "other" +} +# A UPN can also be used as -UserId. +Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebook.md b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebook.md index 093355d11d5..cf630807ed8 100644 --- a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebook.md +++ b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebook.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnenoteNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebook -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserOnenoteNotebook Cmdlet +```powershell +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId +``` +This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebookSection.md b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebookSection.md index 093355d11d5..5e24f9cb2ac 100644 --- a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebookSection.md +++ b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebookSection.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteNotebookSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteNotebookSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebookSectionGroup.md b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebookSectionGroup.md index 093355d11d5..2b4e4da71f2 100644 --- a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteNotebookSectionGroup.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteNotebookSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteNotebookSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteOperation.md b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteOperation.md index 093355d11d5..d43d2d8d0e2 100644 --- a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteOperation.md +++ b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteOperation.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteOperation -UserId $userId -OnenoteOperationId $onenoteOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSection.md b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSection.md index 093355d11d5..83d92648f54 100644 --- a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSection.md +++ b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSection.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSection -UserId $userId -OnenoteSectionId $onenoteSectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnenoteSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnenoteSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSection -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSectionGroup.md b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSectionGroup.md index 093355d11d5..e7dee706eaa 100644 --- a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSectionGroup.md +++ b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSectionGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSectionGroup -UserId $userId -SectionGroupId $sectionGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnenoteSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnenoteSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSectionGroup -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSectionGroupSection.md b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSectionGroupSection.md index 093355d11d5..a234de3df29 100644 --- a/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSectionGroupSection.md +++ b/src/Notes/Notes/examples/v1.0-beta/Get-MgUserOnenoteSectionGroupSection.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteSectionGroupSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteSectionGroupSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebook.md b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebook.md index 093355d11d5..36192b3b5fd 100644 --- a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebook.md +++ b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebook.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnenoteNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +$params = @{ + DisplayName = "My Private notebook" +} +# A UPN can also be used as -UserId. +New-MgUserOnenoteNotebook -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebookSection.md b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebookSection.md index 093355d11d5..838fd4d5258 100644 --- a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebookSection.md +++ b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebookSection.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnenoteNotebookSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +$params = @{ + DisplayName = "Section name" +} +# A UPN can also be used as -UserId. +New-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnenoteNotebookSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebookSectionGroup.md b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebookSectionGroup.md index 093355d11d5..8fe88b33041 100644 --- a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteNotebookSectionGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnenoteNotebookSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +$params = @{ + DisplayName = "Section group name" +} +# A UPN can also be used as -UserId. +New-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnenoteNotebookSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteSectionGroup.md b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteSectionGroup.md index 093355d11d5..8102be1df00 100644 --- a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteSectionGroup.md +++ b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteSectionGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnenoteSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +$params = @{ + DisplayName = "Section group name" +} +# A UPN can also be used as -UserId. +New-MgUserOnenoteSectionGroup -UserId $userId -SectionGroupId $sectionGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnenoteSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteSectionGroupSection.md b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteSectionGroupSection.md index 093355d11d5..d481eb0fae0 100644 --- a/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteSectionGroupSection.md +++ b/src/Notes/Notes/examples/v1.0-beta/New-MgUserOnenoteSectionGroupSection.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnenoteSectionGroupSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +$params = @{ + DisplayName = "Section name" +} +# A UPN can also be used as -UserId. +New-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnenoteSectionGroupSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0-beta/Remove-MgUserOnenotePage.md b/src/Notes/Notes/examples/v1.0-beta/Remove-MgUserOnenotePage.md index 093355d11d5..8f9927ca2f5 100644 --- a/src/Notes/Notes/examples/v1.0-beta/Remove-MgUserOnenotePage.md +++ b/src/Notes/Notes/examples/v1.0-beta/Remove-MgUserOnenotePage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOnenotePage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Remove-MgUserOnenotePage -UserId $userId -OnenotePageId $onenotePageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOnenotePage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserActivityStatistics.md b/src/People/People/examples/v1.0-beta/Get-MgUserActivityStatistics.md index 093355d11d5..c11a2a55c4d 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserActivityStatistics.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserActivityStatistics.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserActivityStatistics Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserActivityStatistics -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserActivityStatistics Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserPerson.md b/src/People/People/examples/v1.0-beta/Get-MgUserPerson.md index 093355d11d5..7482d458910 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserPerson.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserPerson.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPerson Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserPerson -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPerson Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfile.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfile.md index 093355d11d5..b12baacce6c 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfile.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfile.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfile -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfile -UserId $userId -ExpandProperty "names(`$select=first,last),skills(`$select=displayName)" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileAccount.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileAccount.md index 093355d11d5..a3915ea788e 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileAccount.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileAccount.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileAccount -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileAccount -UserId $userId -UserAccountInformationId $userAccountInformationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileAddress.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileAddress.md index 093355d11d5..bd11141dc01 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileAddress.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileAddress.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileAddress Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileAddress -UserId $userId -ItemAddressId $itemAddressId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileAddress Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileAddress Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileAddress -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileAddress Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileAnniversary.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileAnniversary.md index 093355d11d5..4784aa0ccb4 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileAnniversary.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileAnniversary.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileAnniversary Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileAnniversary -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileAnniversary Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileAnniversary Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileAnniversary -UserId $userId -PersonAnnualEventId $personAnnualEventId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileAnniversary Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileAward.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileAward.md index 093355d11d5..e22dd91b252 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileAward.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileAward.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileAward Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileAward -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileAward Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileAward Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileAward -UserId $userId -PersonAwardId $personAwardId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileAward Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileCertification.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileCertification.md index 093355d11d5..85aec298b34 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileCertification.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileCertification.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileCertification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileCertification -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileCertification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileCertification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileCertification -UserId $userId -PersonCertificationId $personCertificationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileCertification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileEducationalActivity.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileEducationalActivity.md index 093355d11d5..f4b1ba8d1b7 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileEducationalActivity.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileEducationalActivity.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileEducationalActivity Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileEducationalActivity -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileEducationalActivity Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileEducationalActivity Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileEducationalActivity -UserId $userId -EducationalActivityId $educationalActivityId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileEducationalActivity Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileEmail.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileEmail.md index 093355d11d5..511c4b75e91 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileEmail.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileEmail.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileEmail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileEmail -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileEmail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileEmail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +Get-MgUserProfileEmail -UserId $userId -ItemEmailId $itemEmailId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileEmail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileInterest.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileInterest.md index 093355d11d5..f7dfd07ff29 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileInterest.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileInterest.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileInterest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileInterest -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileInterest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileInterest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileInterest -UserId $userId -PersonInterestId $personInterestId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileInterest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileLanguage.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileLanguage.md index 093355d11d5..61503f6111d 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileLanguage.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileLanguage.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileLanguage -UserId $userId -LanguageProficiencyId $languageProficiencyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileLanguage -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileName.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileName.md index 093355d11d5..0df9b9bdd07 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileName.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileName.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileName Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileName -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileName Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileName Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileName -UserId $userId -PersonNameId $personNameId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileName Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileNote.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileNote.md index 093355d11d5..c08027cabef 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileNote.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileNote.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileNote Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileNote -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileNote Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileNote Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileNote -UserId $userId -PersonAnnotationId $personAnnotationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileNote Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfilePatent.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfilePatent.md index 093355d11d5..1997067d0c1 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfilePatent.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfilePatent.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfilePatent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfilePatent -UserId $userId -ItemPatentId $itemPatentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfilePatent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfilePatent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfilePatent -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfilePatent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfilePhone.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfilePhone.md index 093355d11d5..1674ba4417c 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfilePhone.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfilePhone.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfilePhone Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfilePhone -UserId $userId -ItemPhoneId $itemPhoneId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfilePhone Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfilePhone Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfilePhone -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfilePhone Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfilePosition.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfilePosition.md index 093355d11d5..6996c292539 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfilePosition.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfilePosition.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfilePosition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfilePosition -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfilePosition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfilePosition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfilePosition -UserId $userId -WorkPositionId $workPositionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfilePosition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileProject.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileProject.md index 093355d11d5..67d0fab28cd 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileProject.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileProject.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileProject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileProject -UserId $userId -ProjectParticipationId $projectParticipationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileProject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileProject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileProject -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileProject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfilePublication.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfilePublication.md index 093355d11d5..1525f16ae1f 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfilePublication.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfilePublication.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfilePublication Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfilePublication -UserId $userId -ItemPublicationId $itemPublicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfilePublication Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfilePublication Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfilePublication -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfilePublication Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileSkill.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileSkill.md index 093355d11d5..367392baea4 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileSkill.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileSkill.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileSkill Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileSkill -UserId $userId -SkillProficiencyId $skillProficiencyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileSkill Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileSkill Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileSkill -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileSkill Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileWebAccount.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileWebAccount.md index 093355d11d5..e84187e9e72 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileWebAccount.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileWebAccount.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileWebAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileWebAccount -UserId $userId -WebAccountId $webAccountId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileWebAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileWebAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileWebAccount -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileWebAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Get-MgUserProfileWebsite.md b/src/People/People/examples/v1.0-beta/Get-MgUserProfileWebsite.md index 093355d11d5..91df9fed97b 100644 --- a/src/People/People/examples/v1.0-beta/Get-MgUserProfileWebsite.md +++ b/src/People/People/examples/v1.0-beta/Get-MgUserProfileWebsite.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserProfileWebsite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileWebsite -UserId $userId -PersonWebsiteId $personWebsiteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserProfileWebsite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserProfileWebsite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserProfileWebsite -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserProfileWebsite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileAccount.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileAccount.md index 093355d11d5..e0fb7b514d1 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileAccount.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileAccount.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + AllowedAudiences = "organization" + CountryCode = "NO" +} +# A UPN can also be used as -UserId. +New-MgUserProfileAccount -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileAddress.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileAddress.md index 093355d11d5..27c02a24cd4 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileAddress.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileAddress.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileAddress Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + DisplayName = "Home" + Detail = @{ + Type = "home" + PostOfficeBox = $null + Street = "221B Baker Street" + City = "London" + State = $null + CountryOrRegion = "United Kingdom" + PostalCode = "E14 3TD" + } +} +# A UPN can also be used as -UserId. +New-MgUserProfileAddress -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileAddress Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileAnniversary.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileAnniversary.md index 093355d11d5..b5aac7e8098 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileAnniversary.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileAnniversary.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileAnniversary Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Type = "birthday" + Date = "1980-01-08" +} +# A UPN can also be used as -UserId. +New-MgUserProfileAnniversary -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileAnniversary Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileAward.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileAward.md index 093355d11d5..24df98b9b62 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileAward.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileAward.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileAward Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Description = "Lifetime Achievement award from the International Association of Branding Managers" + DisplayName = "Lifetime Achievement Award For Excellence in Branding" + IssuedDate = "Date" + IssuingAuthority = "International Association of Branding Management" + ThumbnailUrl = "https://iabm.io/sdhdfhsdhshsd.jpg" + WebUrl = "https://www.iabm.io" +} +# A UPN can also be used as -UserId. +New-MgUserProfileAward -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileAward Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileCertification.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileCertification.md index 093355d11d5..2cba14df86e 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileCertification.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileCertification.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileCertification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + CertificationId = "KB-1235466333663322" + Description = "Blackbelt in Marketing - Brand Management" + DisplayName = "Marketing Blackbelt - Brand Management" + ThumbnailUrl = "https://iame.io/dfhdfdfd334.jpg" + WebUrl = "https://www.iame.io/blackbelt" +} +# A UPN can also be used as -UserId. +New-MgUserProfileCertification -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileCertification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileEducationalActivity.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileEducationalActivity.md index 093355d11d5..e28f25de8ff 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileEducationalActivity.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileEducationalActivity.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileEducationalActivity Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + CompletionMonthYear = "Date" + EndMonthYear = "Date" + Institution = @{ + Description = $null + DisplayName = "Colorado State University" + Location = @{ + Type = "business" + PostOfficeBox = $null + Street = "12000 E Prospect Rd" + City = "Fort Collins" + State = "Colorado" + CountryOrRegion = "USA" + PostalCode = "80525" + } + WebUrl = "https://www.colostate.edu" + } + Program = @{ + Abbreviation = "MBA" + Activities = $null + Awards = $null + Description = "Master of Business Administration with a major in Entreprenuership and Finance." + DisplayName = "Master of Business Administration" + FieldsOfStudy = $null + Grade = "3.9" + Notes = $null + WebUrl = "https://biz.colostate.edu" + } + StartMonthYear = "Date" +} +# A UPN can also be used as -UserId. +New-MgUserProfileEducationalActivity -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileEducationalActivity Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileEmail.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileEmail.md index 093355d11d5..f309dcdfad2 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileEmail.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileEmail.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileEmail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Address = "Innocenty.Popov@adventureworks.com" +} +# A UPN can also be used as -UserId. +New-MgUserProfileEmail -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileEmail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileInterest.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileInterest.md index 093355d11d5..4d6dc475043 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileInterest.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileInterest.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileInterest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Categories = @( + "Sports" + ) + Description = "World's greatest football club" + DisplayName = "Chelsea FC" + WebUrl = "https://www.chelseafc.com" +} +# A UPN can also be used as -UserId. +New-MgUserProfileInterest -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileInterest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileLanguage.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileLanguage.md index 093355d11d5..e88331bf42e 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileLanguage.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileLanguage.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + DisplayName = "Norwegian Bokmål" + Tag = "nb-NO" + Spoken = "nativeOrBilingual" + Written = "nativeOrBilingual" + Reading = "nativeOrBilingual" +} +# A UPN can also be used as -UserId. +New-MgUserProfileLanguage -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileName.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileName.md index 093355d11d5..1dd1f9b501a 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileName.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileName.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileName Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + DisplayName = "Innocenty Popov" + First = "Innocenty" + Initials = "IP" + Last = "Popov" + LanguageTag = "en-US" + Maiden = $null +} +# A UPN can also be used as -UserId. +New-MgUserProfileName -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileName Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileNote.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileNote.md index 093355d11d5..e62ed4dbcf8 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileNote.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileNote.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileNote Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Detail = @{ + ContentType = "text" + Content = "I am originally from Australia, but grew up in Moscow, Russia." + } + DisplayName = "About Me" +} +# A UPN can also be used as -UserId. +New-MgUserProfileNote -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileNote Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfilePatent.md b/src/People/People/examples/v1.0-beta/New-MgUserProfilePatent.md index 093355d11d5..6937917ab35 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfilePatent.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfilePatent.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfilePatent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Description = "Calculating the intent of a user to purchase an item based on the amount of time they hover their mouse over a given pixel." + DisplayName = "Inferring User Intent through browsing behaviors" + IsPending = $true + Number = "USPTO-3954432633" + WebUrl = "https://patents.gov/3954432633" +} +# A UPN can also be used as -UserId. +New-MgUserProfilePatent -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfilePatent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfilePhone.md b/src/People/People/examples/v1.0-beta/New-MgUserProfilePhone.md index 093355d11d5..8a3a6682611 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfilePhone.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfilePhone.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfilePhone Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + DisplayName = "Car Phone" + Number = "+7 499 342 22 13" +} +# A UPN can also be used as -UserId. +New-MgUserProfilePhone -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfilePhone Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfilePosition.md b/src/People/People/examples/v1.0-beta/New-MgUserProfilePosition.md index 093355d11d5..4450e3fe3fd 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfilePosition.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfilePosition.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfilePosition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Detail = @{ + Company = @{ + DisplayName = "Adventureworks Ltd." + Department = "Consulting" + OfficeLocation = "AW23/344" + Address = @{ + Type = "business" + Street = "123 Patriachy Ponds" + City = "Moscow" + CountryOrRegion = "Russian Federation" + PostalCode = "RU-34621" + } + WebUrl = "https://www.adventureworks.com" + } + JobTitle = "Senior Product Branding Manager II" + Role = "consulting" + } + IsCurrent = $true +} +# A UPN can also be used as -UserId. +New-MgUserProfilePosition -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfilePosition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileProject.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileProject.md index 093355d11d5..f1b90ee9aa2 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileProject.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileProject.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileProject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Categories = @( + "Branding" + ) + Client = @{ + DisplayName = "Contoso Ltd." + Department = "Corporate Marketing" + WebUrl = "https://www.contoso.com" + } + DisplayName = "Contoso Re-branding Project" + Detail = @{ + Company = @{ + DisplayName = "Adventureworks Inc." + Department = "Consulting" + WebUrl = "https://adventureworks.com" + } + Description = "Rebranding of Contoso Ltd." + JobTitle = "Lead PM Rebranding" + Role = "project management" + Summary = "A 6 month project to help Contoso rebrand after they were divested from a parent organization." + } +} +# A UPN can also be used as -UserId. +New-MgUserProfileProject -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileProject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfilePublication.md b/src/People/People/examples/v1.0-beta/New-MgUserProfilePublication.md index 093355d11d5..462ffa7b352 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfilePublication.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfilePublication.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfilePublication Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Description = "One persons journey to the top of the branding management field." + DisplayName = "Got Brands? The story of Innocenty Popov and his journey to the top." + PublishedDate = "Date" + Publisher = "International Association of Branding Management Publishing" + ThumbnailUrl = "https://iabm.io/sdhdfhsdhshsd.jpg" + WebUrl = "https://www.iabm.io" +} +# A UPN can also be used as -UserId. +New-MgUserProfilePublication -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfilePublication Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileSkill.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileSkill.md index 093355d11d5..d20492a0f83 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileSkill.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileSkill.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileSkill Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Categories = @( + "Professional" + ) + AllowedAudiences = "organization" + DisplayName = "API Design" + Proficiency = "generalProfessional" + CollaborationTags = @( + "ableToMentor" + ) +} +# A UPN can also be used as -UserId. +New-MgUserProfileSkill -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileSkill Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileWebAccount.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileWebAccount.md index 093355d11d5..068be96694b 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileWebAccount.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileWebAccount.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileWebAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Description = "My Github contributions!" + UserId = "innocenty.popov" + Service = @{ + Name = "GitHub" + WebUrl = "https://github.com" + } +} +# A UPN can also be used as -UserId. +New-MgUserProfileWebAccount -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileWebAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/New-MgUserProfileWebsite.md b/src/People/People/examples/v1.0-beta/New-MgUserProfileWebsite.md index 093355d11d5..e492f569b16 100644 --- a/src/People/People/examples/v1.0-beta/New-MgUserProfileWebsite.md +++ b/src/People/People/examples/v1.0-beta/New-MgUserProfileWebsite.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserProfileWebsite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Categories = @( + "football" + ) + DisplayName = "Lyn Damer" + WebUrl = "www.lyndamer.no" +} +# A UPN can also be used as -UserId. +New-MgUserProfileWebsite -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserProfileWebsite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfile.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfile.md index 093355d11d5..c3cb5a11fe2 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfile.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfile.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfile -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAccount.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAccount.md index 093355d11d5..0c246f73a0a 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAccount.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAccount.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileAccount -UserId $userId -UserAccountInformationId $userAccountInformationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAddress.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAddress.md index 093355d11d5..378cbcbb687 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAddress.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAddress.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileAddress Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +Remove-MgUserProfileAddress -UserId $userId -ItemAddressId $itemAddressId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileAddress Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAnniversary.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAnniversary.md index 093355d11d5..1ffdb85584d 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAnniversary.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAnniversary.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileAnniversary Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileAnniversary -UserId $userId -PersonAnnualEventId $personAnnualEventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileAnniversary Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAward.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAward.md index 093355d11d5..8b3c017536e 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAward.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileAward.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileAward Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +Remove-MgUserProfileAward -UserId $userId -PersonAwardId $personAwardId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileAward Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileCertification.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileCertification.md index 093355d11d5..fd6dc9bcf63 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileCertification.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileCertification.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileCertification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +Remove-MgUserProfileCertification -UserId $userId -PersonCertificationId $personCertificationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileCertification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileEducationalActivity.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileEducationalActivity.md index 093355d11d5..4088618c5a2 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileEducationalActivity.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileEducationalActivity.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileEducationalActivity Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileEducationalActivity -UserId $userId -EducationalActivityId $educationalActivityId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileEducationalActivity Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileEmail.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileEmail.md index 093355d11d5..9de28160db6 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileEmail.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileEmail.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileEmail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileEmail -UserId $userId -ItemEmailId $itemEmailId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileEmail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileInterest.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileInterest.md index 093355d11d5..d5df1fc4c83 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileInterest.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileInterest.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileInterest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileInterest -UserId $userId -PersonInterestId $personInterestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileInterest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileLanguage.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileLanguage.md index 093355d11d5..83c17d6fc64 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileLanguage.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileLanguage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileLanguage -UserId $userId -LanguageProficiencyId $languageProficiencyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileName.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileName.md index 093355d11d5..92932d84e13 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileName.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileName.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileName Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileName -UserId $userId -PersonNameId $personNameId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileName Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileNote.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileNote.md index 093355d11d5..904c8593987 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileNote.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileNote.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileNote Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +Remove-MgUserProfileNote -UserId $userId -PersonAnnotationId $personAnnotationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileNote Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePatent.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePatent.md index 093355d11d5..99f9072372b 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePatent.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePatent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfilePatent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +Remove-MgUserProfilePatent -UserId $userId -ItemPatentId $itemPatentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfilePatent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePhone.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePhone.md index 093355d11d5..54fd4d81542 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePhone.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePhone.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfilePhone Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +Remove-MgUserProfilePhone -UserId $userId -ItemPhoneId $itemPhoneId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfilePhone Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePosition.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePosition.md index 093355d11d5..f55a2f85041 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePosition.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePosition.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfilePosition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfilePosition -UserId $userId -WorkPositionId $workPositionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfilePosition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileProject.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileProject.md index 093355d11d5..8e5e5fd3151 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileProject.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileProject.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileProject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileProject -UserId $userId -ProjectParticipationId $projectParticipationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileProject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePublication.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePublication.md index 093355d11d5..bff7ad3c755 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePublication.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfilePublication.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfilePublication Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfilePublication -UserId $userId -ItemPublicationId $itemPublicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfilePublication Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileSkill.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileSkill.md index 093355d11d5..16f74abce9e 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileSkill.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileSkill.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileSkill Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileSkill -UserId $userId -SkillProficiencyId $skillProficiencyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileSkill Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileWebAccount.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileWebAccount.md index 093355d11d5..f3166dfd8ff 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileWebAccount.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileWebAccount.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileWebAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileWebAccount -UserId $userId -WebAccountId $webAccountId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileWebAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileWebsite.md b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileWebsite.md index 093355d11d5..b3c45bef6b7 100644 --- a/src/People/People/examples/v1.0-beta/Remove-MgUserProfileWebsite.md +++ b/src/People/People/examples/v1.0-beta/Remove-MgUserProfileWebsite.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserProfileWebsite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Remove-MgUserProfileWebsite -UserId $userId -PersonWebsiteId $personWebsiteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserProfileWebsite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileAccount.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileAccount.md index 093355d11d5..4fde93c74e4 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileAccount.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileAccount.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + CountryCode = "NO" +} +# A UPN can also be used as -UserId. +Update-MgUserProfileAccount -UserId $userId -UserAccountInformationId $userAccountInformationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileAddress.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileAddress.md index 093355d11d5..bddb700a928 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileAddress.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileAddress.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileAddress Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + AllowedAudiences = "me" + DisplayName = "Secret Hideout" +} +Update-MgUserProfileAddress -UserId $userId -ItemAddressId $itemAddressId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileAddress Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileAnniversary.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileAnniversary.md index 093355d11d5..2693c692cb4 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileAnniversary.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileAnniversary.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileAnniversary Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + AllowedAudiences = "contacts" +} +# A UPN can also be used as -UserId. +Update-MgUserProfileAnniversary -UserId $userId -PersonAnnualEventId $personAnnualEventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileAnniversary Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileAward.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileAward.md index 093355d11d5..f487e9dd7fd 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileAward.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileAward.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileAward Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + IssuingAuthority = "International Association of Branding Management" + ThumbnailUrl = "https://iabm.io/sdhdfhsdhshsd.jpg" +} +Update-MgUserProfileAward -UserId $userId -PersonAwardId $personAwardId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileAward Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileCertification.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileCertification.md index 093355d11d5..e9e65407a61 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileCertification.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileCertification.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileCertification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + IssuingAuthority = "International Academy of Marketing Excellence" + IssuingCompany = "International Academy of Marketing Excellence" +} +Update-MgUserProfileCertification -UserId $userId -PersonCertificationId $personCertificationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileCertification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileEducationalActivity.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileEducationalActivity.md index 093355d11d5..15ba38a094e 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileEducationalActivity.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileEducationalActivity.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileEducationalActivity Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Institution = @{ + Location = @{ + Type = "business" + PostOfficeBox = $null + Street = "12000 E Prospect Rd" + City = "Fort Collins" + State = "Colorado" + CountryOrRegion = "USA" + PostalCode = "80525" + } + } +} +# A UPN can also be used as -UserId. +Update-MgUserProfileEducationalActivity -UserId $userId -EducationalActivityId $educationalActivityId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileEducationalActivity Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileEmail.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileEmail.md index 093355d11d5..cbf737dc1ab 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileEmail.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileEmail.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileEmail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + DisplayName = "Business Email" + Type = "work" +} +Update-MgUserProfileEmail -UserId $userId -ItemEmailId $itemEmailId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileEmail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileInterest.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileInterest.md index 093355d11d5..12da5034166 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileInterest.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileInterest.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileInterest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Categories = @( + "Sports" + ) +} +# A UPN can also be used as -UserId. +Update-MgUserProfileInterest -UserId $userId -PersonInterestId $personInterestId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileInterest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileLanguage.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileLanguage.md index 093355d11d5..24847884b6f 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileLanguage.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileLanguage.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + AllowedAudiences = "organization" +} +# A UPN can also be used as -UserId. +Update-MgUserProfileLanguage -UserId $userId -LanguageProficiencyId $languageProficiencyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileName.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileName.md index 093355d11d5..2a8c11e2604 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileName.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileName.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileName Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Nickname = "Kesha" +} +# A UPN can also be used as -UserId. +Update-MgUserProfileName -UserId $userId -PersonNameId $personNameId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileName Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileNote.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileNote.md index 093355d11d5..6e733fa0214 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileNote.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileNote.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileNote Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + AllowedAudiences = "organization" +} +Update-MgUserProfileNote -UserId $userId -PersonAnnotationId $personAnnotationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileNote Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfilePatent.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfilePatent.md index 093355d11d5..8a9652d8f25 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfilePatent.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfilePatent.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfilePatent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Number = "USPTO-3954432633" + WebUrl = "https://patents.gov/3954432633" +} +Update-MgUserProfilePatent -UserId $userId -ItemPatentId $itemPatentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfilePatent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfilePhone.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfilePhone.md index 093355d11d5..929de85ad3b 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfilePhone.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfilePhone.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfilePhone Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Type = "other" +} +Update-MgUserProfilePhone -UserId $userId -ItemPhoneId $itemPhoneId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfilePhone Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfilePosition.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfilePosition.md index 093355d11d5..3144e605a57 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfilePosition.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfilePosition.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfilePosition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + IsCurrent = $true +} +# A UPN can also be used as -UserId. +Update-MgUserProfilePosition -UserId $userId -WorkPositionId $workPositionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfilePosition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileProject.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileProject.md index 093355d11d5..f1ad8375f14 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileProject.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileProject.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileProject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + AllowedAudiences = "organization" + Client = @{ + Department = "Corporate Marketing" + WebUrl = "https://www.contoso.com" + } +} +# A UPN can also be used as -UserId. +Update-MgUserProfileProject -UserId $userId -ProjectParticipationId $projectParticipationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileProject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfilePublication.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfilePublication.md index 093355d11d5..f80194be37b 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfilePublication.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfilePublication.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfilePublication Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Publisher = "International Association of Branding Management Publishing" + ThumbnailUrl = "https://iabm.io/sdhdfhsdhshsd.jpg" +} +Update-MgUserProfilePublication -UserId $userId -ItemPublicationId $itemPublicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfilePublication Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileSkill.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileSkill.md index 093355d11d5..e288f289a8f 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileSkill.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileSkill.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileSkill Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Categories = @( + "Professional" + ) + Proficiency = "advancedProfessional" +} +# A UPN can also be used as -UserId. +Update-MgUserProfileSkill -UserId $userId -SkillProficiencyId $skillProficiencyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileSkill Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileWebAccount.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileWebAccount.md index 093355d11d5..ad5d3644903 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileWebAccount.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileWebAccount.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileWebAccount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + WebUrl = "https://github.com/innocenty.popov" +} +# A UPN can also be used as -UserId. +Update-MgUserProfileWebAccount -UserId $userId -WebAccountId $webAccountId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileWebAccount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0-beta/Update-MgUserProfileWebsite.md b/src/People/People/examples/v1.0-beta/Update-MgUserProfileWebsite.md index 093355d11d5..77dde8b0e9f 100644 --- a/src/People/People/examples/v1.0-beta/Update-MgUserProfileWebsite.md +++ b/src/People/People/examples/v1.0-beta/Update-MgUserProfileWebsite.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserProfileWebsite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +$params = @{ + Description = "Lyn Damer play in the Women's 1st Division (Toppserien) in Norway" +} +# A UPN can also be used as -UserId. +Update-MgUserProfileWebsite -UserId $userId -PersonWebsiteId $personWebsiteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserProfileWebsite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContact.md index 093355d11d5..043cee4845b 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContact.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContact -UserId $userId -ContactId $contactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContact -UserId $userId -Property "displayName,emailAddresses" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolder.md index 093355d11d5..ae1d35eb409 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolder.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContactFolder -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolderChildFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolderChildFolder.md index 093355d11d5..a7c97b92d52 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolderChildFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolderChildFolder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserContactFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserContactFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolderContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolderContact.md index 093355d11d5..2ca82b13bc5 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolderContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Get-MgUserContactFolderContact.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserContactFolderContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserContactFolderContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContact.md index 093355d11d5..5df44275afa 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContact.md @@ -1,18 +1,31 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + GivenName = "Pavel" + Surname = "Bansky" + EmailAddresses = @( + @{ + Address = "pavelb@contoso.onmicrosoft.com" + Name = "Pavel Bansky" + Type = "personal" + } + @{ + Address = "pavelb@fabrikam.onmicrosoft.com" + Name = "Pavel Bansky" + Type = "other" + OtherLabel = "Volunteer work" + } + ) + Phones = @( + @{ + Number = "+1 732 555 0102" + Type = "business" + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserContact -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolder.md index 093355d11d5..4f7b487fed6 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolder.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + ParentFolderId = "AQMkADIxYjJiYgEzLTFmNjYALTRjYTMtODA1NC0wZDkxZGNmOTcxNTQALgAAA8RJzXYaLKZPlmn0ge0edZkBADa3qi2IMXRNg6RwQSHe_F8AAAIBDgAAAA==" + DisplayName = "Important contacts" +} +# A UPN can also be used as -UserId. +New-MgUserContactFolder -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolderChildFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolderChildFolder.md index 093355d11d5..9fee34e1685 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolderChildFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolderChildFolder.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserContactFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + DisplayName = "Family" +} +# A UPN can also be used as -UserId. +New-MgUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserContactFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolderContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolderContact.md index 093355d11d5..6e919d23632 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolderContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/New-MgUserContactFolderContact.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserContactFolderContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + ParentFolderId = "parentFolderId-value" + Birthday = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + FileAs = "fileAs-value" + DisplayName = "displayName-value" + GivenName = "givenName-value" + Initials = "initials-value" +} +# A UPN can also be used as -UserId. +New-MgUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserContactFolderContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Remove-MgUserContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Remove-MgUserContact.md index 093355d11d5..2cfe18df0c1 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Remove-MgUserContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Remove-MgUserContact.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Remove-MgUserContact -UserId $userId -ContactId $contactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Remove-MgUserContactFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Remove-MgUserContactFolder.md index 093355d11d5..44f4ebfd984 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Remove-MgUserContactFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Remove-MgUserContactFolder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Remove-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Update-MgUserContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Update-MgUserContact.md index 093355d11d5..3474ac653f5 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Update-MgUserContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Update-MgUserContact.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + EmailAddresses = @( + @{ + Type = "personal" + Name = "Pavel Bansky" + Address = "pavelb@adatum.onmicrosoft.com" + } + @{ + Address = "pavelb@fabrikam.onmicrosoft.com" + Name = "Pavel Bansky" + Type = "other" + OtherLabel = "Volunteer work" + } + ) +} +# A UPN can also be used as -UserId. +Update-MgUserContact -UserId $userId -ContactId $contactId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Update-MgUserContactFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Update-MgUserContactFolder.md index 093355d11d5..ea993d87800 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Update-MgUserContactFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0-beta/Update-MgUserContactFolder.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + ParentFolderId = "parentFolderId-value" + DisplayName = "displayName-value" +} +# A UPN can also be used as -UserId. +Update-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgGroupPlannerPlan.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgGroupPlannerPlan.md index 093355d11d5..25eb954e105 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgGroupPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgGroupPlannerPlan.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgGroupPlannerPlan -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerBucket.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerBucket.md index 093355d11d5..527e0665d1a 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerBucket.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerBucket.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerBucket ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerBucket -PlannerBucketId $plannerBucketId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerBucketTask.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerBucketTask.md index 093355d11d5..7428815cc14 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerBucketTask.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerBucketTask.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerBucketTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerBucketTask -PlannerBucketId $plannerBucketId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerBucketTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlan.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlan.md index 093355d11d5..c85fd490932 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlan.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlan -PlannerPlanId $plannerPlanId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlan ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanBucket.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanBucket.md index 093355d11d5..8c5cd966d3b 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanBucket.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanBucket.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerPlanBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlanBucket -PlannerPlanId $plannerPlanId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerPlanBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanDetail.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanDetail.md index 093355d11d5..3ef38714af1 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanDetail.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanDetail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerPlanDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerPlanDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanTask.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanTask.md index 093355d11d5..6f9debbe198 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanTask.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerPlanTask.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerPlanTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlanTask -PlannerPlanId $plannerPlanId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerPlanTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRoster.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRoster.md index 093355d11d5..76723fb0adc 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRoster.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRoster.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerRoster Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerRoster -PlannerRosterId $plannerRosterId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerRoster Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRosterMember.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRosterMember.md index 093355d11d5..d5d6dc0da25 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRosterMember.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRosterMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerRosterMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerRosterMember -PlannerRosterId $plannerRosterId -PlannerRosterMemberId $plannerRosterMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPlannerRosterMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPlannerRosterMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerRosterMember -PlannerRosterId $plannerRosterId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerRosterMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRosterPlan.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRosterPlan.md index 093355d11d5..bf837a6aa71 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRosterPlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerRosterPlan.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerRosterPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerRosterPlan -PlannerRosterId $plannerRosterId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerRosterPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTask.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTask.md index 093355d11d5..b77b84390d9 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTask.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTask -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTask ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskAssignedToTaskBoardFormat.md index 093355d11d5..9c5f0fea3bc 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskBucketTaskBoardFormat.md index 093355d11d5..33d6a38f832 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskBucketTaskBoardFormat.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTaskBucketTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTaskBucketTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskDetail.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskDetail.md index 093355d11d5..3723f3299b1 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskDetail.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskDetail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTaskDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTaskDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskProgressTaskBoardFormat.md index 093355d11d5..a8925d1e73b 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgPlannerTaskProgressTaskBoardFormat.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTaskProgressTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTaskProgressTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlanner.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlanner.md index 093355d11d5..5e49492767d 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlanner.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlanner.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPlanner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +# A UPN can also be used as -UserId. +Get-MgUserPlanner -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPlanner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerFavoritePlan.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerFavoritePlan.md index 093355d11d5..97063d8c19f 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerFavoritePlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerFavoritePlan.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPlannerFavoritePlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +# A UPN can also be used as -UserId. +Get-MgUserPlannerFavoritePlan -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPlannerFavoritePlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerPlan.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerPlan.md index 093355d11d5..9bdde25910d 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerPlan.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +# A UPN can also be used as -UserId. +Get-MgUserPlannerPlan -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerRecentPlan.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerRecentPlan.md index 093355d11d5..2398a9a3038 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerRecentPlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerRecentPlan.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPlannerRecentPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +# A UPN can also be used as -UserId. +Get-MgUserPlannerRecentPlan -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPlannerRecentPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerRosterPlan.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerRosterPlan.md index 093355d11d5..0ebad116faa 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerRosterPlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerRosterPlan.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPlannerRosterPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgUserPlannerRosterPlan -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPlannerRosterPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerTask.md b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerTask.md index 093355d11d5..4a3c8888dca 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0-beta/Get-MgUserPlannerTask.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +# A UPN can also be used as -UserId. +Get-MgUserPlannerTask -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerBucket.md b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerBucket.md index 093355d11d5..92e6b457ff3 100644 --- a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerBucket.md +++ b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerBucket.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Name = "Advertising" + PlanId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" + OrderHint = " !" +} +New-MgPlannerBucket -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerPlan.md b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerPlan.md index 093355d11d5..9a3164fc9b2 100644 --- a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerPlan.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Container = @{ + Url = "https://graph.microsoft.com/beta/groups/ebf3b108-5234-4e22-b93d-656d7dae5874" + } + Title = "title-value" +} +New-MgPlannerPlan -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerRoster.md b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerRoster.md index 093355d11d5..acc8e003135 100644 --- a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerRoster.md +++ b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerRoster.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPlannerRoster Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + "@odata.type" = "#microsoft.graph.plannerRoster" +} +New-MgPlannerRoster -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPlannerRoster Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerRosterMember.md b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerRosterMember.md index 093355d11d5..ce8a1007695 100644 --- a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerRosterMember.md +++ b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerRosterMember.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPlannerRosterMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + "@odata.type" = "#microsoft.graph.plannerRosterMember" + UserId = "String" +} +New-MgPlannerRosterMember -PlannerRosterId $plannerRosterId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPlannerRosterMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerTask.md b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerTask.md index 093355d11d5..3cf42b6362b 100644 --- a/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0-beta/New-MgPlannerTask.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + PlanId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" + BucketId = "hsOf2dhOJkqyYYZEtdzDe2QAIUCR" + Title = "Update client list" + Assignments = @{ + "Fbab97d0-4932-4511-b675-204639209557" = @{ + "@odata.type" = "#microsoft.graph.plannerAssignment" + OrderHint = " !" + } + } +} +New-MgPlannerTask -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerBucket.md b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerBucket.md index 093355d11d5..ef48c848a6f 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerBucket.md +++ b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerBucket.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Remove-MgPlannerBucket -PlannerBucketId $plannerBucketId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerPlan.md b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerPlan.md index 093355d11d5..68a7b2eea17 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerPlan.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Remove-MgPlannerPlan -PlannerPlanId $plannerPlanId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerRoster.md b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerRoster.md index 093355d11d5..4f36a67076c 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerRoster.md +++ b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerRoster.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPlannerRoster Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Remove-MgPlannerRoster -PlannerRosterId $plannerRosterId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPlannerRoster Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerRosterMember.md b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerRosterMember.md index 093355d11d5..38f6ddfff42 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerRosterMember.md +++ b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerRosterMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPlannerRosterMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Remove-MgPlannerRosterMember -PlannerRosterId $plannerRosterId -PlannerRosterMemberId $plannerRosterMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPlannerRosterMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerTask.md b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerTask.md index 093355d11d5..bbeb881e87c 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0-beta/Remove-MgPlannerTask.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Remove-MgPlannerTask -PlannerTaskId $plannerTaskId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerBucket.md b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerBucket.md index 093355d11d5..3ed2845eac4 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerBucket.md +++ b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerBucket.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Name = "Development" +} +Update-MgPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerPlan.md b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerPlan.md index 093355d11d5..f85255752f9 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerPlan.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Title = "title-value" +} +Update-MgPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerPlanDetail.md b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerPlanDetail.md index 093355d11d5..7e24eb55fd6 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerPlanDetail.md +++ b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerPlanDetail.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerPlanDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + SharedWith = @{ + "6463a5ce-2119-4198-9f2a-628761df4a62" = $true + "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false + } + CategoryDescriptions = @{ + Category1 = "Indoors" + Category3 = $null + } +} +Update-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerPlanDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTask.md b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTask.md index 093355d11d5..d6f22d3562a 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTask.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Assignments = @{ + "Fbab97d0-4932-4511-b675-204639209557" = @{ + "@odata.type" = "#microsoft.graph.plannerAssignment" + OrderHint = "N9917 U2883!" + } + } + AppliedCategories = @{ + Category3 = $true + Category4 = $false + } +} +Update-MgPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskAssignedToTaskBoardFormat.md index 093355d11d5..59425a6026f 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + OrderHintsByAssignee = @{ + "Aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" + } +} +Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskBucketTaskBoardFormat.md index 093355d11d5..b94eeb1278a 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskBucketTaskBoardFormat.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTaskBucketTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + OrderHint = "A6673H Ejkl!" +} +Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTaskBucketTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskDetail.md b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskDetail.md index 093355d11d5..d0cc33af750 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskDetail.md +++ b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskDetail.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTaskDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + PreviewType = "noPreview" + References = @{ + "Http%3A//developer%2Emicrosoft%2Ecom" = @{ + "@odata.type" = "microsoft.graph.plannerExternalReference" + Alias = "Documentation" + PreviewPriority = " !" + Type = "Other" + } + "Https%3A//developer%2Emicrosoft%2Ecom/graph/graph-explorer" = @{ + "@odata.type" = "microsoft.graph.plannerExternalReference" + PreviewPriority = " !!" + } + "Http%3A//www%2Ebing%2Ecom" = $null + } + Checklist = @{ + "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ + "@odata.type" = "microsoft.graph.plannerChecklistItem" + Title = "Update task details" + IsChecked = $true + } + "D280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ + "@odata.type" = "microsoft.graph.plannerChecklistItem" + IsChecked = $true + } + "A93c93c5-10a6-4167-9551-8bafa09967a7" = $null + } +} +Update-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTaskDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskProgressTaskBoardFormat.md index 093355d11d5..4a456eeb232 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0-beta/Update-MgPlannerTaskProgressTaskBoardFormat.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTaskProgressTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + OrderHint = "A6673H Ejkl!" +} +Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTaskProgressTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0-beta/Update-MgUserPlanner.md b/src/Planner/Planner/examples/v1.0-beta/Update-MgUserPlanner.md index 093355d11d5..707592398f6 100644 --- a/src/Planner/Planner/examples/v1.0-beta/Update-MgUserPlanner.md +++ b/src/Planner/Planner/examples/v1.0-beta/Update-MgUserPlanner.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserPlanner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + FavoritePlanReferences = @{ + Jd8S5gOaFk2S8aWCIAJz42QAAxtD = @{ + "@odata.type" = "#microsoft.graph.plannerFavoritePlanReference" + OrderHint = " !" + PlanTitle = "Next Release Discussion" + } + "7oTB5aMIAE2rVo-1N-L7RmQAGX2q" = $null + } + RecentPlanReferences = @{ + Jd8S5gOaFk2S8aWCIAJz42QAAxtD = @{ + "@odata.type" = "#microsoft.graph.plannerRecentPlanReference" + LastAccessedDateTime = "2018-01-02T22:49:46.155Z" + PlanTitle = "Next Release Discussion" + } + } +} +# A UPN can also be used as -UserId. +Update-MgUserPlanner -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserPlanner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Confirm-MgAuditLogSignInCompromised.md b/src/Reports/Reports/examples/v1.0-beta/Confirm-MgAuditLogSignInCompromised.md index 093355d11d5..49e95865bf6 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Confirm-MgAuditLogSignInCompromised.md +++ b/src/Reports/Reports/examples/v1.0-beta/Confirm-MgAuditLogSignInCompromised.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgAuditLogSignInCompromised Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +$params = @{ + RequestIds = @( + "f01c6af6-6683-4a37-a945-0a925501eede" + "42bf60ac-d0cb-4206-aa5c-101884298f55" + "f09c8f14-8d8e-42cf-8a7e-732b0594e79b" + ) +} +Confirm-MgAuditLogSignInCompromised -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgAuditLogSignInCompromised Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Confirm-MgAuditLogSignInSafe.md b/src/Reports/Reports/examples/v1.0-beta/Confirm-MgAuditLogSignInSafe.md index 093355d11d5..fba07f30c52 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Confirm-MgAuditLogSignInSafe.md +++ b/src/Reports/Reports/examples/v1.0-beta/Confirm-MgAuditLogSignInSafe.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgAuditLogSignInSafe Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +$params = @{ + RequestIds = @( + "5a0c76d2-cb57-4ece-9bc1-c323178f116a" + "96609214-09ef-4f80-9d4a-ace5fceecaec" + "05020696-4eb8-45a3-918f-8f8bb7ad6015" + ) +} +Confirm-MgAuditLogSignInSafe -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgAuditLogSignInSafe Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogDirectoryAudit.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogDirectoryAudit.md index 093355d11d5..475994ea767 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogDirectoryAudit.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogDirectoryAudit.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAuditLogDirectoryAudit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogDirectoryAudit -DirectoryAuditId $directoryAuditId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAuditLogDirectoryAudit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAuditLogDirectoryAudit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogDirectoryAudit ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAuditLogDirectoryAudit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogProvisioning.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogProvisioning.md index 093355d11d5..976e96bb3c1 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogProvisioning.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogProvisioning.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAuditLogProvisioning Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogProvisioning ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAuditLogProvisioning Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAuditLogProvisioning Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogProvisioning ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAuditLogProvisioning Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogSignIn.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogSignIn.md index 093355d11d5..c954c98fd2b 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogSignIn.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgAuditLogSignIn.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAuditLogSignIn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogSignIn -SignInId $signInId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAuditLogSignIn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAuditLogSignIn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogSignIn ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAuditLogSignIn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgAuditLogSignIn Cmdlet +```powershell +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogSignIn -Filter "startsWith(appDisplayName,'Azure')" -Top 10 +``` +This example shows how to use the Get-MgAuditLogSignIn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgAuditLogSignIn Cmdlet +```powershell +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogSignIn -Filter "(signInEventTypes/any(t: t ne 'interactiveUser'))" -Sort "createdDateTime DESC" -Top 10 +``` +This example shows how to use the Get-MgAuditLogSignIn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportApplicationSignInDetailedSummary.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportApplicationSignInDetailedSummary.md index 093355d11d5..2afbc68fecb 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportApplicationSignInDetailedSummary.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportApplicationSignInDetailedSummary.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportApplicationSignInDetailedSummary Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportApplicationSignInDetailedSummary -ApplicationSignInDetailedSummaryId $applicationSignInDetailedSummaryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgReportApplicationSignInDetailedSummary Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgReportApplicationSignInDetailedSummary Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportApplicationSignInDetailedSummary ``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportApplicationSignInDetailedSummary Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationRepeatOffender.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationRepeatOffender.md index 093355d11d5..447f4bb3b9a 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationRepeatOffender.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationRepeatOffender.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportAttackSimulationRepeatOffender Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportAttackSimulationRepeatOffender ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportAttackSimulationRepeatOffender Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationTrainingUserCoverage.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationTrainingUserCoverage.md index 093355d11d5..a0943cc827b 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationTrainingUserCoverage.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationTrainingUserCoverage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportAttackSimulationTrainingUserCoverage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportAttackSimulationTrainingUserCoverage ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportAttackSimulationTrainingUserCoverage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationUserCoverage.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationUserCoverage.md index 093355d11d5..09893fada73 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationUserCoverage.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAttackSimulationUserCoverage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportAttackSimulationUserCoverage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportAttackSimulationUserCoverage ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportAttackSimulationUserCoverage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAuthenticationMethodUserRegistrationDetail.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAuthenticationMethodUserRegistrationDetail.md index 093355d11d5..0eeb85af508 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAuthenticationMethodUserRegistrationDetail.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportAuthenticationMethodUserRegistrationDetail.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportAuthenticationMethodUserRegistrationDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportAuthenticationMethodUserRegistrationDetail -UserRegistrationDetailsId $userRegistrationDetailsId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgReportAuthenticationMethodUserRegistrationDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgReportAuthenticationMethodUserRegistrationDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportAuthenticationMethodUserRegistrationDetail ``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportAuthenticationMethodUserRegistrationDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportCredentialUserRegistrationCount.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportCredentialUserRegistrationCount.md index 093355d11d5..06f81a6799b 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportCredentialUserRegistrationCount.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportCredentialUserRegistrationCount.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportCredentialUserRegistrationCount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportCredentialUserRegistrationCount ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportCredentialUserRegistrationCount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportCredentialUserRegistrationDetail.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportCredentialUserRegistrationDetail.md index 093355d11d5..0438409b3f8 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportCredentialUserRegistrationDetail.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportCredentialUserRegistrationDetail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportCredentialUserRegistrationDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportCredentialUserRegistrationDetail ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportCredentialUserRegistrationDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationRepeatOffender.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationRepeatOffender.md index 093355d11d5..5b2b96ec8c1 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationRepeatOffender.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationRepeatOffender.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportSecurityAttackSimulationRepeatOffender Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportSecurityAttackSimulationRepeatOffender ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportSecurityAttackSimulationRepeatOffender Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationTrainingUserCoverage.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationTrainingUserCoverage.md index 093355d11d5..c9f38fde3e0 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationTrainingUserCoverage.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationTrainingUserCoverage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportSecurityAttackSimulationTrainingUserCoverage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportSecurityAttackSimulationTrainingUserCoverage ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportSecurityAttackSimulationTrainingUserCoverage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationUserCoverage.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationUserCoverage.md index 093355d11d5..405b6fa9ba2 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationUserCoverage.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportSecurityAttackSimulationUserCoverage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportSecurityAttackSimulationUserCoverage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportSecurityAttackSimulationUserCoverage ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportSecurityAttackSimulationUserCoverage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportUserCredentialUsageDetail.md b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportUserCredentialUsageDetail.md index 093355d11d5..be061d6f8c8 100644 --- a/src/Reports/Reports/examples/v1.0-beta/Get-MgReportUserCredentialUsageDetail.md +++ b/src/Reports/Reports/examples/v1.0-beta/Get-MgReportUserCredentialUsageDetail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportUserCredentialUsageDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportUserCredentialUsageDetail ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportUserCredentialUsageDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Get-MgSchemaExtension.md b/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Get-MgSchemaExtension.md index 093355d11d5..463677ebfe3 100644 --- a/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Get-MgSchemaExtension.md +++ b/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Get-MgSchemaExtension.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +Get-MgSchemaExtension -SchemaExtensionId $schemaExtensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +Get-MgSchemaExtension -Filter "id eq 'graphlearn_test'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/New-MgSchemaExtension.md b/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/New-MgSchemaExtension.md index 093355d11d5..369d52f1ca4 100644 --- a/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/New-MgSchemaExtension.md +++ b/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/New-MgSchemaExtension.md @@ -1,18 +1,85 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Id = "graphlearn_courses" + Description = "Graph Learn training courses extensions" + TargetTypes = @( + "Group" + ) + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + ) +} +New-MgSchemaExtension -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Id = "courses" + Description = "Graph Learn training courses extensions" + TargetTypes = @( + "Group" + ) + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + ) +} +New-MgSchemaExtension -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgSchemaExtension Cmdlet +```powershell +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Id = "courses" + Description = "Graph Learn training courses extensions" + TargetTypes = @( + "Group" + ) + Owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + ) +} +New-MgSchemaExtension -BodyParameter $params +``` +This example shows how to use the New-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Remove-MgSchemaExtension.md b/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Remove-MgSchemaExtension.md index 093355d11d5..5fbf9f8da95 100644 --- a/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Remove-MgSchemaExtension.md +++ b/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Remove-MgSchemaExtension.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +Remove-MgSchemaExtension -SchemaExtensionId $schemaExtensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Update-MgSchemaExtension.md b/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Update-MgSchemaExtension.md index 093355d11d5..961a8eb0e44 100644 --- a/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Update-MgSchemaExtension.md +++ b/src/SchemaExtensions/SchemaExtensions/examples/v1.0-beta/Update-MgSchemaExtension.md @@ -1,18 +1,56 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + @{ + Name = "courseSupervisors" + Type = "String" + } + ) +} +Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + @{ + Name = "courseSupervisors" + Type = "String" + } + ) +} +Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnection.md b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnection.md index 093355d11d5..1ed6e2eb7e7 100644 --- a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnection.md +++ b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnection.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnection -ExternalConnectionId $externalConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnection ``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionItem.md b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionItem.md index 093355d11d5..b3620a72024 100644 --- a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionItem.md +++ b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnectionItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnectionItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionOperation.md b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionOperation.md index 093355d11d5..8e09194b1fe 100644 --- a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionOperation.md +++ b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnectionOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnectionOperation -ExternalConnectionId $externalConnectionId -ConnectionOperationId $connectionOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnectionOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionQuota.md b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionQuota.md index 093355d11d5..ca4d5436209 100644 --- a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionQuota.md +++ b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionQuota.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnectionQuota Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnectionQuota -ExternalConnectionId $externalConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgExternalConnectionQuota Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgExternalConnectionQuota Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnectionQuota -ExternalConnectionId $externalConnectionId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnectionQuota Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionSchema.md b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionSchema.md index 093355d11d5..66d1dc5d0aa 100644 --- a/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionSchema.md +++ b/src/Search/Search/examples/v1.0-beta/Get-MgExternalConnectionSchema.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnectionSchema Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnectionSchema -ExternalConnectionId $externalConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnectionSchema Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Get-MgSearchAcronym.md b/src/Search/Search/examples/v1.0-beta/Get-MgSearchAcronym.md index 093355d11d5..1d48c30740c 100644 --- a/src/Search/Search/examples/v1.0-beta/Get-MgSearchAcronym.md +++ b/src/Search/Search/examples/v1.0-beta/Get-MgSearchAcronym.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSearchAcronym Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgSearchAcronym -AcronymId $acronymId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSearchAcronym Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSearchAcronym Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgSearchAcronym ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSearchAcronym Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Get-MgSearchBookmark.md b/src/Search/Search/examples/v1.0-beta/Get-MgSearchBookmark.md index 093355d11d5..3105a1ebdbd 100644 --- a/src/Search/Search/examples/v1.0-beta/Get-MgSearchBookmark.md +++ b/src/Search/Search/examples/v1.0-beta/Get-MgSearchBookmark.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSearchBookmark Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgSearchBookmark -BookmarkId $bookmarkId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSearchBookmark Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSearchBookmark Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgSearchBookmark ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSearchBookmark Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Get-MgSearchQna.md b/src/Search/Search/examples/v1.0-beta/Get-MgSearchQna.md index 093355d11d5..6754bce0b1b 100644 --- a/src/Search/Search/examples/v1.0-beta/Get-MgSearchQna.md +++ b/src/Search/Search/examples/v1.0-beta/Get-MgSearchQna.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSearchQna Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgSearchQna -QnaId $qnaId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSearchQna Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSearchQna Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgSearchQna ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSearchQna Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Invoke-MgQuerySearch.md b/src/Search/Search/examples/v1.0-beta/Invoke-MgQuerySearch.md index 093355d11d5..577d2af3eb4 100644 --- a/src/Search/Search/examples/v1.0-beta/Invoke-MgQuerySearch.md +++ b/src/Search/Search/examples/v1.0-beta/Invoke-MgQuerySearch.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgQuerySearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Requests = @( + @{ + EntityTypes = @( + "externalItem" + ) + ContentSources = @( + "/external/connections/connectionfriendlyname" + ) + Query = @{ + QueryString = "contoso product" + } + From = 0 + Size = 25 + Fields = @( + "title" + "description" + ) + } + ) +} +Invoke-MgQuerySearch -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgQuerySearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/New-MgExternalConnection.md b/src/Search/Search/examples/v1.0-beta/New-MgExternalConnection.md index 093355d11d5..a0247c4c1d9 100644 --- a/src/Search/Search/examples/v1.0-beta/New-MgExternalConnection.md +++ b/src/Search/Search/examples/v1.0-beta/New-MgExternalConnection.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "contosohr" + Name = "Contoso HR" + Description = "Connection to index Contoso HR system" +} +New-MgExternalConnection -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/New-MgExternalConnectionGroup.md b/src/Search/Search/examples/v1.0-beta/New-MgExternalConnectionGroup.md index 093355d11d5..2128cf13651 100644 --- a/src/Search/Search/examples/v1.0-beta/New-MgExternalConnectionGroup.md +++ b/src/Search/Search/examples/v1.0-beta/New-MgExternalConnectionGroup.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgExternalConnectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "31bea3d537902000" + DisplayName = "Contoso Marketing" + Description = "The product marketing team" +} +New-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgExternalConnectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/New-MgExternalConnectionGroupMember.md b/src/Search/Search/examples/v1.0-beta/New-MgExternalConnectionGroupMember.md index 093355d11d5..d1f01a83306 100644 --- a/src/Search/Search/examples/v1.0-beta/New-MgExternalConnectionGroupMember.md +++ b/src/Search/Search/examples/v1.0-beta/New-MgExternalConnectionGroupMember.md @@ -1,18 +1,33 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgExternalConnectionGroupMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "e811976d-83df-4cbd-8b9b-5215b18aa874" + Type = "user" +} +New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgExternalConnectionGroupMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgExternalConnectionGroupMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "e5477431-1038-484e-bf69-1dfedb97a110" + Type = "externalGroup" +} +New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgExternalConnectionGroupMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgExternalConnectionGroupMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "1431b9c38ee647f6a" + Type = "externalGroup" +} +New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +This example shows how to use the New-MgExternalConnectionGroupMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/New-MgSearchAcronym.md b/src/Search/Search/examples/v1.0-beta/New-MgSearchAcronym.md index 093355d11d5..46f39e279e2 100644 --- a/src/Search/Search/examples/v1.0-beta/New-MgSearchAcronym.md +++ b/src/Search/Search/examples/v1.0-beta/New-MgSearchAcronym.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSearchAcronym Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + DisplayName = "DNN" + StandsFor = "Deep Neural Network" + Description = "A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers." + WebUrl = "http://microsoft.com/deep-neural-network" + State = "draft" +} +New-MgSearchAcronym -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSearchAcronym Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/New-MgSearchBookmark.md b/src/Search/Search/examples/v1.0-beta/New-MgSearchBookmark.md index 093355d11d5..82ed6e19145 100644 --- a/src/Search/Search/examples/v1.0-beta/New-MgSearchBookmark.md +++ b/src/Search/Search/examples/v1.0-beta/New-MgSearchBookmark.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSearchBookmark Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + DisplayName = "Contoso Install Site" + WebUrl = "http://www.contoso.com/" + Description = "Try or buy Contoso for Home or Business and view product information" + Keywords = @{ + Keywords = @( + "Contoso" + "install" + ) + ReservedKeywords = @( + "Contoso" + ) + MatchSimilarKeywords = $true + } + AvailabilityStartDateTime = $null + AvailabilityEndDateTime = $null + Platforms = @( + "windows" + ) + TargetedVariations = @( + @{ + LanguageTag = "es-es" + DisplayName = "Sitio de instalación Contoso" + Description = "Pruebe o compre Contoso hogar o negocios y vea la información del producto" + } + ) + State = "published" +} +New-MgSearchBookmark -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSearchBookmark Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/New-MgSearchQna.md b/src/Search/Search/examples/v1.0-beta/New-MgSearchQna.md index 093355d11d5..4eba9a577d8 100644 --- a/src/Search/Search/examples/v1.0-beta/New-MgSearchQna.md +++ b/src/Search/Search/examples/v1.0-beta/New-MgSearchQna.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSearchQna Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + DisplayName = "Global Country Holidays" + WebUrl = "http://www.contoso.com/" + Description = "The dates that Contoso offices will be closed to observe holidays. These dates may differ from the actual date of the holiday in cases where the holiday falls on a wee​kend.
2021 Dates Holiday
January 1, 2021 New Year's Day
January 18, 2021 Martin Luther King Day
February 15, 2021 Presidents Day
May 31, 2021 Memorial Day
July 5, 2021 Independence Day
September 6, 2021 Labor Day
November 25, 2021 - November 26, 2021 Thanksgiving Day and Day after Thanksgiving
December 23, 2021 - December 24, 2021 Christmas Eve and Christmas Day
" + Keywords = @{ + Keywords = @( + "new years day" + "martin luther king day" + "presidents day" + "memorial day" + "independence day" + "labor day" + "thanksgiving" + "christmas" + ) + ReservedKeywords = @( + "holidays" + "paid days off" + ) + MatchSimilarKeywords = $true + } + AvailabilityStartDateTime = [System.DateTime]::Parse("2020-09-21T20:01:37Z") + AvailabilityEndDateTime = [System.DateTime]::Parse("2021-12-31T20:01:37Z") + LanguageTags = @( + "en-us" + ) + Platforms = @( + "ios" + ) + State = "published" +} +New-MgSearchQna -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSearchQna Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnection.md b/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnection.md index 093355d11d5..8cba0fa7fa1 100644 --- a/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnection.md +++ b/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnection.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgExternalConnection -ExternalConnectionId $externalConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionGroup.md b/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionGroup.md index 093355d11d5..594a7d0bcee 100644 --- a/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionGroup.md +++ b/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgExternalConnectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgExternalConnectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionGroupMember.md b/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionGroupMember.md index 093355d11d5..c7b3afefb9e 100644 --- a/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionGroupMember.md +++ b/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionGroupMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgExternalConnectionGroupMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -IdentityId $identityId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgExternalConnectionGroupMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionItem.md b/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionItem.md index 093355d11d5..42ba2ec9a58 100644 --- a/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionItem.md +++ b/src/Search/Search/examples/v1.0-beta/Remove-MgExternalConnectionItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgExternalConnectionItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgExternalConnectionItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Remove-MgSearchAcronym.md b/src/Search/Search/examples/v1.0-beta/Remove-MgSearchAcronym.md index 093355d11d5..b00df37968c 100644 --- a/src/Search/Search/examples/v1.0-beta/Remove-MgSearchAcronym.md +++ b/src/Search/Search/examples/v1.0-beta/Remove-MgSearchAcronym.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSearchAcronym Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgSearchAcronym -AcronymId $acronymId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSearchAcronym Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Remove-MgSearchBookmark.md b/src/Search/Search/examples/v1.0-beta/Remove-MgSearchBookmark.md index 093355d11d5..9c0e8e55549 100644 --- a/src/Search/Search/examples/v1.0-beta/Remove-MgSearchBookmark.md +++ b/src/Search/Search/examples/v1.0-beta/Remove-MgSearchBookmark.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSearchBookmark Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgSearchBookmark -BookmarkId $bookmarkId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSearchBookmark Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Remove-MgSearchQna.md b/src/Search/Search/examples/v1.0-beta/Remove-MgSearchQna.md index 093355d11d5..c52b4cac53f 100644 --- a/src/Search/Search/examples/v1.0-beta/Remove-MgSearchQna.md +++ b/src/Search/Search/examples/v1.0-beta/Remove-MgSearchQna.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSearchQna Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgSearchQna -QnaId $qnaId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSearchQna Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnection.md b/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnection.md index 093355d11d5..95ba5a033aa 100644 --- a/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnection.md +++ b/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnection.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Name = "Contoso HR Service Tickets" + Description = "Connection to index HR service tickets" +} +Update-MgExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnectionItem.md b/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnectionItem.md index 093355d11d5..794b988a6e2 100644 --- a/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnectionItem.md +++ b/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnectionItem.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgExternalConnectionItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Acl = @( + @{ + Type = "everyone" + Value = "67a141d8-cf4e-4528-ba07-bed21bfacd2d" + AccessType = "grant" + } + ) +} +Update-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgExternalConnectionItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnectionSchema.md b/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnectionSchema.md index 093355d11d5..ac32262394b 100644 --- a/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnectionSchema.md +++ b/src/Search/Search/examples/v1.0-beta/Update-MgExternalConnectionSchema.md @@ -1,18 +1,33 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgExternalConnectionSchema Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + BaseType = "microsoft.graph.externalItem" + Properties = @( + @{ + Name = "ticketTitle" + Type = "string" + IsSearchable = "true" + IsRetrievable = "true" + Labels = @( + "title" + ) + } + @{ + Name = "priority" + Type = "string" + IsQueryable = "true" + IsRetrievable = "true" + IsSearchable = "false" + } + @{ + Name = "assignee" + Type = "string" + IsRetrievable = "true" + } + ) +} +Update-MgExternalConnectionSchema -ExternalConnectionId $externalConnectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgExternalConnectionSchema Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Update-MgSearchAcronym.md b/src/Search/Search/examples/v1.0-beta/Update-MgSearchAcronym.md index 093355d11d5..2c3df746f6f 100644 --- a/src/Search/Search/examples/v1.0-beta/Update-MgSearchAcronym.md +++ b/src/Search/Search/examples/v1.0-beta/Update-MgSearchAcronym.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSearchAcronym Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Description = "A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers." +} +Update-MgSearchAcronym -AcronymId $acronymId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSearchAcronym Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0-beta/Update-MgSearchBookmark.md b/src/Search/Search/examples/v1.0-beta/Update-MgSearchBookmark.md index 093355d11d5..f7aec2cdd2f 100644 --- a/src/Search/Search/examples/v1.0-beta/Update-MgSearchBookmark.md +++ b/src/Search/Search/examples/v1.0-beta/Update-MgSearchBookmark.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSearchBookmark Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Description = "Book a fancy vacation in Tuscany or browse museums in Florence." +} +Update-MgSearchBookmark -BookmarkId $bookmarkId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSearchBookmark Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseCustodianHold.md b/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseCustodianHold.md index 093355d11d5..1c44fc280a2 100644 --- a/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseCustodianHold.md +++ b/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseCustodianHold.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Add-MgSecurityCaseEdiscoveryCaseCustodianHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Add-MgSecurityCaseEdiscoveryCaseCustodianHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md b/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md index 093355d11d5..e3baa654bbe 100644 --- a/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md +++ b/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag.md b/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag.md index 093355d11d5..b6e1f76e52c 100644 --- a/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag.md +++ b/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + TagsToAdd = @( + @{ + Id = "d3d99dc704a74801b792b3e1e722aa0d" + } + ) +} +Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet.md b/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet.md index 093355d11d5..aa7cfa45bc7 100644 --- a/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet.md +++ b/src/Security/Security/examples/v1.0-beta/Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Search = @{ + Id = "c17e91d6-6bc0-4ecb-b388-269ea3d4ffb7" + } + AdditionalDataOptions = "linkedFiles" +} +Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Clear-MgSecurityCaseEdiscoveryCaseSearchData.md b/src/Security/Security/examples/v1.0-beta/Clear-MgSecurityCaseEdiscoveryCaseSearchData.md index 093355d11d5..cfa5a4dd470 100644 --- a/src/Security/Security/examples/v1.0-beta/Clear-MgSecurityCaseEdiscoveryCaseSearchData.md +++ b/src/Security/Security/examples/v1.0-beta/Clear-MgSecurityCaseEdiscoveryCaseSearchData.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Clear-MgSecurityCaseEdiscoveryCaseSearchData Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Clear-MgSecurityCaseEdiscoveryCaseSearchData -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Clear-MgSecurityCaseEdiscoveryCaseSearchData Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Close-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0-beta/Close-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..5ffb1c9ec9a 100644 --- a/src/Security/Security/examples/v1.0-beta/Close-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0-beta/Close-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Close-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Close-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Close-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Export-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/Security/examples/v1.0-beta/Export-MgSecurityCaseEdiscoveryCaseReviewSet.md index 093355d11d5..4bf6f5dde71 100644 --- a/src/Security/Security/examples/v1.0-beta/Export-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/Security/examples/v1.0-beta/Export-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Export-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + OutputName = "Export via API" + Description = "Export for the Contoso investigation" + ExportOptions = "originalFiles,fileInfo,tags" + ExportStructure = "directory" +} +Export-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Export-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Export-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0-beta/Export-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..230a23fe31d 100644 --- a/src/Security/Security/examples/v1.0-beta/Export-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0-beta/Export-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Export-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + OutputName = "Export reviewset query via API" + Description = "Export for the Contoso investigation 2" + ExportOptions = "originalFiles,fileInfo,tags" + ExportStructure = "directory" +} +Export-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Export-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAction.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAction.md index 093355d11d5..e30435a88e0 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAction.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAction.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityAction Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityAction -SecurityActionId $securityActionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityAction Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityAction Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityAction ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityAction Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAlert.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAlert.md index 093355d11d5..e6e1a8cfc20 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAlert.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAlert.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityAlert Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityAlert -AlertId $alertId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityAlert Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityAlert Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityAlert ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityAlert Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulation.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulation.md index 093355d11d5..c4131cc9f58 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulation.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityAttackSimulation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityAttackSimulation ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityAttackSimulation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulationAutomation.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulationAutomation.md index 093355d11d5..d3bb44ff65c 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulationAutomation.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulationAutomation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityAttackSimulationAutomation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityAttackSimulationAutomation ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityAttackSimulationAutomation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulationAutomationRun.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulationAutomationRun.md index 093355d11d5..e0c972e9e42 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulationAutomationRun.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityAttackSimulationAutomationRun.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityAttackSimulationAutomationRun Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityAttackSimulationAutomationRun -SimulationAutomationId $simulationAutomationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityAttackSimulationAutomationRun Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..3d9541dd0b2 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCase ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..343b7051d3a 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md index 093355d11d5..9c5674f5b13 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md index 093355d11d5..1a1b6b711e3 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 093355d11d5..69b31909c64 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md index 093355d11d5..14526042ebf 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseLegalHold.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseLegalHold.md index 093355d11d5..1a251a1c54b 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseLegalHold.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseLegalHold.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseLegalHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseLegalHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryHoldPolicyId $ediscoveryHoldPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseLegalHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseLegalHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseLegalHold -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseLegalHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index 093355d11d5..b328e5490b3 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -ExpandProperty "dataSource" -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId -ExpandProperty "dataSource" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet +```powershell +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -ExpandProperty "dataSource" +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseOperation.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseOperation.md index 093355d11d5..c830ac563e4 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseOperation.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId -CaseOperationId $caseOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet +```powershell +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId -OutFile $outFileId +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md index 093355d11d5..7533ab2d84c 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSetFile.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSetFile.md index 093355d11d5..dffd36c82a5 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSetFile.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSetFile.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSetFile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSetFile -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryFileId $ediscoveryFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSetFile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSetFile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSetFile -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -Top 5 ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSetFile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..6b2dba5fe8e 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearch.md index 093355d11d5..bea4e904d74 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md index 093355d11d5..3ada2fa7fdd 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md index 093355d11d5..eb092a89f86 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md index 093355d11d5..3aa80af3e2d 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md index 093355d11d5..96a866a7172 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSetting.md index 093355d11d5..0d925d1c95b 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseTag.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseTag.md index 093355d11d5..b1eb6d480ef 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityCaseEdiscoveryCaseTag.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet +```powershell +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityIncident.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityIncident.md index 093355d11d5..873ecb55e8b 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityIncident.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityIncident.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityIncident Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityIncident -IncidentId $incidentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityIncident Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityIncident Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityIncident ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityIncident Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSecurityIncident Cmdlet +```powershell +Import-Module Microsoft.Graph.Security +Get-MgSecurityIncident -ExpandProperty "alerts" +``` +This example shows how to use the Get-MgSecurityIncident Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityLabelRetentionLabel.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityLabelRetentionLabel.md index 093355d11d5..5876d2aaa17 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityLabelRetentionLabel.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityLabelRetentionLabel.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityLabelRetentionLabel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityLabelRetentionLabel -RetentionLabelId $retentionLabelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityLabelRetentionLabel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityLabelRetentionLabel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityLabelRetentionLabel ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityLabelRetentionLabel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecuritySecureScore.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecuritySecureScore.md index 093355d11d5..7e673290032 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecuritySecureScore.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecuritySecureScore.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecuritySecureScore Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecuritySecureScore -Top 1 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecuritySecureScore Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecuritySecureScoreControlProfile.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecuritySecureScoreControlProfile.md index 093355d11d5..1bf9f9e85a2 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecuritySecureScoreControlProfile.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecuritySecureScoreControlProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecuritySecureScoreControlProfile ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecuritySecureScoreControlProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionEmailThreat.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionEmailThreat.md index 093355d11d5..b3b5e9eca8c 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionEmailThreat.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionEmailThreat.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityThreatSubmissionEmailThreat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityThreatSubmissionEmailThreat -EmailThreatSubmissionId $emailThreatSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityThreatSubmissionEmailThreat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityThreatSubmissionEmailThreat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityThreatSubmissionEmailThreat ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityThreatSubmissionEmailThreat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md index 093355d11d5..081f8e6e4c2 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy -EmailThreatSubmissionPolicyId $emailThreatSubmissionPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionFileThreat.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionFileThreat.md index 093355d11d5..d8cab2ad72d 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionFileThreat.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionFileThreat.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityThreatSubmissionFileThreat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityThreatSubmissionFileThreat -FileThreatSubmissionId $fileThreatSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityThreatSubmissionFileThreat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityThreatSubmissionFileThreat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityThreatSubmissionFileThreat ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityThreatSubmissionFileThreat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionUrlThreat.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionUrlThreat.md index 093355d11d5..fba4566bc9c 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionUrlThreat.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityThreatSubmissionUrlThreat.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityThreatSubmissionUrlThreat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityThreatSubmissionUrlThreat -UrlThreatSubmissionId $urlThreatSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityThreatSubmissionUrlThreat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityThreatSubmissionUrlThreat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityThreatSubmissionUrlThreat ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityThreatSubmissionUrlThreat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTiIndicator.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTiIndicator.md index 093355d11d5..0e59373489d 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTiIndicator.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTiIndicator.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityTiIndicator Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityTiIndicator -TiIndicatorId $tiIndicatorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityTiIndicator Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityTiIndicator Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityTiIndicator ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityTiIndicator Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTriggerRetentionEvent.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTriggerRetentionEvent.md index 093355d11d5..77e4b161c10 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTriggerRetentionEvent.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTriggerRetentionEvent.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityTriggerRetentionEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityTriggerRetentionEvent -RetentionEventId $retentionEventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityTriggerRetentionEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityTriggerRetentionEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityTriggerRetentionEvent ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityTriggerRetentionEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTriggerTypeRetentionEventType.md b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTriggerTypeRetentionEventType.md index 093355d11d5..9b5401c762f 100644 --- a/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTriggerTypeRetentionEventType.md +++ b/src/Security/Security/examples/v1.0-beta/Get-MgSecurityTriggerTypeRetentionEventType.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityTriggerTypeRetentionEventType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityTriggerTypeRetentionEventType -RetentionEventTypeId $retentionEventTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityTriggerTypeRetentionEventType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityTriggerTypeRetentionEventType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityTriggerTypeRetentionEventType ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityTriggerTypeRetentionEventType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Initialize-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/Security/examples/v1.0-beta/Initialize-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..ba8abb2fd68 100644 --- a/src/Security/Security/examples/v1.0-beta/Initialize-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/Security/examples/v1.0-beta/Initialize-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Initialize-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Initialize-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Initialize-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md b/src/Security/Security/examples/v1.0-beta/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md index 093355d11d5..0507d216070 100644 --- a/src/Security/Security/examples/v1.0-beta/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md +++ b/src/Security/Security/examples/v1.0-beta/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics.md b/src/Security/Security/examples/v1.0-beta/Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics.md index 093355d11d5..13dbba9cdee 100644 --- a/src/Security/Security/examples/v1.0-beta/Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics.md +++ b/src/Security/Security/examples/v1.0-beta/Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Invoke-MgReopenSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0-beta/Invoke-MgReopenSecurityCaseEdiscoveryCase.md index 093355d11d5..2e23f482516 100644 --- a/src/Security/Security/examples/v1.0-beta/Invoke-MgReopenSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0-beta/Invoke-MgReopenSecurityCaseEdiscoveryCase.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReopenSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Invoke-MgReopenSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReopenSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityAction.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityAction.md index 093355d11d5..a7c0d7f220a 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityAction.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityAction.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityAction Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Name = "BlockIp" + ActionReason = "Test" + Parameters = @( + @{ + Name = "IP" + Value = "1.2.3.4" + } + ) + VendorInformation = @{ + Provider = "Windows Defender ATP" + Vendor = "Microsoft" + } +} +New-MgSecurityAction -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityAction Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..8d48d254019 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "CONTOSO LITIGATION-005" + Description = "Project Bazooka" + ExternalId = "324516" +} +New-MgSecurityCaseEdiscoveryCase -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..ded74992aeb 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Email = "AdeleV@contoso.com" +} +New-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md index 093355d11d5..d65cb5ded4d 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Site = @{ + WebUrl = "https://m365x809305.sharepoint.com/sites/Retail" + } +} +New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 093355d11d5..f92b550b31a 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Group = @{ + Mail = "SOCTeam@M365x809305.onmicrosoft.com" + } + IncludedSources = "mailbox, site" +} +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" + IncludedSources = "mailbox" +} +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet +```powershell +Import-Module Microsoft.Graph.Security +$params = @{ + "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" + IncludedSources = "mailbox" +} +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHold.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHold.md index 093355d11d5..222bbccaa63 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHold.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHold.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseLegalHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Displayname = "My legalHold with sources" + Description = "Created from Graph API" + ContentQuery = "Bazooka" + "UserSources@odata.bind" = @( + @{ + "@odata.type" = "microsoft.graph.security.userSource" + Email = "SalesTeam@M365x809305.OnMicrosoft.com" + } + ) + "SiteSources@odata.bind" = @( + @{ + "@odata.type" = "microsoft.graph.security.siteSource" + } + ) +} +New-MgSecurityCaseEdiscoveryCaseLegalHold -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseLegalHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource.md index 093355d11d5..7799286fae4 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Site = @{ + WebUrl = "https://m365x809305.sharepoint.com/sites/Retail" + } +} +New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryHoldPolicyId $ediscoveryHoldPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Site = @{ + WebUrl = "https://m365x809305.sharepoint.com/sites/Retail" + } +} +New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryHoldPolicyId $ediscoveryHoldPolicyId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseLegalHoldSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource.md index 093355d11d5..d47bf9badc1 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Email = "admin@M365x809305.onmicrosoft.com" + IncludedSources = "mailbox, site" +} +New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryHoldPolicyId $ediscoveryHoldPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Email = "admin@M365x809305.onmicrosoft.com" + IncludedSources = "mailbox, site" +} +New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryHoldPolicyId $ediscoveryHoldPolicyId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseLegalHoldUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index 093355d11d5..a8e4d85bf21 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DataSource = @{ + "@odata.type" = "microsoft.graph.security.siteSource" + } +} +New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseReviewSet.md index 093355d11d5..3e35fb4657f 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My review set 2" +} +New-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..881672dd475 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My Query 1" + ContentQuery = "(Author="edison")" +} +New-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseSearch.md index 093355d11d5..74287602174 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My search 2" + Description = "My first search" + ContentQuery = "(Author="edison")" + "CustodianSources@odata.bind" = @( + "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/userSources/43434642-3137-3138-3432-374142313639" + "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/siteSources/169718e3-a8df-449d-bef4-ee09fe1ddc5d" + "https://graph.microsoft.com/beta/security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/custodians('0053a61a3b6c42738f7606791716a22a')/unifiedGroupSources('32e14fa4-3106-4bd2-a245-34bf0c718a7e')" + ) + "NoncustodialSources@odata.bind" = @( + "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/noncustodialdatasources/35393639323133394345384344303043" + ) +} +New-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityLabelRetentionLabel.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityLabelRetentionLabel.md index 093355d11d5..56a10fd08e9 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityLabelRetentionLabel.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityLabelRetentionLabel.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityLabelRetentionLabel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "@odata.type" = "#microsoft.graph.security.retentionLabel" + DisplayName = "String" + BehaviorDuringRetentionPeriod = "String" + ActionAfterRetentionPeriod = "String" + RetentionTrigger = "String" + RetentionDuration = @{ + "@odata.type" = "microsoft.graph.security.retentionDuration" + } + IsInUse = "Boolean" + DescriptionForAdmins = "String" + DescriptionForUsers = "String" + CreatedBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } + LabelToBeApplied = "String" + DefaultRecordBehavior = "String" +} +New-MgSecurityLabelRetentionLabel -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityLabelRetentionLabel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionEmailThreat.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionEmailThreat.md index 093355d11d5..f74d47dae03 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionEmailThreat.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionEmailThreat.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityThreatSubmissionEmailThreat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "@odata.type" = "#microsoft.graph.emailUrlThreatSubmission" + Category = "spam" + RecipientEmailAddress = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + MessageUrl = "https://graph.microsoft.com/beta/users/c52ce8db-3e4b-4181-93c4-7d6b6bffaf60/messages/AAMkADU3MWUxOTU0LWNlOTEt=" +} +New-MgSecurityThreatSubmissionEmailThreat -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityThreatSubmissionEmailThreat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md index 093355d11d5..d8178774454 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + IsReportToMicrosoftEnabled = $true +} +New-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionUrlThreat.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionUrlThreat.md index 093355d11d5..cefd1e280f7 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionUrlThreat.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityThreatSubmissionUrlThreat.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityThreatSubmissionUrlThreat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "@odata.type" = "#microsoft.graph.urlThreatSubmission" + Category = "phishing" + WebUrl = "http://phishing.contoso.com" +} +New-MgSecurityThreatSubmissionUrlThreat -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityThreatSubmissionUrlThreat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityTiIndicator.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityTiIndicator.md index 093355d11d5..82f5bb5fd0c 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityTiIndicator.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityTiIndicator.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityTiIndicator Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Action = "alert" + ActivityGroupNames = @( + ) + Confidence = 0 + Description = "This is a canary indicator for demo purpose. Take no action on any observables set in this indicator." + ExpirationDateTime = [System.DateTime]::Parse("2019-03-01T21:43:37.5031462+00:00") + ExternalId = "Test--8586509942679764298MS501" + FileHashType = "sha256" + FileHashValue = "aa64428647b57bf51524d1756b2ed746e5a3f31b67cf7fe5b5d8a9daf07ca313" + KillChain = @( + ) + MalwareFamilyNames = @( + ) + Severity = 0 + Tags = @( + ) + TargetProduct = "Azure Sentinel" + ThreatType = "WatchList" + TlpLevel = "green" +} +New-MgSecurityTiIndicator -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityTiIndicator Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityTriggerRetentionEvent.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityTriggerRetentionEvent.md index 093355d11d5..40e29839a27 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityTriggerRetentionEvent.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityTriggerRetentionEvent.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityTriggerRetentionEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "@odata.type" = "#microsoft.graph.security.retentionEvent" + DisplayName = "String" + Description = "String" + EventQueries = @( + @{ + "@odata.type" = "microsoft.graph.security.eventQueries" + } + ) + EventTriggerDateTime = [System.DateTime]::Parse("String (timestamp)") + CreatedBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } + EventPropagationResults = @( + @{ + "@odata.type" = "microsoft.graph.security.eventPropagationResult" + } + ) + EventStatus = @{ + "@odata.type" = "microsoft.graph.security.retentionEventStatus" + } + LastStatusUpdateDateTime = [System.DateTime]::Parse("String (timestamp)") +} +New-MgSecurityTriggerRetentionEvent -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityTriggerRetentionEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/New-MgSecurityTriggerTypeRetentionEventType.md b/src/Security/Security/examples/v1.0-beta/New-MgSecurityTriggerTypeRetentionEventType.md index 093355d11d5..045aa3b8b72 100644 --- a/src/Security/Security/examples/v1.0-beta/New-MgSecurityTriggerTypeRetentionEventType.md +++ b/src/Security/Security/examples/v1.0-beta/New-MgSecurityTriggerTypeRetentionEventType.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityTriggerTypeRetentionEventType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "@odata.type" = "#microsoft.graph.security.retentionEventType" + DisplayName = "String" + Description = "String" + CreatedBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } +} +New-MgSecurityTriggerTypeRetentionEventType -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityTriggerTypeRetentionEventType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Publish-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/Security/examples/v1.0-beta/Publish-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..db8b130356a 100644 --- a/src/Security/Security/examples/v1.0-beta/Publish-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/Security/examples/v1.0-beta/Publish-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Publish-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/Security/examples/v1.0-beta/Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index 093355d11d5..cb8353eab9a 100644 --- a/src/Security/Security/examples/v1.0-beta/Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/Security/examples/v1.0-beta/Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..4f94cc69fb8 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseCustodianHold.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseCustodianHold.md index 093355d11d5..ef2a5bd0316 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseCustodianHold.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseCustodianHold.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseCustodianHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseLegalHold.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseLegalHold.md index 093355d11d5..4c738f756d6 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseLegalHold.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseLegalHold.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseLegalHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseLegalHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryHoldPolicyId $ediscoveryHoldPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseLegalHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md index 093355d11d5..ca20510ea87 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..1cd6012b1b4 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseSearch.md index 093355d11d5..bc15c9d5bc1 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseTag.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseTag.md index 093355d11d5..25b221923d5 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityCaseEdiscoveryCaseTag.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityLabelRetentionLabel.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityLabelRetentionLabel.md index 093355d11d5..f4d099a449d 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityLabelRetentionLabel.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityLabelRetentionLabel.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityLabelRetentionLabel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityLabelRetentionLabel -RetentionLabelId $retentionLabelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityLabelRetentionLabel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicator.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicator.md index 093355d11d5..7d1eea806c1 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicator.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicator.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityTiIndicator Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityTiIndicator -TiIndicatorId $tiIndicatorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityTiIndicator Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicatorByExternalId.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicatorByExternalId.md index 093355d11d5..4d94ebfbb01 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicatorByExternalId.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicatorByExternalId.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityTiIndicatorByExternalId Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Value = @( + "externalId-value1" + "externalId-value2" + ) +} +Remove-MgSecurityTiIndicatorByExternalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityTiIndicatorByExternalId Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicatorMultiple.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicatorMultiple.md index 093355d11d5..0b74eded45b 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicatorMultiple.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTiIndicatorMultiple.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityTiIndicatorMultiple Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Value = @( + "id-value1" + "id-value2" + ) +} +Remove-MgSecurityTiIndicatorMultiple -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityTiIndicatorMultiple Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTriggerRetentionEvent.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTriggerRetentionEvent.md index 093355d11d5..3824593d785 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTriggerRetentionEvent.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTriggerRetentionEvent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityTriggerRetentionEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityTriggerRetentionEvent -RetentionEventId $retentionEventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityTriggerRetentionEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTriggerTypeRetentionEventType.md b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTriggerTypeRetentionEventType.md index 093355d11d5..a3f8837d76e 100644 --- a/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTriggerTypeRetentionEventType.md +++ b/src/Security/Security/examples/v1.0-beta/Remove-MgSecurityTriggerTypeRetentionEventType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityTriggerTypeRetentionEventType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityTriggerTypeRetentionEventType -RetentionEventTypeId $retentionEventTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityTriggerTypeRetentionEventType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault.md b/src/Security/Security/examples/v1.0-beta/Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault.md index 093355d11d5..5a829645e03 100644 --- a/src/Security/Security/examples/v1.0-beta/Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault.md +++ b/src/Security/Security/examples/v1.0-beta/Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Start-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0-beta/Start-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..7e790f1a0dd 100644 --- a/src/Security/Security/examples/v1.0-beta/Start-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0-beta/Start-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Start-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Start-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Start-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Stop-MgSecurityAction.md b/src/Security/Security/examples/v1.0-beta/Stop-MgSecurityAction.md index 093355d11d5..be7975a81b6 100644 --- a/src/Security/Security/examples/v1.0-beta/Stop-MgSecurityAction.md +++ b/src/Security/Security/examples/v1.0-beta/Stop-MgSecurityAction.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgSecurityAction Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Stop-MgSecurityAction -SecurityActionId $securityActionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgSecurityAction Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Submit-MgSecurityTiIndicator.md b/src/Security/Security/examples/v1.0-beta/Submit-MgSecurityTiIndicator.md index 093355d11d5..1b374013b65 100644 --- a/src/Security/Security/examples/v1.0-beta/Submit-MgSecurityTiIndicator.md +++ b/src/Security/Security/examples/v1.0-beta/Submit-MgSecurityTiIndicator.md @@ -1,18 +1,51 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Submit-MgSecurityTiIndicator Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Value = @( + @{ + ActivityGroupNames = @( + ) + Confidence = 0 + Description = "This is a canary indicator for demo purpose. Take no action on any observables set in this indicator." + ExpirationDateTime = [System.DateTime]::Parse("2019-03-01T21:44:03.1668987+00:00") + ExternalId = "Test--8586509942423126760MS164-0" + FileHashType = "sha256" + FileHashValue = "b555c45c5b1b01304217e72118d6ca1b14b7013644a078273cea27bbdc1cf9d6" + KillChain = @( + ) + MalwareFamilyNames = @( + ) + Severity = 0 + Tags = @( + ) + TargetProduct = "Azure Sentinel" + ThreatType = "WatchList" + TlpLevel = "green" + } + @{ + ActivityGroupNames = @( + ) + Confidence = 0 + Description = "This is a canary indicator for demo purpose. Take no action on any observables set in this indicator." + ExpirationDateTime = [System.DateTime]::Parse("2019-03-01T21:44:03.1748779+00:00") + ExternalId = "Test--8586509942423126760MS164-1" + FileHashType = "sha256" + FileHashValue = "1796b433950990b28d6a22456c9d2b58ced1bdfcdf5f16f7e39d6b9bdca4213b" + KillChain = @( + ) + MalwareFamilyNames = @( + ) + Severity = 0 + Tags = @( + ) + TargetProduct = "Azure Sentinel" + ThreatType = "WatchList" + TlpLevel = "green" + } + ) +} +Submit-MgSecurityTiIndicator -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Submit-MgSecurityTiIndicator Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityAlert.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityAlert.md index 093355d11d5..f96730d858b 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityAlert.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityAlert.md @@ -1,18 +1,46 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityAlert Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + AssignedTo = "String" + ClosedDateTime = [System.DateTime]::Parse("String (timestamp)") + Comments = @( + "String" + ) + Feedback = "@odata.type: microsoft.graph.alertFeedback" + Status = "@odata.type: microsoft.graph.alertStatus" + Tags = @( + "String" + ) + VendorInformation = @{ + Provider = "String" + Vendor = "String" + } +} +Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgSecurityAlert Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgSecurityAlert Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + AssignedTo = "String" + ClosedDateTime = [System.DateTime]::Parse("String (timestamp)") + Comments = @( + "String" + ) + Feedback = "@odata.type: microsoft.graph.alertFeedback" + Status = "@odata.type: microsoft.graph.alertStatus" + Tags = @( + "String" + ) + VendorInformation = @{ + Provider = "String" + Vendor = "String" + } +} +Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityAlert Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityAlertMultiple.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityAlertMultiple.md index 093355d11d5..c49d69d61c4 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityAlertMultiple.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityAlertMultiple.md @@ -1,18 +1,32 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityAlertMultiple Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Value = @( + @{ + AssignedTo = "String" + ClosedDateTime = [System.DateTime]::Parse("String (timestamp)") + Comments = @( + "String" + ) + Feedback = @{ + "@odata.type" = "microsoft.graph.alertFeedback" + } + Id = "String (identifier)" + Status = @{ + "@odata.type" = "microsoft.graph.alertStatus" + } + Tags = @( + "String" + ) + VendorInformation = @{ + Provider = "String" + Vendor = "String" + } + } + ) +} +Update-MgSecurityAlertMultiple -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityAlertMultiple Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..8b8e49cf037 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My Case 1 - Renamed" + Description = "Updated description" +} +Update-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseCustodianIndex.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseCustodianIndex.md index 093355d11d5..a0d1c1d1518 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseCustodianIndex.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseCustodianIndex.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseCustodianIndex Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Update-MgSecurityCaseEdiscoveryCaseCustodianIndex -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseCustodianIndex Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex.md index 093355d11d5..25f9a7f767b 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..a145c5f8494 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My Query 1 (update)" + ContentQuery = "(Author="edisons")" +} +Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseSearch.md index 093355d11d5..0f357fb2d80 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "Teams search" +} +Update-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseSetting.md index 093355d11d5..6bb7f565180 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityCaseEdiscoveryCaseSetting.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" + RedundancyDetection = @{ + "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" + } + TopicModeling = @{ + "@odata.type" = "microsoft.graph.security.topicModelingSettings" + } + Ocr = @{ + "@odata.type" = "microsoft.graph.security.ocrSettings" + } +} +Update-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityIncident.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityIncident.md index 093355d11d5..8babf6aa539 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityIncident.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityIncident.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityIncident Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Classification = "TruePositive" + Determination = "MultiStagedAttack" + Tags = @( + "Demo" + ) +} +Update-MgSecurityIncident -IncidentId $incidentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityIncident Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityLabelRetentionLabel.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityLabelRetentionLabel.md index 093355d11d5..aa9c623b4c2 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityLabelRetentionLabel.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityLabelRetentionLabel.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityLabelRetentionLabel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "@odata.type" = "#microsoft.graph.security.retentionLabel" + DisplayName = "String" + BehaviorDuringRetentionPeriod = "String" + ActionAfterRetentionPeriod = "String" + RetentionTrigger = "String" + RetentionDuration = @{ + "@odata.type" = "microsoft.graph.security.retentionDuration" + } + IsInUse = "Boolean" + DescriptionForAdmins = "String" + DescriptionForUsers = "String" + CreatedBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } + LabelToBeApplied = "String" + DefaultRecordBehavior = "String" +} +Update-MgSecurityLabelRetentionLabel -RetentionLabelId $retentionLabelId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityLabelRetentionLabel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecuritySecureScoreControlProfile.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecuritySecureScoreControlProfile.md index 093355d11d5..418183cb24c 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecuritySecureScoreControlProfile.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecuritySecureScoreControlProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + ControlStateUpdates = "controlStateUpdates-value" +} +Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecuritySecureScoreControlProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md index 093355d11d5..571ae9dd87e 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + IsReportToMicrosoftEnabled = $false +} +Update-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy -EmailThreatSubmissionPolicyId $emailThreatSubmissionPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityThreatSubmissionEmailThreatSubmissionPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityTiIndicator.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityTiIndicator.md index 093355d11d5..9be8d84b59b 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityTiIndicator.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityTiIndicator.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityTiIndicator Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Description = "description-updated" +} +Update-MgSecurityTiIndicator -TiIndicatorId $tiIndicatorId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgSecurityTiIndicator Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgSecurityTiIndicator Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + AdditionalInformation = "additionalInformation-after-update" + Confidence = 42 + Description = "description-after-update" +} +Update-MgSecurityTiIndicator -TiIndicatorId $tiIndicatorId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityTiIndicator Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityTiIndicatorMultiple.md b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityTiIndicatorMultiple.md index 093355d11d5..6ccb44d854a 100644 --- a/src/Security/Security/examples/v1.0-beta/Update-MgSecurityTiIndicatorMultiple.md +++ b/src/Security/Security/examples/v1.0-beta/Update-MgSecurityTiIndicatorMultiple.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityTiIndicatorMultiple Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Value = @( + @{ + Id = "c6fb948b-89c5-3bba-a2cd-a9d9a1e430e4" + AdditionalInformation = "mytest" + } + @{ + Id = "e58c072b-c9bb-a5c4-34ce-eb69af44fb1e" + AdditionalInformation = "test again" + } + ) +} +Update-MgSecurityTiIndicatorMultiple -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityTiIndicatorMultiple Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteListContentTypeCopy.md b/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteListContentTypeCopy.md index 093355d11d5..039fbf3246d 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteListContentTypeCopy.md +++ b/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteListContentTypeCopy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSiteListContentTypeCopy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + ContentType = "https://graph.microsoft.com/beta/sites/id/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgSiteListContentTypeCopy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteListContentTypeCopyFromContentTypeHub.md b/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteListContentTypeCopyFromContentTypeHub.md index 093355d11d5..a6e2b711f33 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteListContentTypeCopyFromContentTypeHub.md +++ b/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteListContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + ContentTypeId = "String" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + ContentTypeId = "String" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteContentTypeToDefaultContentLocation.md b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteContentTypeToDefaultContentLocation.md index 093355d11d5..89c2c33ead5 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteContentTypeToDefaultContentLocation.md +++ b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteContentTypeToDefaultContentLocation.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgSiteContentTypeToDefaultContentLocation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgSiteContentTypeToDefaultContentLocation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSite.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSite.md index 093355d11d5..bece80c7c30 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSite.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSite.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSite ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSite -SiteId $siteId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSite Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSite -Search "{query}" -OutFile $outFileId +``` +This example shows how to use the Get-MgSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgSite Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSite -Search "{query}" +``` +This example shows how to use the Get-MgSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgSite Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSite -Property "siteCollection,webUrl" -Filter "siteCollection/root ne null" +``` +This example shows how to use the Get-MgSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgSite Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSite -OutFile $outFileId +``` +This example shows how to use the Get-MgSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteColumn.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteColumn.md index 093355d11d5..8aa3eaeb358 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteColumn.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteColumn.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteColumn -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteContentType.md index 093355d11d5..19ac6c764d5 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteContentType.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentType -SiteId $siteId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSiteContentType Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentType -SiteId $siteId +``` +This example shows how to use the Get-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteContentTypeColumn.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteContentTypeColumn.md index 093355d11d5..5fac8bfbf93 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteContentTypeColumn.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteContentTypeColumn.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteContentTypeColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteContentTypeColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteContentTypeColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteContentTypeColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteDefaultDrive.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteDefaultDrive.md index 093355d11d5..c7215430c65 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteDefaultDrive.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteDefaultDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteDefaultDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteDefaultDrive -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteDefaultDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteDrive.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteDrive.md index 093355d11d5..d866195ee41 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteDrive.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteDrive -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteList.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteList.md index 093355d11d5..9fdbb2a23ad 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteList.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteList.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSiteList Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgSiteList Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId -Property "name,lastModifiedDateTime" -ExpandProperty "columns(select=name,description),items)" +``` +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgSiteList Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgSiteList Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListColumn.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListColumn.md index 093355d11d5..21ad68064b3 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListColumn.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListColumn.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListColumn -SiteId $siteId -ListId $listId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListContentType.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListContentType.md index 093355d11d5..707302fc487 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListContentType -SiteId $siteId -ListId $listId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListContentTypeCompatibleHubContentType.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListContentTypeCompatibleHubContentType.md index 093355d11d5..e7bbf581224 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListContentTypeCompatibleHubContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListContentTypeCompatibleHubContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListContentTypeCompatibleHubContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListContentTypeCompatibleHubContentType -SiteId $siteId -ListId $listId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListContentTypeCompatibleHubContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItem.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItem.md index 093355d11d5..e5814197197 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItem.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -ExpandProperty "fields" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItemDelta.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItemDelta.md index 093355d11d5..75229dff6b6 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItemDelta.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItemDelta.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListItemDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemDelta -SiteId $siteId -ListId $listId -Token "latest" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteListItemDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteListItemDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemDelta -SiteId $siteId -ListId $listId -Token "latest" -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListItemDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSiteListItemDelta Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemDelta -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgSiteListItemDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgSiteListItemDelta Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemDelta -SiteId $siteId -ListId $listId -Token "1230919asd190410jlka" +``` +This example shows how to use the Get-MgSiteListItemDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItemDocumentSetVersion.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItemDocumentSetVersion.md index 093355d11d5..c0a41576121 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteListItemDocumentSetVersion.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSitePage.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSitePage.md index 093355d11d5..b30dd7b62fd 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSitePage.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSitePage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSitePage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSitePage -SiteId $siteId -SitePageId $sitePageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSitePage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSitePage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSitePage -SiteId $siteId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSitePage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSitePermission.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSitePermission.md index 093355d11d5..a81d9eb2f3a 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSitePermission.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSitePermission -SiteId $siteId -PermissionId $permissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSitePermission -SiteId $siteId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStore.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStore.md index 093355d11d5..e2ac91d89ed 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStore.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStore.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStore Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStore -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteTermStore Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteTermStore Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStore -SiteId $siteId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStore Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreGroup.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreGroup.md index 093355d11d5..cc5f65134e0 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreGroup.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreGroup.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStoreGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -Property "*,parentSiteId" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteTermStoreGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreGroupSetTerm.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreGroupSetTerm.md index 093355d11d5..ca0ebfaa2ee 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreGroupSetTerm.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreGroupSetTerm.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStoreGroupSetTerm Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteTermStoreGroupSetTerm Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteTermStoreGroupSetTerm Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStoreGroupSetTerm Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreSet.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreSet.md index 093355d11d5..27e4b693762 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreSet.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteTermStoreSet.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStoreSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreSet -SiteId $siteId -SetId $setId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStoreSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSubSite.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSubSite.md index 093355d11d5..63b4711da7c 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSubSite.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSubSite.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSubSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSubSite -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSubSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgUserFollowedSite.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgUserFollowedSite.md index 093355d11d5..e389c2ac152 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgUserFollowedSite.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgUserFollowedSite.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserFollowedSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +# A UPN can also be used as -UserId. +Get-MgUserFollowedSite -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserFollowedSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Join-MgSiteContentTypeWithHubSite.md b/src/Sites/Sites/examples/v1.0-beta/Join-MgSiteContentTypeWithHubSite.md index 093355d11d5..c654984a02a 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Join-MgSiteContentTypeWithHubSite.md +++ b/src/Sites/Sites/examples/v1.0-beta/Join-MgSiteContentTypeWithHubSite.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Join-MgSiteContentTypeWithHubSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + HubSiteUrls = @( + "https://graph.microsoft.com/beta/sites/id" + ) + PropagateToExistingLists = $false +} +Join-MgSiteContentTypeWithHubSite -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Join-MgSiteContentTypeWithHubSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteColumn.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteColumn.md index 093355d11d5..e89d734a213 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteColumn.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteColumn.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Description = "test" + EnforceUniqueValues = $false + Hidden = $false + Indexed = $false + Name = "Title" + Text = @{ + AllowMultipleLines = $false + AppendChangesToExistingText = $false + LinesForEditing = 0 + MaxLength = 255 + } +} +New-MgSiteColumn -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteContentType.md index 093355d11d5..27f532b11fa 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteContentType.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Name = "docSet" + Description = "custom docset" + Base = @{ + Name = "Document Set" + Id = "0x0120D520" + } + Group = "Document Set Content Types" +} +New-MgSiteContentType -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteContentTypeColumn.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteContentTypeColumn.md index 093355d11d5..0b31a4ad687 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteContentTypeColumn.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteContentTypeColumn.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteContentTypeColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + "SourceColumn@odata.bind" = "https://graph.microsoft.com/beta/sites/root/columns/99ddcf45-e2f7-4f17-82b0-6fba34445103" +} +New-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteContentTypeColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteList.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteList.md index 093355d11d5..66083c9b800 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteList.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteList.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + DisplayName = "Books" + Columns = @( + @{ + Name = "Author" + Text = @{ + } + } + @{ + Name = "PageCount" + Number = @{ + } + } + ) + List = @{ + Template = "genericList" + } +} +New-MgSiteList -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListColumn.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListColumn.md index 093355d11d5..499765fcb5e 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListColumn.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListColumn.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteListColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Description = "test" + EnforceUniqueValues = $false + Hidden = $false + Indexed = $false + Name = "Title" + Text = @{ + AllowMultipleLines = $false + AppendChangesToExistingText = $false + LinesForEditing = 0 + MaxLength = 255 + } +} +New-MgSiteListColumn -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteListColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItem.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItem.md index 093355d11d5..2b5c2b22fcf 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItem.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItem.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteListItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Fields = @{ + Title = "Widget" + Color = "Purple" + Weight = + } +} +New-MgSiteListItem -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteListItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItemDocumentSetVersion.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItemDocumentSetVersion.md index 093355d11d5..a94e05f8e23 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItemDocumentSetVersion.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Comment = "v1" + ShouldCaptureMinorVersion = $false +} +New-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItemLink.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItemLink.md index 093355d11d5..f71d174f340 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItemLink.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSiteListItemLink.md @@ -1,18 +1,31 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteListItemLink Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Type = "embed" +} +New-MgSiteListItemLink -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgSiteListItemLink Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgSiteListItemLink Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Type = "edit" + Scope = "organization" +} +New-MgSiteListItemLink -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteListItemLink Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgSiteListItemLink Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +$params = @{ + Type = "embed" +} +New-MgSiteListItemLink -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +``` +This example shows how to use the New-MgSiteListItemLink Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSitePage.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSitePage.md index 093355d11d5..e749475d39d 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSitePage.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSitePage.md @@ -1,18 +1,31 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSitePage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Name = "Events.aspx" + Title = "Team Events" + PublishingState = @{ + Level = "checkedOut" + VersionId = "0.1" + } + WebParts = @( + @{ + Type = "rte" + Data = @{ + InnerHTML = "

Here are the team's upcoming events:

" + } + } + @{ + Type = "d1d91016-032f-456d-98a4-721247c305e8" + Data = @{ + Title = "Events" + Description = "Display upcoming events" + DataVersion = "1.0" + } + } + ) +} +New-MgSitePage -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSitePage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/New-MgSitePermission.md b/src/Sites/Sites/examples/v1.0-beta/New-MgSitePermission.md index 093355d11d5..363e7ee368f 100644 --- a/src/Sites/Sites/examples/v1.0-beta/New-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0-beta/New-MgSitePermission.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Roles = @( + "write" + ) + GrantedToIdentities = @( + @{ + Application = @{ + Id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e" + DisplayName = "Contoso Time Manager App" + } + } + ) +} +New-MgSitePermission -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Publish-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0-beta/Publish-MgSiteContentType.md index 093355d11d5..a49d972730c 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Publish-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/Publish-MgSiteContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Publish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteContentType.md index 093355d11d5..bbbb9224a1f 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteContentTypeColumn.md b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteContentTypeColumn.md index 093355d11d5..2bb8fe25e24 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteContentTypeColumn.md +++ b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteContentTypeColumn.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteContentTypeColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteContentTypeColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteListItem.md b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteListItem.md index 093355d11d5..7abc69f7410 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteListItem.md +++ b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteListItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteListItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteListItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteListItemDocumentSetVersion.md b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteListItemDocumentSetVersion.md index 093355d11d5..699d5742c71 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSiteListItemDocumentSetVersion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSitePermission.md b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSitePermission.md index 093355d11d5..87f483f71df 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Remove-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0-beta/Remove-MgSitePermission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSitePermission -SiteId $siteId -PermissionId $permissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Restore-MgSiteListItemDocumentSetVersion.md b/src/Sites/Sites/examples/v1.0-beta/Restore-MgSiteListItemDocumentSetVersion.md index 093355d11d5..5b3f69954de 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Restore-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/Sites/examples/v1.0-beta/Restore-MgSiteListItemDocumentSetVersion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Test-MgSiteContentTypePublished.md b/src/Sites/Sites/examples/v1.0-beta/Test-MgSiteContentTypePublished.md index 093355d11d5..b3c39701bfd 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Test-MgSiteContentTypePublished.md +++ b/src/Sites/Sites/examples/v1.0-beta/Test-MgSiteContentTypePublished.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgSiteContentTypePublished Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Test-MgSiteContentTypePublished -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgSiteContentTypePublished Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Unpublish-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0-beta/Unpublish-MgSiteContentType.md index 093355d11d5..aef59ec8ca2 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Unpublish-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/Unpublish-MgSiteContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Unpublish-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Unpublish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Unpublish-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteContentType.md index 093355d11d5..3b10d9efe98 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteContentType.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Name = "updatedCt" + DocumentSet = @{ + ShouldPrefixNameToFile = $true + AllowedContentTypes = @( + @{ + Id = "0x0101" + Name = "Document" + } + ) + DefaultContents = @( + @{ + FileName = "a.txt" + ContentType = @{ + Id = "0x0101" + } + } + @{ + FileName = "b.txt" + ContentType = @{ + Id = "0x0101" + } + } + ) + SharedColumns = @( + @{ + Name = "Description" + Id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" + } + @{ + Name = "Address" + Id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + WelcomePageColumns = @( + @{ + Name = "Address" + Id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + } +} +Update-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteContentTypeColumn.md b/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteContentTypeColumn.md index 093355d11d5..413bd3d86b9 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteContentTypeColumn.md +++ b/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteContentTypeColumn.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSiteContentTypeColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Required = $true + Hidden = $false + PropagateChanges = $false +} +Update-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSiteContentTypeColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteListItemField.md b/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteListItemField.md index 093355d11d5..04f565c666f 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteListItemField.md +++ b/src/Sites/Sites/examples/v1.0-beta/Update-MgSiteListItemField.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSiteListItemField Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Color = "Fuchsia" + Quantity = +} +Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSiteListItemField Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0-beta/Update-MgSitePermission.md b/src/Sites/Sites/examples/v1.0-beta/Update-MgSitePermission.md index 093355d11d5..9990ad6d08e 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Update-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0-beta/Update-MgSitePermission.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Roles = @( + "read" + ) +} +Update-MgSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamMember.md b/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamMember.md index 093355d11d5..56820ce54cc 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamMember.md @@ -1,18 +1,72 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Add-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Add-MgTeamMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('alex@contoso.com')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamChannelMigration.md b/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamChannelMigration.md index 093355d11d5..9c4dafda6ab 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamChannelMigration.md +++ b/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamChannelMigration.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Complete-MgTeamChannelMigration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Complete-MgTeamChannelMigration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamMigration.md b/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamMigration.md index 093355d11d5..795dcfe6125 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamMigration.md +++ b/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamMigration.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Complete-MgTeamMigration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Complete-MgTeamMigration -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Complete-MgTeamMigration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Confirm-MgTeamScheduleTimeCard.md b/src/Teams/Teams/examples/v1.0-beta/Confirm-MgTeamScheduleTimeCard.md index 093355d11d5..7f6428c0938 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Confirm-MgTeamScheduleTimeCard.md +++ b/src/Teams/Teams/examples/v1.0-beta/Confirm-MgTeamScheduleTimeCard.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgTeamScheduleTimeCard Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Confirm-MgTeamScheduleTimeCard -TeamId $teamId -TimeCardId $timeCardId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgTeamScheduleTimeCard Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Copy-MgTeam.md b/src/Teams/Teams/examples/v1.0-beta/Copy-MgTeam.md index 093355d11d5..968077d9544 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Copy-MgTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Copy-MgTeam.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Library Assist" + Description = "Self help community for library" + MailNickname = "libassist" + PartsToClone = "apps,tabs,settings,channels,members" + Visibility = "public" +} +Copy-MgTeam -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamApp.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamApp.md index 093355d11d5..efad6d35ae6 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamApp.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAppCatalogTeamApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -Filter "externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAppCatalogTeamApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -Filter "id eq 'b1c5353a-7aca-41b3-830f-27d5218fe0e5'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgAppCatalogTeamApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -ExpandProperty "appDefinitions(`$select=id,displayName,allowedInstallationScopes)" -Filter "appDefinitions/any(a:a/allowedInstallationScopes has 'personal')" +``` +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgAppCatalogTeamApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -ExpandProperty "appDefinitions(`$expand=bot)" -Filter "appDefinitions/any(a:a/bot ne null)" +``` +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgAppCatalogTeamApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -Filter "id eq '876df28f-2e78-423b-94a5-44181bd0e225'" -ExpandProperty "appDefinitions" +``` +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgAppCatalogTeamApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -Filter "distributionMethod eq 'organization'" +``` +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionBot.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionBot.md index 093355d11d5..b824ccbf164 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionBot.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionBot.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAppCatalogTeamAppDefinitionBot Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgAppCatalogTeamAppDefinitionBot Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionColorIcon.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionColorIcon.md index 093355d11d5..3c8ea0872ee 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionColorIcon.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionColorIcon.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAppCatalogTeamAppDefinitionColorIcon Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamAppDefinitionColorIcon -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAppCatalogTeamAppDefinitionColorIcon Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAppCatalogTeamAppDefinitionColorIcon Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamAppDefinitionColorIcon -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAppCatalogTeamAppDefinitionColorIcon Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionColorIconHostedContent.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionColorIconHostedContent.md index 093355d11d5..bdf35c7f385 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionColorIconHostedContent.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionColorIconHostedContent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAppCatalogTeamAppDefinitionColorIconHostedContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamAppDefinitionColorIconHostedContent -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgAppCatalogTeamAppDefinitionColorIconHostedContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionOutlineIcon.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionOutlineIcon.md index 093355d11d5..d4eca7cb744 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionOutlineIcon.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgAppCatalogTeamAppDefinitionOutlineIcon.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAppCatalogTeamAppDefinitionOutlineIcon Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamAppDefinitionOutlineIcon -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAppCatalogTeamAppDefinitionOutlineIcon Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAppCatalogTeamAppDefinitionOutlineIcon Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamAppDefinitionOutlineIcon -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAppCatalogTeamAppDefinitionOutlineIcon Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgAppCatalogTeamAppDefinitionOutlineIcon Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamAppDefinitionOutlineIcon -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId -OutFile $outFileId +``` +This example shows how to use the Get-MgAppCatalogTeamAppDefinitionOutlineIcon Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgChat.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgChat.md index 093355d11d5..b23c9eb41cb 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgChat.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgChat.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChat -ChatId $chatId -ExpandProperty "members" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChat -ChatId $chatId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Get-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChat -ExpandProperty "lastMessagePreview" +``` +This example shows how to use the Get-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChat -Sort "lastMessagePreview/createdDateTime desc" +``` +This example shows how to use the Get-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatInstalledApp.md index 093355d11d5..494295a7604 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatInstalledApp.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgChatInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsAppDefinition(`$expand=bot)" +``` +This example shows how to use the Get-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgChatInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChatInstalledApp -ChatId $chatId +``` +This example shows how to use the Get-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMember.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMember.md index 093355d11d5..b30f2ec9720 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMessage.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMessage.md index 093355d11d5..8b26943a3e4 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMessage.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMessage -ChatId $chatId -Top 2 -Sort "createdDateTime desc" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMessageHostedContent.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMessageHostedContent.md index 093355d11d5..7758bbb64e0 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMessageHostedContent.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatMessageHostedContent.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatMessageHostedContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatMessageHostedContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatMessageHostedContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatMessageHostedContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatOperation.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatOperation.md index 093355d11d5..7f26a037b6c 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatOperation.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatOperation.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatOperation -ChatId $chatId -TeamsAsyncOperationId $teamsAsyncOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatOperation -ChatId $chatId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatPermissionGrant.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatPermissionGrant.md index 093355d11d5..a73d832298d 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatPermissionGrant.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatPermissionGrant.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatPermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatPermissionGrant -ChatId $chatId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatPermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatPinnedMessage.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatPinnedMessage.md index 093355d11d5..30ed7ae2b2e 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatPinnedMessage.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatPinnedMessage.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatPinnedMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatPinnedMessage -ChatId $chatId -ExpandProperty "message" -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatPinnedMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatPinnedMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatPinnedMessage -ChatId $chatId -ExpandProperty "message" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatPinnedMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgChatPinnedMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChatPinnedMessage -ChatId $chatId +``` +This example shows how to use the Get-MgChatPinnedMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatTab.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatTab.md index 093355d11d5..7f0e9194507 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgChatTab.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgChatTab.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.web'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgChatTab Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" +``` +This example shows how to use the Get-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeam.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeam.md index 093355d11d5..07f90af094c 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeam.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeam -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeam -Filter "displayName eq 'A Contoso Team'" -Property "id,description" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeam -Filter "startswith(displayName, 'A')" -Top 2 +``` +This example shows how to use the Get-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeam +``` +This example shows how to use the Get-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeam -Filter "displayName eq 'A Contoso Team'" -Property "id,description" -OutFile $outFileId +``` +This example shows how to use the Get-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannel.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannel.md index 093355d11d5..d14da61da70 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannel.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannel.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'" +``` +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId +``` +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId -Filter "membershipType eq 'private'" +``` +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelFileFolder.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelFileFolder.md index 093355d11d5..3a0a9e0f4e1 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelFileFolder.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelFileFolder.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelFileFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelFileFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMember.md index 093355d11d5..5cace31bf2d 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessage.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessage.md index 093355d11d5..e3842d63e83 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessage.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageHostedContent.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageHostedContent.md index 093355d11d5..e9e6185b450 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageHostedContent.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageHostedContent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMessageHostedContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMessageHostedContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageReply.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageReply.md index 093355d11d5..bacc45a32ae 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageReply.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageReply.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMessageReply Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMessageReply Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageReplyHostedContent.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageReplyHostedContent.md index 093355d11d5..f876d7a2d53 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelMessageReplyHostedContent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMessageReplyHostedContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMessageReplyHostedContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelSharedWithTeam.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelSharedWithTeam.md index 093355d11d5..5d2198e61df 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelSharedWithTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelSharedWithTeam.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelSharedWithTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannelSharedWithTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannelSharedWithTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelSharedWithTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelSharedWithTeamAllowedMember.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelSharedWithTeamAllowedMember.md index 093355d11d5..0926580fe35 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelSharedWithTeamAllowedMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelSharedWithTeamAllowedMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelSharedWithTeamAllowedMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelSharedWithTeamAllowedMember -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelSharedWithTeamAllowedMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelTab.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelTab.md index 093355d11d5..9a21c6e8397 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelTab.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamChannelTab.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannelTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannelTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamIncomingChannel.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamIncomingChannel.md index 093355d11d5..89fe35c9364 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamIncomingChannel.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamIncomingChannel.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamIncomingChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamIncomingChannel -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamIncomingChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamInstalledApp.md index 093355d11d5..d3500643356 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamInstalledApp.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgTeamInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" +``` +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgTeamInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId +``` +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgTeamInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsAppDefinition(`$expand=bot)" +``` +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamMember.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamMember.md index 093355d11d5..2e66a401244 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamMember.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamMember -TeamId $teamId -Filter "roles/any(r:r eq 'owner')" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/userId eq '73761f06-2ac9-469c-9f10-279a8cc267f9')" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgTeamMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/displayName eq 'Harry Johnson' or microsoft.graph.aadUserConversationMember/email eq 'admin@M365x987948.OnMicrosoft.com')" +``` +This example shows how to use the Get-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgTeamMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamMember -TeamId $teamId +``` +This example shows how to use the Get-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgTeamMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId +``` +This example shows how to use the Get-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamPermissionGrant.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamPermissionGrant.md index 093355d11d5..463e696678c 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamPermissionGrant.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamPermissionGrant.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamPermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamPermissionGrant -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamPermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamPrimaryChannel.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamPrimaryChannel.md index 093355d11d5..64ad86680d5 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamPrimaryChannel.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamPrimaryChannel.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamPrimaryChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamPrimaryChannel -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamPrimaryChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamSchedule.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamSchedule.md index 093355d11d5..5233393eb90 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamSchedule.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamSchedule.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamSchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamSchedule -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamSchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOfferShiftRequest.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOfferShiftRequest.md index 093355d11d5..4201e583e31 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOfferShiftRequest.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOfferShiftRequest.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleOfferShiftRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId -OfferShiftRequestId $offerShiftRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleOfferShiftRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleOfferShiftRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleOfferShiftRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOpenShift.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOpenShift.md index 093355d11d5..c171548a5af 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOpenShift.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOpenShift.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleOpenShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleOpenShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleOpenShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOpenShift -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleOpenShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOpenShiftChangeRequest.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..5f9c485ee64 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleOpenShiftChangeRequest.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -OpenShiftChangeRequestId $openShiftChangeRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleSchedulingGroup.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleSchedulingGroup.md index 093355d11d5..9aa3e33a34d 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleSchedulingGroup.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleSchedulingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleSchedulingGroup -TeamId $teamId -SchedulingGroupId $schedulingGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleSchedulingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleSchedulingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleSchedulingGroup -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleSchedulingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleShift.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleShift.md index 093355d11d5..5856cd5487a 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleShift.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleShift.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleShift -TeamId $teamId -Filter "sharedShift/startDateTime ge 2019-03-11T00:00:00.000Z and sharedShift/endDateTime le 2019-03-18T00:00:00.000Z and draftShift/startDateTime ge 2019-03-11T00:00:00.000Z and draftShift/endDateTime le 2019-03-18T00:00:00.000Z" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleSwapShiftChangeRequest.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..426030f97e3 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleSwapShiftChangeRequest.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -SwapShiftsChangeRequestId $swapShiftsChangeRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeCard.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeCard.md index 093355d11d5..43fd359da44 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeCard.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeCard.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleTimeCard Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeCard -TeamId $teamId -TimeCardId $timeCardId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleTimeCard Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleTimeCard Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeCard -TeamId $teamId -Top 2 -Filter "state eq 'clockedOut'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleTimeCard Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOff.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOff.md index 093355d11d5..c68ca73e003 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOff.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOff.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleTimeOff Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOff -TeamId $teamId -Filter "sharedTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and sharedTimeOff/endDateTime le 2019-03-18T00:00:00.000Z and draftTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and draftTimeOff/endDateTime le 2019-03-18T00:00:00.000Z" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleTimeOff Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleTimeOff Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOff -TeamId $teamId -TimeOffId $timeOffId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleTimeOff Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOffReason.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOffReason.md index 093355d11d5..0d3610ebf81 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOffReason.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleTimeOffReason Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOffReason -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleTimeOffReason Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleTimeOffReason Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOffReason -TeamId $teamId -TimeOffReasonId $timeOffReasonId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleTimeOffReason Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOffRequest.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOffRequest.md index 093355d11d5..64509cad0c8 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOffRequest.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamScheduleTimeOffRequest.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleTimeOffRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleTimeOffRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleTimeOffRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOffRequest -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleTimeOffRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamTag.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamTag.md index 093355d11d5..96ab2f3df70 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamTag.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamTag.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamTag -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamTagMember.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamTagMember.md index 093355d11d5..08ea0adeac8 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamTagMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamTagMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamTagMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamTagMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamTagMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamTagMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeletedTeam.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeletedTeam.md index 093355d11d5..cf2fb7b9be2 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeletedTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeletedTeam.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkDeletedTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkDeletedTeam ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkDeletedTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDevice.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDevice.md index 093355d11d5..099b8be9ee4 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDevice.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDevice.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkDevice -TeamworkDeviceId $teamworkDeviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamworkDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamworkDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkDevice ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceActivity.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceActivity.md index 093355d11d5..2b3f04e24f2 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceActivity.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceActivity.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkDeviceActivity Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkDeviceActivity -TeamworkDeviceId $teamworkDeviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkDeviceActivity Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceConfiguration.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceConfiguration.md index 093355d11d5..dd616a309f3 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceConfiguration.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceConfiguration.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkDeviceConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkDeviceConfiguration -TeamworkDeviceId $teamworkDeviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkDeviceConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceHealth.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceHealth.md index 093355d11d5..fab3a7924a7 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceHealth.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceHealth.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkDeviceHealth Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkDeviceHealth -TeamworkDeviceId $teamworkDeviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkDeviceHealth Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceOperation.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceOperation.md index 093355d11d5..a2ff59c3fd7 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceOperation.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkDeviceOperation.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkDeviceOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkDeviceOperation -TeamworkDeviceId $teamworkDeviceId -TeamworkDeviceOperationId $teamworkDeviceOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamworkDeviceOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamworkDeviceOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkDeviceOperation -TeamworkDeviceId $teamworkDeviceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkDeviceOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamAppSetting.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamAppSetting.md index 093355d11d5..20e4c3e33ce 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamAppSetting.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamAppSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkTeamAppSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkTeamAppSetting ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkTeamAppSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamTemplate.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamTemplate.md index 093355d11d5..4b8a110c04f 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamTemplate.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamTemplate.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkTeamTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkTeamTemplate -ExpandProperty "definitions" -Filter "definitions/any(a:a/languageTag eq 'en-US')" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamworkTeamTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamworkTeamTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkTeamTemplate ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkTeamTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgTeamworkTeamTemplate Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkTeamTemplate -ExpandProperty "definitions" -Filter "definitions/any(a:a/languageTag eq 'en-US')" -OutFile $outFileId +``` +This example shows how to use the Get-MgTeamworkTeamTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgTeamworkTeamTemplate Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkTeamTemplate -ExpandProperty "definitions" -Filter "definitions/any(a:a/languageTag eq 'en-US')" +``` +This example shows how to use the Get-MgTeamworkTeamTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamTemplateDefinition.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamTemplateDefinition.md index 093355d11d5..25f7ea56a4d 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamTemplateDefinition.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkTeamTemplateDefinition.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkTeamTemplateDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkTeamTemplateDefinition -TeamTemplateId $teamTemplateId -TeamTemplateDefinitionId $teamTemplateDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkTeamTemplateDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkWorkforceIntegration.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkWorkforceIntegration.md index 093355d11d5..c68b8ea2fb2 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkWorkforceIntegration ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserChat.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserChat.md index 093355d11d5..d1ca69b7cab 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserChat.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserChat.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserChat -UserId $userId -ChatId $chatId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserChat -UserId $userId -ExpandProperty "members" -Filter "members/any(o: o/displayname eq 'Peter Parker')" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgUserChat -UserId $userId -ExpandProperty "members" +``` +This example shows how to use the Get-MgUserChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgUserChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgUserChat -UserId $userId +``` +This example shows how to use the Get-MgUserChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserChatMember.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserChatMember.md index 093355d11d5..17c02b1a7bc 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserChatMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserChatMember.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +# A UPN can also be used as -UserId. +Get-MgUserChatMember -UserId $userId -ChatId $chatId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserJoinedTeam.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserJoinedTeam.md index 093355d11d5..9abe90500f2 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserJoinedTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserJoinedTeam.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserJoinedTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +# A UPN can also be used as -UserId. +Get-MgUserJoinedTeam -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserJoinedTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkAssociatedTeam.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkAssociatedTeam.md index 093355d11d5..7e79ecbc9df 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkAssociatedTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkAssociatedTeam.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTeamworkAssociatedTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +# A UPN can also be used as -UserId. +Get-MgUserTeamworkAssociatedTeam -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTeamworkAssociatedTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkInstalledApp.md index 093355d11d5..0387a218059 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkInstalledApp.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTeamworkInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTeamworkInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledApp -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserTeamworkInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId -ExpandProperty "teamsAppDefinition" +``` +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgUserTeamworkInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledApp -UserId $userId -ExpandProperty "teamsAppDefinition(`$expand=bot)" +``` +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgUserTeamworkInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledApp -UserId $userId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" +``` +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkInstalledAppChat.md b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkInstalledAppChat.md index 093355d11d5..8a1104237c5 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkInstalledAppChat.md +++ b/src/Teams/Teams/examples/v1.0-beta/Get-MgUserTeamworkInstalledAppChat.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTeamworkInstalledAppChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledAppChat -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTeamworkInstalledAppChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Hide-MgChatForUser.md b/src/Teams/Teams/examples/v1.0-beta/Hide-MgChatForUser.md index 093355d11d5..ac8b7af1513 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Hide-MgChatForUser.md +++ b/src/Teams/Teams/examples/v1.0-beta/Hide-MgChatForUser.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Hide-MgChatForUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + User = @{ + Id = "d864e79f-a516-4d0f-9fee-0eeb4d61fdc2" + } + TenantId = "2a690434-97d9-4eed-83a6-f5f13600199a" +} +Hide-MgChatForUser -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Hide-MgChatForUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgArchiveTeam.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgArchiveTeam.md index 093355d11d5..ab6c0a80cc9 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgArchiveTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgArchiveTeam.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgArchiveTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Invoke-MgArchiveTeam -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgArchiveTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgClockTeamScheduleTimeCardIn.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgClockTeamScheduleTimeCardIn.md index 093355d11d5..ef84a63246b 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgClockTeamScheduleTimeCardIn.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgClockTeamScheduleTimeCardIn.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgClockTeamScheduleTimeCardIn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + AtAprovedLocation = $true + Notes = @{ + ContentType = "text" + Content = "clock in notes" + } +} +Invoke-MgClockTeamScheduleTimeCardIn -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgClockTeamScheduleTimeCardIn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgClockTeamScheduleTimeCardOut.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgClockTeamScheduleTimeCardOut.md index 093355d11d5..3758cf8a310 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgClockTeamScheduleTimeCardOut.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgClockTeamScheduleTimeCardOut.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgClockTeamScheduleTimeCardOut Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + AtAprovedLocation = $true + Notes = @{ + ContentType = "text" + Content = "clock out smaple notes" + } +} +Invoke-MgClockTeamScheduleTimeCardOut -TeamId $teamId -TimeCardId $timeCardId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgClockTeamScheduleTimeCardOut Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgGraphChat.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgGraphChat.md index 093355d11d5..ec959c78268 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgGraphChat.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgGraphChat.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgGraphChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + User = @{ + Id = "d864e79f-a516-4d0f-9fee-0eeb4d61fdc2" + } + TenantId = "2a690434-97d9-4eed-83a6-f5f13600199a" +} +Invoke-MgGraphChat -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgGraphChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgMarkChatReadForUser.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgMarkChatReadForUser.md index 093355d11d5..2cf552172b6 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgMarkChatReadForUser.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgMarkChatReadForUser.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMarkChatReadForUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + User = @{ + Id = "d864e79f-a516-4d0f-9fee-0eeb4d61fdc2" + } + TenantId = "2a690434-97d9-4eed-83a6-f5f13600199a" +} +Invoke-MgMarkChatReadForUser -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMarkChatReadForUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgMarkChatUnreadForUser.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgMarkChatUnreadForUser.md index 093355d11d5..a7a5a84e760 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgMarkChatUnreadForUser.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgMarkChatUnreadForUser.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMarkChatUnreadForUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + User = @{ + Id = "d864e79f-a516-4d0f-9fee-0eeb4d61fdc2" + } + TenantId = "2a690434-97d9-4eed-83a6-f5f13600199a" + LastMessageReadDateTime = [System.DateTime]::Parse("2021-05-27T22:13:01.577Z") +} +Invoke-MgMarkChatUnreadForUser -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMarkChatUnreadForUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgShareTeamSchedule.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgShareTeamSchedule.md index 093355d11d5..c0df618453e 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgShareTeamSchedule.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgShareTeamSchedule.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgShareTeamSchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + NotifyTeam = $true + StartDateTime = [System.DateTime]::Parse("2018-10-08T00:00:00.000Z") + EndDateTime = [System.DateTime]::Parse("2018-10-15T00:00:00.000Z") +} +Invoke-MgShareTeamSchedule -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgShareTeamSchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgSoftTeamChannelMessageDelete.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgSoftTeamChannelMessageDelete.md index 093355d11d5..210f69285eb 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgSoftTeamChannelMessageDelete.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgSoftTeamChannelMessageDelete.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSoftTeamChannelMessageDelete Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Invoke-MgSoftTeamChannelMessageDelete -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSoftTeamChannelMessageDelete Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgSoftTeamChannelMessageReplyDelete.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgSoftTeamChannelMessageReplyDelete.md index 093355d11d5..5e9ed60f2a6 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgSoftTeamChannelMessageReplyDelete.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgSoftTeamChannelMessageReplyDelete.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSoftTeamChannelMessageReplyDelete Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Invoke-MgSoftTeamChannelMessageReplyDelete -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSoftTeamChannelMessageReplyDelete Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgUnarchiveTeam.md b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgUnarchiveTeam.md index 093355d11d5..f914c8b2ff3 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Invoke-MgUnarchiveTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Invoke-MgUnarchiveTeam.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnarchiveTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Invoke-MgUnarchiveTeam -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnarchiveTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgAppCatalogTeamApp.md b/src/Teams/Teams/examples/v1.0-beta/New-MgAppCatalogTeamApp.md index 093355d11d5..ef5f8789a92 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgAppCatalogTeamApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgAppCatalogTeamApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgAppCatalogTeamApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +New-MgAppCatalogTeamApp -Requiresreview true ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgChat.md b/src/Teams/Teams/examples/v1.0-beta/New-MgChat.md index 093355d11d5..2b12d55cd67 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgChat.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgChat.md @@ -1,18 +1,212 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "group" + Topic = "Group chat title" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('3626a173-f2bc-4883-bcf7-01514c3bfb82')" + } + ) +} +New-MgChat -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "group" + Topic = "Group chat title" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "guest" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" + } + ) +} +New-MgChat -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "group" + Topic = "Group chat title" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "guest" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" + } + ) +} +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "oneOnOne" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" + TenantId = "4dc1fe35-8ac6-4f0d-904a-7ebcd364bea1" + } + ) +} +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "oneOnOne" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" + } + ) +} +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "oneOnOne" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('alex@contoso.com')" + } + ) +} +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the New-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "oneOnOne" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" + } + ) + InstalledApps = @( + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/05F59CEC-A742-4A50-A62E-202A57E478A4" + } + ) +} +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgChatInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/New-MgChatInstalledApp.md index 093355d11d5..94990b1d063 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgChatInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgChatInstalledApp.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" +} +New-MgChatInstalledApp -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgChatMember.md b/src/Teams/Teams/examples/v1.0-beta/New-MgChatMember.md index 093355d11d5..5750969a27e 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgChatMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgChatMember.md @@ -1,18 +1,59 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/beta/users/jacob@contoso.com" + VisibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + Roles = @( + "owner" + ) +} +New-MgChatMember -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + VisibleHistoryStartDateTime = [System.DateTime]::Parse("0001-01-01T00:00:00Z") + Roles = @( + "owner" + ) +} +New-MgChatMember -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgChatMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + Roles = @( + "owner" + ) +} +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgChatMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + VisibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + Roles = @( + "owner" + ) +} +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgChatMessage.md b/src/Teams/Teams/examples/v1.0-beta/New-MgChatMessage.md index 093355d11d5..b63d3653478 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgChatMessage.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgChatMessage.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChatMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "
+
+
+
+
" + } + HostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0UXKiVlNMf90YV5jDwopyYo2BuiQUQdNDaciuswiEatl6vknRiElWdHGAB0y6qBejrHXl+ashh7zT4xCSrKijQE6ZNRBPeEjci1T6MDq1vYayz4UUpIVbQzQIaMO6k3zVC1YrTD/lHsfKaQkK9oYoENGHTQHzVM1YDXC/BOukWQ19KSQkqxoY4AOGXXQnHQnyCWsNri1b475J0YhJVnRxgAdMuqgueGjdM1TLbB65Jx/YhRSkhVtDNAhow46BMxTTf5yGqvBEPNPjEJKsqKNATpk1EGHglObA2wb27hx40bnSXl7bKcjuq6PW2Tvvc3tfb0ppCQr2higQ0YddGid56ksLM6am6b1Udn8sZumVeDg9+eP63wZkL1nzD+xWgxFISVZ0cYAHTLqoCVoPU+FkDCzuVZBFT22cVDh9+a/Hx7bOqjsfaa6vUpKCinJijYG6JBRBy1F49sTIxwWgiJoFFT2O+yxa4MKP5//XvzYRkFl7w3zT96Xt3SlkJKsaGOADhl10JJgjmblbV8QClFILFoZVPazVY9dGlRon/+cPQ5WBpW9p7639/WmkJKsaGOADhl10BLRr9FCGEThwNCgsrYmj90RVPj/eTv7/UU0qOy9pLi9rzeFlGRFGwN0yKiDlgrbuR0YCIEoFFa5Lajsv9s8djuo8O/5/7PfY7aDCttuSpx/YhRSkhVtDNAhow5asq15Kgz+KAya2Aoq0+WxCKY75v9mP18FwdTn66WGoJCSrGhjgA4ZddCiPf300x9cv379f0kYFOub3/zm/7D3UrDkIXXz4393hzlrLk3IBaNrVBugjQE6ZNRBi7exsTG7du0aDYTSnDlzhr6HwiULKRukIZxmE4bAUlitQBsDdMiog1ahhqCqNKCgd0jZoFQ47aSwWoI2BuiQUQetRslBVXFAQeeQskGocFpPYRWhjQE6ZNRBq1JiUFUeUNA6pGzQKZzaU1jN0cYAHTLqoNUpKahGEFDQOKRskCmc+pt8WNHGAB0y6qBVKiGoRhJQsDakbFApnNKbbFjRxgAdMuqg1RoyqEYUULA0pGwQDRlOGMRdXDfs+UqFbZ5UWNHGAB0y6qBVu3LlCg0Rb2xbKrYjpGzQDBlOeN1eX95hjz9sFFaFoo0BOmTUQaumkEpiO6RskFQdTjF7PoVVgWhjgA4ZddCqKaSSwKAYVTjF7PkVVgWhjQE6ZNRBq6aQ6ufpo/8xe/1f/uG9aHDk4h5OMXs9hVUBaGNgHVMhlQDblpognC4f+DgbEDlkD6eYvb7CakC0MbAOqpBKgG1LDaYeTjHbHoXVAGhjYB1VIZUA25aSKZxWs+1TWGWEgrM3JJJb8eEUs+2tMayqo5CSoVUXTjHbfoWVn0sKKRlK9eEUs/ejsEpn+/RUISW5jS6cYvb+FFbd7Zg7U0hJLqMPp5i9X4VVc0sn9hVS4m1y4RSz96+wWm7tp44KKfEy+XCKWT0UVrc0XhKhkJLU3jR/zzqbfMTqM+WwahxOgUJKPNw0xw39Knr5iNVnSmHVOpwChZR4Ulg1YPUZc1h1DqdAISU5KKwasPqMKax6h1OgkJKcFFYNWH1qDqtk4RQopGQICqsGrD41hVXycAoUUjIkhVUDVp+Sw8otnAKFlJRAYdWA1aeksHIPp0AhJSVRWMkOCikpkcJKtimkpGQKK1FISRUUVhOmkJKaKKwmSCElNVJYTYhCSmqmsJoAhBR2MnXx4N3XX3zwUzPm9L/unT2w5x+r8vA9n5r9273/nB3blpI9s/+f6D6HAb/qahWEFdbtTAHu0zWpUKaNwRMrvnfvyJEjszvvvFNG6IEHHqD7HP7zyCEWEuIPizgPs3E6drQxsE6pkJoghVRRJhtOAW0MrFMqpCZIIVWEyYdTQBsD65QKqQlSSA1K4RShjYF1SoXUBCmkBqFwWoI2BtYpFVITpJDKSuG0Bm0MrFMqpCZoVUid+vfDH0aDTLpRODVEGwPrlEtDKvjc5z43e+ihh2Z33XUX7fC1uvfee2c//OEPZ7/+9a9nN27c2PLWW29ttX3605+mj6kV9h2C6bHHHqP7OIK1OmO6F3duCqeWaGOADhl10KUef/zx2f79++kgqM0XvvCF7WBa5rvf/S59bG327t279RcN26dLXAr9A4NtPujYYJTbKZw6oo0BOmTUQdeqPaiaBFSAoyr2HLVAQOEvF7YfV9gOqQCDbz4I2eCcOoVTT7QxQIeMOuha6PS1nvrhFI+F0SpHjx6lz1WDlkdQwY6QCjAY54OSDdapUTglQhsDdMiogzaCOSo2KEqHIyMWRKu89tpr9LlKd99999F918DSkAowOOeDlA3esVM4JUYbA3TIqIM2gr+h2cAoHQuhJnAExp6vZI888gjddw2sDakAg3U+aNlgHhuFkxPaGKBDRh20MTYwSoZP7FgANfHZz36WPmfJOsxFBY1DKsDgnQ9iNrhrp3ByRhsDdMiogzbGBkbJPvOZz9AAagKPZc9ZMrbPGmodUoEN5j1jw96npEUbA3TIqIM2dvfdd9PBUSocDbEAauLEiRP0OUvG9llDnUNKpAvaGKBDRh20sX379tHBUao+IfX1r3+dPmfJ2D5rSCElWdHGAB0y6qCN1bZeCkHDAqiJ2hZ24i8Qts8aUkhJVrQxQIeMOmhjuMyCDZBSdVl+ELzyyiv0OUuFv0DYPmtIISVZ0cYAHTLqoI3hI242QEqF9U4sgJpiz1kqrGNj+6whhZRkRRsDdMiogzaGj7jZACnRJz7xCRo8bdR00XHDC4mXUUhJVrQxQIeMOmgrtcxLtbleb5la5qXwqSvbVy1smj1z+iopcUcbA+uEvULq0KFDdKCUBnNKLHjawC1d2HOXZtW9onpCX4FT5rhBiO1m/UqkDdoYzDsd65CNlb5eqs9K8xiOyNhrlKTHSvM+cPR1wYTw0hGYNEYbA+tMvUOq9KOpn/zkJzRwuij9aKrHRcUerhsE1zGjIy5ZijYG1nl6hxSUejTVZwHnMqUeTeH2OQMdRTV10yi0ZAfaGFhnSRJSpd4Pve+yAwa3GManhez1htRz2cEQcKSF+a0DrG/KdNDGwDpIkpCCgwcP0sEzFHwax0ImBZxCstccSs/FmyXAUdZZo8CaINoYWKdIFlKA29WyQZRbiiUH65Ry0XHHWwSXLASW7kAwEbQxsI6QNKQwWLyDCpPDTz311Oz8+fOzzc3N2QcffLDt/Rdenr2378Gs/nLy2du2Adv08ssvzzY2Nra2lb2HVDAP1XPhZulwSohPDO9g/VfGgTYGtvOThhR4BRWCKQ4lJmdQxQHF/P73v98KrE9+8pP0fXU1gYCKYdJdR1cjRBsD2+nJQwoQVKlWoyOcMNBZACyTI6iaBNSid999d/btb387SViN8BSvDRxdHTZaizUStDGwHe0SUkGfL2zA3TCbHDkt4xlUbQNqEQL30Ucfpe+5CXxAwWo9QZi7wqmgwqpytDGwHewaUoAvbWh7gzycHrEB3pZHUPUJqEXf//736XtfBjXEUg9W44lTWFWONga2Y91DKsAAa3IKiAlxNqi7ShlUqQIqwDqudad/CCes6mc1ldsorCpFGwPbodlCKsCRFU4D2dFV6oAKUgRV6oAKcEobBxXmnHBa1/HLPadOYVUZ2hjYjsweUjEcYeEGevjYng3iVPoElVdABVevXt06WtLpXFIIK30VVQVoY2A7cfCQgnPnztHBm1qXoPIOqODnP/85rY30tnV/LNb/pQy0MbCdN3hIfe1rX6OD1kuboMoVUMHp06dpjSQJrLPSKWCBaGNgO23wkGq7BiqFJkGVO6Dgz3/+8+xLX/oSrZMkgVPAY2wsyHBoY2A7bNCQwje4sMGaw6qgGiKggpdeeonWSpJCv9ftYgpBG4P5zmI7MYt33nmHDtRcWFANGVCBjqayOc7GheRFGwPbSYOF1JBHUYsWg6qEgAIdTWWFiXVdwDwg2hjMdxDbce5++9vf0gE6BARVKQEFOMJkNRM3Wq4wINoItlNwzx62w9w988wzdHDKLfjUk9VOXOkTwAHQRtsRgwUUlHKqVzKd8g0Gd1nQpHpGOxpsBwwaUICFi2xgyi04HWa1k2x0+pfJbf9jhR88oKCk+aiSsdpJVmcXx4/42P4PFDzaAYNhA1J20lKEIuDDJc1TOdr6hxW5mIACNiBlp29961u0fpKd5qkcFRdQwAak7KSQKgqWKehCZQcIqcHWQi3DBqTspJAqkibUE0NI7TJFBRUbkLKTQqpYCqqEtv5hRS0qqNiAlJ2w6JXVT4qgT/4S2f4PKyqCqoj5qaEvLK4Fq50URUGVwI4GK+ypqNDZaZ3UerjPFqudFEdB1RNttMLiyxVZwbPAJR9sYMotup1wVRRUPdBGsMLuNvhYlRXdVe5bBtcI1zey2kmxFFQd0cbACnuHGWRCXfNSq2m1eZUUVB3QxpgVN/s81auvvkoHp3ww++Uvf0lrJlXQ3T5boo2MFfeAyXb6p3tKLaf1UdXTOqoWaOMyVlyc/mW7pbBu2bKTbtEyGgqqhmjjOlbgY1HBXeBoCl/jxAbrVOkoajRwVqKLkhugjU2gwMb9qErLEW7BPB2rkVQLQaUveViDNrZhRcZRletclRZ3fvTlC/pEb5R0P6o1aGNbVmTMVeEm9Wwn9IbBOeXTPrx3ffHCqF1g40o+Qhu7smLvMbgBGNsRvWCQTjWoTp8+TWsio6KlCUvQxr6s4LisJvkp4NSCCu9VK8snRTfNI2hjClZw3FXhuEkaVggqXFzLBrUXBAWOZnIGpE7xJkkT6QRtTMmKnjysMEeVYw0VJqsXgwJLInIEJD4o0CT5ZF1i42jKaKMHK37ysMKaIa9r/LD0YVlQnDt3zuWoSqd3Mqf5qQW00ZPtAITVyws7pDcM7BRhhZDAWqQmd7xEgCHIUoQVth3Bp6MnWaD5qTna6M12AI6o2I7pBadmCJk2gYWQwQW7CLquIYH5Kpx+tgksbCMeo0/uZAl8Sq71U4Y2erPiu4TUIgQOTgdxhIIjnhjCwWNiGkdheG72moBtanKkJmJOsfEzNbTRmxXfPaRERmLyp3200ZsVXiEl0szkT/toozcrukJKpLlJn/bRRm9W9CQh9ZWvfGX25JNP0p+JjMxkT/toozcreO+QOnPmzOzGjRtbNjc3tyal0baxsUF/X6Rym2wsTQFt9GYF7xVSiwG1zJUrV7aC6/nnn589++yzsxMnTtDnygFHe9gGbAu2Cdv25ptvKlClrWNsPI0dbfRmxe4cUk0CahUcdSEkLl68ODt//vyW5557bitEgqankIuPgfB8IYjwWmwbgmvXrimopA1crTG5SXTa6M0K3TmkMKgxuNmgrw1CTHNq0tLkvhaLNnqzQvc63RtDUCmgpIdJ3SmBNnqzIveeOK85qBRQ0tOk7pRAG71ZkXuHFNQYVAooSWQySxJoozcrcJKQgpqCSgElCU3maIo2erMCJwspqCGoFFDiYBJHU7TRmxU3aUhByUGlgBInkziaoo3erLjJQwouX75MQ2JoWMTJtlckgdEfTdFGb1bY5CGFxZksIEqBRahsu0V6Gv3RFG30ZoVNGlKlB1SgoBInu9k4Gwva6M2KmiykagmoQEElDka9Cp02erOiJgmp2gIqUFCJg9GuQqeN3qygvUOq1oAKFFSS2Gi/Bos2ekNBowK3UntABQoqSegmG2tjQBu9WUE7hxRuhcIGfK1wixf2PkU6OMzGW+1oozcrZueQwqJILI5kA742OCJk71Gko1EuR6CN3qyYvU73xhBUCihxMroJdNrozQrZe+K85qBSQImj0X2zDG30ZoXsHVJQY1ApoMTZdTbmakYbvVkhk4QU1BRUCijJZFTX89FGb1bEZCEFNQSVAkoyGtUKdNrozYqYNKSg5KBSQElmo1ozRRu9WRGThxRgzRELiaGxbRVxdoCNvRrRRm9WQIWUiK/RfMpHG71ZARVSIr5G8ykfbfRmBVRIifgbxX2maKM3K55CSsTfMTb+akMbvVnxFFIi/kZxLR9t9GbFU0iJ5LGLjcGa0EZvVjiFlEge1S9FoI3erHAKKZE8ql+KQBu9WeEUUiJ5VD8vRRu9WeEUUiKZxOOvNrTRmxVOISWST9V3RaCN3qxoCimRfKpeL0UbvVnRFFIi+Vxg47AWtNGbFU0hJZLPJhuHtaCN3qxoCimRjOIxWBPa6M2KppASyavayXPa6M0KppASyavaLw6ljd6sYAopkbyOs7FYA9roDQWLCpiEQkpkqWpXntNGb1YwhZRIXtV+wkcbvVnBFFIimcXjsBa00ZsVTCElkl+V95aijd6sWAopkfyqXIZAG71ZsRRSIvkppJqyYimkRPKrchkCbfSGYkXFS0IhJbKSQqopFCsqXhIKKZGVzrHxWDra6M2KpZASye+/2XgsHW30ZsVSSInkV+VXr9NGb1YshZRIfu+x8Vg62ujNiqWQEsnvr2w8lo42erNiKaREBhCPxRrQRm9WLIWUyADisVgD2ujNiqWQEhlAPBZrQBu9WbEUUiIDiMdiDWijNyuWQkpkAPFYrAFt9GSF2m1uLhYuFYVUGo899hhtl1Go7l7ntNGLFcgtoEAhlYZCavSqCira6MEK4xpQoJBKQyE1CdUEFW1MzQriHlCgkEpDITUZVQQVbUzJCpEloEAhlcajjz5K22WUig8q2piKFSBbQIFCKo1Dhw7RdhmtooOKNqZgbzxrQIFCKg2F1CQVG1S0MQV709ejIrhTSKVx//3303YZvSLvgU4bU7A3rCOpObatJTt48CBtl1E7y8ZxCWhjKvbGNSdl2LaW7J577qHtMlrFBhTQxpSsAPp0j2xryfbt2zd7/PHH6c9kdIoOKKCNqVkhsgSVQioNhNSRI0foz2RUig8ooI0erCDuQaWQSgMh9eCDD9KfyWhUEVBAG71YYVyDSiGVBkJq//799GcyCtUEFNBGT1Ygt6BSSKWBkLrrrrvoz6R6VQUU0EZPViSFVOEQUnfeeaeu4RsnhdQqViCd7lUghNRDDz1Efy7V0+keY4XRxHklQkjh3+znMgqaOF9kBXEPKFBIpRFCCrReatSqCCramJIVIktAgUIqjcWQ0sXGo1d8UNHGVKwA2QIKFFJpLIaUTvkmoeigoo0p2BvPGlCgkEpjMaTg6NGj9PdkVIoNKtqYgr3pS1ER3Cmk0ohDSqvPJ2Nyt2rZZTYXCuBOIZVGHFJa2DkJ07vpHdgbzxpUCqk04pACTaCP2jRvHxxYAbIF1cbGBg2JobFtLRkLqT179tDflepN+4sYAitEtqBiITE0tp0lYyEFOpoaneIDCmijBytIlqBiITE0tp0lWxZSOpoalSoCCmijFyuMe1BduXKFBsWQ2HaWbFlIgY6mRqGagALa6MkK5BpUFy9epEExJLadJVsVUjia0qUyVSsioGxc7DZ7zGFzbP7fdAnEjoYcrFDHo8Ilc+bMGRoUQ2LbWbJVIQVaN1WveCzmZGPhgLlgboaxscSmQXDtwuPok3mzYrmFVImf8LHtLNm6kMK6Ka1Cr1M8FnOwMYBwur44JhpCmB2nT+rNiuUWUvDmm2+yNzwYto0lWxdSgN9hj5WyxWPRk/X9XQZHTnRcNEWf3JsVyzWkSpuXYttYsiYhBbopXn3isejF+j0CCqdtdEy0QV/AmxXLNaSee+45+maHwraxZE1DSqd99YnHogfr88kCCuiLeLNiuYYUlHTKx7avZE1DCvbu3UufQ8oUj0UP1ucvxWOgD/oi3qxY7iF1/vx5+oaHwLavZG1CCg4ePEifR8oTj8XUrL8fj/t/X/SFvFmx3EPqxIkT9A0PgW1fydqGFGiRZx3isZiS9XWc5q1bXtAafTFvViz3kIJSJtDZtpWsS0iBvgKrfPFYTMn6evKjKKAv5s2KlSWkSjmaYttWsq4hhYl0BVXZ4rGYkvX1Lmuh1qIv5s2KlSWkoISjKbZdJesaUoCJdF02U654LKZi/RyXudD+3xd9QW9WrGwh9eSTT86uXbtG33wubLtK1iekQEFVrngspmL93OVUD+gLerNiZQspeP755+mbz4VtU8n6hhQoqMoUj8VUrJ+fjft9KvQFvVmxsoYUDHkLF7Y9JUsRUqCgKk88FlOxfp50bdQi+oLerFjZQ2rI0z62PSVLFVKgyfSyxGMxFevnCqkUhvqiBrYtJUsZUoCgOnLkCH0tySsei6lYP1dIpTLE/abYdpQsdUgFuiB5ePFYTMX6efJFnAF9QW9WrMFCCnIvS2DbUDKvkIL77rtP81QDisdiCtbHsdKc9v0U6It6s2INGlKQM6jY65fMM6QAtyDWPNUw4rGYgvVx3NSO9v0U6It6s2INHlKQK6jYa5fMO6QC3YY4v3gspmB93G35AdAX9WbFKiKkIMccFXvdkuUKKcAyBU2q5xOPxb6sf7ue6gF9YW9WrGJCCnCTPM/lCew1S5YzpALNVeURj8W+rH+7rTQP6At7s2IVFVKAi5E3Nzdpkfpir1eyIUIKsFQBp4AKKz/xWOzD+rbb9XqL6It7s2IVF1IBbpaX+qiKvU7JhgqpQGHlajcbk21Zv056i+BV6AZ4s0IVG1KAo6rLly/TgnXBXqNkQ4dUgLDCXT91H/WkjrMx2Zb1a9fJ8kV0A7yhUFHhioQV6imu+WPPXbJSQmrR/v37Z4888gjdXmnlutn60s0urD/jCCpbQAHdEG9WpCpCKkBY9VmuwJ6zZCWGVICjK0yyK7B6OcvG5TrWlzEHleUUbxHdGG9WpKpCKsBFyrjtS9ujK/ZcJSs5pBYhsHCEhfura3Foa42Dyvowjp7cP8Vbhm6UNytQlSG1CIGFpQsvvfTS2tBijy9ZLSEVQ2hh2zHpjiMtBddaOPU7zMao9VsEE1aSZz21Y3ZsXEr2AncYvFGk8CmDK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + ContentType = "image/png" + } + ) +} +New-MgChatMessage -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgChatMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgChatMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + Content = "Hello world" + } +} +New-MgChatMessage -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgChatMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgChatPinnedMessage.md b/src/Teams/Teams/examples/v1.0-beta/New-MgChatPinnedMessage.md index 093355d11d5..5a03b468fec 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgChatPinnedMessage.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgChatPinnedMessage.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChatPinnedMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "Message@odata.bind" = "https://graph.microsoft.com/beta/chats/19:2da4c29f6d7041eca70b638b43d45437@thread.v2/messages/1616964509832" +} +New-MgChatPinnedMessage -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgChatPinnedMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgChatTab.md b/src/Teams/Teams/examples/v1.0-beta/New-MgChatTab.md index 093355d11d5..aef527f0a66 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgChatTab.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgChatTab.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "My Contoso Tab" + "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8" + Configuration = @{ + EntityId = "2DCA2E6C7A10415CAF6B8AB6661B3154" + ContentUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView" + WebsiteUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154" + RemoveUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/uninstallTab" + } +} +New-MgChatTab -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeam.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeam.md index 093355d11d5..4a0770b90bd 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeam.md @@ -1,18 +1,236 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" + "Group@odata.bind" = "https://graph.microsoft.com/beta/groups('dbd8de4f-5d47-48da-87f1-594bed003375')" + Channels = @( + @{ + DisplayName = "Class Announcements 📢" + IsFavoriteByDefault = $true + } + @{ + DisplayName = "Homework ðŸ‹ï¸" + IsFavoriteByDefault = $true + } + ) + MemberSettings = @{ + AllowCreateUpdateChannels = $false + AllowDeleteChannels = $false + AllowAddRemoveApps = $false + AllowCreateUpdateRemoveTabs = $false + AllowCreateUpdateRemoveConnectors = $false + } + InstalledApps = @( + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + } + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + } + ) +} +New-MgTeam -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('educationClass')" + DisplayName = "My Class Team" + Description = "My Class Team’s Description" +} +New-MgTeam -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('educationClass')" + DisplayName = "My Class Team" + Description = "My Class Team’s Description" + Channels = @( + @{ + DisplayName = "Class Announcements 📢" + IsFavoriteByDefault = $true + } + @{ + DisplayName = "Homework ðŸ‹ï¸" + IsFavoriteByDefault = $true + } + ) + MemberSettings = @{ + AllowCreateUpdateChannels = $false + AllowDeleteChannels = $false + AllowAddRemoveApps = $false + AllowCreateUpdateRemoveTabs = $false + AllowCreateUpdateRemoveConnectors = $false + } + InstalledApps = @( + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + } + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + } + ) +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" + "Group@odata.bind" = "https://graph.microsoft.com/beta/groups('71392b2f-1765-406e-86af-5907d9bdb2ab')" +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" + Visibility = "Private" + DisplayName = "Sample Engineering Team" + Description = "This is a sample engineering team, used to showcase the range of properties supported by this API" + Channels = @( + @{ + DisplayName = "Announcements 📢" + IsFavoriteByDefault = $true + Description = "This is a sample announcements channel that is favorited by default. Use this channel to make important team, product, and service announcements." + } + @{ + DisplayName = "Training ðŸ‹ï¸" + IsFavoriteByDefault = $true + Description = "This is a sample training channel, that is favorited by default, and contains an example of pinned website and YouTube tabs." + Tabs = @( + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.web')" + DisplayName = "A Pinned Website" + Configuration = @{ + ContentUrl = "https://docs.microsoft.com/microsoftteams/microsoft-teams" + } + } + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.youtube')" + DisplayName = "A Pinned YouTube Video" + Configuration = @{ + ContentUrl = "https://tabs.teams.microsoft.com/Youtube/Home/YoutubeTab?videoId=X8krAMdGvCQ" + WebsiteUrl = "https://www.youtube.com/watch?v=X8krAMdGvCQ" + } + } + ) + } + @{ + DisplayName = "Planning 📅 " + Description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." + IsFavoriteByDefault = $false + } + @{ + DisplayName = "Issues and Feedback ðŸž" + Description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." + } + ) + MemberSettings = @{ + AllowCreateUpdateChannels = $true + AllowDeleteChannels = $true + AllowAddRemoveApps = $true + AllowCreateUpdateRemoveTabs = $true + AllowCreateUpdateRemoveConnectors = $true + } + GuestSettings = @{ + AllowCreateUpdateChannels = $false + AllowDeleteChannels = $false + } + FunSettings = @{ + AllowGiphy = $true + GiphyContentRating = "Moderate" + AllowStickersAndMemes = $true + AllowCustomMemes = $true + } + MessagingSettings = @{ + AllowUserEditMessages = $true + AllowUserDeleteMessages = $true + AllowOwnerDeleteMessages = $true + AllowTeamMentions = $true + AllowChannelMentions = $true + } + DiscoverySettings = @{ + ShowInTeamsSearchAndSuggestions = $true + } + InstalledApps = @( + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + } + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + } + ) +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" + DisplayName = "My Sample Team" + Description = "My Sample Team’s Description" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('0040b377-61d8-43db-94f5-81374122dc7e')" + } + ) +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" + DisplayName = "My Sample Team" + Description = "My Sample Team’s Description" +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 8: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" + DisplayName = "My Sample Team" + Description = "My Sample Team’s Description" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" + } + ) +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannel.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannel.md index 093355d11d5..d50a1e7b9eb 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannel.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannel.md @@ -1,18 +1,108 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@microsoft.graph.channelCreationMode" = "migration" + DisplayName = "Import_150958_99z" + Description = "Import_150958_99z" + CreatedDateTime = [System.DateTime]::Parse("2020-03-14T11:22:17.067Z") +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Architecture Discussion" + Description = "This channel is where we debate all future architecture plans" + MembershipType = "standard" +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "TestChannelModeration" + Description = "Test channel moderation." + MembershipType = "standard" + ModerationSettings = @{ + UserNewMessageRestriction = "everyoneExceptGuests" + ReplyRestriction = "everyone" + AllowNewMessageFromBots = $true + AllowNewMessageFromConnectors = $true + } +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#Microsoft.Graph.channel" + MembershipType = "private" + DisplayName = "My First Private Channel" + Description = "This is my first private channels" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" + Roles = @( + "owner" + ) + } + ) +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#Microsoft.Graph.channel" + MembershipType = "private" + DisplayName = "My First Private Channel" + Description = "This is my first private channels" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/beta/users('62855810-484b-4823-9e01-60667f8b12ae')" + Roles = @( + "owner" + ) + } + ) +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "My First Shared Channel" + Description = "This is my first shared channel" + MembershipType = "shared" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/beta/users('7640023f-fe43-gv3f-9gg4-84a9efe4acd6')" + Roles = @( + "owner" + ) + } + ) +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelEmail.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelEmail.md index 093355d11d5..9891e05aa78 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelEmail.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelEmail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannelEmail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +New-MgTeamChannelEmail -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannelEmail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMember.md index 093355d11d5..83d23456f5f 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMember.md @@ -1,18 +1,82 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgTeamChannelMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgTeamChannelMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgTeamChannelMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgTeamChannelMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users/bc3598dd-cce4-4742-ae15-173429951408" + TenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMessage.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMessage.md index 093355d11d5..a2b48d86c89 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMessage.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMessage.md @@ -1,18 +1,340 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + Content = "Hello World" + } +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + Content = "Hello World" + } +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Subject = $null + Body = @{ + ContentType = "html" + Content = "" + } + Attachments = @( + @{ + Id = "74d20c7f34aa4a7fb74e2b30004247c5" + ContentType = "application/vnd.microsoft.card.thumbnail" + ContentUrl = $null + Content = "{ + "title": "This is an example of posting a card", + "subtitle": "

This is the subtitle

", + "text": "Here is some body text.
\r\nAnd a hyperlink.
\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + Name = $null + ThumbnailUrl = $null + TeamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "Hello World Jane Smith" + } + Mentions = @( + @{ + Id = 0 + MentionText = "Jane Smith" + Mentioned = @{ + User = @{ + DisplayName = "Jane Smith" + Id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + UserIdentityType = "aadUser" + } + } + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Subject = $null + Body = @{ + ContentType = "html" + Content = "" + } + Attachments = @( + @{ + Id = "74d20c7f34aa4a7fb74e2b30004247c5" + ContentType = "application/vnd.microsoft.card.thumbnail" + ContentUrl = $null + Content = "{ + "title": "This is an example of posting a card", + "subtitle": "

This is the subtitle

", + "text": "Here is some body text.
\r\nAnd a hyperlink.
\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + Name = $null + ThumbnailUrl = $null + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "Here's the latest budget. " + } + Attachments = @( + @{ + Id = "153fa47d-18c9-4179-be08-9879815a9f90" + ContentType = "reference" + ContentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + Name = "Budget.docx" + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Subject = $null + Body = @{ + ContentType = "html" + Content = "" + } + Attachments = @( + @{ + Id = "74d20c7f34aa4a7fb74e2b30004247c5" + ContentType = "application/vnd.microsoft.card.adaptive" + ContentUrl = $null + Content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + Name = $null + ThumbnailUrl = $null + } + ) + HostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0UXKiVlNMf90YV5jDwopyYo2BuiQUQdNDaciuswiEatl6vknRiElWdHGAB0y6qBejrHXl+ashh7zT4xCSrKijQE6ZNRBPeEjci1T6MDq1vYayz4UUpIVbQzQIaMO6k3zVC1YrTD/lHsfKaQkK9oYoENGHTQHzVM1YDXC/BOukWQ19KSQkqxoY4AOGXXQnHQnyCWsNri1b475J0YhJVnRxgAdMuqgueGjdM1TLbB65Jx/YhRSkhVtDNAhow46BMxTTf5yGqvBEPNPjEJKsqKNATpk1EGHglObA2wb27hx40bnSXl7bKcjuq6PW2Tvvc3tfb0ppCQr2higQ0YddGid56ksLM6am6b1Udn8sZumVeDg9+eP63wZkL1nzD+xWgxFISVZ0cYAHTLqoCVoPU+FkDCzuVZBFT22cVDh9+a/Hx7bOqjsfaa6vUpKCinJijYG6JBRBy1F49sTIxwWgiJoFFT2O+yxa4MKP5//XvzYRkFl7w3zT96Xt3SlkJKsaGOADhl10JJgjmblbV8QClFILFoZVPazVY9dGlRon/+cPQ5WBpW9p7639/WmkJKsaGOADhl10BLRr9FCGEThwNCgsrYmj90RVPj/eTv7/UU0qOy9pLi9rzeFlGRFGwN0yKiDlgrbuR0YCIEoFFa5Lajsv9s8djuo8O/5/7PfY7aDCttuSpx/YhRSkhVtDNAhow5asq15Kgz+KAya2Aoq0+WxCKY75v9mP18FwdTn66WGoJCSrGhjgA4ZddCiPf300x9cv379f0kYFOub3/zm/7D3UrDkIXXz4393hzlrLk3IBaNrVBugjQE6ZNRBi7exsTG7du0aDYTSnDlzhr6HwiULKRukIZxmE4bAUlitQBsDdMiog1ahhqCqNKCgd0jZoFQ47aSwWoI2BuiQUQetRslBVXFAQeeQskGocFpPYRWhjQE6ZNRBq1JiUFUeUNA6pGzQKZzaU1jN0cYAHTLqoNUpKahGEFDQOKRskCmc+pt8WNHGAB0y6qBVKiGoRhJQsDakbFApnNKbbFjRxgAdMuqg1RoyqEYUULA0pGwQDRlOGMRdXDfs+UqFbZ5UWNHGAB0y6qBVu3LlCg0Rb2xbKrYjpGzQDBlOeN1eX95hjz9sFFaFoo0BOmTUQaumkEpiO6RskFQdTjF7PoVVgWhjgA4ZddCqKaSSwKAYVTjF7PkVVgWhjQE6ZNRBq6aQ6ufpo/8xe/1f/uG9aHDk4h5OMXs9hVUBaGNgHVMhlQDblpognC4f+DgbEDlkD6eYvb7CakC0MbAOqpBKgG1LDaYeTjHbHoXVAGhjYB1VIZUA25aSKZxWs+1TWGWEgrM3JJJb8eEUs+2tMayqo5CSoVUXTjHbfoWVn0sKKRlK9eEUs/ejsEpn+/RUISW5jS6cYvb+FFbd7Zg7U0hJLqMPp5i9X4VVc0sn9hVS4m1y4RSz96+wWm7tp44KKfEy+XCKWT0UVrc0XhKhkJLU3jR/zzqbfMTqM+WwahxOgUJKPNw0xw39Knr5iNVnSmHVOpwChZR4Ulg1YPUZc1h1DqdAISU5KKwasPqMKax6h1OgkJKcFFYNWH1qDqtk4RQopGQICqsGrD41hVXycAoUUjIkhVUDVp+Sw8otnAKFlJRAYdWA1aeksHIPp0AhJSVRWMkOCikpkcJKtimkpGQKK1FISRUUVhOmkJKaKKwmSCElNVJYTYhCSmqmsJoAhBR2MnXx4N3XX3zwUzPm9L/unT2w5x+r8vA9n5r9273/nB3blpI9s/+f6D6HAb/qahWEFdbtTAHu0zWpUKaNwRMrvnfvyJEjszvvvFNG6IEHHqD7HP7zyCEWEuIPizgPs3E6drQxsE6pkJoghVRRJhtOAW0MrFMqpCZIIVWEyYdTQBsD65QKqQlSSA1K4RShjYF1SoXUBCmkBqFwWoI2BtYpFVITpJDKSuG0Bm0MrFMqpCZoVUid+vfDH0aDTLpRODVEGwPrlEtDKvjc5z43e+ihh2Z33XUX7fC1uvfee2c//OEPZ7/+9a9nN27c2PLWW29ttX3605+mj6kV9h2C6bHHHqP7OIK1OmO6F3duCqeWaGOADhl10KUef/zx2f79++kgqM0XvvCF7WBa5rvf/S59bG327t279RcN26dLXAr9A4NtPujYYJTbKZw6oo0BOmTUQdeqPaiaBFSAoyr2HLVAQOEvF7YfV9gOqQCDbz4I2eCcOoVTT7QxQIeMOuha6PS1nvrhFI+F0SpHjx6lz1WDlkdQwY6QCjAY54OSDdapUTglQhsDdMiogzaCOSo2KEqHIyMWRKu89tpr9LlKd99999F918DSkAowOOeDlA3esVM4JUYbA3TIqIM2gr+h2cAoHQuhJnAExp6vZI888gjddw2sDakAg3U+aNlgHhuFkxPaGKBDRh20MTYwSoZP7FgANfHZz36WPmfJOsxFBY1DKsDgnQ9iNrhrp3ByRhsDdMiogzbGBkbJPvOZz9AAagKPZc9ZMrbPGmodUoEN5j1jw96npEUbA3TIqIM2dvfdd9PBUSocDbEAauLEiRP0OUvG9llDnUNKpAvaGKBDRh20sX379tHBUao+IfX1r3+dPmfJ2D5rSCElWdHGAB0y6qCN1bZeCkHDAqiJ2hZ24i8Qts8aUkhJVrQxQIeMOmhjuMyCDZBSdVl+ELzyyiv0OUuFv0DYPmtIISVZ0cYAHTLqoI3hI242QEqF9U4sgJpiz1kqrGNj+6whhZRkRRsDdMiogzaGj7jZACnRJz7xCRo8bdR00XHDC4mXUUhJVrQxQIeMOmgrtcxLtbleb5la5qXwqSvbVy1smj1z+iopcUcbA+uEvULq0KFDdKCUBnNKLHjawC1d2HOXZtW9onpCX4FT5rhBiO1m/UqkDdoYzDsd65CNlb5eqs9K8xiOyNhrlKTHSvM+cPR1wYTw0hGYNEYbA+tMvUOq9KOpn/zkJzRwuij9aKrHRcUerhsE1zGjIy5ZijYG1nl6hxSUejTVZwHnMqUeTeH2OQMdRTV10yi0ZAfaGFhnSRJSpd4Pve+yAwa3GManhez1htRz2cEQcKSF+a0DrG/KdNDGwDpIkpCCgwcP0sEzFHwax0ImBZxCstccSs/FmyXAUdZZo8CaINoYWKdIFlKA29WyQZRbiiUH65Ry0XHHWwSXLASW7kAwEbQxsI6QNKQwWLyDCpPDTz311Oz8+fOzzc3N2QcffLDt/Rdenr2378Gs/nLy2du2Adv08ssvzzY2Nra2lb2HVDAP1XPhZulwSohPDO9g/VfGgTYGtvOThhR4BRWCKQ4lJmdQxQHF/P73v98KrE9+8pP0fXU1gYCKYdJdR1cjRBsD2+nJQwoQVKlWoyOcMNBZACyTI6iaBNSid999d/btb387SViN8BSvDRxdHTZaizUStDGwHe0SUkGfL2zA3TCbHDkt4xlUbQNqEQL30Ucfpe+5CXxAwWo9QZi7wqmgwqpytDGwHewaUoAvbWh7gzycHrEB3pZHUPUJqEXf//736XtfBjXEUg9W44lTWFWONga2Y91DKsAAa3IKiAlxNqi7ShlUqQIqwDqudad/CCes6mc1ldsorCpFGwPbodlCKsCRFU4D2dFV6oAKUgRV6oAKcEobBxXmnHBa1/HLPadOYVUZ2hjYjsweUjEcYeEGevjYng3iVPoElVdABVevXt06WtLpXFIIK30VVQVoY2A7cfCQgnPnztHBm1qXoPIOqODnP/85rY30tnV/LNb/pQy0MbCdN3hIfe1rX6OD1kuboMoVUMHp06dpjSQJrLPSKWCBaGNgO23wkGq7BiqFJkGVO6Dgz3/+8+xLX/oSrZMkgVPAY2wsyHBoY2A7bNCQwje4sMGaw6qgGiKggpdeeonWSpJCv9ftYgpBG4P5zmI7MYt33nmHDtRcWFANGVCBjqayOc7GheRFGwPbSYOF1JBHUYsWg6qEgAIdTWWFiXVdwDwg2hjMdxDbce5++9vf0gE6BARVKQEFOMJkNRM3Wq4wINoItlNwzx62w9w988wzdHDKLfjUk9VOXOkTwAHQRtsRgwUUlHKqVzKd8g0Gd1nQpHpGOxpsBwwaUICFi2xgyi04HWa1k2x0+pfJbf9jhR88oKCk+aiSsdpJVmcXx4/42P4PFDzaAYNhA1J20lKEIuDDJc1TOdr6hxW5mIACNiBlp29961u0fpKd5qkcFRdQwAak7KSQKgqWKehCZQcIqcHWQi3DBqTspJAqkibUE0NI7TJFBRUbkLKTQqpYCqqEtv5hRS0qqNiAlJ2w6JXVT4qgT/4S2f4PKyqCqoj5qaEvLK4Fq50URUGVwI4GK+ypqNDZaZ3UerjPFqudFEdB1RNttMLiyxVZwbPAJR9sYMotup1wVRRUPdBGsMLuNvhYlRXdVe5bBtcI1zey2kmxFFQd0cbACnuHGWRCXfNSq2m1eZUUVB3QxpgVN/s81auvvkoHp3ww++Uvf0lrJlXQ3T5boo2MFfeAyXb6p3tKLaf1UdXTOqoWaOMyVlyc/mW7pbBu2bKTbtEyGgqqhmjjOlbgY1HBXeBoCl/jxAbrVOkoajRwVqKLkhugjU2gwMb9qErLEW7BPB2rkVQLQaUveViDNrZhRcZRletclRZ3fvTlC/pEb5R0P6o1aGNbVmTMVeEm9Wwn9IbBOeXTPrx3ffHCqF1g40o+Qhu7smLvMbgBGNsRvWCQTjWoTp8+TWsio6KlCUvQxr6s4LisJvkp4NSCCu9VK8snRTfNI2hjClZw3FXhuEkaVggqXFzLBrUXBAWOZnIGpE7xJkkT6QRtTMmKnjysMEeVYw0VJqsXgwJLInIEJD4o0CT5ZF1i42jKaKMHK37ysMKaIa9r/LD0YVlQnDt3zuWoSqd3Mqf5qQW00ZPtAITVyws7pDcM7BRhhZDAWqQmd7xEgCHIUoQVth3Bp6MnWaD5qTna6M12AI6o2I7pBadmCJk2gYWQwQW7CLquIYH5Kpx+tgksbCMeo0/uZAl8Sq71U4Y2erPiu4TUIgQOTgdxhIIjnhjCwWNiGkdheG72moBtanKkJmJOsfEzNbTRmxXfPaRERmLyp3200ZsVXiEl0szkT/toozcrukJKpLlJn/bRRm9W9CQh9ZWvfGX25JNP0p+JjMxkT/toozcreO+QOnPmzOzGjRtbNjc3tyal0baxsUF/X6Rym2wsTQFt9GYF7xVSiwG1zJUrV7aC6/nnn589++yzsxMnTtDnygFHe9gGbAu2Cdv25ptvKlClrWNsPI0dbfRmxe4cUk0CahUcdSEkLl68ODt//vyW5557bitEgqankIuPgfB8IYjwWmwbgmvXrimopA1crTG5SXTa6M0K3TmkMKgxuNmgrw1CTHNq0tLkvhaLNnqzQvc63RtDUCmgpIdJ3SmBNnqzIveeOK85qBRQ0tOk7pRAG71ZkXuHFNQYVAooSWQySxJoozcrcJKQgpqCSgElCU3maIo2erMCJwspqCGoFFDiYBJHU7TRmxU3aUhByUGlgBInkziaoo3erLjJQwouX75MQ2JoWMTJtlckgdEfTdFGb1bY5CGFxZksIEqBRahsu0V6Gv3RFG30ZoVNGlKlB1SgoBInu9k4Gwva6M2KmiykagmoQEElDka9Cp02erOiJgmp2gIqUFCJg9GuQqeN3qygvUOq1oAKFFSS2Gi/Bos2ekNBowK3UntABQoqSegmG2tjQBu9WUE7hxRuhcIGfK1wixf2PkU6OMzGW+1oozcrZueQwqJILI5kA742OCJk71Gko1EuR6CN3qyYvU73xhBUCihxMroJdNrozQrZe+K85qBSQImj0X2zDG30ZoXsHVJQY1ApoMTZdTbmakYbvVkhk4QU1BRUCijJZFTX89FGb1bEZCEFNQSVAkoyGtUKdNrozYqYNKSg5KBSQElmo1ozRRu9WRGThxRgzRELiaGxbRVxdoCNvRrRRm9WQIWUiK/RfMpHG71ZARVSIr5G8ykfbfRmBVRIifgbxX2maKM3K55CSsTfMTb+akMbvVnxFFIi/kZxLR9t9GbFU0iJ5LGLjcGa0EZvVjiFlEge1S9FoI3erHAKKZE8ql+KQBu9WeEUUiJ5VD8vRRu9WeEUUiKZxOOvNrTRmxVOISWST9V3RaCN3qxoCimRfKpeL0UbvVnRFFIi+Vxg47AWtNGbFU0hJZLPJhuHtaCN3qxoCimRjOIxWBPa6M2KppASyavayXPa6M0KppASyavaLw6ljd6sYAopkbyOs7FYA9roDQWLCpiEQkpkqWpXntNGb1YwhZRIXtV+wkcbvVnBFFIimcXjsBa00ZsVTCElkl+V95aijd6sWAopkfyqXIZAG71ZsRRSIvkppJqyYimkRPKrchkCbfSGYkXFS0IhJbKSQqopFCsqXhIKKZGVzrHxWDra6M2KpZASye+/2XgsHW30ZsVSSInkV+VXr9NGb1YshZRIfu+x8Vg62ujNiqWQEsnvr2w8lo42erNiKaREBhCPxRrQRm9WLIWUyADisVgD2ujNiqWQEhlAPBZrQBu9WbEUUiIDiMdiDWijNyuWQkpkAPFYrAFt9GSF2m1uLhYuFYVUGo899hhtl1Go7l7ntNGLFcgtoEAhlYZCavSqCira6MEK4xpQoJBKQyE1CdUEFW1MzQriHlCgkEpDITUZVQQVbUzJCpEloEAhlcajjz5K22WUig8q2piKFSBbQIFCKo1Dhw7RdhmtooOKNqZgbzxrQIFCKg2F1CQVG1S0MQV709ejIrhTSKVx//3303YZvSLvgU4bU7A3rCOpObatJTt48CBtl1E7y8ZxCWhjKvbGNSdl2LaW7J577qHtMlrFBhTQxpSsAPp0j2xryfbt2zd7/PHH6c9kdIoOKKCNqVkhsgSVQioNhNSRI0foz2RUig8ooI0erCDuQaWQSgMh9eCDD9KfyWhUEVBAG71YYVyDSiGVBkJq//799GcyCtUEFNBGT1Ygt6BSSKWBkLrrrrvoz6R6VQUU0EZPViSFVOEQUnfeeaeu4RsnhdQqViCd7lUghNRDDz1Efy7V0+keY4XRxHklQkjh3+znMgqaOF9kBXEPKFBIpRFCCrReatSqCCramJIVIktAgUIqjcWQ0sXGo1d8UNHGVKwA2QIKFFJpLIaUTvkmoeigoo0p2BvPGlCgkEpjMaTg6NGj9PdkVIoNKtqYgr3pS1ER3Cmk0ohDSqvPJ2Nyt2rZZTYXCuBOIZVGHFJa2DkJ07vpHdgbzxpUCqk04pACTaCP2jRvHxxYAbIF1cbGBg2JobFtLRkLqT179tDflepN+4sYAitEtqBiITE0tp0lYyEFOpoaneIDCmijBytIlqBiITE0tp0lWxZSOpoalSoCCmijFyuMe1BduXKFBsWQ2HaWbFlIgY6mRqGagALa6MkK5BpUFy9epEExJLadJVsVUjia0qUyVSsioGxc7DZ7zGFzbP7fdAnEjoYcrFDHo8Ilc+bMGRoUQ2LbWbJVIQVaN1WveCzmZGPhgLlgboaxscSmQXDtwuPok3mzYrmFVImf8LHtLNm6kMK6Ka1Cr1M8FnOwMYBwur44JhpCmB2nT+rNiuUWUvDmm2+yNzwYto0lWxdSgN9hj5WyxWPRk/X9XQZHTnRcNEWf3JsVyzWkSpuXYttYsiYhBbopXn3isejF+j0CCqdtdEy0QV/AmxXLNaSee+45+maHwraxZE1DSqd99YnHogfr88kCCuiLeLNiuYYUlHTKx7avZE1DCvbu3UufQ8oUj0UP1ucvxWOgD/oi3qxY7iF1/vx5+oaHwLavZG1CCg4ePEifR8oTj8XUrL8fj/t/X/SFvFmx3EPqxIkT9A0PgW1fydqGFGiRZx3isZiS9XWc5q1bXtAafTFvViz3kIJSJtDZtpWsS0iBvgKrfPFYTMn6evKjKKAv5s2KlSWkSjmaYttWsq4hhYl0BVXZ4rGYkvX1Lmuh1qIv5s2KlSWkoISjKbZdJesaUoCJdF02U654LKZi/RyXudD+3xd9QW9WrGwh9eSTT86uXbtG33wubLtK1iekQEFVrngspmL93OVUD+gLerNiZQspeP755+mbz4VtU8n6hhQoqMoUj8VUrJ+fjft9KvQFvVmxsoYUDHkLF7Y9JUsRUqCgKk88FlOxfp50bdQi+oLerFjZQ2rI0z62PSVLFVKgyfSyxGMxFevnCqkUhvqiBrYtJUsZUoCgOnLkCH0tySsei6lYP1dIpTLE/abYdpQsdUgFuiB5ePFYTMX6efJFnAF9QW9WrMFCCnIvS2DbUDKvkIL77rtP81QDisdiCtbHsdKc9v0U6It6s2INGlKQM6jY65fMM6QAtyDWPNUw4rGYgvVx3NSO9v0U6It6s2INHlKQK6jYa5fMO6QC3YY4v3gspmB93G35AdAX9WbFKiKkIMccFXvdkuUKKcAyBU2q5xOPxb6sf7ue6gF9YW9WrGJCCnCTPM/lCew1S5YzpALNVeURj8W+rH+7rTQP6At7s2IVFVKAi5E3Nzdpkfpir1eyIUIKsFQBp4AKKz/xWOzD+rbb9XqL6It7s2IVF1IBbpaX+qiKvU7JhgqpQGHlajcbk21Zv056i+BV6AZ4s0IVG1KAo6rLly/TgnXBXqNkQ4dUgLDCXT91H/WkjrMx2Zb1a9fJ8kV0A7yhUFHhioQV6imu+WPPXbJSQmrR/v37Z4888gjdXmnlutn60s0urD/jCCpbQAHdEG9WpCpCKkBY9VmuwJ6zZCWGVICjK0yyK7B6OcvG5TrWlzEHleUUbxHdGG9WpKpCKsBFyrjtS9ujK/ZcJSs5pBYhsHCEhfura3Foa42Dyvowjp7cP8Vbhm6UNytQlSG1CIGFpQsvvfTS2tBijy9ZLSEVQ2hh2zHpjiMtBddaOPU7zMao9VsEE1aSZz21Y3ZsXEr2AncYvFGk8CmDK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + ContentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZccMl/LsWC5zjj2PiBfaGFiHxJwT66iraJ6qAjhG5sz8mLVxgT2fiBfaGKBDRh20Kc1TFcyODS7j180/LaOQkqxoY4AOGXXQNjRPVSA7JlhG0nT+iVFISVa0MUCHjDpoF3pHqBB2LNrOPzEKKcmKNgbokFEH7QqXFpqnGghqb7rMPzEKKcmKNgbokFEH7QOXGJqnygw1N13nnxiFlGRFGwN0yKiDpqB5qkys1vhIS5/5J0YhJVnRxgAdMuqgqWieypnVeN0nBbpSSElWtDFAh4w6aEq4BNGHlBOzmmL+6dy8xh4UUpIVbQzQIaMOmhouRfQxi0SslqnnnxiFlGRFGwN0yKiDetlkry/NWQ095p8YhZRkRRsDdMiog3rCW+RaptCB1a3tZyz7UEhJVrQxQIeMOqg3zVO1YLXC/FPuY6SQkqxoY4AOGXXQHDRP1YDVCPNP+Iwkq6EnhZRkRRsDdMiog+akO0EuYbXBrX1zzD8xCinJijYG6JBRB80Nb6VrnmqB1SPn/BOjkJKsaGOADhl10CFgnmryH6exGgwx/8QopCQr2higQ0YddCi4tDnItrGNL7/8svOkvD220xld18ctsn1vc3tfbwopyYo2BuiQUQcdWud5KguLM+aaaX1WNn/slmkVOPj9+eM6fwzI9hnzT6wWQ1FISVa0MUCHjDpoCVrPUyEkzGyuVVBFj20cVPi9+e+Hx7YOKtvPVLdXSUkhJVnRxgAdMuqgpWh8e2KEw0JQBI2Cyn6HPXZtUOHn89+LH9soqGzfMP/k/fGWrhRSkhVtDNAhow5aEszRrLztC0IhColFK4PKfrbqsUuDCu3zn7PHwcqgsn3qe3tfbwopyYo2BuiQUQctEf0aLYRBFA4MDSpra/LYXUGF/5+3s99fRIPK9iXF7X29KaQkK9oYoENGHbRU2M6dwEAIRKGwyo+Cyv67zWN3ggr/nv8/+z1mJ6iw7abE+SdGISVZ0cYAHTLqoCXbnqfC4I/CoIntoDJdHotg2jv/N/v5KgimPl8vNQSFlGRFGwN0yKiDFu2ZZ5757urVq/9LwqBYL7zwwv+wfSlY8pC6dus/7DVnzIUJOWf0GdUGaGOADhl10OKdOHFiduXKFRoIpTl9+jTdh8IlCykbpCGcZhOGwFJYrUAbA3TIqINWoYagqjSgoHdI2aBUOO2msFqCNgbokFEHrUbJQVVxQEHnkLJBqHBaT2EVoY0BOmTUQatSYlBVHlDQOqRs0Cmc2lNYzdHGAB0y6qDVKSmoRhBQ0DikbJApnPqbfFjRxgAdMuqgVSohqEYSULA2pGxQKZzSm2xY0cYAHTLqoNUaMqhGFFCwNKRsEA0ZThjEXVw17PlKhW2eVFjRxgAdMuqgVbt06RINEW9sWyq2K6Rs0AwZTnjdXl/eYY8/bBRWhaKNATpk1EGrppBKYiekbJBUHU4xez6FVYFoY4AOGXXQqimkksCgGFU4xez5FVYFoY0BOmTUQaumkOrnmUf/dfbBP9/8dTQ4cnEPp5i9nsKqALQxsI6pkEqAbUtNEE4XD97KBkQO2cMpZq+vsBoQbQysgyqkEmDbUoOph1PMtkdhNQDaGFhHVUglwLalZAqn1Wz7FFYZoeBsh0RyKz6cYra9NYZVdRRSMrTqwilm26+w8nNBISVDqT6cYrY/Cqt0di5PFVKS2+jCKWb7p7DqbtfcmUJKchl9OMVsfxVWzS2d2FdIibfJhVPM9l9htdzadx0VUuJl8uEUs3oorK5rvCRCISWpXTb/yDqb/MDqM+WwahxOgUJKPFwzxwz9Knr5gdVnSmHVOpwChZR4Ulg1YPUZc1h1DqdAISU5KKwasPqMKax6h1OgkJKcFFYNWH1qDqtk4RQopGQICqsGrD41hVXycAoUUjIkhVUDVp+Sw8otnAKFlJRAYdWA1aeksHIPp0AhJSVRWMkuCikpkcJKdiikpGQKK1FISRUUVhOmkJKaKKwmSCElNVJYTYhCSmqmsJoAhBQOMnX+0O1X3773n2Zj8flTm7NvnnsyO7YttRrwq65WQVhh3c4U4D5dkwpl2hg8oe/dS4JtS63+7cj9LCTEHxZxHmbjdOxoY2CdUiGVANuWWimksptsOAW0MbBOqZBKgG1LrRRS2Uw+nALaGFinVEglwLalVgopdwqnCG0MrFMqpBJg21IrhZQbhdMStDGwTqmQSoBtS60UUskpnNagjYF1ymJC6pFHHpk98MADO/D/7PdWqSWkNjc3f7SvDz30EP29IZz8l8PfR4NMulE4NUQbA+uUg4cUBunNN988u+GGG3ZBO37OHseUHlII3ttvv53u64033jjb2Nigj8sMa3XGdC/u3BROLdHGAB0y6qBZ3XnnnXTAxjYaDt6SQwr78NOf/pTu3yKEGHt8RhdC/8Bgmw+6xUEonMKpI9oYoENGHTSbu+++mw7SZTYaBFWpIYWzQbZPywwcVDshFWDwzQdhPDBF4dQbbQzQIaMOmgUue9jgXAVnIevmqUoNKVzKsX1a5b777qPPlcGukAowGOeDkg3WqVE4JUIbA3TIqINmsWxeZh2cfbHnC0oMqQ07A2T7ss5NN91Eny+DpSEVYHDOB2k8cKdA4ZQYbQzQIaMOmkWTuRlm3cAtMaRuvfVWui9N4F1A9pzO1oZUgME6H7RsMI+NwskJbQzQIaMOmgUbkE2x5wtKDKll71w20eadzYQah1SAwTsfxGxw107h5Iw2BuiQUQfNgg3IptjzBQqpJFqHVGCDef/YsP2UtGhjgA4ZddAs2IBsij1foJBKonNIiXRBGwN0yKiDZsEGZFPs+QKFVBIKKcmKNgbokFEHzYINyKbY8wUKqSQUUpIVbQzQIaMOmgUbkE2x5wsUUkkopCQr2higQ0YdNAs2IJtizxcopJJQSElWtDFAh4w6aBZsQDbFni9QSCWhkJKsaGOADhl10CzYgGyKPV+gkEpiy+yf01dJiTvaGFgnVEglwLYlqDCklkFfgZPmmEGI7WP9SqQN2hjMOx3rkK66fOAWMODZ8wUlhlTXzykCe75C4ezrnAnhpTMwaYw2BtaZBgmppveRit1zzz30+YISQwpnQ2xf1sFn/tjzVeSqQXBtGp1xyVK0MbDOM0hI4YOzbT9kjLOvdR+4LTGkoMslX0m3FE7kmlFoyS60MbDOMkhIwUbLW5g0GbSlhhTug9UmlNedMY4EzrQwv3WQ9U2ZDtoYWAcZLKQAQbVu8OLnTSeQSw0pQMg2mYubSEDFcJZ1xiiwJog2BtYpBg0pwFkG5qjiAYz/x03u2txTqeSQAuwLQgj3xVrcVwQxJtjX3Xl0IkJg6Q4EE0EbA+sIg4dUW7/61a9mr7766uz999+fffrpp7Pvvvtux7dv/Xb29V33ZvW348//aBuwTR9++OHs7Nmz29vK9kEawyUh3jHcy/qvjANtDOzgVxNSCKY4lJicQRUHFPPFF19sB9YvfvELul/SGCbddXY1QrQxsINefEghnDDQWQAskyOomgTUom+++Wb2zjvvKKz6w9nVYaO1WCNBGwM70MWG1LPPPtvozGkZz6BqG1CLELgvvvgi3WdpBXNXuBRUWFWONgZ2gIsMKVwesQHelkdQ9QmoRe+99x7dd2lNYVU52hjYgS0upDAhzgZ1VymDKlVABX/+8591+ZeOwqpStDGwA1pUSKUOqCBFUKUOqACXtAqqpBRWlaGNgR3IYkLKK6CCPkHlFVABgorVRHpBWOmrqCpAGwM7iEWEVKo5qHW6BJV3QAUIaVYb6W37/lis/0sZaGNgB2/wkMK7eGzQemkTVLkCKjh16hStkSSBdVa6BCwQbQzsoA0eUn2WGXTVJKhyBxRgLZXmp1zhEnCTjQUZDm0M7IANGlJYqMkGaw6rgmqIgAqw4JPVSpJCv9ftYgpBG4P5wWIHMYu2K8lTY0E1ZEAFOpvK5hgbF5IXbQzsIA0WUkOeRS1aDKoSAgp0NpUVJtb1AeYB0cZgfoDYgXOHhYxsgA4BQVVKQAHOMFnNxI2WKwyINoIdFNyzhx0wd7iFCRucch3e9WS1E1d6B3AAtNEOxGABBaVc6pVMl3yDwV0WNKme0a4GOwCDBhR4ry4fA1wOs9pJNrr8y+RH/2OFHzygoKT5qJKx2klWZxbHj/jY+Q8UPDoAg2EDUnbTUoQi4M0lzVM52v6HFbmYgAI2IGU33RyvGJqnclRcQAEbkLKbQqooWKagDyo7QEgNthZqGTYgZTeFVJE0oZ4YQmqPKSqo2ICU3RRSxVJQJbT9DytqUUHFBqTspu/tK5re+Utk5z+sqAiqIuanhv5gcS1Y7aQoCqoEdjVYYU9Ghc5O66TW0y2Fq6Gg6ok2WmHx5Yqs4FngIx9sYMp1up1wVRRUPdBGsMLuM3hblRXdVe5bBtcIn29ktZNiKag6oo2BFXavGWRCXfNSq2m1eZUUVB3QxpgVN/s8Fb7Blw1O+W724Ycf0ppJFXS3z5ZoI2PFPWiyXf7pnlLLaX1U9bSOqgXauIwVF5d/2W4prFu27KZbtIyGgqoh2riOFXgzKrgLnE3ha5zYYJ0qnUWNBq5K9KHkBmhjEyiwcT+r0nKE6zBPx2ok1UJQ6Use1qCNbViRcVblOlelxZ0/fPmC3tEbJd2Pag3a2JYVGXNVuEk9Owi9YXBO+bIP+64vXhi1c2xcyQ9oY1dW7P0GNwBjB6IXDNKpBtWpU6doTWRUtDRhCdrYlxUcH6tJfgk4taDCvmpl+aTopnkEbUzBCo67KhwzScMKQYUP17JB7QVBgbOZnAGpS7xJ0kQ6QRtTsqInDyvMUeVYQ4XJ6sWgwJKIHAGJNwo0ST5ZF9g4mjLa6MGKnzyssGbI6zN+WPqwLCjOnj3rclalyzuZ0/zUAtroyQ4Awuq3CwekNwzsFGGFkMBapCZ3vESAIchShBW2HcGnsydZoPmpOdrozQ4AzqjYgekFl2YImTaBhZDBB3YRdF1DAvNVuPxsE1jYRjxG79zJEniXXOunDG30ZsV3CalFCBxcDuIMBWc8MYSDx8Q0zsLw3Ow1AdvU5ExNxJxk42dqaKM3K757SImMxOQv+2ijNyu8Qkqkmclf9tFGb1Z0hZRIc5O+7KON3qzoSULql7/85ezo0aP0ZyIjM9nLPtrozQreO6ROnz49+/LLL7dtbW1tT0qj7cSJE/T3RSq3xcbSFNBGb1bwXiG1GFDLXLp0aTu4Xnvttdnzzz8/e/rpp+lz5YCzPWwDtgXbhG27fPmyAlXa2mTjaexoozcrdueQahJQq+CsCyFx/vz52ZtvvrntpZde2g6RoOkl5OJjIDxfCCK8FtuG4MqVKwoqaQOf1pjcJDpt9GaF7hxSGNQY3GzQ1wYhpjk1aWlyX4tFG71ZoXtd7o0hqBRQ0sOk7pRAG71ZkXtPnNccVAoo6WlSd0qgjd6syL1DCmoMKgWUJDKZJQm00ZsVOElIQU1BpYCShCZzNkUbvVmBk4UU1BBUCihxMImzKdrozYqbNKSg5KBSQImTSZxN0UZvVtzkIQUXL16kITE0LOJk2yuSwOjPpmijNyts8pDC4kwWEKXAIlS23SI9jf5sijZ6s8ImDanSAypQUImTfWycjQVt9GZFTRZStQRUoKASB6NehU4bvVlRk4RUbQEVKKjEwWhXodNGb1bQ3iFVa0AFCipJbLRfg0UbvaGgUYFbqT2gAgWVJHSNjbUxoI3erKCdQwq3QmEDvla4xQvbT5EODrPxVjva6M2K2TmksCgSiyPZgK8NzgjZPop0NMrlCLTRmxWz1+XeGIJKASVORjeBThu9WSF7T5zXHFQKKHE0um+WoY3erJC9QwpqDCoFlDi7ysZczWijNytkkpCCmoJKASWZjOrzfLTRmxUxWUhBDUGlgJKMRrUCnTZ6syImDSkoOagUUJLZqNZM0UZvVsTkIQVYc8RCYmhsW0WcHWRjr0a00ZsVUCEl4ms07/LRRm9WQIWUiK/RvMtHG71ZARVSIv5GcZ8p2ujNiqeQEvG3ycZfbWijNyueQkrE3yg+y0cbvVnxFFIieexhY7AmtNGbFU4hJZJH9UsRaKM3K5xCSiSP6pci0EZvVjiFlEge1c9L0UZvVjiFlEgm8firDW30ZoVTSInkU/VdEWijNyuaQkokn6rXS9FGb1Y0hZRIPufYOKwFbfRmRVNIieSzxcZhLWijNyuaQkoko3gM1oQ2erOiKaRE8qp28pw2erOCKaRE8qr2i0NpozcrmEJKJK9jbCzWgDZ6Q8GiAiahkBJZqtqV57TRmxVMISWSV7Xv8NFGb1YwhZRIZvE4rAVt9GYFU0iJ5FflvaVoozcrlkJKJL8qlyHQRm9WLIWUSH4KqaasWAopkfyqXIZAG72hWFHxklBIiaykkGoKxYqKl4RCSmSls2w8lo42erNiKaRE8vtPNh5LRxu9WbEUUiL5VfnV67TRmxVLISWS39dsPJaONnqzYimkRPL7OxuPpaON3qxYCimRAcRjsQa00ZsVSyElMoB4LNaANnqzYimkRAYQj8Ua0EZvViyFlMgA4rFYA9rozYqlkBIZQDwWa0AbPVmh9plri4VLRSGVxiOPPELbZRSqu9c5bfRiBXILKFBIpaGQGr2qgoo2erDCuAYUKKTSUEhNQjVBRRtTs4K4BxQopNJQSE1GFUFFG1OyQmQJKFBIpfHwww/Tdhml4oOKNqZiBcgWUKCQSuP++++n7TJaRQcVbUzBdjxrQIFCKg2F1CQVG1S0MQXb6atREdwppNLY2Nig7TJ6Rd4DnTamYDusM6k5tq0lO3ToEG2XUTvDxnEJaGMqtuOakzJsW0t2991303YZrWIDCmhjSlYAvbtHtrVkd9111+zxxx+nP5PRKTqggDamZoXIElQKqTQQUkeOHKE/k1EpPqCANnqwgrgHlUIqDYTUvffeS38mo1FFQAFt9GKFcQ0qhVQaCKkDBw7Qn8koVBNQQBs9WYHcgkohlQZC6rbbbqM/k+pVFVBAGz1ZkRRShUNI3XLLLfoM3zgppFaxAulyrwIhpO677z76c6meLvcYK4wmzisRQgr/Zj+XUdDE+SIriHtAgUIqjRBSoPVSo1ZFUNHGlKwQWQIKFFJpLIaUPmw8esUHFW1MxQqQLaBAIZXGYkjpkm8Sig4q2piC7XjWgAKFVBqLIQWPPvoo/T0ZlWKDijamYDt9ISqCO4VUGnFIafX5ZEzuVi17zNZCAdwppNKIQ0oLOydheje9A9vxrEGlkEojDinQBPqoTfP2wYEVIFtQnThxgobE0Ni2loyF1P79++nvSvWm/UUMgRUiW1CxkBga286SsZACnU2NTvEBBbTRgxUkS1CxkBga286SLQspnU2NShUBBbTRixXGPaguXbpEg2JIbDtLtiykQGdTo1BNQAFt9GQFcg2q8+fP06AYEtvOkq0KKZxN6aMyVSsioGxc7DP7zWGzOf9vugRiV0MOVqhjUeGSOX36NA2KIbHtLNmqkAKtm6pXPBZzsrFw0Jwz18LYWGLLILj24HH0ybxZsdxCqsR3+Nh2lmxdSGHdlFah1ykeiznYGEA4XV0cEw0hzI7RJ/VmxXILKbh8+TLb4cGwbSzZupAC/A57rJQtHouerO/vMThzouOiKfrk3qxYriFV2rwU28aSNQkp0E3x6hOPRS/W7xFQuGyjY6IN+gLerFiuIfXSSy/RnR0K28aSNQ0pXfbVJx6LHqzPJwsooC/izYrlGlJQ0iUf276SNQ0puOOOO+hzSJnisejB+vyFeAz0QV/EmxXLPaTefPNNusNDYNtXsjYhBYcOHaLPI+WJx2Jq1t+Pxf2/L/pC3qxY7iH19NNP0x0eAtu+krUNKdAizzrEYzEl6+u4zFu3vKA1+mLerFjuIQWlTKCzbStZl5ACfQVW+eKxmJL19eRnUUBfzJsVK0tIlXI2xbatZF1DChPpCqqyxWMxJevrXdZCrUVfzJsVK0tIQQlnU2y7StY1pAAT6frYTLnisZiK9XN8zIX2/77oC3qzYmULqaNHj86uXLlCdz4Xtl0l6xNSoKAqVzwWU7F+7nKpB/QFvVmxsoUUvPbaa3Tnc2HbVLK+IQUKqjLFYzEV6+dn4n6fCn1Bb1asrCEFQ97ChW1PyVKEFCioyhOPxVSsnyddG7WIvqA3K1b2kBryso9tT8lShRRoMr0s8VhMxfq5QiqFob6ogW1LyVKGFCCojhw5Ql9L8orHYirWzxVSqQxxvym2HSVLHVKBPpA8vHgspmL9PPkizoC+oDcr1mAhBbmXJbBtKJlXSME999yjeaoBxWMxBevjWGlO+34K9EW9WbEGDSnIGVTs9UvmGVKAWxBrnmoY8VhMwfo4bmpH+34K9EW9WbEGDynIFVTstUvmHVKBbkOcXzwWU7A+7rb8AOiLerNiFRFSkGOOir1uyXKFFGCZgibV84nHYl/Wv10v9YC+sDcrVjEhBbhJnufyBPaaJcsZUoHmqvKIx2Jf1r/dVpoH9IW9WbGKCinAh5G3trZokfpir1eyIUIKsFQBl4AKKz/xWOzD+rbb5/UW0Rf3ZsUqLqQC3Cwv9VkVe52SDRVSgcLK1T42Jtuyfp30FsGr0A3wZoUqNqQAZ1UXL16kBeuCvUbJhg6pAGGFu37qPupJHWNjsi3r166T5YvoBnhDoaLCFQkr1FN85o89d8lKCalFBw4cmD344IN0e6WVq2b7Sze7sP6MM6hsAQV0Q7xZkaoIqQBh1We5AnvOkpUYUgHOrjDJrsDq5Qwbl+tYX8YcVJZLvEV0Y7xZkaoKqQAfUsZtX9qeXbHnKlnJIbUIgYUzLNxfXYtDW2scVNaHcfbk/i7eMnSjvFmBqgypRQgsLF1455131oYWe3zJagmpGEIL245Jd5xpKbjWwqXfYTZGrd8imLCSPOulHbNr41KyF9hrsKNI4ZMGn5S+8PHHH1/FwAZcRuEdNSyqPHHiBCtkFRBap06d2t6f3//+99vf+xeEfcVkPPYVZ2O4hGTPUwLPkMJzP/bYY7OXX3552x/+8AcKNcLPf/3rX29PnGPBZ1cKq0b+fvz48f/4zW9+s/W73/3u87/85S9f21iloZEbDZeu7AmRvocNvv+986eiMaDRSfEuGylmMcKZVJ8vIsXaLDxHSQGdOqR+/vOfz15//fXZH//4R1qDJkqs09jhL16cPHzyySdudzhogoZNW/ZE+43LaSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhtbGxsX0m1CfAl8Fz4ox06DpNCc787ezqe3Y8vNHQacqeAOHkdrOrReiYQ4YVwinXB5IRgEMOwj4hhXB6++236X6lNnSdpgZ1zjUGFtHwWcceiLkmXNLRJ/WE0/6c8zk4MBgIbFu8YRAOEcxdQwpnTh5nmOvgNXEGyvZF0kOfZMfBCw2hVexBm2bQa1TAJZf336CY//C4XGkLl7w55+fahtTPfvazXvNNqeAvsNLnMccCfymwY+CBBhFjv5x9pek6np0y50FoAmcLmKhn25pam5A6fvw43d6hDHX2OUUpPzq2Cg2kmP0iAir7StMm0ClTv+MzxHV3UzkGYNOQyjX31AUu0dm+STq4kslxeU9DaZH9EpbCu3zHe0opBi+Knutvhz4Qomz7U2kSUiUHVOBdJ8kzP0WDKbBfwAT54PNPTfW9HMLcD3veEnkOwHUhVUNABQoqf95nUzScwH5Y7CXeMn0u/Uq+xFvG69JvVUjVFFCBLv184U0sVvdETtKAAvthlvVPqSGo2r7rN9QSgxQ8lmMsC6nSJsnbyPWmwxShD7KaJ4CTpD3LAmqwTzyngMs2VkzGscBZdAnldVhIYZkBe/1aoE5anuCH1bwnTDNt30WUBVSW+xZ7a7K4D4O7hHVQfbUJ5SZYSJWwDqqv1HWS6xzG0c7dGVhIVTUPtUyTvzmdr6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + ContentType = "image/png" + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 8: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "
General Hello there!
" + } + Mentions = @( + @{ + Id = 0 + MentionText = "General" + Mentioned = @{ + Conversation = @{ + Id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + DisplayName = "General" + ConversationIdentityType = "channel" + } + } + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 9: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "
TestTag Testing Tags
" + } + Mentions = @( + @{ + Id = 0 + MentionText = "TestTag" + Mentioned = @{ + Tag = @{ + Id = "MjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyM2OGEzZTM2NS1mN2Q5LTRhNTYtYjQ5OS0yNDMzMmE5Y2M1NzIjI3RTMERJZ1Z1ZQ==" + DisplayName = "TestTag" + } + } + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 10: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "
GraphTesting Hello team
" + } + Mentions = @( + @{ + Id = 0 + MentionText = "GraphTesting" + Mentioned = @{ + Conversation = @{ + Id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + DisplayName = "GraphTesting" + ConversationIdentityType = "team" + } + } + } + ) + Reactions = @( + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMessageReply.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMessageReply.md index 093355d11d5..0d1b2167fc3 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMessageReply.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamChannelMessageReply.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannelMessageReply Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "Hello World" + } +} +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannelMessageReply Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamInstalledApp.md index 093355d11d5..344a1e4f6bd 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamInstalledApp.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" +} +New-MgTeamInstalledApp -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamMember.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamMember.md index 093355d11d5..9c9e8d3623e 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamMember.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} +New-MgTeamMember -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} +New-MgTeamMember -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOfferShiftRequest.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOfferShiftRequest.md index 093355d11d5..5b52d6fde3c 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOfferShiftRequest.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOfferShiftRequest.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleOfferShiftRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + SenderShiftId = "SHFT_f7e484ed-fdd6-421c-92d9-0bc9e62e2c29" + SenderMessage = "Having a family emergency, could you take this shift for me?" + RecipientUserId = "fe278b61-21ac-4872-8b41-1962bbb98e3c" +} +New-MgTeamScheduleOfferShiftRequest -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleOfferShiftRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOpenShift.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOpenShift.md index 093355d11d5..5e48c4e3cca 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOpenShift.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOpenShift.md @@ -1,18 +1,40 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleOpenShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Id = "OPNSHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" + SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + SharedOpenShift = @{ + Notes = "InventoryManagement" + OpenSlotCount = 2 + DisplayName = "Dayshift" + StartDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z") + EndDateTime = [System.DateTime]::Parse("2018-10-04T09: 50: 45.332Z") + Theme = "white" + Activities = @( + @{ + IsPaid = $true + StartDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z") + EndDateTime = [System.DateTime]::Parse("2018-10-04T01: 58: 45.340Z") + Code = "" + DisplayName = "Lunch" + } + ) + } + DraftOpenShift = $null + CreatedDateTime = [System.DateTime]::Parse("2019-03-14T04: 32: 51.451Z") + LastModifiedDateTime = [System.DateTime]::Parse("2019-03-14T05: 32: 51.451Z") + LastModifiedBy = @{ + Application = $null + Device = $null + Conversation = $null + User = @{ + Id = "366c0b19-49b1-41b5-a03f-9f3887bd0ed8" + DisplayName = "JohnDoe" + } + } +} +New-MgTeamScheduleOpenShift -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleOpenShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOpenShiftChangeRequest.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..e49ac34efd1 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleOpenShiftChangeRequest.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleOpenShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + SenderMessage = "Can I take this shift?" + OpenShiftId = "577b75d2-a927-48c0-a5d1-dc984894e7b8" +} +New-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleOpenShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleSchedulingGroup.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleSchedulingGroup.md index 093355d11d5..c2fef1a223f 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleSchedulingGroup.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleSchedulingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Cashiers" + IsActive = $true + UserIds = @( + "c5d0c76b-80c4-481c-be50-923cd8d680a1" + "2a4296b3-a28a-44ba-bc66-0274b9b95851" + ) +} +New-MgTeamScheduleSchedulingGroup -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleSchedulingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleShift.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleShift.md index 093355d11d5..00ae35bfce1 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleShift.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleShift.md @@ -1,18 +1,44 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" + UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + SharedShift = @{ + DisplayName = "Day shift" + Notes = "Please do inventory as part of your shift." + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + Theme = "blue" + Activities = @( + @{ + IsPaid = $true + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") + Code = "" + DisplayName = "Lunch" + } + ) + } + DraftShift = @{ + DisplayName = "Day shift" + Notes = "Please do inventory as part of your shift." + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + Theme = "blue" + Activities = @( + @{ + IsPaid = $true + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") + Code = "" + DisplayName = "Lunch" + } + ) + } +} +New-MgTeamScheduleShift -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleSwapShiftChangeRequest.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..6871b318d41 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleSwapShiftChangeRequest.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleSwapShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + SenderShiftId = "5ad10161-6524-4c7c-9beb-4e8677ba2f6d" + SenderMessage = "I can't make my shift, any chance we can swap?" + RecipientUserId = "567c8ea5-9e32-422a-a663-8270201699cd" + RecipientShiftId = "e73408ca-3ea5-4bbf-96a8-2e06c95f7a2c" +} +New-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleSwapShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeCard.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeCard.md index 093355d11d5..7846520be6a 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeCard.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeCard.md @@ -1,18 +1,39 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleTimeCard Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + OnBehalfOfUserId = "a3601044-a1b5-438e-b742-f78d01d68a67" + ClockInEvent = @{ + DateTime = [System.DateTime]::Parse("2019-03-18T00:00:00.000Z") + AtApprovedLocation = $true + Notes = @{ + Content = "Started late due to traffic in CA 237" + ContentType = "text" + } + } + Notes = @{ + Content = "8 To 5 Inventory management" + ContentType = "text" + } + Breaks = @( + @{ + BreakId = "string" + Notes = @{ + Content = "Lunch break" + ContentType = "text" + } + Start = @{ + DateTime = [System.DateTime]::Parse("2019-03-18T02:00:00.000Z") + AtApprovedLocation = $true + Notes = @{ + Content = "Reduced break to make up for lost time" + ContentType = "text" + } + } + } + ) +} +New-MgTeamScheduleTimeCard -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleTimeCard Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeOff.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeOff.md index 093355d11d5..09f871a00b9 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeOff.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeOff.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleTimeOff Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + SharedTimeOff = @{ + TimeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + StartDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + Theme = "white" + } + DraftTimeOff = @{ + TimeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + StartDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + Theme = "pink" + } +} +New-MgTeamScheduleTimeOff -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleTimeOff Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeOffReason.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeOffReason.md index 093355d11d5..3452d478074 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamScheduleTimeOffReason.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleTimeOffReason Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Vacation" + IconType = "plane" + IsActive = $true +} +New-MgTeamScheduleTimeOffReason -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleTimeOffReason Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamTag.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamTag.md index 093355d11d5..dac215e85e0 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamTag.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamTag.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Finance" + Members = @( + @{ + UserId = "92f6952f-61ca-4a94-8910-508a240bc167" + } + @{ + UserId = "085d800c-b86b-4bfc-a857-9371ad1caf29" + } + ) +} +New-MgTeamTag -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamTagMember.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamTagMember.md index 093355d11d5..16c383826dd 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamTagMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamTagMember.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamTagMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + UserId = "97f62344-57dc-409c-88ad-c4af14158ff5" +} +New-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamTagMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamworkWorkforceIntegration.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamworkWorkforceIntegration.md index 093355d11d5..3d39296fb89 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "displayName-value" + ApiVersion = 99 + Encryption = @{ + Protocol = "protocol-value" + Secret = "secret-value" + } + IsActive = $true + Url = "url-value" + Supports = "supports-value" +} +New-MgTeamworkWorkforceIntegration -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgUserTeamworkInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/New-MgUserTeamworkInstalledApp.md index 093355d11d5..44315389fb1 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgUserTeamworkInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgUserTeamworkInstalledApp.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTeamworkInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" +} +New-MgUserTeamworkInstalledApp -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgAppCatalogTeamApp.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgAppCatalogTeamApp.md index 093355d11d5..772453c5e48 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgAppCatalogTeamApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgAppCatalogTeamApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgAppCatalogTeamApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgAppCatalogTeamApp -TeamsAppId $teamsAppId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatInstalledApp.md index 093355d11d5..c9b09294f71 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatMember.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatMember.md index 093355d11d5..f488c163441 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatPinnedMessage.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatPinnedMessage.md index 093355d11d5..98f049818d3 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatPinnedMessage.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatPinnedMessage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgChatPinnedMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgChatPinnedMessage -ChatId $chatId -PinnedChatMessageInfoId $pinnedChatMessageInfoId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgChatPinnedMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatTab.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatTab.md index 093355d11d5..fd001facd28 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatTab.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgChatTab.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannel.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannel.md index 093355d11d5..8a8ef994ba2 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannel.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannel.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannel -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelEmail.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelEmail.md index 093355d11d5..bcee4a41896 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelEmail.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelEmail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamChannelEmail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannelEmail -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamChannelEmail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelMember.md index 093355d11d5..85c27485640 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelSharedWithTeam.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelSharedWithTeam.md index 093355d11d5..51a780db7db 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelSharedWithTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamChannelSharedWithTeam.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamChannelSharedWithTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgTeamChannelSharedWithTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgTeamChannelSharedWithTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamChannelSharedWithTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamInstalledApp.md index 093355d11d5..adc66855ad1 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamMember.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamMember.md index 093355d11d5..6b8152c9664 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleOpenShift.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleOpenShift.md index 093355d11d5..589613a7e42 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleOpenShift.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleOpenShift.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleOpenShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleOpenShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleSchedulingGroup.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleSchedulingGroup.md index 093355d11d5..8d6489822f4 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleSchedulingGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleSchedulingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleSchedulingGroup -TeamId $teamId -SchedulingGroupId $schedulingGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleSchedulingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleShift.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleShift.md index 093355d11d5..ae7c5ad23a8 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleShift.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleShift.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeCard.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeCard.md index 093355d11d5..87d3cda600d 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeCard.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeCard.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleTimeCard Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleTimeCard -TeamId $teamId -TimeCardId $timeCardId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleTimeCard Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOff.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOff.md index 093355d11d5..f239484debf 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOff.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOff.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleTimeOff Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleTimeOff -TeamId $teamId -TimeOffId $timeOffId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleTimeOff Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOffReason.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOffReason.md index 093355d11d5..ccb9258089d 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOffReason.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleTimeOffReason Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleTimeOffReason -TeamId $teamId -TimeOffReasonId $timeOffReasonId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleTimeOffReason Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOffRequest.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOffRequest.md index 093355d11d5..dc587b1ac9a 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOffRequest.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamScheduleTimeOffRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleTimeOffRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleTimeOffRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamTag.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamTag.md index 093355d11d5..42b266709a9 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamTag.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamTag.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamTagMember.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamTagMember.md index 093355d11d5..b51074f7d08 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamTagMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamTagMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamTagMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamTagMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamworkWorkforceIntegration.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamworkWorkforceIntegration.md index 093355d11d5..f857bac3fb1 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgUserTeamworkInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgUserTeamworkInstalledApp.md index 093355d11d5..b6fe582e58c 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgUserTeamworkInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgUserTeamworkInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTeamworkInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Restart-MgTeamworkDevice.md b/src/Teams/Teams/examples/v1.0-beta/Restart-MgTeamworkDevice.md index 093355d11d5..f45fdcaa480 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Restart-MgTeamworkDevice.md +++ b/src/Teams/Teams/examples/v1.0-beta/Restart-MgTeamworkDevice.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restart-MgTeamworkDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Restart-MgTeamworkDevice -TeamworkDeviceId $teamworkDeviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restart-MgTeamworkDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Send-MgChatActivityNotification.md b/src/Teams/Teams/examples/v1.0-beta/Send-MgChatActivityNotification.md index 093355d11d5..ba3d6c09451 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Send-MgChatActivityNotification.md +++ b/src/Teams/Teams/examples/v1.0-beta/Send-MgChatActivityNotification.md @@ -1,18 +1,136 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgChatActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/chats/{chatId}" + } + ActivityType = "taskCreated" + PreviewText = @{ + Content = "New Task Created" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "taskId" + Value = "Task 12322" + } + ) +} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Send-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Send-MgChatActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/chats/{chatId}/messages/{messageId}" + } + ActivityType = "approvalRequired" + PreviewText = @{ + Content = "Deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "approvalTaskId" + Value = "2020AAGGTAPP" + } + ) +} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Send-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Send-MgChatActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "text" + Value = "Deployment Approvals Channel" + WebUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000" + } + ActivityType = "deploymentApprovalRequired" + PreviewText = @{ + Content = "New deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) +} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Send-MgChatActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/chats/19:1c3af46e9e0f4a5293343c8813c47619@thread.v2" + } + ActivityType = "taskCreated" + PreviewText = @{ + Content = "New Task Created" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.chatMembersNotificationRecipient" + ChatId = "19:1c3af46e9e0f4a5293343c8813c47619@thread.v2" + } + TemplateParameters = @( + @{ + Name = "taskId" + Value = "Task 12322" + } + ) +} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Send-MgChatActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/chats/{chatId}/messages/{messageId}" + } + ActivityType = "approvalRequired" + PreviewText = @{ + Content = "Deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "jacob@contoso.com" + } + TemplateParameters = @( + @{ + Name = "approvalTaskId" + Value = "2020AAGGTAPP" + } + ) +} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Send-MgTeamActivityNotification.md b/src/Teams/Teams/examples/v1.0-beta/Send-MgTeamActivityNotification.md index 093355d11d5..5e78db96d97 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Send-MgTeamActivityNotification.md +++ b/src/Teams/Teams/examples/v1.0-beta/Send-MgTeamActivityNotification.md @@ -1,18 +1,258 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgTeamActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/teams/{teamId}" + } + ActivityType = "pendingFinanceApprovalRequests" + PreviewText = @{ + Content = "Internal spending team has a pending finance approval requests" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "pendingRequestCount" + Value = "5" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Send-MgTeamActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/teams/{teamId}/channels/{channelId}/tabs/{tabId}" + } + ActivityType = "reservationUpdated" + PreviewText = @{ + Content = "You have moved up the queue" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "reservationId" + Value = "TREEE433" + } + @{ + Name = "currentSlot" + Value = "23" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Send-MgTeamActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "text" + Value = "Deployment Approvals Channel" + WebUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000" + } + ActivityType = "deploymentApprovalRequired" + PreviewText = @{ + Content = "New deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Send-MgTeamActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/teams/e8bece96-d393-4b9b-b8da-69cedef1a7e7" + } + ActivityType = "pendingFinanceApprovalRequests" + PreviewText = @{ + Content = "Internal spending team has a pending finance approval requests" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.channelMembersNotificationRecipient" + TeamId = "e8bece96-d393-4b9b-b8da-69cedef1a7e7" + ChannelId = "19:3d61a2309f094f4a9310b20f1db37520@thread.tacv2" + } + TemplateParameters = @( + @{ + Name = "pendingRequestCount" + Value = "5" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Send-MgTeamActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/teams/{teamId}/channels/{channelId}/tabs/{tabId}" + } + ActivityType = "reservationUpdated" + PreviewText = @{ + Content = "You have moved up the queue" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "reservationId" + Value = "TREEE433" + } + @{ + Name = "currentSlot" + Value = "23" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Send-MgTeamActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/teams/{teamId}" + } + ActivityType = "pendingFinanceApprovalRequests" + PreviewText = @{ + Content = "Internal spending team has a pending finance approval requests" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "pendingRequestCount" + Value = "5" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Send-MgTeamActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/teams/e8bece96-d393-4b9b-b8da-69cedef1a7e7" + } + ActivityType = "pendingFinanceApprovalRequests" + PreviewText = @{ + Content = "Internal spending team has a pending finance approval requests" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.teamMembersNotificationRecipient" + TeamId = "e8bece96-d393-4b9b-b8da-69cedef1a7e7" + } + TemplateParameters = @( + @{ + Name = "pendingRequestCount" + Value = "5" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 8: Using the Send-MgTeamActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "text" + Value = "Deployment Approvals Channel" + WebUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000" + } + ActivityType = "deploymentApprovalRequired" + PreviewText = @{ + Content = "New deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 9: Using the Send-MgTeamActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/teams/{teamId}/channels/{channelId}/tabs/{tabId}" + } + ActivityType = "reservationUpdated" + PreviewText = @{ + Content = "You have moved up the queue" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "jacob@contoso.com" + } + TemplateParameters = @( + @{ + Name = "reservationId" + Value = "TREEE433" + } + @{ + Name = "currentSlot" + Value = "23" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Send-MgTeamworkActivityNotificationToRecipient.md b/src/Teams/Teams/examples/v1.0-beta/Send-MgTeamworkActivityNotificationToRecipient.md index 093355d11d5..7d9356ef34b 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Send-MgTeamworkActivityNotificationToRecipient.md +++ b/src/Teams/Teams/examples/v1.0-beta/Send-MgTeamworkActivityNotificationToRecipient.md @@ -1,18 +1,75 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgTeamworkActivityNotificationToRecipient Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/{teamsAppId}" + } + ActivityType = "pendingFinanceApprovalRequests" + PreviewText = @{ + Content = "Internal spending team has a pending finance approval requests" + } + Recipients = @( + @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "ab88234e-0874-477c-9638-d144296ed04f" + } + @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "01c64f53-69aa-42c7-9b7f-9f75195d6bfc" + } + ) + TemplateParameters = @( + @{ + Name = "pendingRequestCount" + Value = "5" + } + ) +} +Send-MgTeamworkActivityNotificationToRecipient -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Send-MgTeamworkActivityNotificationToRecipient Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Send-MgTeamworkActivityNotificationToRecipient Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "text" + Value = "Deployment Approvals Channel" + WebUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000" + } + ActivityType = "deploymentApprovalRequired" + PreviewText = @{ + Content = "New deployment requires your approval" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) + Recipients = @( + @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "ab88234e-0874-477c-9638-d144296ed04f" + } + @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "01c64f53-69aa-42c7-9b7f-9f75195d6bfc" + } + ) +} +Send-MgTeamworkActivityNotificationToRecipient -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Send-MgTeamworkActivityNotificationToRecipient Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Start-MgTeamScheduleTimeCardBreak.md b/src/Teams/Teams/examples/v1.0-beta/Start-MgTeamScheduleTimeCardBreak.md index 093355d11d5..a47ffb9b315 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Start-MgTeamScheduleTimeCardBreak.md +++ b/src/Teams/Teams/examples/v1.0-beta/Start-MgTeamScheduleTimeCardBreak.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Start-MgTeamScheduleTimeCardBreak Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + AtAprovedLocation = $true + Notes = @{ + ContentType = "text" + Content = "start break smaple notes" + } +} +Start-MgTeamScheduleTimeCardBreak -TeamId $teamId -TimeCardId $timeCardId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Start-MgTeamScheduleTimeCardBreak Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Start-MgTeamworkDeviceDiagnostic.md b/src/Teams/Teams/examples/v1.0-beta/Start-MgTeamworkDeviceDiagnostic.md index 093355d11d5..ff5309a79a5 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Start-MgTeamworkDeviceDiagnostic.md +++ b/src/Teams/Teams/examples/v1.0-beta/Start-MgTeamworkDeviceDiagnostic.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Start-MgTeamworkDeviceDiagnostic Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Start-MgTeamworkDeviceDiagnostic -TeamworkDeviceId $teamworkDeviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Start-MgTeamworkDeviceDiagnostic Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Undo-MgTeamChannelMessageSoftDelete.md b/src/Teams/Teams/examples/v1.0-beta/Undo-MgTeamChannelMessageSoftDelete.md index 093355d11d5..7a2a78c3210 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Undo-MgTeamChannelMessageSoftDelete.md +++ b/src/Teams/Teams/examples/v1.0-beta/Undo-MgTeamChannelMessageSoftDelete.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Undo-MgTeamChannelMessageSoftDelete Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Undo-MgTeamChannelMessageSoftDelete -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Undo-MgTeamChannelMessageSoftDelete Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Undo-MgTeamChannelMessageSoftDelete Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Undo-MgTeamChannelMessageSoftDelete -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - +This example shows how to use the Undo-MgTeamChannelMessageSoftDelete Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgChat.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgChat.md index 093355d11d5..7d3d89e4caf 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgChat.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgChat.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = "Group chat title update" +} +Update-MgChat -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgChatInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgChatInstalledApp.md index 093355d11d5..02b587bcdc1 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgChatInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgChatInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Update-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgChatTab.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgChatTab.md index 093355d11d5..81a3376c7ea 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgChatTab.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgChatTab.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "My Contoso Tab - updated again" +} +Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeam.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeam.md index 093355d11d5..a717cb3ca28 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeam.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeam.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + IsMembershipLimitedToOwners = $true + MemberSettings = @{ + AllowCreateUpdateChannels = $true + } + MessagingSettings = @{ + AllowUserEditMessages = $true + AllowUserDeleteMessages = $true + } + FunSettings = @{ + AllowGiphy = $true + GiphyContentRating = "strict" + } + DiscoverySettings = @{ + ShowInTeamsSearchAndSuggestions = $true + } +} +Update-MgTeam -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannel.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannel.md index 093355d11d5..e9df5182227 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannel.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannel.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "UpdateChannelModeration" + Description = "Update channel moderation." + ModerationSettings = @{ + UserNewMessageRestriction = "moderators" + ReplyRestriction = "everyone" + AllowNewMessageFromBots = $true + AllowNewMessageFromConnectors = $true + } +} +Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannelMember.md index 093355d11d5..037e9ddb8b3 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannelMember.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) +} +Update-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) +} +Update-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannelMessage.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannelMessage.md index 093355d11d5..d7f4d21e708 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannelMessage.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamChannelMessage.md @@ -1,18 +1,419 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + PolicyViolation = @{ + PolicyTip = @{ + GeneralText = "This item has been blocked by the administrator." + ComplianceUrl = "https://contoso.com/dlp-policy-page" + MatchedConditionDescriptions = @( + "Credit Card Number" + ) + } + VerdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + DlpAction = "BlockAccess" + } +} +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + MessageType = "message" + Subject = $null + Summary = $null + Importance = "normal" + Locale = "en-us" + From = @{ + Application = $null + Device = $null + User = @{ + Id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + DisplayName = "Sumit Gupta" + UserIdentityType = "aadUser" + } + Conversation = $null + } + Body = @{ + ContentType = "text" + Content = "Edit text only" + } + Attachments = @( + ) + Mentions = @( + ) + Reactions = @( + ) +} +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + MessageType = "message" + DeletedDateTime = $null + Subject = $null + Summary = $null + Importance = "normal" + Locale = "en-us" + From = @{ + Application = $null + Device = $null + Conversation = $null + User = @{ + Id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + DisplayName = "Sumit Gupta" + UserIdentityType = "aadUser" + } + } + Body = @{ + ContentType = "html" + Content = "
+
+
+
+
RaghavTestGlobalBot YEAH" + } + Attachments = @( + ) + Mentions = @( + @{ + Id = 0 + MentionText = "Raghav" + Mentioned = @{ + Application = $null + Device = $null + Conversation = $null + User = @{ + Id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + DisplayName = "Raghav Mankad" + UserIdentityType = "aadUser" + } + } + } + @{ + Id = 1 + MentionText = "TestGlobalBot" + Mentioned = @{ + Application = @{ + Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + DisplayName = "TestGlobalBot" + ApplicationIdentityType = "bot" + } + Device = $null + Conversation = $null + User = $null + } + } + ) + Reactions = @( + ) +} +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Update-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + MessageType = "message" + Subject = $null + Summary = $null + Importance = "normal" + Locale = "en-us" + From = @{ + Application = $null + Device = $null + User = @{ + Id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + DisplayName = "Sumit Gupta" + UserIdentityType = "aadUser" + } + Conversation = $null + } + Body = @{ + ContentType = "html" + Content = "

text

" + } + Attachments = @( + @{ + Id = "e8f78756199240b88448ae0fc6db112d" + ContentType = "application/vnd.microsoft.card.hero" + ContentUrl = $null + Content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here’s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "😃😃 click me 😃😃", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + Name = $null + ThumbnailUrl = $null + } + @{ + Id = "638464e32834471ea202007da60a5ae6" + ContentType = "application/vnd.microsoft.card.hero" + ContentUrl = $null + Content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here’s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + Name = $null + ThumbnailUrl = $null + } + ) + Mentions = @( + ) + Reactions = @( + ) +} +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Update-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + MessageType = "message" + Subject = $null + Summary = $null + Importance = "normal" + Locale = "en-us" + From = @{ + Application = $null + Device = $null + User = @{ + Id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + DisplayName = "Sumit Gupta" + UserIdentityType = "aadUser" + } + Conversation = $null + } + Body = @{ + ContentType = "html" + Content = "

text

" + } + Attachments = @( + @{ + Id = "e8f78756199240b88448ae0fc6db112d" + ContentType = "application/vnd.microsoft.card.hero" + ContentUrl = $null + Content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here’s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "😃😃 click me 😃😃", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + Name = $null + ThumbnailUrl = $null + } + @{ + Id = "638464e32834471ea202007da60a5ae6" + ContentType = "application/vnd.microsoft.card.hero" + ContentUrl = $null + Content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here’s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + Name = $null + ThumbnailUrl = $null + } + ) + Mentions = @( + ) + Reactions = @( + @{ + ReactionType = "angry" + CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + User = @{ + Application = $null + Device = $null + User = @{ + Id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + DisplayName = $null + UserIdentityType = "aadUser" + } + } + } + @{ + ReactionType = "laugh" + CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + User = @{ + Application = $null + Device = $null + User = @{ + Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + DisplayName = $null + UserIdentityType = "aadUser" + } + } + } + @{ + ReactionType = "like" + CreatedDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + User = @{ + Application = $null + Device = $null + User = @{ + Id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + DisplayName = $null + UserIdentityType = "aadUser" + } + } + } + @{ + ReactionType = "like" + CreatedDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + User = @{ + Application = $null + Device = $null + User = @{ + Id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + DisplayName = $null + UserIdentityType = "aadUser" + } + } + } + @{ + ReactionType = "like" + CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + User = @{ + Application = $null + Device = $null + User = @{ + Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + DisplayName = $null + UserIdentityType = "aadUser" + } + } + } + @{ + ReactionType = "heart" + CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + User = @{ + Application = $null + Device = $null + User = @{ + Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + DisplayName = $null + UserIdentityType = "aadUser" + } + } + } + @{ + ReactionType = "sad" + CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + User = @{ + Application = $null + Device = $null + User = @{ + Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + DisplayName = $null + UserIdentityType = "aadUser" + } + } + } + @{ + ReactionType = "surprised" + CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + User = @{ + Application = $null + Device = $null + User = @{ + Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + DisplayName = $null + UserIdentityType = "aadUser" + } + } + } + ) +} +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamInstalledApp.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamInstalledApp.md index 093355d11d5..4a1d0192432 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Update-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamMember.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamMember.md index 093355d11d5..83b8cbdcd60 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamMember.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) +} +Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamTag.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamTag.md index 093355d11d5..f9cc3b54e7c 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamTag.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamTag.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Finance" +} +Update-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkDeviceSoftware.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkDeviceSoftware.md index 093355d11d5..0d16abe3d17 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkDeviceSoftware.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkDeviceSoftware.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamworkDeviceSoftware Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + SoftwareType = "teamsClient" + SoftwareVersion = "1.0.96.22" +} +Update-MgTeamworkDeviceSoftware -TeamworkDeviceId $teamworkDeviceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamworkDeviceSoftware Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkTeamAppSetting.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkTeamAppSetting.md index 093355d11d5..dffb9f7c71f 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkTeamAppSetting.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkTeamAppSetting.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamworkTeamAppSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.teamsAppSettings" + IsChatResourceSpecificConsentEnabled = "true" +} +Update-MgTeamworkTeamAppSetting -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamworkTeamAppSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkWorkforceIntegration.md b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkWorkforceIntegration.md index 093355d11d5..8e95881e7fd 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/Teams/examples/v1.0-beta/Update-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "displayName-value" + ApiVersion = 99 + Encryption = @{ + Protocol = "protocol-value" + Secret = "secret-value" + } + IsActive = $true + Url = "url-value" + Supports = "supports-value" +} +Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Clear-MgUserPresence.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Clear-MgUserPresence.md index 093355d11d5..fe8662d194e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Clear-MgUserPresence.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Clear-MgUserPresence.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Clear-MgUserPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + SessionId = "22553876-f5ab-4529-bffb-cfe50aa89f87" +} +Clear-MgUserPresence -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Clear-MgUserPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Complete-MgUserOutlookTask.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Complete-MgUserOutlookTask.md index 093355d11d5..3f1f707041e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Complete-MgUserOutlookTask.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Complete-MgUserOutlookTask.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Complete-MgUserOutlookTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Complete-MgUserOutlookTask -UserId $userId -OutlookTaskId $outlookTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Complete-MgUserOutlookTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserMemberGroup.md index 093355d11d5..51206224545 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserMemberGroup.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgUserMemberGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64-b130-f4eb9e75525e" + "4fe90ae7-065a-478b-9400-e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgUserMemberGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserMemberObject.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserMemberObject.md index 093355d11d5..c3dcebd3b87 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserMemberObject.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserMemberObject.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgUserMemberObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Ids = @( + "80a963dd-84af-4eb8-b2a6-781e444d4fb0" + "62e90394-69f5-4237-9190-012177145e10" + "86a64f51-3a64-4cc6-a8c8-6b8f000c0f52" + "ac38546e-ddf3-437a-ac5c-27a94cd7a0f1" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberObject -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgUserMemberObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolder.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolder.md index 093355d11d5..a7ab132ebe2 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolder.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMessage.md index 093355d11d5..2bb387173c0 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMessage.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteNotebook.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteNotebook.md index 093355d11d5..207cf1c94ce 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteNotebook.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteNotebook.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserOnenoteNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenotePageToSection.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenotePageToSection.md index 093355d11d5..ec711fd2458 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenotePageToSection.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenotePageToSection.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserOnenotePageToSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Id = "id-value" + GroupId = "groupId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenotePageToSection -UserId $userId -OnenotePageId $onenotePageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserOnenotePageToSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteSectionToNotebook.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteSectionToNotebook.md index 093355d11d5..31494b93715 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteSectionToNotebook.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteSectionToNotebook.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserOnenoteSectionToNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToNotebook -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserOnenoteSectionToNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteSectionToSectionGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteSectionToSectionGroup.md index 093355d11d5..a6df0ab32dc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteSectionToSectionGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserOnenoteSectionToSectionGroup.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserOnenoteSectionToSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToSectionGroup -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserOnenoteSectionToSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Export-MgUserPersonalData.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Export-MgUserPersonalData.md index 093355d11d5..4121a126eb0 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Export-MgUserPersonalData.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Export-MgUserPersonalData.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Export-MgUserPersonalData Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + StorageLocation = "storageLocation-value" +} +Export-MgUserPersonalData -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Export-MgUserPersonalData Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Find-MgUserMeetingTime.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Find-MgUserMeetingTime.md index 093355d11d5..a09f8852bcd 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Find-MgUserMeetingTime.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Find-MgUserMeetingTime.md @@ -1,18 +1,48 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Find-MgUserMeetingTime Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Attendees = @( + @{ + Type = "required" + EmailAddress = @{ + Name = "Alex Wilbur" + Address = "alexw@contoso.onmicrosoft.com" + } + } + ) + LocationConstraint = @{ + IsRequired = "false" + SuggestLocation = "false" + Locations = @( + @{ + ResolveAvailability = "false" + DisplayName = "Conf room Hood" + } + ) + } + TimeConstraint = @{ + ActivityDomain = "work" + TimeSlots = @( + @{ + Start = @{ + DateTime = "2019-04-16T09:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-04-18T17:00:00" + TimeZone = "Pacific Standard Time" + } + } + ) + } + IsOrganizerOptional = "false" + MeetingDuration = "PT1H" + ReturnSuggestionReasons = "true" + MinimumAttendeePercentage = "100" +} +# A UPN can also be used as -UserId. +Find-MgUserMeetingTime -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Find-MgUserMeetingTime Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserDefaultCalendarSchedule.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserDefaultCalendarSchedule.md index 093355d11d5..aabc8af8cec 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserDefaultCalendarSchedule.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserDefaultCalendarSchedule.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDefaultCalendarSchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Schedules = @( + "adelev@contoso.onmicrosoft.com" + "meganb@contoso.onmicrosoft.com" + ) + StartTime = @{ + DateTime = "2019-03-15T09:00:00" + TimeZone = "Pacific Standard Time" + } + EndTime = @{ + DateTime = "2019-03-15T18:00:00" + TimeZone = "Pacific Standard Time" + } + AvailabilityViewInterval = 60 +} +# A UPN can also be used as -UserId. +Get-MgUserDefaultCalendarSchedule -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDefaultCalendarSchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMailTip.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMailTip.md index 093355d11d5..f683fd04749 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMailTip.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMailTip.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailTip Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + EmailAddresses = @( + "danas@contoso.onmicrosoft.com" + "fannyd@contoso.onmicrosoft.com" + ) + MailTipsOptions = "automaticReplies, mailboxFullStatus" +} +# A UPN can also be used as -UserId. +Get-MgUserMailTip -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailTip Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMemberGroup.md index 093355d11d5..33ac2fa0597 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMemberGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMemberGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMemberGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMemberObject.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMemberObject.md index 093355d11d5..16ca304671f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMemberObject.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserMemberObject.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMemberObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberObject -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMemberObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserOnenoteNotebookFromWebUrl.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserOnenoteNotebookFromWebUrl.md index 093355d11d5..f14c810a39b 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserOnenoteNotebookFromWebUrl.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserOnenoteNotebookFromWebUrl.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteNotebookFromWebUrl Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + WebUrl = "webUrl value" +} +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookFromWebUrl -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteNotebookFromWebUrl Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Initialize-MgUserServicePlan.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Initialize-MgUserServicePlan.md index 093355d11d5..26be5725d22 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Initialize-MgUserServicePlan.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Initialize-MgUserServicePlan.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Initialize-MgUserServicePlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + ServicePlanId = "28f42d6f-8034-4a0f-9d8a-a218a63b3299" + SkuId = "465a2a90-5e59-456d-a7b8-127b9fb2e484" +} +# A UPN can also be used as -UserId. +Initialize-MgUserServicePlan -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Initialize-MgUserServicePlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEvent.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEvent.md index 093355d11d5..c67608fef6e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEvent.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEvent.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAcceptUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Comment = "comment-value" + SendResponse = $true +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEvent -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAcceptUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventTentatively.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventTentatively.md index 093355d11d5..45686d6a7d6 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventTentatively.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventTentatively.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAcceptUserEventTentatively Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Comment = "I may not be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEventTentatively -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAcceptUserEventTentatively Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserPendingAccessReviewInstanceRecommendation.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserPendingAccessReviewInstanceRecommendation.md index 093355d11d5..b8fc52747c8 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserPendingAccessReviewInstanceRecommendation.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserPendingAccessReviewInstanceRecommendation.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAcceptUserPendingAccessReviewInstanceRecommendation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserPendingAccessReviewInstanceRecommendation -UserId $userId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAcceptUserPendingAccessReviewInstanceRecommendation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgBatchUserPendingAccessReviewInstanceRecordDecision.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgBatchUserPendingAccessReviewInstanceRecordDecision.md index 093355d11d5..a2dfcad3086 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgBatchUserPendingAccessReviewInstanceRecordDecision.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgBatchUserPendingAccessReviewInstanceRecordDecision.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgBatchUserPendingAccessReviewInstanceRecordDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Decision = "Approve" + Justification = "All principals with access need continued access to the resource (Marketing Group) as all the principals are on the marketing team" + ResourceId = "a5c51e59-3fcd-4a37-87a1-835c0c21488a" +} +# A UPN can also be used as -UserId. +Invoke-MgBatchUserPendingAccessReviewInstanceRecordDecision -UserId $userId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgBatchUserPendingAccessReviewInstanceRecordDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCreateOrGetUserOnlineMeeting.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCreateOrGetUserOnlineMeeting.md index 093355d11d5..f47afd62c2e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCreateOrGetUserOnlineMeeting.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCreateOrGetUserOnlineMeeting.md @@ -1,18 +1,56 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgCreateOrGetUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + StartDateTime = [System.DateTime]::Parse("2020-02-06T01:49:21.3524945+00:00") + EndDateTime = [System.DateTime]::Parse("2020-02-06T02:19:21.3524945+00:00") + Subject = "Create a meeting with customId provided" + ExternalId = "7eb8263f-d0e0-4149-bb1c-1f0476083c56" + Participants = @{ + Attendees = @( + @{ + Identity = @{ + User = @{ + Id = "1f35f2e6-9cab-44ad-8d5a-b74c14720000" + } + } + Role = "presenter" + Upn = "test1@contoso.com" + } + ) + } +} +# A UPN can also be used as -UserId. +Invoke-MgCreateOrGetUserOnlineMeeting -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgCreateOrGetUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgCreateOrGetUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + ChatInfo = @{ + ThreadId = "19:7ebda77322dd4505ac4dedb5b67df076@thread.tacv2" + } + StartDateTime = [System.DateTime]::Parse("2020-02-06T01:49:21.3524945+00:00") + EndDateTime = [System.DateTime]::Parse("2020-02-06T02:19:21.3524945+00:00") + ExternalId = "7eb8263f-d0e0-4149-bb1c-1f0476083c56" + Participants = @{ + Attendees = @( + @{ + Identity = @{ + User = @{ + Id = "1f35f2e6-9cab-44ad-8d5a-b74c14720000" + } + } + Upn = "test1@contoso.com" + } + ) + } + Subject = "Create a meeting with customId provided" +} +# A UPN can also be used as -UserId. +Invoke-MgCreateOrGetUserOnlineMeeting -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgCreateOrGetUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDeclineUserEvent.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDeclineUserEvent.md index 093355d11d5..d3f053a702e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDeclineUserEvent.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDeclineUserEvent.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgDeclineUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Comment = "I won't be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgDeclineUserEvent -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgDeclineUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDismissUserEventReminder.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDismissUserEventReminder.md index 093355d11d5..96e40d71f32 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDismissUserEventReminder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDismissUserEventReminder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgDismissUserEventReminder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgDismissUserEventReminder -UserId $userId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgDismissUserEventReminder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgExtractUserSecurityInformationProtectionSensitivityLabelContentLabel.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgExtractUserSecurityInformationProtectionSensitivityLabelContentLabel.md index 093355d11d5..ea089466182 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgExtractUserSecurityInformationProtectionSensitivityLabelContentLabel.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgExtractUserSecurityInformationProtectionSensitivityLabelContentLabel.md @@ -1,18 +1,44 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgExtractUserSecurityInformationProtectionSensitivityLabelContentLabel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + ContentInfo = @{ + Format = "default" + Identifier = "MyDoc.docx" + State = "rest" + Metadata = @( + @{ + Name = "MSIP_Label_0ed12617-d0ef-4053-b8e4-ecf5bcf2ffb3_Enabled" + Value = "True" + } + @{ + Name = "MSIP_Label_0ed12617-d0ef-4053-b8e4-ecf5bcf2ffb3_Method" + Value = "Standard" + } + @{ + Name = "MSIP_Label_0ed12617-d0ef-4053-b8e4-ecf5bcf2ffb3_SetDate" + Value = "1/1/0001 12:00:00 AM" + } + @{ + Name = "MSIP_Label_0ed12617-d0ef-4053-b8e4-ecf5bcf2ffb3_SiteId" + Value = "cfa4cf1d-a337-4481-aa99-19d8f3d63f7c" + } + @{ + Name = "MSIP_Label_0ed12617-d0ef-4053-b8e4-ecf5bcf2ffb3_Name" + Value = "LabelScopedToBob_Tests" + } + @{ + Name = "MSIP_Label_0ed12617-d0ef-4053-b8e4-ecf5bcf2ffb3_ContentBits" + Value = "0" + } + @{ + Name = "MSIP_Label_0ed12617-d0ef-4053-b8e4-ecf5bcf2ffb3_ActionId" + Value = "00000000-0000-0000-0000-000000000000" + } + ) + } +} +Invoke-MgExtractUserSecurityInformationProtectionSensitivityLabelContentLabel -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgExtractUserSecurityInformationProtectionSensitivityLabelContentLabel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserEvent.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserEvent.md index 093355d11d5..12c5120e046 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserEvent.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserEvent.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgForwardUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + } + ) + Comment = "Dana, hope you can make this meeting." +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserEvent -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgForwardUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMessage.md index 093355d11d5..c1568b4e86f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMessage.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgForwardUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + IsDeliveryReceiptRequested = $true + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + } + ) + } + Comment = "Dana, just want to make sure you get this." +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgForwardUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgInvalidateUserRefreshToken.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgInvalidateUserRefreshToken.md index 093355d11d5..6a9c1504b37 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgInvalidateUserRefreshToken.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgInvalidateUserRefreshToken.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgInvalidateUserRefreshToken Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgInvalidateUserRefreshToken -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgInvalidateUserRefreshToken Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgLicenseUser.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgLicenseUser.md index 093355d11d5..4aa1d470fc0 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgLicenseUser.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgLicenseUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgLicenseUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +Invoke-MgLicenseUser -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgLicenseUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMessage.md index 093355d11d5..2e639b50fe2 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMessage.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReplyAllUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "guidelines.txt" + ContentBytes = "bWFjIGFuZCBjaGVlc2UgdG9kYXk=" + } + ) + } + Comment = "Please take a look at the attached guidelines before you decide on the name." +} +# A UPN can also be used as -UserId. +Invoke-MgReplyAllUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReplyAllUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMessage.md index 093355d11d5..d3f00ee2031 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMessage.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReplyUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + } + @{ + EmailAddress = @{ + Address = "randiw@contoso.onmicrosoft.com" + Name = "Randi Welch" + } + } + ) + } + Comment = "Samantha, Randi, would you name the group please?" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReplyUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReprovisionUserCloudPc.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReprovisionUserCloudPc.md index 093355d11d5..e7bff3d959c 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReprovisionUserCloudPc.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReprovisionUserCloudPc.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReprovisionUserCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgReprovisionUserCloudPc -UserId $userId -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReprovisionUserCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSnoozeUserEventReminder.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSnoozeUserEventReminder.md index 093355d11d5..97ea1fc7fea 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSnoozeUserEventReminder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSnoozeUserEventReminder.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSnoozeUserEventReminder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + NewReminderTime = @{ + DateTime = "2016-10-19T10:37:00Z" + TimeZone = "timeZone-value" + } +} +# A UPN can also be used as -UserId. +Invoke-MgSnoozeUserEventReminder -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSnoozeUserEventReminder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSoftUserChatMessageDelete.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSoftUserChatMessageDelete.md index 093355d11d5..b8e9317019a 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSoftUserChatMessageDelete.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSoftUserChatMessageDelete.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSoftUserChatMessageDelete Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +Invoke-MgSoftUserChatMessageDelete -UserId $userId -ChatId $chatId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSoftUserChatMessageDelete Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgTranslateUserExchangeId.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgTranslateUserExchangeId.md index 093355d11d5..708a092d56c 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgTranslateUserExchangeId.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgTranslateUserExchangeId.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgTranslateUserExchangeId Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + InputIds = @( + "{rest-formatted-id-1}" + "{rest-formatted-id-2}" + ) + SourceIdType = "restId" + TargetIdType = "restImmutableEntryId" +} +# A UPN can also be used as -UserId. +Invoke-MgTranslateUserExchangeId -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgTranslateUserExchangeId Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgTroubleshootUserCloudPc.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgTroubleshootUserCloudPc.md index 093355d11d5..b9de0c71c93 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgTroubleshootUserCloudPc.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgTroubleshootUserCloudPc.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgTroubleshootUserCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgTroubleshootUserCloudPc -UserId $userId -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgTroubleshootUserCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgUnsubscribeUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgUnsubscribeUserMessage.md index 093355d11d5..9a3ebd9f338 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgUnsubscribeUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgUnsubscribeUserMessage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnsubscribeUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgUnsubscribeUserMessage -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnsubscribeUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolder.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolder.md index 093355d11d5..3e00a97a0df 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolder.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Move-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Move-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Move-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMessage.md index 093355d11d5..e52a126588e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMessage.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Move-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + DestinationId = "deleteditems" +} +# A UPN can also be used as -UserId. +Move-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Move-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserTaskListTask.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserTaskListTask.md index 093355d11d5..79a9063a6e7 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserTaskListTask.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserTaskListTask.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Move-MgUserTaskListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + DestinationTaskListId = "AAMkAGVjMzJmMWZjLTgyYjgtNGIyNi1hOGQ0LWRjMjNmMGRmOWNiYQAuAAAAAAAboFsPFj7gQqFxG" +} +# A UPN can also be used as -UserId. +Move-MgUserTaskListTask -UserId $userId -BaseTaskListId $baseTaskListId -BaseTaskId $baseTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Move-MgUserTaskListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageAttachmentUploadSession.md index 093355d11d5..473e05ff164 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageAttachmentUploadSession.md @@ -1,18 +1,32 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageAttachmentUploadSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserMessageAttachmentUploadSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserMessageAttachmentUploadSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageAttachmentUploadSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageForward.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageForward.md index 093355d11d5..2529ffbc678 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageForward.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageForward.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageForward Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + IsDeliveryReceiptRequested = $true + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + } + ) + } + Comment = "Dana, just want to make sure you get this; you'll need this if the project gets approved." +} +# A UPN can also be used as -UserId. +New-MgUserMessageForward -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageForward Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageReply.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageReply.md index 093355d11d5..ed1d9871e8f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageReply.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageReply.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageReply Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + } + @{ + EmailAddress = @{ + Address = "randiw@contoso.onmicrosoft.com" + Name = "Randi Welch" + } + } + ) + } + Comment = "Samantha, Randi, would you name the group if the project is approved, please?" +} +# A UPN can also be used as -UserId. +New-MgUserMessageReply -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageReply Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageReplyAll.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageReplyAll.md index 093355d11d5..e24e28f44f4 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageReplyAll.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMessageReplyAll.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageReplyAll Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "guidelines.txt" + ContentBytes = "bWFjIGFuZCBjaGVlc2UgdG9kYXk=" + } + ) + } + Comment = "if the project gets approved, please take a look at the attached guidelines before you decide on the name." +} +# A UPN can also be used as -UserId. +New-MgUserMessageReplyAll -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageReplyAll Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserTodoListTaskAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserTodoListTaskAttachmentUploadSession.md index 093355d11d5..921421359e6 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserTodoListTaskAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserTodoListTaskAttachmentUploadSession.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoListTaskAttachmentUploadSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + AttachmentInfo = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTaskAttachmentUploadSession -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoListTaskAttachmentUploadSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Rename-MgUserCloudPc.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Rename-MgUserCloudPc.md index 093355d11d5..0fa975b4574 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Rename-MgUserCloudPc.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Rename-MgUserCloudPc.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Rename-MgUserCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Rename-MgUserCloudPc -UserId $userId -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Rename-MgUserCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restart-MgUserCloudPc.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restart-MgUserCloudPc.md index 093355d11d5..20d522635d4 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restart-MgUserCloudPc.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restart-MgUserCloudPc.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restart-MgUserCloudPc Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Restart-MgUserCloudPc -UserId $userId -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restart-MgUserCloudPc Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Revoke-MgUserSign.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Revoke-MgUserSign.md new file mode 100644 index 00000000000..7332e13350f --- /dev/null +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Revoke-MgUserSign.md @@ -0,0 +1,8 @@ +### Example 1: Using the Revoke-MgUserSign Cmdlet +```powershell +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Revoke-MgUserSign -UserId $userId +``` +This example shows how to use the Revoke-MgUserSign Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMail.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMail.md index 093355d11d5..758b1a34b20 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMail.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMail.md @@ -1,18 +1,127 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgUserMail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + Subject = "Meet for lunch?" + Body = @{ + ContentType = "Text" + Content = "The new cafeteria is open." + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + } + } + ) + CcRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + } + } + ) + } + SaveToSentItems = "false" +} +# A UPN can also be used as -UserId. +Send-MgUserMail -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Send-MgUserMail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Send-MgUserMail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + Subject = "Meet for lunch?" + Body = @{ + ContentType = "Text" + Content = "The new cafeteria is open." + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "meganb@contoso.onmicrosoft.com" + } + } + ) + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "attachment.txt" + ContentType = "text/plain" + ContentBytes = "SGVsbG8gV29ybGQh" + } + ) + } +} +# A UPN can also be used as -UserId. +Send-MgUserMail -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Send-MgUserMail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Send-MgUserMail Cmdlet +```powershell +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + Subject = "9/9/2018: concert" + Body = @{ + ContentType = "HTML" + Content = "The group represents Nevada." + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "AlexW@contoso.OnMicrosoft.com" + } + } + ) + InternetMessageHeaders = @( + @{ + Name = "x-custom-header-group-name" + Value = "Nevada" + } + @{ + Name = "x-custom-header-group-id" + Value = "NV001" + } + ) + } +} +# A UPN can also be used as -UserId. +Send-MgUserMail -UserId $userId -BodyParameter $params +``` +This example shows how to use the Send-MgUserMail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Send-MgUserMail Cmdlet +```powershell +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + Subject = "Project kickoff" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "Samantha Booth" + Address = "samanthab@contoso.onmicrosoft.com" + } + } + ) + Mentions = @( + @{ + Mentioned = @{ + Name = "Dana Swope" + Address = "danas@contoso.onmicrosoft.com" + } + } + ) + } +} +# A UPN can also be used as -UserId. +Send-MgUserMail -UserId $userId -BodyParameter $params +``` +This example shows how to use the Send-MgUserMail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMessage.md index 093355d11d5..e7f17dc06a8 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMessage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Send-MgUserMessage -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Send-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserTeamworkActivityNotification.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserTeamworkActivityNotification.md index 093355d11d5..dfdc2327056 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserTeamworkActivityNotification.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserTeamworkActivityNotification.md @@ -1,18 +1,71 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgUserTeamworkActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Topic = @{ + Source = "text" + Value = "Deployment Approvals Channel" + WebUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000" + } + ActivityType = "deploymentApprovalRequired" + PreviewText = @{ + Content = "New deployment requires your approval" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) +} +Send-MgUserTeamworkActivityNotification -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Send-MgUserTeamworkActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Send-MgUserTeamworkActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Topic = @{ + Source = "text" + Value = "Deployment Approvals Channel" + WebUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000" + } + ActivityType = "deploymentApprovalRequired" + PreviewText = @{ + Content = "New deployment requires your approval" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) +} +Send-MgUserTeamworkActivityNotification -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Send-MgUserTeamworkActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Send-MgUserTeamworkActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/beta/users/{userId}/teamwork/installedApps/{installationId}" + } + ActivityType = "taskCreated" + PreviewText = @{ + Content = "New Task Created" + } + TemplateParameters = @( + @{ + Name = "taskId" + Value = "Task 12322" + } + ) +} +Send-MgUserTeamworkActivityNotification -UserId $userId -BodyParameter $params +``` +This example shows how to use the Send-MgUserTeamworkActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Set-MgUserPresence.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Set-MgUserPresence.md index 093355d11d5..68b1a007611 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Set-MgUserPresence.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Set-MgUserPresence.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgUserPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + SessionId = "22553876-f5ab-4529-bffb-cfe50aa89f87" + Availability = "Available" + Activity = "Available" + ExpirationDuration = "PT1H" +} +Set-MgUserPresence -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgUserPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Set-MgUserPresenceUserPreferredPresence.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Set-MgUserPresenceUserPreferredPresence.md index 093355d11d5..13cbd07d8cc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Set-MgUserPresenceUserPreferredPresence.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Set-MgUserPresenceUserPreferredPresence.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgUserPresenceUserPreferredPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Availability = "DoNotDisturb" + Activity = "DoNotDisturb" + ExpirationDuration = "PT8H" +} +Set-MgUserPresenceUserPreferredPresence -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgUserPresenceUserPreferredPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Stop-MgUserEvent.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Stop-MgUserEvent.md index 093355d11d5..5a299284c4d 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Stop-MgUserEvent.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Stop-MgUserEvent.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Comment = "Cancelling for this week due to all hands" +} +# A UPN can also be used as -UserId. +Stop-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserPassword.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserPassword.md index 093355d11d5..86c7e7e48a0 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserPassword.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserPassword.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgUserPassword Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Password = "1234567890" +} +Test-MgUserPassword -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgUserPassword Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserSecurityInformationProtectionSensitivityLabelApplication.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserSecurityInformationProtectionSensitivityLabelApplication.md index 093355d11d5..fe442358f0b 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserSecurityInformationProtectionSensitivityLabelApplication.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserSecurityInformationProtectionSensitivityLabelApplication.md @@ -1,18 +1,70 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgUserSecurityInformationProtectionSensitivityLabelApplication Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + ContentInfo = @{ + "@odata.type" = "#microsoft.graph.security.contentInfo" + "Format@odata.type" = "#microsoft.graph.security.contentFormat" + ContentFormat = "File" + Format = "default" + Identifier = $null + "State@odata.type" = "#microsoft.graph.security.contentState" + State = "rest" + "Metadata@odata.type" = "#Collection(microsoft.graph.security.keyValuePair)" + Metadata = @( + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_3a80e051-487c-40d4-b491-73ad25d997e6_Enabled" + Value = "True" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_3a80e051-487c-40d4-b491-73ad25d997e6_Method" + Value = "Standard" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_3a80e051-487c-40d4-b491-73ad25d997e6_SetDate" + Value = "1/1/0001 12:00:00 AM" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_3a80e051-487c-40d4-b491-73ad25d997e6_SiteId" + Value = "cfa4cf1d-a337-4481-aa99-19d8f3d63f7c" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_3a80e051-487c-40d4-b491-73ad25d997e6_Name" + Value = "LabelScopedToBob_Tests" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_3a80e051-487c-40d4-b491-73ad25d997e6_ContentBits" + Value = "0" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_3a80e051-487c-40d4-b491-73ad25d997e6_ActionId" + Value = "00000000-0000-0000-0000-000000000000" + } + ) + } + LabelingOptions = @{ + "@odata.type" = "#microsoft.graph.security.labelingOptions" + "AssignmentMethod@odata.type" = "#microsoft.graph.security.assignmentMethod" + AssignmentMethod = "standard" + "LabelId@odata.type" = "#Guid" + LabelId = "836ff34f-b604-4a62-a68c-d6be4205d569" + DowngradeJustification = @{ + JustificationMessage = "Justified" + IsDowngradeJustified = $true + } + "ExtendedProperties@odata.type" = "#Collection(microsoft.graph.security.keyValuePair)" + ExtendedProperties = @( + ) + } +} +Test-MgUserSecurityInformationProtectionSensitivityLabelApplication -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgUserSecurityInformationProtectionSensitivityLabelApplication Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserSecurityInformationProtectionSensitivityLabelRemoval.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserSecurityInformationProtectionSensitivityLabelRemoval.md index 093355d11d5..60c1ccb3d3b 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserSecurityInformationProtectionSensitivityLabelRemoval.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserSecurityInformationProtectionSensitivityLabelRemoval.md @@ -1,18 +1,52 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgUserSecurityInformationProtectionSensitivityLabelRemoval Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + ContentInfo = @{ + "@odata.type" = "#microsoft.graph.security.contentInfo" + Identifier = $null + State = "rest" + Metadata = @( + @{ + Name = "MSIP_Label_836ff34f-b604-4a62-a68c-d6be4205d569_Enabled" + Value = "True" + } + @{ + Name = "MSIP_Label_836ff34f-b604-4a62-a68c-d6be4205d569_Method" + Value = "Standard" + } + @{ + Name = "MSIP_Label_836ff34f-b604-4a62-a68c-d6be4205d569_SetDate" + Value = "1/1/0001 12:00:00 AM" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_836ff34f-b604-4a62-a68c-d6be4205d569_SiteId" + Value = "cfa4cf1d-a337-4481-aa99-19d8f3d63f7c" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_836ff34f-b604-4a62-a68c-d6be4205d569_Name" + Value = "LabelScopedToBob_Tests" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_836ff34f-b604-4a62-a68c-d6be4205d569_ContentBits" + Value = "0" + } + @{ + "@odata.type" = "#microsoft.graph.security.keyValuePair" + Name = "MSIP_Label_836ff34f-b604-4a62-a68c-d6be4205d569_ActionId" + Value = "00000000-0000-0000-0000-000000000000" + } + ) + } + DowngradeJustification = @{ + JustificationMessage = "The information has been declassified." + IsDowngradeJustified = $true + } +} +Test-MgUserSecurityInformationProtectionSensitivityLabelRemoval -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgUserSecurityInformationProtectionSensitivityLabelRemoval Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Undo-MgUserChatMessageSoftDelete.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Undo-MgUserChatMessageSoftDelete.md index 093355d11d5..efbbf7bd041 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Undo-MgUserChatMessageSoftDelete.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Undo-MgUserChatMessageSoftDelete.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Undo-MgUserChatMessageSoftDelete Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +Undo-MgUserChatMessageSoftDelete -UserId $userId -ChatId $chatId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Undo-MgUserChatMessageSoftDelete Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Update-MgUserPassword.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Update-MgUserPassword.md index 093355d11d5..8e06e075417 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Update-MgUserPassword.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Update-MgUserPassword.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserPassword Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + CurrentPassword = "xWwvJ]6NMw+bWH-d" + NewPassword = "0eM85N54wFxWwvJ]" +} +# A UPN can also be used as -UserId. +Update-MgUserPassword -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserPassword Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Find-MgUserRoom.md b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Find-MgUserRoom.md index 093355d11d5..875c9903178 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Find-MgUserRoom.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Find-MgUserRoom.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Find-MgUserRoom Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Find-MgUserRoom -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Find-MgUserRoom Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Find-MgUserRoomList.md b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Find-MgUserRoomList.md index 093355d11d5..322ce8223f5 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Find-MgUserRoomList.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Find-MgUserRoomList.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Find-MgUserRoomList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Find-MgUserRoomList -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Find-MgUserRoomList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserCloudPcLaunchInfo.md b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserCloudPcLaunchInfo.md index 093355d11d5..e71b6d99830 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserCloudPcLaunchInfo.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserCloudPcLaunchInfo.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCloudPcLaunchInfo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Get-MgUserCloudPcLaunchInfo -UserId $userId -CloudPCId $cloudPCId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCloudPcLaunchInfo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserDelta.md b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserDelta.md index 093355d11d5..b10fcfcdfbd 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserDelta.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +Get-MgUserDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserPlannerAllDelta.md b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserPlannerAllDelta.md index 093355d11d5..f7cf14a3d0b 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserPlannerAllDelta.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserPlannerAllDelta.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPlannerAllDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Get-MgUserPlannerAllDelta -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPlannerAllDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserTaskListDelta.md b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserTaskListDelta.md index 093355d11d5..e0ac4a3aba3 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserTaskListDelta.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserTaskListDelta.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTaskListDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Get-MgUserTaskListDelta -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTaskListDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserTaskListTaskDelta.md b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserTaskListTaskDelta.md index 093355d11d5..407f748f3b4 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserTaskListTaskDelta.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Get-MgUserTaskListTaskDelta.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTaskListTaskDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Get-MgUserTaskListTaskDelta -UserId $userId -BaseTaskListId $baseTaskListId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTaskListTaskDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Invoke-MgSupportedUserOutlookLanguage.md b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Invoke-MgSupportedUserOutlookLanguage.md index 093355d11d5..78a637ae5b0 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Invoke-MgSupportedUserOutlookLanguage.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Invoke-MgSupportedUserOutlookLanguage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSupportedUserOutlookLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Invoke-MgSupportedUserOutlookLanguage -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSupportedUserOutlookLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Invoke-MgTimeUserOutlook.md b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Invoke-MgTimeUserOutlook.md index 093355d11d5..b77a1749486 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0-beta/Invoke-MgTimeUserOutlook.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0-beta/Invoke-MgTimeUserOutlook.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgTimeUserOutlook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Invoke-MgTimeUserOutlook -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgTimeUserOutlook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserMemberOf.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserMemberOf.md index 093355d11d5..3eeacbbd72b 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserMemberOf.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +Get-MgUserMemberOf -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookMasterCategory.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookMasterCategory.md index 093355d11d5..1e7da3ce532 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookMasterCategory.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookMasterCategory.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookMasterCategory -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTask.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTask.md index 093355d11d5..65508629e12 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTask.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTask.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOutlookTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookTask -UserId $userId -OutlookTaskId $outlookTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOutlookTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOutlookTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookTask -UserId $userId -OutlookTaskId $outlookTaskId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOutlookTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserOutlookTask Cmdlet +```powershell +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookTask -UserId $userId +``` +This example shows how to use the Get-MgUserOutlookTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskAttachment.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskAttachment.md index 093355d11d5..5555475eeb7 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskAttachment.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskAttachment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOutlookTaskAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +Get-MgUserOutlookTaskAttachment -UserId $userId -OutlookTaskId $outlookTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOutlookTaskAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskFolder.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskFolder.md index 093355d11d5..e9750bd6d57 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskFolder.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskFolder.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOutlookTaskFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookTaskFolder -UserId $userId -OutlookTaskFolderId $outlookTaskFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOutlookTaskFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOutlookTaskFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookTaskFolder -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOutlookTaskFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskFolderTask.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskFolderTask.md index 093355d11d5..3aed3aaebd9 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskFolderTask.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskFolderTask.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOutlookTaskFolderTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookTaskFolderTask -UserId $userId -OutlookTaskFolderId $outlookTaskFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOutlookTaskFolderTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskGroup.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskGroup.md index 093355d11d5..c1c82b32959 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskGroup.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOutlookTaskGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookTaskGroup -UserId $userId -OutlookTaskGroupId $outlookTaskGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOutlookTaskGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOutlookTaskGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookTaskGroup -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOutlookTaskGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskGroupTaskFolder.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskGroupTaskFolder.md index 093355d11d5..2d14ddbec63 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskGroupTaskFolder.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserOutlookTaskGroupTaskFolder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOutlookTaskGroupTaskFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookTaskGroupTaskFolder -UserId $userId -OutlookTaskGroupId $outlookTaskGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOutlookTaskGroupTaskFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserOwnedDevice.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserOwnedDevice.md index 093355d11d5..e4c8fdea8bb 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserOwnedDevice.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserOwnedDevice.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOwnedDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOwnedDevice -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOwnedDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserOwnedObject.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserOwnedObject.md index 093355d11d5..b59c6d655ba 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserOwnedObject.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserOwnedObject.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOwnedObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOwnedObject -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOwnedObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserRegisteredDevice.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserRegisteredDevice.md index 093355d11d5..d86d125f429 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserRegisteredDevice.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserRegisteredDevice.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserRegisteredDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserRegisteredDevice -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserRegisteredDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingContactMergeSuggestion.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingContactMergeSuggestion.md index 093355d11d5..d373e64b68f 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingContactMergeSuggestion.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingContactMergeSuggestion.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserSettingContactMergeSuggestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserSettingContactMergeSuggestion -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserSettingContactMergeSuggestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingItemInsight.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingItemInsight.md index 093355d11d5..a4a70789d61 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingItemInsight.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingItemInsight.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserSettingItemInsight Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserSettingItemInsight -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserSettingItemInsight Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingRegionalAndLanguageSetting.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingRegionalAndLanguageSetting.md index 093355d11d5..16718718b06 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingRegionalAndLanguageSetting.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingRegionalAndLanguageSetting.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserSettingRegionalAndLanguageSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserSettingRegionalAndLanguageSetting -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserSettingRegionalAndLanguageSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingShiftPreference.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingShiftPreference.md index 093355d11d5..ba6b419dae4 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingShiftPreference.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserSettingShiftPreference.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserSettingShiftPreference Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +Get-MgUserSettingShiftPreference -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserSettingShiftPreference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoList.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoList.md index 093355d11d5..07c42e0a05b 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoList.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoList.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoList -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTask.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTask.md index 093355d11d5..2ccbc553c27 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTask.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTask.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskAttachment.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskAttachment.md index 093355d11d5..dc2baa65ced 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskAttachment.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskAttachment.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTodoListTaskAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -AttachmentBaseId $attachmentBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTodoListTaskAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTodoListTaskAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTodoListTaskAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskChecklistItem.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskChecklistItem.md index 093355d11d5..0106e951b62 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskChecklistItem.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserTodoListTaskChecklistItem Cmdlet +```powershell +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -OutFile $outFileId +``` +This example shows how to use the Get-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskLinkedResource.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskLinkedResource.md index 093355d11d5..b96401fbcbf 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserTodoListTaskLinkedResource.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUserTransitiveMemberOf.md b/src/Users/Users/examples/v1.0-beta/Get-MgUserTransitiveMemberOf.md index 093355d11d5..2eb54d10f6a 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUserTransitiveMemberOf.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUserTransitiveMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTransitiveMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +Get-MgUserTransitiveMemberOf -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTransitiveMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookMasterCategory.md b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookMasterCategory.md index 093355d11d5..29b84411e73 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookMasterCategory.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookMasterCategory.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "Project expenses" + Color = "preset9" +} +# A UPN can also be used as -UserId. +New-MgUserOutlookMasterCategory -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTask.md b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTask.md index 093355d11d5..b9c8b39cfff 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTask.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTask.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOutlookTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Subject = "Shop for children's weekend" + StartDateTime = @{ + DateTime = "2016-05-03T09:00:00" + TimeZone = "Eastern Standard Time" + } + DueDateTime = @{ + DateTime = "2016-05-05T16:00:00" + TimeZone = "Eastern Standard Time" + } +} +# A UPN can also be used as -UserId. +New-MgUserOutlookTask -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOutlookTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskAttachment.md b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskAttachment.md index 093355d11d5..0c9f70b4f16 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskAttachment.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskAttachment.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOutlookTaskAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "menu.txt" + ContentBytes = "bWFjIGFuZCBjaGVlc2UgdG9kYXk=" +} +# A UPN can also be used as -UserId. +New-MgUserOutlookTaskAttachment -UserId $userId -OutlookTaskId $outlookTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserOutlookTaskAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserOutlookTaskAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + "@odata.type" = "#microsoft.graph.itemAttachment" + Name = "Holiday event" + Item = @{ + "@odata.type" = "microsoft.graph.event" + Subject = "Discuss gifts for children" + } +} +# A UPN can also be used as -UserId. +New-MgUserOutlookTaskAttachment -UserId $userId -OutlookTaskId $outlookTaskId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOutlookTaskAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskFolder.md b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskFolder.md index 093355d11d5..5b4b17a8615 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskFolder.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskFolder.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOutlookTaskFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Name = "Volunteer" +} +# A UPN can also be used as -UserId. +New-MgUserOutlookTaskFolder -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOutlookTaskFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskFolderTask.md b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskFolderTask.md index 093355d11d5..ce01ec8b12a 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskFolderTask.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskFolderTask.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOutlookTaskFolderTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Subject = "Shop for dinner" + StartDateTime = @{ + DateTime = "2016-04-23T18:00:00" + TimeZone = "Pacific Standard Time" + } + DueDateTime = @{ + DateTime = "2016-04-25T13:00:00" + TimeZone = "Pacific Standard Time" + } +} +# A UPN can also be used as -UserId. +New-MgUserOutlookTaskFolderTask -UserId $userId -OutlookTaskFolderId $outlookTaskFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOutlookTaskFolderTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskGroup.md b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskGroup.md index 093355d11d5..df49869e504 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskGroup.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOutlookTaskGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Name = "Leisure tasks" +} +# A UPN can also be used as -UserId. +New-MgUserOutlookTaskGroup -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOutlookTaskGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskGroupTaskFolder.md b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskGroupTaskFolder.md index 093355d11d5..ef66a01d843 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskGroupTaskFolder.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserOutlookTaskGroupTaskFolder.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOutlookTaskGroupTaskFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Name = "Cooking" +} +# A UPN can also be used as -UserId. +New-MgUserOutlookTaskGroupTaskFolder -UserId $userId -OutlookTaskGroupId $outlookTaskGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOutlookTaskGroupTaskFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoList.md b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoList.md index 093355d11d5..968f5aca2ad 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoList.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoList.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "Travel items" +} +# A UPN can also be used as -UserId. +New-MgUserTodoList -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTask.md b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTask.md index 093355d11d5..2f4c7f25573 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTask.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTask.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Title = "A new task" + Categories = @( + "Important" + ) + LinkedResources = @( + @{ + WebUrl = "http://microsoft.com" + ApplicationName = "Microsoft" + DisplayName = "Microsoft" + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskAttachment.md b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskAttachment.md index 093355d11d5..a6e3c0b8bd2 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskAttachment.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskAttachment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoListTaskAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + "@odata.type" = "#microsoft.graph.taskFileAttachment" + Name = "smile" + ContentBytes = "a0b1c76de9f7=" + ContentType = "image/gif" +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoListTaskAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskChecklistItem.md b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskChecklistItem.md index 093355d11d5..dc357f63570 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskChecklistItem.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "Final sign-off from the team" +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "Final sign-off from the team" +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskLinkedResource.md b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskLinkedResource.md index 093355d11d5..aa024556e9d 100644 --- a/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/Users/examples/v1.0-beta/New-MgUserTodoListTaskLinkedResource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + WebUrl = "https://microsoft.com" + ApplicationName = "Microsoft" + DisplayName = "Microsoft" + ExternalId = "dk9cddce2-dce2-f9dd-e2dc-cdf9e2dccdf9" +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookMasterCategory.md b/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookMasterCategory.md index 093355d11d5..be11c037c74 100644 --- a/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookMasterCategory.md +++ b/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookMasterCategory.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTask.md b/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTask.md index 093355d11d5..c55788e8b49 100644 --- a/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTask.md +++ b/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTask.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOutlookTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserOutlookTask -UserId $userId -OutlookTaskId $outlookTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOutlookTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTaskFolder.md b/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTaskFolder.md index 093355d11d5..812e7b001b8 100644 --- a/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTaskFolder.md +++ b/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTaskFolder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOutlookTaskFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserOutlookTaskFolder -UserId $userId -OutlookTaskFolderId $outlookTaskFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOutlookTaskFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTaskGroup.md b/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTaskGroup.md index 093355d11d5..334d18b7d02 100644 --- a/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTaskGroup.md +++ b/src/Users/Users/examples/v1.0-beta/Remove-MgUserOutlookTaskGroup.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOutlookTaskGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserOutlookTaskGroup -UserId $userId -OutlookTaskGroupId $outlookTaskGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOutlookTaskGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoList.md b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoList.md index 093355d11d5..409d70e637f 100644 --- a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoList.md +++ b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoList.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTask.md b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTask.md index 093355d11d5..d8856b7fac6 100644 --- a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTask.md +++ b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTask.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskAttachment.md b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskAttachment.md index 093355d11d5..69810baea92 100644 --- a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskAttachment.md +++ b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskAttachment.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTodoListTaskAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -AttachmentBaseId $attachmentBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTodoListTaskAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskChecklistItem.md b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskChecklistItem.md index 093355d11d5..9cc123bcd0c 100644 --- a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskChecklistItem.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskLinkedResource.md b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskLinkedResource.md index 093355d11d5..b2f28e07467 100644 --- a/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/Users/examples/v1.0-beta/Remove-MgUserTodoListTaskLinkedResource.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookMasterCategory.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookMasterCategory.md index 093355d11d5..8b9ee3dc9aa 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookMasterCategory.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookMasterCategory.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Color = "preset15" +} +# A UPN can also be used as -UserId. +Update-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTask.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTask.md index 093355d11d5..e5e4ae2aa6e 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTask.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTask.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserOutlookTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DueDateTime = @{ + DateTime = "2016-05-06T16:00:00" + TimeZone = "Eastern Standard Time" + } +} +# A UPN can also be used as -UserId. +Update-MgUserOutlookTask -UserId $userId -OutlookTaskId $outlookTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserOutlookTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTaskFolder.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTaskFolder.md index 093355d11d5..9b8578e2c0a 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTaskFolder.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTaskFolder.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserOutlookTaskFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Name = "Charity work" +} +# A UPN can also be used as -UserId. +Update-MgUserOutlookTaskFolder -UserId $userId -OutlookTaskFolderId $outlookTaskFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserOutlookTaskFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTaskGroup.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTaskGroup.md index 093355d11d5..273594895ed 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTaskGroup.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserOutlookTaskGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserOutlookTaskGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Name = "Personal Tasks" +} +# A UPN can also be used as -UserId. +Update-MgUserOutlookTaskGroup -UserId $userId -OutlookTaskGroupId $outlookTaskGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserOutlookTaskGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingContactMergeSuggestion.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingContactMergeSuggestion.md index 093355d11d5..2de290707a0 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingContactMergeSuggestion.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingContactMergeSuggestion.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserSettingContactMergeSuggestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + IsEnabled = $false +} +# A UPN can also be used as -UserId. +Update-MgUserSettingContactMergeSuggestion -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserSettingContactMergeSuggestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingItemInsight.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingItemInsight.md index 093355d11d5..9bb2fcf5af7 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingItemInsight.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingItemInsight.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserSettingItemInsight Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + IsEnabled = "false" +} +Update-MgUserSettingItemInsight -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserSettingItemInsight Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingRegionalAndLanguageSetting.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingRegionalAndLanguageSetting.md index 093355d11d5..a9465f26f8a 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingRegionalAndLanguageSetting.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserSettingRegionalAndLanguageSetting.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserSettingRegionalAndLanguageSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + AuthoringLanguages = @( + @{ + Locale = "en-US" + } + @{ + Locale = "es-MX" + } + ) + DefaultRegionalFormat = @{ + Locale = "en-US" + } +} +# A UPN can also be used as -UserId. +Update-MgUserSettingRegionalAndLanguageSetting -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserSettingRegionalAndLanguageSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoList.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoList.md index 093355d11d5..ea0f86bd3da 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoList.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoList.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "Vacation Plan" +} +# A UPN can also be used as -UserId. +Update-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTask.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTask.md index 093355d11d5..725862a4aea 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTask.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTask.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DueDateTime = @{ + DateTime = "2020-07-25T16:00:00" + TimeZone = "Eastern Standard Time" + } +} +# A UPN can also be used as -UserId. +Update-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTaskChecklistItem.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTaskChecklistItem.md index 093355d11d5..32fb98c75a3 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTaskChecklistItem.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "buy cake" +} +# A UPN can also be used as -UserId. +Update-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTaskLinkedResource.md b/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTaskLinkedResource.md index 093355d11d5..c98c7a11e0a 100644 --- a/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/Users/examples/v1.0-beta/Update-MgUserTodoListTaskLinkedResource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + "@odata.type" = "#microsoft.graph.linkedResource" + WebUrl = "http://microsoft.com" + ApplicationName = "Microsoft" + DisplayName = "Microsoft" +} +# A UPN can also be used as -UserId. +Update-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Add-MgWindowsUpdatesUpdatableAssetMember.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Add-MgWindowsUpdatesUpdatableAssetMember.md index 093355d11d5..ef5c31667b2 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Add-MgWindowsUpdatesUpdatableAssetMember.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Add-MgWindowsUpdatesUpdatableAssetMember.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgWindowsUpdatesUpdatableAssetMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + Assets = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.azureADDevice" + Id = "String (identifier)" + } + ) +} +Add-MgWindowsUpdatesUpdatableAssetMember -UpdatableAssetId $updatableAssetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgWindowsUpdatesUpdatableAssetMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Add-MgWindowsUpdatesUpdatableAssetMemberById.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Add-MgWindowsUpdatesUpdatableAssetMemberById.md index 093355d11d5..699b6404417 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Add-MgWindowsUpdatesUpdatableAssetMemberById.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Add-MgWindowsUpdatesUpdatableAssetMemberById.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgWindowsUpdatesUpdatableAssetMemberById Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + Ids = @( + "String" + "String" + "String" + ) + MemberEntityType = "#microsoft.graph.windowsUpdates.azureADDevice" +} +Add-MgWindowsUpdatesUpdatableAssetMemberById -UpdatableAssetId $updatableAssetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgWindowsUpdatesUpdatableAssetMemberById Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesCatalogEntry.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesCatalogEntry.md index 093355d11d5..b2f6aa8e04c 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesCatalogEntry.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesCatalogEntry.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgWindowsUpdatesCatalogEntry Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesCatalogEntry ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgWindowsUpdatesCatalogEntry Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeployment.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeployment.md index 093355d11d5..aa2fc568f09 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeployment.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeployment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgWindowsUpdatesDeployment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesDeployment -DeploymentId $deploymentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgWindowsUpdatesDeployment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgWindowsUpdatesDeployment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesDeployment ``` - -{{ Add description here }} - +This example shows how to use the Get-MgWindowsUpdatesDeployment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeploymentAudienceExclusion.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeploymentAudienceExclusion.md index 093355d11d5..89070766f42 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeploymentAudienceExclusion.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeploymentAudienceExclusion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgWindowsUpdatesDeploymentAudienceExclusion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesDeploymentAudienceExclusion -DeploymentId $deploymentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgWindowsUpdatesDeploymentAudienceExclusion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeploymentAudienceMember.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeploymentAudienceMember.md index 093355d11d5..efbd87e5f40 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeploymentAudienceMember.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesDeploymentAudienceMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgWindowsUpdatesDeploymentAudienceMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesDeploymentAudienceMember -DeploymentId $deploymentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgWindowsUpdatesDeploymentAudienceMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesResourceConnection.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesResourceConnection.md index 093355d11d5..7e54bb3891e 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesResourceConnection.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesResourceConnection.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgWindowsUpdatesResourceConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesResourceConnection -ResourceConnectionId $resourceConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgWindowsUpdatesResourceConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgWindowsUpdatesResourceConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesResourceConnection -ResourceConnectionId $resourceConnectionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgWindowsUpdatesResourceConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgWindowsUpdatesResourceConnection Cmdlet +```powershell +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesResourceConnection -ResourceConnectionId $resourceConnectionId +``` +This example shows how to use the Get-MgWindowsUpdatesResourceConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgWindowsUpdatesResourceConnection Cmdlet +```powershell +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesResourceConnection +``` +This example shows how to use the Get-MgWindowsUpdatesResourceConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesUpdatableAsset.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesUpdatableAsset.md index 093355d11d5..8a4be912c19 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesUpdatableAsset.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Get-MgWindowsUpdatesUpdatableAsset.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgWindowsUpdatesUpdatableAsset Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesUpdatableAsset -UpdatableAssetId $updatableAssetId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgWindowsUpdatesUpdatableAsset Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesUpdatableAsset -UpdatableAssetId $updatableAssetId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgWindowsUpdatesUpdatableAsset Cmdlet +```powershell +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesUpdatableAsset -UpdatableAssetId $updatableAssetId +``` +This example shows how to use the Get-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgWindowsUpdatesUpdatableAsset Cmdlet +```powershell +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesUpdatableAsset -Filter "isof('microsoft.graph.windowsUpdates.azureADDevice')" +``` +This example shows how to use the Get-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgWindowsUpdatesUpdatableAsset Cmdlet +```powershell +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesUpdatableAsset +``` +This example shows how to use the Get-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgWindowsUpdatesUpdatableAsset Cmdlet +```powershell +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesUpdatableAsset -OutFile $outFileId +``` +This example shows how to use the Get-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgWindowsUpdatesUpdatableAsset Cmdlet +```powershell +Import-Module Microsoft.Graph.WindowsUpdates +Get-MgWindowsUpdatesUpdatableAsset -Filter "isof('microsoft.graph.windowsUpdates.updatableAssetGroup')" +``` +This example shows how to use the Get-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgEnrollWindowsUpdatesUpdatableAsset.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgEnrollWindowsUpdatesUpdatableAsset.md index 093355d11d5..e4de7da6a3b 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgEnrollWindowsUpdatesUpdatableAsset.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgEnrollWindowsUpdatesUpdatableAsset.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgEnrollWindowsUpdatesUpdatableAsset Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + UpdateCategory = "String" + Assets = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.azureADDevice" + Id = "String (identifier)" + } + ) +} +Invoke-MgEnrollWindowsUpdatesUpdatableAsset -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgEnrollWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgEnrollWindowsUpdatesUpdatableAssetById.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgEnrollWindowsUpdatesUpdatableAssetById.md index 093355d11d5..cd0c8b408a6 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgEnrollWindowsUpdatesUpdatableAssetById.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgEnrollWindowsUpdatesUpdatableAssetById.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgEnrollWindowsUpdatesUpdatableAssetById Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + UpdateCategory = "feature" + MemberEntityType = "#microsoft.graph.windowsUpdates.azureADDevice" + Ids = @( + "String" + "String" + "String" + ) +} +Invoke-MgEnrollWindowsUpdatesUpdatableAssetById -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgEnrollWindowsUpdatesUpdatableAssetById Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgGraphWindowsUpdatesUpdatableAsset.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgGraphWindowsUpdatesUpdatableAsset.md index 093355d11d5..b1904c31500 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgGraphWindowsUpdatesUpdatableAsset.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgGraphWindowsUpdatesUpdatableAsset.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgGraphWindowsUpdatesUpdatableAsset Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + UpdateCategory = "feature" + MemberEntityType = "#microsoft.graph.windowsUpdates.azureADDevice" + Ids = @( + "String" + "String" + "String" + ) +} +Invoke-MgGraphWindowsUpdatesUpdatableAsset -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgGraphWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgUnenrollWindowsUpdatesUpdatableAsset.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgUnenrollWindowsUpdatesUpdatableAsset.md index 093355d11d5..ef12255bf3a 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgUnenrollWindowsUpdatesUpdatableAsset.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Invoke-MgUnenrollWindowsUpdatesUpdatableAsset.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnenrollWindowsUpdatesUpdatableAsset Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + UpdateCategory = "String" + Assets = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.azureADDevice" + Id = "String (identifier)" + } + ) +} +Invoke-MgUnenrollWindowsUpdatesUpdatableAsset -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnenrollWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesDeployment.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesDeployment.md index 093355d11d5..8b159e79b24 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesDeployment.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesDeployment.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgWindowsUpdatesDeployment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.deployment" + Content = @{ + "@odata.type" = "microsoft.graph.windowsUpdates.featureUpdateReference" + Version = "20H2" + } + Settings = @{ + "@odata.type" = "microsoft.graph.windowsUpdates.windowsDeploymentSettings" + Rollout = @{ + DevicesPerOffer = 100 + } + Monitoring = @{ + MonitoringRules = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.monitoringRule" + Signal = "rollback" + Threshold = 5 + Action = "pauseDeployment" + } + ) + } + } +} +New-MgWindowsUpdatesDeployment -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgWindowsUpdatesDeployment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesResourceConnection.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesResourceConnection.md index 093355d11d5..04b04d39851 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesResourceConnection.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesResourceConnection.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgWindowsUpdatesResourceConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.operationalInsightsConnection" + AzureSubscriptionId = "322ec614-e9c2-4cd5-a55c-5711fdecf02e" + AzureResourceGroupName = "target-resource-group" + WorkspaceName = "my-workspace" +} +New-MgWindowsUpdatesResourceConnection -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgWindowsUpdatesResourceConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesUpdatableAsset.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesUpdatableAsset.md index 093355d11d5..cb6d8248e67 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesUpdatableAsset.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/New-MgWindowsUpdatesUpdatableAsset.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgWindowsUpdatesUpdatableAsset Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.updatableAssetGroup" +} +New-MgWindowsUpdatesUpdatableAsset -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesDeployment.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesDeployment.md index 093355d11d5..9e17ec440b9 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesDeployment.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesDeployment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgWindowsUpdatesDeployment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Remove-MgWindowsUpdatesDeployment -DeploymentId $deploymentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgWindowsUpdatesDeployment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesResourceConnection.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesResourceConnection.md index 093355d11d5..3001b6e0750 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesResourceConnection.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesResourceConnection.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgWindowsUpdatesResourceConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Remove-MgWindowsUpdatesResourceConnection -ResourceConnectionId $resourceConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgWindowsUpdatesResourceConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgWindowsUpdatesResourceConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Remove-MgWindowsUpdatesResourceConnection -ResourceConnectionId $resourceConnectionId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgWindowsUpdatesResourceConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAsset.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAsset.md index 093355d11d5..7dbd6ba8fb6 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAsset.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAsset.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgWindowsUpdatesUpdatableAsset Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Remove-MgWindowsUpdatesUpdatableAsset -UpdatableAssetId $updatableAssetId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgWindowsUpdatesUpdatableAsset Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +Remove-MgWindowsUpdatesUpdatableAsset -UpdatableAssetId $updatableAssetId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Remove-MgWindowsUpdatesUpdatableAsset Cmdlet +```powershell +Import-Module Microsoft.Graph.WindowsUpdates +Remove-MgWindowsUpdatesUpdatableAsset -UpdatableAssetId $updatableAssetId +``` +This example shows how to use the Remove-MgWindowsUpdatesUpdatableAsset Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAssetMember.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAssetMember.md index 093355d11d5..a951c560c69 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAssetMember.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAssetMember.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgWindowsUpdatesUpdatableAssetMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + Assets = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.azureADDevice" + Id = "String (identifier)" + } + ) +} +Remove-MgWindowsUpdatesUpdatableAssetMember -UpdatableAssetId $updatableAssetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgWindowsUpdatesUpdatableAssetMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAssetMemberById.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAssetMemberById.md index 093355d11d5..0b4c0f1ae5c 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAssetMemberById.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Remove-MgWindowsUpdatesUpdatableAssetMemberById.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgWindowsUpdatesUpdatableAssetMemberById Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + Ids = @( + "String" + "String" + "String" + ) + MemberEntityType = "#microsoft.graph.windowsUpdates.azureADDevice" +} +Remove-MgWindowsUpdatesUpdatableAssetMemberById -UpdatableAssetId $updatableAssetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgWindowsUpdatesUpdatableAssetMemberById Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeployment.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeployment.md index 093355d11d5..f20e2ac9206 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeployment.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeployment.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgWindowsUpdatesDeployment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.deployment" + State = @{ + "@odata.type" = "microsoft.graph.windowsUpdates.deploymentState" + RequestedValue = "paused" + } +} +Update-MgWindowsUpdatesDeployment -DeploymentId $deploymentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgWindowsUpdatesDeployment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgWindowsUpdatesDeployment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.deployment" + Settings = @{ + "@odata.type" = "microsoft.graph.windowsUpdates.windowsDeploymentSettings" + Monitoring = @{ + MonitoringRules = @( + @{ + Signal = "rollback" + Threshold = 5 + Action = "pauseDeployment" + } + ) + } + } +} +Update-MgWindowsUpdatesDeployment -DeploymentId $deploymentId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgWindowsUpdatesDeployment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeploymentAudience.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeploymentAudience.md index 093355d11d5..9594958df28 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeploymentAudience.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeploymentAudience.md @@ -1,18 +1,33 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgWindowsUpdatesDeploymentAudience Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + AddMembers = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.azureADDevice" + Id = "String (identifier)" + } + ) + RemoveMembers = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.azureADDevice" + Id = "String (identifier)" + } + ) + AddExclusions = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.azureADDevice" + Id = "String (identifier)" + } + ) + RemoveExclusions = @( + @{ + "@odata.type" = "#microsoft.graph.windowsUpdates.azureADDevice" + Id = "String (identifier)" + } + ) +} +Update-MgWindowsUpdatesDeploymentAudience -DeploymentId $deploymentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgWindowsUpdatesDeploymentAudience Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeploymentAudienceById.md b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeploymentAudienceById.md index 093355d11d5..47c74f9ba66 100644 --- a/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeploymentAudienceById.md +++ b/src/WindowsUpdates/WindowsUpdates/examples/v1.0-beta/Update-MgWindowsUpdatesDeploymentAudienceById.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgWindowsUpdatesDeploymentAudienceById Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.WindowsUpdates +$params = @{ + MemberEntityType = "String" + AddMembers = @( + "String" + ) + RemoveMembers = @( + "String" + ) + AddExclusions = @( + "String" + ) + RemoveExclusions = @( + "String" + ) +} +Update-MgWindowsUpdatesDeploymentAudienceById -DeploymentId $deploymentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgWindowsUpdatesDeploymentAudienceById Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).