diff --git a/.azure-pipelines/common-templates/install-sdk.yml b/.azure-pipelines/common-templates/install-sdk.yml new file mode 100644 index 00000000000..2e7349ef5d8 --- /dev/null +++ b/.azure-pipelines/common-templates/install-sdk.yml @@ -0,0 +1,19 @@ +steps: +- task: PowerShell@2 + displayName: Install PowerShell SDK + inputs: + targetType: 'inline' + pwsh: true + script: | + try{ + # Installing Beta module. + Install-Module Microsoft.Graph.Beta -Repository PSGallery -Scope AllUsers -AcceptLicense -SkipPublisherCheck -Force -AllowClobber + }catch{ + echo "Error when installing Beta" + } + try{ + # Installing V1 module. + Install-Module Microsoft.Graph -Repository PSGallery -Scope AllUsers -AcceptLicense -SkipPublisherCheck -Force -AllowClobber + }catch{ + echo "Error when installing V1" + } \ No newline at end of file diff --git a/.azure-pipelines/weekly-examples-update.yml b/.azure-pipelines/weekly-examples-update.yml index 83cb7cfc177..65e7f09b1cb 100644 --- a/.azure-pipelines/weekly-examples-update.yml +++ b/.azure-pipelines/weekly-examples-update.yml @@ -33,7 +33,7 @@ jobs: name: ${{ parameters.BuildAgent }} timeoutInMinutes: ${{ parameters.PipelineTimeout }} steps: - + - template: ./common-templates/install-sdk.yml - task: PowerShell@2 name: "ComputeBranch" displayName: "Compute weekly examples update branch name" diff --git a/src/Applications/beta/examples/Add-MgBetaApplicationKey.md b/src/Applications/beta/examples/Add-MgBetaApplicationKey.md index 4e68e1d62ea..74fba9a3cd8 100644 --- a/src/Applications/beta/examples/Add-MgBetaApplicationKey.md +++ b/src/Applications/beta/examples/Add-MgBetaApplicationKey.md @@ -1,34 +1,44 @@ -### Example 1: Using the Add-MgBetaApplicationKey Cmdlet +### Example 1: Add a new key credential to an application + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - KeyCredential = @{ - Type = "AsymmetricX509Cert" - Usage = "Verify" - Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + keyCredential = @{ + type = "AsymmetricX509Cert" + usage = "Verify" + key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") } - PasswordCredential = $null - Proof = "eyJ0eXAiOiJ..." + passwordCredential = $null + proof = "eyJ0eXAiOiJ..." } + Add-MgBetaApplicationKey -ApplicationId $applicationId -BodyParameter $params + ``` -This example shows how to use the Add-MgBetaApplicationKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Add-MgBetaApplicationKey Cmdlet +This example will add a new key credential to an application + +### Example 2: Add a key credential and an associated password for the key + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - KeyCredential = @{ - Type = "X509CertAndPassword" - Usage = "Sign" - Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + keyCredential = @{ + type = "X509CertAndPassword" + usage = "Sign" + key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") } - PasswordCredential = @{ - SecretText = "MKTr0w1..." + passwordCredential = @{ + secretText = "MKTr0w1..." } - Proof = "eyJ0eXAiOiJ..." + proof = "eyJ0eXAiOiJ..." } + Add-MgBetaApplicationKey -ApplicationId $applicationId -BodyParameter $params + ``` -This example shows how to use the Add-MgBetaApplicationKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will add a key credential and an associated password for the key + diff --git a/src/Applications/beta/examples/Clear-MgBetaApplicationVerifiedPublisher.md b/src/Applications/beta/examples/Clear-MgBetaApplicationVerifiedPublisher.md index 4312d8e1e6b..0d3e16bc9d7 100644 --- a/src/Applications/beta/examples/Clear-MgBetaApplicationVerifiedPublisher.md +++ b/src/Applications/beta/examples/Clear-MgBetaApplicationVerifiedPublisher.md @@ -1,7 +1,11 @@ -### Example 1: Using the Clear-MgBetaApplicationVerifiedPublisher Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + Clear-MgBetaApplicationVerifiedPublisher -ApplicationId $applicationId + ``` This example shows how to use the Clear-MgBetaApplicationVerifiedPublisher Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Confirm-MgBetaApplicationMemberGroup.md b/src/Applications/beta/examples/Confirm-MgBetaApplicationMemberGroup.md index a723c534385..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Confirm-MgBetaApplicationMemberGroup.md +++ b/src/Applications/beta/examples/Confirm-MgBetaApplicationMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaApplicationMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaApplicationMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Confirm-MgBetaServicePrincipalMemberGroup.md b/src/Applications/beta/examples/Confirm-MgBetaServicePrincipalMemberGroup.md index e2c250cf789..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Confirm-MgBetaServicePrincipalMemberGroup.md +++ b/src/Applications/beta/examples/Confirm-MgBetaServicePrincipalMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaServicePrincipalMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaServicePrincipalMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Find-MgBetaApplicationSynchronizationJobSchemaDirectory.md b/src/Applications/beta/examples/Find-MgBetaApplicationSynchronizationJobSchemaDirectory.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Find-MgBetaApplicationSynchronizationJobSchemaDirectory.md +++ b/src/Applications/beta/examples/Find-MgBetaApplicationSynchronizationJobSchemaDirectory.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Applications/beta/examples/Find-MgBetaApplicationSynchronizationTemplateSchemaDirectory.md b/src/Applications/beta/examples/Find-MgBetaApplicationSynchronizationTemplateSchemaDirectory.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Find-MgBetaApplicationSynchronizationTemplateSchemaDirectory.md +++ b/src/Applications/beta/examples/Find-MgBetaApplicationSynchronizationTemplateSchemaDirectory.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Applications/beta/examples/Find-MgBetaServicePrincipalSynchronizationJobSchemaDirectory.md b/src/Applications/beta/examples/Find-MgBetaServicePrincipalSynchronizationJobSchemaDirectory.md index 421745af325..466539155e1 100644 --- a/src/Applications/beta/examples/Find-MgBetaServicePrincipalSynchronizationJobSchemaDirectory.md +++ b/src/Applications/beta/examples/Find-MgBetaServicePrincipalSynchronizationJobSchemaDirectory.md @@ -1,7 +1,11 @@ -### Example 1: Using the Find-MgBetaServicePrincipalSynchronizationJobSchemaDirectory Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + Find-MgBetaServicePrincipalSynchronizationJobSchemaDirectory -ServicePrincipalId $servicePrincipalId -SynchronizationJobId $synchronizationJobId -DirectoryDefinitionId $directoryDefinitionId + ``` This example shows how to use the Find-MgBetaServicePrincipalSynchronizationJobSchemaDirectory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Find-MgBetaServicePrincipalSynchronizationTemplateSchemaDirectory.md b/src/Applications/beta/examples/Find-MgBetaServicePrincipalSynchronizationTemplateSchemaDirectory.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Find-MgBetaServicePrincipalSynchronizationTemplateSchemaDirectory.md +++ b/src/Applications/beta/examples/Find-MgBetaServicePrincipalSynchronizationTemplateSchemaDirectory.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationById.md b/src/Applications/beta/examples/Get-MgBetaApplicationById.md index 64151e2b4f3..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationById.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationById.md @@ -1,25 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectById -BodyParameter $params -``` -This example shows how to use the Get-MgBetaApplicationById Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationExtensionProperty.md b/src/Applications/beta/examples/Get-MgBetaApplicationExtensionProperty.md index df9ed499294..0c9930cd5b7 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationExtensionProperty.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationExtensionProperty.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Applications +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId + +``` +This example shows how to use the Get-MgBetaApplicationExtensionProperty Cmdlet. -Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId -``` -This example shows how to use the Get-MgBetaApplicationExtensionProperty Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md b/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md index fc106d07283..8fd2f4105d9 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Applications +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId + +``` +This example shows how to use the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet. -Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -``` -This example shows how to use the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationMemberGroup.md b/src/Applications/beta/examples/Get-MgBetaApplicationMemberGroup.md index aa0f3ba9fe1..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationMemberGroup.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationMemberGroup.md @@ -1,31 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $false -} - -Get-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaApplicationMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - SecurityEnabledOnly = $true -} - -# A UPN can also be used as -UserId. -Get-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaApplicationMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationMemberObject.md b/src/Applications/beta/examples/Get-MgBetaApplicationMemberObject.md index 9520911af47..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationMemberObject.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationMemberObject.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $true -} - -Get-MgBetaDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaApplicationMemberObject Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationOwner.md b/src/Applications/beta/examples/Get-MgBetaApplicationOwner.md index e031af1b7e0..a5dace54757 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationOwner.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationOwner.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaApplicationOwner Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + Get-MgBetaApplicationOwner -ApplicationId $applicationId + ``` This example shows how to use the Get-MgBetaApplicationOwner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationOwnerByRef.md b/src/Applications/beta/examples/Get-MgBetaApplicationOwnerByRef.md index 5e44b54d49f..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationOwnerByRef.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationOwnerByRef.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Applications - -Get-MgBetaApplicationOwner -ApplicationId $applicationId -``` -This example shows how to use the Get-MgBetaApplicationOwnerByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationAccessToken.md b/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationAccessToken.md index f58b47bf098..733f4fb1bc0 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationAccessToken.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationAccessToken.md @@ -1,14 +1,19 @@ -### Example 1: Using the Get-MgBetaApplicationSynchronizationAccessToken Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - Credentials = @( + credentials = @( @{ "@odata.type" = "microsoft.graph.synchronizationSecretKeyStringValuePair" } ) } + Get-MgBetaApplicationSynchronizationAccessToken -ApplicationId $applicationId -BodyParameter $params + ``` This example shows how to use the Get-MgBetaApplicationSynchronizationAccessToken Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationTemplate.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationTemplate.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md b/src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md index 2b6ed57694b..24f32956cc7 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Applications +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaApplicationTemplate + +``` +This example shows how to use the Get-MgBetaApplicationTemplate Cmdlet. -Get-MgBetaApplicationTemplate -ApplicationTemplateId $applicationTemplateId -``` -This example shows how to use the Get-MgBetaApplicationTemplate Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationTokenIssuancePolicy.md b/src/Applications/beta/examples/Get-MgBetaApplicationTokenIssuancePolicy.md index b61995a2674..48b60a051e3 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationTokenIssuancePolicy.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationTokenIssuancePolicy.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaApplicationTokenIssuancePolicy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + Get-MgBetaApplicationTokenIssuancePolicy -ApplicationId $applicationId + ``` This example shows how to use the Get-MgBetaApplicationTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationTokenIssuancePolicyByRef.md b/src/Applications/beta/examples/Get-MgBetaApplicationTokenIssuancePolicyByRef.md index eaafad5277c..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationTokenIssuancePolicyByRef.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Applications - -Get-MgBetaApplicationTokenIssuancePolicy -ApplicationId $applicationId -``` -This example shows how to use the Get-MgBetaApplicationTokenIssuancePolicyByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationTokenLifetimePolicy.md b/src/Applications/beta/examples/Get-MgBetaApplicationTokenLifetimePolicy.md index ca44f70de2a..e9b1df89bd7 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationTokenLifetimePolicy.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationTokenLifetimePolicy.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaApplicationTokenLifetimePolicy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + Get-MgBetaApplicationTokenLifetimePolicy -ApplicationId $applicationId + ``` This example shows how to use the Get-MgBetaApplicationTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationTokenLifetimePolicyByRef.md b/src/Applications/beta/examples/Get-MgBetaApplicationTokenLifetimePolicyByRef.md index b30b92745c4..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationTokenLifetimePolicyByRef.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Applications - -Get-MgBetaApplicationTokenLifetimePolicy -ApplicationId $applicationId -``` -This example shows how to use the Get-MgBetaApplicationTokenLifetimePolicyByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppRoleAssignedTo.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppRoleAssignedTo.md index d752de727ce..5013955b18c 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppRoleAssignedTo.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Applications +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet. -Remove-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId -``` -This example shows how to use the Get-MgBetaBetaServicePrincipalAppRoleAssignedTo Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalById.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalById.md index 28b55848c7f..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalById.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalById.md @@ -1,25 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectById -BodyParameter $params -``` -This example shows how to use the Get-MgBetaServicePrincipalById Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimMappingPolicy.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimMappingPolicy.md index d4ef9d1eb5c..09ec5f60b78 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimMappingPolicy.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimMappingPolicy.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaServicePrincipalClaimMappingPolicy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + Get-MgBetaServicePrincipalClaimMappingPolicy -ServicePrincipalId $servicePrincipalId + ``` This example shows how to use the Get-MgBetaServicePrincipalClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimMappingPolicyByRef.md index 6a1aae60ca0..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimMappingPolicyByRef.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Applications - -Get-MgBetaServicePrincipalClaimMappingPolicy -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Get-MgBetaServicePrincipalClaimMappingPolicyByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalDelegatedPermissionClassification.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalDelegatedPermissionClassification.md index b9849b81630..d7bae533bb0 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalDelegatedPermissionClassification.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Applications +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet. -Remove-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId -``` -This example shows how to use the Get-MgBetaBetaServicePrincipalDelegatedPermissionClassification Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicy.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicy.md index 570636c884f..c600831ec59 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicy.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicy.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicy -ServicePrincipalId $servicePrincipalId + ``` This example shows how to use the Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md index 775f826fa37..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Applications - -Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicy -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberGroup.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberGroup.md index 954f8e9d705..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberGroup.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberGroup.md @@ -1,31 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $false -} - -Get-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaServicePrincipalMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - SecurityEnabledOnly = $true -} - -# A UPN can also be used as -UserId. -Get-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaServicePrincipalMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberObject.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberObject.md index 87775ed5c6f..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberObject.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberObject.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $true -} - -Get-MgBetaDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaServicePrincipalMemberObject Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberOf.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberOf.md index e5e550cc420..7281eab2600 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberOf.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalMemberOf.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaServicePrincipalMemberOf Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + Get-MgBetaServicePrincipalMemberOf -ServicePrincipalId $servicePrincipalId + ``` This example shows how to use the Get-MgBetaServicePrincipalMemberOf Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalOauth2PermissionGrant.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalOauth2PermissionGrant.md index 951fcc36daf..3219fb05c66 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalOauth2PermissionGrant.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalOauth2PermissionGrant.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaServicePrincipalOauth2PermissionGrant Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Applications + Get-MgBetaServicePrincipalOauth2PermissionGrant -ServicePrincipalId $servicePrincipalId + ``` This example shows how to use the Get-MgBetaServicePrincipalOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalOwnerByRef.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalOwnerByRef.md index 02fee3e6b98..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalOwnerByRef.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalOwnerByRef.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Applications - -Get-MgBetaServicePrincipalOwner -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Get-MgBetaServicePrincipalOwnerByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Add-MgApplicationKey.md b/src/Applications/v1.0/examples/Add-MgApplicationKey.md index a9022723b6b..9b453283fc3 100644 --- a/src/Applications/v1.0/examples/Add-MgApplicationKey.md +++ b/src/Applications/v1.0/examples/Add-MgApplicationKey.md @@ -1,34 +1,44 @@ -### Example 1: Using the Add-MgApplicationKey Cmdlet +### Example 1: Add a new key credential to an application + ```powershell + Import-Module Microsoft.Graph.Applications + $params = @{ - KeyCredential = @{ - Type = "AsymmetricX509Cert" - Usage = "Verify" - Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + keyCredential = @{ + type = "AsymmetricX509Cert" + usage = "Verify" + key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") } - PasswordCredential = $null - Proof = "eyJ0eXAiOiJ..." + passwordCredential = $null + proof = "eyJ0eXAiOiJ..." } + Add-MgApplicationKey -ApplicationId $applicationId -BodyParameter $params + ``` -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 +This example will add a new key credential to an application + +### Example 2: Add a key credential and an associated password for the key + ```powershell + Import-Module Microsoft.Graph.Applications + $params = @{ - KeyCredential = @{ - Type = "X509CertAndPassword" - Usage = "Sign" - Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + keyCredential = @{ + type = "X509CertAndPassword" + usage = "Sign" + key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") } - PasswordCredential = @{ - SecretText = "MKTr0w1..." + passwordCredential = @{ + secretText = "MKTr0w1..." } - Proof = "eyJ0eXAiOiJ..." + proof = "eyJ0eXAiOiJ..." } + Add-MgApplicationKey -ApplicationId $applicationId -BodyParameter $params + ``` -This example shows how to use the Add-MgApplicationKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will add a key credential and an associated password for the key + diff --git a/src/Applications/v1.0/examples/Add-MgServicePrincipalKey.md b/src/Applications/v1.0/examples/Add-MgServicePrincipalKey.md index 378a5ec77e9..3bbef455c6f 100644 --- a/src/Applications/v1.0/examples/Add-MgServicePrincipalKey.md +++ b/src/Applications/v1.0/examples/Add-MgServicePrincipalKey.md @@ -1,34 +1,44 @@ -### Example 1: Using the Add-MgServicePrincipalKey Cmdlet +### Example 1: Adding a new key credential to a servicePrincipal + ```powershell + Import-Module Microsoft.Graph.Applications + $params = @{ - KeyCredential = @{ - Type = "AsymmetricX509Cert" - Usage = "Verify" - Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + keyCredential = @{ + type = "AsymmetricX509Cert" + usage = "Verify" + key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") } - PasswordCredential = $null - Proof = "eyJ0eXAiOiJ..." + passwordCredential = $null + proof = "eyJ0eXAiOiJ..." } + Add-MgServicePrincipalKey -ServicePrincipalId $servicePrincipalId -BodyParameter $params + ``` -This example shows how to use the Add-MgServicePrincipalKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Add-MgServicePrincipalKey Cmdlet +This example shows adding a new key credential to a serviceprincipal + +### Example 2: Adding a key credential and an associated password for the key + ```powershell + Import-Module Microsoft.Graph.Applications + $params = @{ - KeyCredential = @{ - Type = "X509CertAndPassword" - Usage = "Sign" - Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + keyCredential = @{ + type = "X509CertAndPassword" + usage = "Sign" + key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") } - PasswordCredential = @{ - SecretText = "MKTr0w1..." + passwordCredential = @{ + secretText = "MKTr0w1..." } - Proof = "eyJ0eXAiOiJ..." + proof = "eyJ0eXAiOiJ..." } + Add-MgServicePrincipalKey -ServicePrincipalId $servicePrincipalId -BodyParameter $params + ``` -This example shows how to use the Add-MgServicePrincipalKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example shows adding a key credential and an associated password for the key + diff --git a/src/Applications/v1.0/examples/Add-MgServicePrincipalPassword.md b/src/Applications/v1.0/examples/Add-MgServicePrincipalPassword.md index 98696a8daec..7fd176acae3 100644 --- a/src/Applications/v1.0/examples/Add-MgServicePrincipalPassword.md +++ b/src/Applications/v1.0/examples/Add-MgServicePrincipalPassword.md @@ -1,12 +1,17 @@ -### Example 1: Using the Add-MgServicePrincipalPassword Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + $params = @{ - PasswordCredential = @{ - DisplayName = "Password friendly name" + passwordCredential = @{ + displayName = "Password friendly name" } } + Add-MgServicePrincipalPassword -ServicePrincipalId $servicePrincipalId -BodyParameter $params + ``` This example shows how to use the Add-MgServicePrincipalPassword Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Add-MgServicePrincipalTokenSigningCertificate.md b/src/Applications/v1.0/examples/Add-MgServicePrincipalTokenSigningCertificate.md index 57a548717d1..273bd8c3465 100644 --- a/src/Applications/v1.0/examples/Add-MgServicePrincipalTokenSigningCertificate.md +++ b/src/Applications/v1.0/examples/Add-MgServicePrincipalTokenSigningCertificate.md @@ -1,11 +1,16 @@ -### Example 1: Using the Add-MgServicePrincipalTokenSigningCertificate Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + $params = @{ - DisplayName = "CN=customDisplayName" - EndDateTime = [System.DateTime]::Parse("2024-01-25T00:00:00Z") + displayName = "CN=customDisplayName" + endDateTime = [System.DateTime]::Parse("2024-01-25T00:00:00Z") } + Add-MgServicePrincipalTokenSigningCertificate -ServicePrincipalId $servicePrincipalId -BodyParameter $params + ``` 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/v1.0/examples/Clear-MgApplicationVerifiedPublisher.md b/src/Applications/v1.0/examples/Clear-MgApplicationVerifiedPublisher.md index 77f5447e896..06b266857d7 100644 --- a/src/Applications/v1.0/examples/Clear-MgApplicationVerifiedPublisher.md +++ b/src/Applications/v1.0/examples/Clear-MgApplicationVerifiedPublisher.md @@ -1,7 +1,11 @@ -### Example 1: Using the Clear-MgApplicationVerifiedPublisher Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + Clear-MgApplicationVerifiedPublisher -ApplicationId $applicationId + ``` 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/v1.0/examples/Confirm-MgApplicationMemberGroup.md b/src/Applications/v1.0/examples/Confirm-MgApplicationMemberGroup.md index 1627559222d..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Confirm-MgApplicationMemberGroup.md +++ b/src/Applications/v1.0/examples/Confirm-MgApplicationMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgApplicationMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgApplicationMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Confirm-MgServicePrincipalMemberGroup.md b/src/Applications/v1.0/examples/Confirm-MgServicePrincipalMemberGroup.md index 2cdac1ffa65..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Confirm-MgServicePrincipalMemberGroup.md +++ b/src/Applications/v1.0/examples/Confirm-MgServicePrincipalMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgServicePrincipalMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgServicePrincipalMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgApplicationById.md b/src/Applications/v1.0/examples/Get-MgApplicationById.md index 6d01ed3cf43..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationById.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationById.md @@ -1,23 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Get-MgApplicationById Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgApplicationExtensionProperty.md b/src/Applications/v1.0/examples/Get-MgApplicationExtensionProperty.md index 6e0db4d8728..10a749d88fa 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationExtensionProperty.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationExtensionProperty.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgApplicationExtensionProperty -ApplicationId $applicationId + +``` +This example shows how to use the Get-MgApplicationExtensionProperty Cmdlet. -Get-MgApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId -``` -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/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md index 6e25c14d827..7d152fa982f 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId + +``` +This example shows how to use the Get-MgApplicationFederatedIdentityCredential Cmdlet. -Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -``` -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/v1.0/examples/Get-MgApplicationMemberGroup.md b/src/Applications/v1.0/examples/Get-MgApplicationMemberGroup.md index 552403968eb..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationMemberGroup.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationMemberGroup.md @@ -1,27 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $false -} - -Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgApplicationMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - SecurityEnabledOnly = $true -} - -# A UPN can also be used as -UserId. -Get-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Get-MgApplicationMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgApplicationMemberObject.md b/src/Applications/v1.0/examples/Get-MgApplicationMemberObject.md index fc9ad8eebec..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationMemberObject.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationMemberObject.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $true -} - -Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgApplicationMemberObject Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgApplicationOwner.md b/src/Applications/v1.0/examples/Get-MgApplicationOwner.md index 9e432ab20d0..9bf88ca4c18 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationOwner.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationOwner.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgApplicationOwner Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + Get-MgApplicationOwner -ApplicationId $applicationId + ``` 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/v1.0/examples/Get-MgApplicationOwnerByRef.md b/src/Applications/v1.0/examples/Get-MgApplicationOwnerByRef.md index 3bcb9930c43..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationOwnerByRef.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationOwnerByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Applications - -Get-MgApplicationOwner -ApplicationId $applicationId -``` -This example shows how to use the Get-MgApplicationOwnerByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgApplicationTemplate.md b/src/Applications/v1.0/examples/Get-MgApplicationTemplate.md index 8013df6f4ad..fd41310dc86 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationTemplate.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationTemplate.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgApplicationTemplate + +``` +This example shows how to use the Get-MgApplicationTemplate Cmdlet. -Get-MgApplicationTemplate -ApplicationTemplateId $applicationTemplateId -``` -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/v1.0/examples/Get-MgApplicationTokenIssuancePolicy.md b/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicy.md index 7451d402851..555b40c6626 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicy.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicy.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgApplicationTokenIssuancePolicy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + Get-MgApplicationTokenIssuancePolicy -ApplicationId $applicationId + ``` 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/v1.0/examples/Get-MgApplicationTokenIssuancePolicyByRef.md b/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicyByRef.md index ee20965b01c..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationTokenIssuancePolicyByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Applications - -Get-MgApplicationTokenIssuancePolicy -ApplicationId $applicationId -``` -This example shows how to use the Get-MgApplicationTokenIssuancePolicyByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicy.md b/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicy.md index d5f59e6c02e..c50ba12e444 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicy.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicy.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgApplicationTokenLifetimePolicy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + Get-MgApplicationTokenLifetimePolicy -ApplicationId $applicationId + ``` 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/v1.0/examples/Get-MgApplicationTokenLifetimePolicyByRef.md b/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicyByRef.md index 18c2fac55f7..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationTokenLifetimePolicyByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Applications - -Get-MgApplicationTokenLifetimePolicy -ApplicationId $applicationId -``` -This example shows how to use the Get-MgApplicationTokenLifetimePolicyByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalAppRoleAssignedTo.md index 6416b77f551..dba51044f90 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalAppRoleAssignedTo.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgServicePrincipalAppRoleAssignedTo Cmdlet. -Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -``` -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/v1.0/examples/Get-MgServicePrincipalById.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalById.md index fd9ab342921..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalById.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalById.md @@ -1,23 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Get-MgServicePrincipalById Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicy.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicy.md index 5ddf2575c67..ae6142580f9 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicy.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicy.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgServicePrincipalClaimMappingPolicy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + Get-MgServicePrincipalClaimMappingPolicy -ServicePrincipalId $servicePrincipalId + ``` 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/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicyByRef.md index b75311690e3..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalClaimMappingPolicyByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Applications - -Get-MgServicePrincipalClaimMappingPolicy -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Get-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalDelegatedPermissionClassification.md index e5b7c8b22ef..a253c5757c5 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgServicePrincipalDelegatedPermissionClassification Cmdlet. -Get-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -``` -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/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md index 20b4ce0ea49..379879e2fe2 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgServicePrincipalHomeRealmDiscoveryPolicy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + Get-MgServicePrincipalHomeRealmDiscoveryPolicy -ServicePrincipalId $servicePrincipalId + ``` 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/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index 30ab46b9f59..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Applications - -Get-MgServicePrincipalHomeRealmDiscoveryPolicy -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Get-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberGroup.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberGroup.md index 599a29ad413..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberGroup.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberGroup.md @@ -1,27 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $false -} - -Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgServicePrincipalMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - SecurityEnabledOnly = $true -} - -# A UPN can also be used as -UserId. -Get-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Get-MgServicePrincipalMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberObject.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberObject.md index 24ead0cd144..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberObject.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberObject.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $true -} - -Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgServicePrincipalMemberObject Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberOf.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberOf.md index da9c542d1e8..06602865357 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberOf.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalMemberOf.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalMemberOf -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgServicePrincipalMemberOf Cmdlet. -Get-MgServicePrincipalMemberOf -ServicePrincipalId $servicePrincipalId -``` -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/v1.0/examples/Get-MgServicePrincipalOauth2PermissionGrant.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalOauth2PermissionGrant.md index 96d0a9f4090..f6c231b68fc 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalOauth2PermissionGrant.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalOauth2PermissionGrant.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalOauth2PermissionGrant -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgServicePrincipalOauth2PermissionGrant Cmdlet. -Get-MgServicePrincipalOauth2PermissionGrant -ServicePrincipalId $servicePrincipalId -``` -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/v1.0/examples/Get-MgServicePrincipalOwnerByRef.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalOwnerByRef.md index 84eeb523052..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalOwnerByRef.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalOwnerByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Applications - -Get-MgServicePrincipalOwner -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Get-MgServicePrincipalOwnerByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalTransitiveMemberOf.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalTransitiveMemberOf.md index cc99491b982..7e7c1a4d0bd 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalTransitiveMemberOf.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalTransitiveMemberOf.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipalTransitiveMemberOf -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgServicePrincipalTransitiveMemberOf Cmdlet. -Get-MgServicePrincipalTransitiveMemberOf -ServicePrincipalId $servicePrincipalId -``` -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/v1.0/examples/Invoke-MgInstantiateApplicationTemplate.md b/src/Applications/v1.0/examples/Invoke-MgInstantiateApplicationTemplate.md index a73e495ffe4..ad98fb2307d 100644 --- a/src/Applications/v1.0/examples/Invoke-MgInstantiateApplicationTemplate.md +++ b/src/Applications/v1.0/examples/Invoke-MgInstantiateApplicationTemplate.md @@ -1,10 +1,15 @@ -### Example 1: Using the Invoke-MgInstantiateApplicationTemplate Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + $params = @{ - DisplayName = "Azure AD SAML Toolkit" + displayName = "Azure AD SAML Toolkit" } + Invoke-MgInstantiateApplicationTemplate -ApplicationTemplateId $applicationTemplateId -BodyParameter $params + ``` 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/v1.0/examples/New-MgApplicationExtensionProperty.md b/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md index 7f1d7045fa7..feb5483b553 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md +++ b/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications $params = @{ name = "jobGroup" @@ -10,8 +12,8 @@ $params = @{ ) } -New-MgApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params -``` -This example shows how to use the New-MgApplicationExtensionProperty Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params + +``` +This example shows how to use the New-MgApplicationExtensionProperty Cmdlet. + diff --git a/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md index 17a98538bd3..ed6185b251c 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```powershell + +Import-Module Microsoft.Graph.Applications $params = @{ name = "testing02" @@ -11,8 +13,8 @@ $params = @{ ) } -New-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params -``` -This example shows how to use the New-MgApplicationFederatedIdentityCredential Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params + +``` +This example shows how to use the New-MgApplicationFederatedIdentityCredential Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusiness.md b/src/Bookings/v1.0/examples/Get-MgBookingBusiness.md index f6c6949389e..33f1adfc079 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusiness.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusiness.md @@ -1,17 +1,11 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell -{{ Add description here }} +Import-Module Microsoft.Graph.Bookings -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +Get-MgBookingBusiness -{{ Add output here }} ``` +This example shows how to use the Get-MgBookingBusiness Cmdlet. -{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusinessAppointment.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessAppointment.md index ae1cff21186..346ae8810f3 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessAppointment.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessAppointment.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Bookings +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId + +``` +This example shows how to use the Get-MgBookingBusinessAppointment Cmdlet. -Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -``` -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/v1.0/examples/Get-MgBookingBusinessCalendarView.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCalendarView.md index d578be201ed..73a7f283551 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessCalendarView.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCalendarView.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Bookings +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgBookingBusinessCalendarView -BookingBusinessId $bookingBusinessId -Start "2018-04-30T00:00:00Z" -End "2018-05-10T00:00:00Z" + +``` +This example shows how to use the Get-MgBookingBusinessCalendarView Cmdlet. -Get-MgBookingBusinessCalendarView -BookingBusinessId $bookingBusinessId -Start "2018-04-30T00:00:00Z" -End "2018-05-10T00:00:00Z" -``` -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/v1.0/examples/Get-MgBookingBusinessCustomQuestion.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomQuestion.md index 9dcc8288f3c..531ce062b60 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomQuestion.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Bookings +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId + +``` +This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet. -Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId -``` -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/v1.0/examples/Get-MgBookingBusinessCustomer.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomer.md index 322d0b0202a..8f41a52bbe0 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomer.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomer.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Bookings +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId + +``` +This example shows how to use the Get-MgBookingBusinessCustomer Cmdlet. -Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId -``` -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/v1.0/examples/Get-MgBookingBusinessService.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessService.md index f6c6949389e..fb712644f94 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessService.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessService.md @@ -1,17 +1,11 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell -{{ Add description here }} +Import-Module Microsoft.Graph.Bookings -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +Get-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -{{ Add output here }} ``` +This example shows how to use the Get-MgBookingBusinessService Cmdlet. -{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffAvailability.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffAvailability.md index 093355d11d5..b12b5dc888d 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffAvailability.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffAvailability.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Bookings -{{ Add description here }} +$params = @{ + staffIds = @( + "311a5454-08b2-4560-ba1c-f715e938cb79" + ) + startDateTime = @{ + dateTime = "2022-01-25T00:00:00" + timeZone = "India Standard Time" + } + endDateTime = @{ + dateTime = "2022-01-26T17:00:00" + timeZone = "Pacific Standard Time" + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgBookingBusinessStaffAvailability -BookingBusinessId $bookingBusinessId -BodyParameter $params -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Get-MgBookingBusinessStaffAvailability Cmdlet. diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffMember.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffMember.md index f6c6949389e..8dd1402aaa1 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffMember.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffMember.md @@ -1,17 +1,11 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell -{{ Add description here }} +Import-Module Microsoft.Graph.Bookings -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +Get-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -{{ Add output here }} ``` +This example shows how to use the Get-MgBookingBusinessStaffMember Cmdlet. -{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Get-MgBookingCurrency.md b/src/Bookings/v1.0/examples/Get-MgBookingCurrency.md index 58e5b089361..913c027cb3e 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingCurrency.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingCurrency.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Bookings +```powershell + +Import-Module Microsoft.Graph.Bookings + +Get-MgBookingCurrency + +``` +This example shows how to use the Get-MgBookingCurrency Cmdlet. -Get-MgBookingCurrency -BookingCurrencyId $bookingCurrencyId -``` -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/v1.0/examples/New-MgBookingBusiness.md b/src/Bookings/v1.0/examples/New-MgBookingBusiness.md index cec0e065fc0..4639deeeb8c 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusiness.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusiness.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Bookings +```powershell + +Import-Module Microsoft.Graph.Bookings $params = @{ displayName = "Fourth Coffee" @@ -18,8 +20,8 @@ $params = @{ defaultCurrencyIso = "USD" } -New-MgBookingBusiness -BodyParameter $params -``` -This example shows how to use the New-MgBookingBusiness Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBookingBusiness -BodyParameter $params + +``` +This example shows how to use the New-MgBookingBusiness Cmdlet. + diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomQuestion.md b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomQuestion.md index ac09b57e8f6..99cddb3b0ad 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomQuestion.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Bookings +```powershell + +Import-Module Microsoft.Graph.Bookings $params = @{ "@odata.type" = "#microsoft.graph.bookingCustomQuestion" @@ -10,8 +12,8 @@ $params = @{ ) } -New-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BodyParameter $params -``` -This example shows how to use the New-MgBookingBusinessCustomQuestion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BodyParameter $params + +``` +This example shows how to use the New-MgBookingBusinessCustomQuestion Cmdlet. + diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md index 8baf7637773..ab5903c962f 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Bookings +```powershell + +Import-Module Microsoft.Graph.Bookings $params = @{ "@odata.type" = "#microsoft.graph.bookingCustomer" @@ -12,8 +14,8 @@ $params = @{ ) } -New-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BodyParameter $params -``` -This example shows how to use the New-MgBookingBusinessCustomer Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BodyParameter $params + +``` +This example shows how to use the New-MgBookingBusinessCustomer Cmdlet. + diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md b/src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md index d029a30b9a8..cf064f34fb5 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Bookings +```powershell + +Import-Module Microsoft.Graph.Bookings $params = @{ "@odata.type" = "#microsoft.graph.bookingStaffMember" @@ -81,8 +83,8 @@ $params = @{ isEmailNotificationEnabled = $false } -New-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BodyParameter $params -``` -This example shows how to use the New-MgBookingBusinessStaffMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BodyParameter $params + +``` +This example shows how to use the New-MgBookingBusinessStaffMember Cmdlet. + diff --git a/src/Bookings/v1.0/examples/Publish-MgBookingBusiness.md b/src/Bookings/v1.0/examples/Publish-MgBookingBusiness.md index d91860344b5..a971f59d721 100644 --- a/src/Bookings/v1.0/examples/Publish-MgBookingBusiness.md +++ b/src/Bookings/v1.0/examples/Publish-MgBookingBusiness.md @@ -1,7 +1,11 @@ -### Example 1: Using the Publish-MgBookingBusiness Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Bookings + Publish-MgBookingBusiness -BookingBusinessId $bookingBusinessId + ``` 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/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md index 94711cbed9c..e1c94bb2ea4 100644 --- a/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.ChangeNotifications +```powershell + +Import-Module Microsoft.Graph.Beta.ChangeNotifications + +Get-MgBetaSubscription + +``` +This example shows how to use the Get-MgBetaSubscription Cmdlet. -Get-MgBetaSubscription -SubscriptionId $subscriptionId -``` -This example shows how to use the Get-MgBetaSubscription Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/ChangeNotifications/beta/examples/Invoke-MgBetaReauthorizeSubscription.md b/src/ChangeNotifications/beta/examples/Invoke-MgBetaReauthorizeSubscription.md index 093355d11d5..793e5d56ae3 100644 --- a/src/ChangeNotifications/beta/examples/Invoke-MgBetaReauthorizeSubscription.md +++ b/src/ChangeNotifications/beta/examples/Invoke-MgBetaReauthorizeSubscription.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Beta.ChangeNotifications -{{ Add description here }} +Invoke-MgBetaReauthorizeSubscription -SubscriptionId $subscriptionId -### 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-MgBetaReauthorizeSubscription Cmdlet. diff --git a/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md index e83d308adc4..70a7f2f2e8c 100644 --- a/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.ChangeNotifications +```powershell + +Import-Module Microsoft.Graph.Beta.ChangeNotifications $params = @{ changeType = "created" @@ -11,8 +13,8 @@ $params = @{ latestSupportedTlsVersion = "v1_2" } -New-MgBetaSubscription -BodyParameter $params -``` -This example shows how to use the New-MgBetaSubscription Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaSubscription -BodyParameter $params + +``` +This example shows how to use the New-MgBetaSubscription Cmdlet. + diff --git a/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md b/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md index 1b736580f29..fe425694a5e 100644 --- a/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.ChangeNotifications +```powershell + +Import-Module Microsoft.Graph.ChangeNotifications + +Get-MgSubscription + +``` +This example shows how to use the Get-MgSubscription Cmdlet. -Get-MgSubscription -SubscriptionId $subscriptionId -``` -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/v1.0/examples/Invoke-MgReauthorizeSubscription.md b/src/ChangeNotifications/v1.0/examples/Invoke-MgReauthorizeSubscription.md index 093355d11d5..b1c5e2d721e 100644 --- a/src/ChangeNotifications/v1.0/examples/Invoke-MgReauthorizeSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/Invoke-MgReauthorizeSubscription.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.ChangeNotifications -{{ Add description here }} +Invoke-MgReauthorizeSubscription -SubscriptionId $subscriptionId -### 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-MgReauthorizeSubscription Cmdlet. diff --git a/src/ChangeNotifications/v1.0/examples/New-MgSubscription.md b/src/ChangeNotifications/v1.0/examples/New-MgSubscription.md index 46333632f97..90577c676e6 100644 --- a/src/ChangeNotifications/v1.0/examples/New-MgSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/New-MgSubscription.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.ChangeNotifications +```powershell + +Import-Module Microsoft.Graph.ChangeNotifications $params = @{ changeType = "created" @@ -11,8 +13,8 @@ $params = @{ latestSupportedTlsVersion = "v1_2" } -New-MgSubscription -BodyParameter $params -``` -This example shows how to use the New-MgSubscription Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgSubscription -BodyParameter $params + +``` +This example shows how to use the New-MgSubscription Cmdlet. + diff --git a/src/CloudCommunications/beta/examples/Add-MgBetaCommunicationCallLargeGalleryView.md b/src/CloudCommunications/beta/examples/Add-MgBetaCommunicationCallLargeGalleryView.md index 057337bbe92..b64edf4d03e 100644 --- a/src/CloudCommunications/beta/examples/Add-MgBetaCommunicationCallLargeGalleryView.md +++ b/src/CloudCommunications/beta/examples/Add-MgBetaCommunicationCallLargeGalleryView.md @@ -1,10 +1,15 @@ -### Example 1: Using the Add-MgBetaCommunicationCallLargeGalleryView Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - ClientContext = "785f4929-92ca-497b-863f-c778c77c9758" + clientContext = "785f4929-92ca-497b-863f-c778c77c9758" } + Add-MgBetaCommunicationCallLargeGalleryView -CallId $callId -BodyParameter $params + ``` This example shows how to use the Add-MgBetaCommunicationCallLargeGalleryView Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Clear-MgBetaCommunicationPresence.md b/src/CloudCommunications/beta/examples/Clear-MgBetaCommunicationPresence.md index 093355d11d5..e69de29bb2d 100644 --- a/src/CloudCommunications/beta/examples/Clear-MgBetaCommunicationPresence.md +++ b/src/CloudCommunications/beta/examples/Clear-MgBetaCommunicationPresence.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Clear-MgBetaCommunicationPresenceUserPreferredPresence.md b/src/CloudCommunications/beta/examples/Clear-MgBetaCommunicationPresenceUserPreferredPresence.md index 093355d11d5..e69de29bb2d 100644 --- a/src/CloudCommunications/beta/examples/Clear-MgBetaCommunicationPresenceUserPreferredPresence.md +++ b/src/CloudCommunications/beta/examples/Clear-MgBetaCommunicationPresenceUserPreferredPresence.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCall.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCall.md index 26d40854589..a277af12b42 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCall.md @@ -1,18 +1,22 @@ -### Example 1: Getting a Peer-to-Peer call +### Example 1: Getting a Peer-to-Peer call -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell -Get-MgBetaCommunicationCall -CallId $callId -``` -This example shows how to use the Get-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Getting a group call +Import-Module Microsoft.Graph.Beta.CloudCommunications -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +Get-MgBetaCommunicationCall -CallId $callId + +``` +This example shows getting a peer-to-peer call + +### Example 2: Getting a group call + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCall -CallId $callId + +``` +This example shows getting a group call -Get-MgBetaCommunicationCall -CallId $callId -``` -This example shows how to use the Get-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallContentSharingSession.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallContentSharingSession.md index deb79a3e4c6..5c5e6550f6c 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallContentSharingSession.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallContentSharingSession -CallId $callId -ContentSharingSessionId $contentSharingSessionId + +``` +This example shows how to use the Get-MgBetaCommunicationCallContentSharingSession Cmdlet. -Get-MgBetaCommunicationCallContentSharingSession -CallId $callId -ContentSharingSessionId $contentSharingSessionId -``` -This example shows how to use the Get-MgBetaCommunicationCallContentSharingSession Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallOperation.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallOperation.md index 7bddb0268f1..ed12a23d751 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallOperation.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell +Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallOperation -CallId $callId -CommsOperationId $commsOperationId +``` +This example shows how to use the Get-MgBetaCommunicationCallOperation Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Get-MgBetaCommunicationCallOperation -CallId $callId -CommsOperationId $commsOperationId -``` -This example shows how to use the Get-MgBetaCommunicationCallOperation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallParticipant.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallParticipant.md index 69eccf3d5c4..b9a20df7bf9 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallParticipant.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallParticipant.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallParticipant -CallId $callId + +``` +This example shows how to use the Get-MgBetaCommunicationCallParticipant Cmdlet. -Get-MgBetaCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -``` -This example shows how to use the Get-MgBetaCommunicationCallParticipant Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecord.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecord.md index 5fbf7d8e0bc..8f1022bcd0c 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecord.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecord.md @@ -1,18 +1,22 @@ -### Example 1: Get basic details +### Example 1: Get basic details -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell -Get-MgBetaCommunicationCallRecord -CallRecordId $callRecordId -``` -This example shows how to use the Get-MgBetaCommunicationCallRecord Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get full details +Import-Module Microsoft.Graph.Beta.CloudCommunications -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +Get-MgBetaCommunicationCallRecord -CallRecordId $callRecordId + +``` +This example will get basic details + +### Example 2: Get full details + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallRecord -CallRecordId $callRecordId -ExpandProperty "sessions(`$expand=segments)" + +``` +This example will get full details -Get-MgBetaCommunicationCallRecord -CallRecordId $callRecordId -ExpandProperty "sessions(`$expand=segments)" -``` -This example shows how to use the Get-MgBetaCommunicationCallRecord Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecordSession.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecordSession.md index a4c530a9506..e4c33ba5523 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecordSession.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecordSession.md @@ -1,14 +1,22 @@ -### Example 1: Using the Get-MgBetaCommunicationCallRecordSession Cmdlet +### Example 1: Get session list + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications -Get-MgBetaCommunicationCallRecordSession -CallRecordId $callRecordId -ExpandProperty "segments" + +Get-MgBetaCommunicationCallRecordSession -CallRecordId $callRecordId + ``` -This example shows how to use the Get-MgBetaCommunicationCallRecordSession Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaCommunicationCallRecordSession Cmdlet +This example will get session list + +### Example 2: Get session list with segments + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications -Get-MgBetaCommunicationCallRecordSession -CallRecordId $callRecordId + +Get-MgBetaCommunicationCallRecordSession -CallRecordId $callRecordId -ExpandProperty "segments" + ``` -This example shows how to use the Get-MgBetaCommunicationCallRecordSession Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will get session list with segments + diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeeting.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeeting.md index 25798289cd0..91ab896b04e 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeeting.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaCommunicationOnlineMeeting Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + Get-MgBetaCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" + ``` This example shows how to use the Get-MgBetaCommunicationOnlineMeeting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md index 093355d11d5..e69de29bb2d 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresenceByUserId.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresenceByUserId.md index 668f32333b9..8dc59da3f36 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresenceByUserId.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresenceByUserId.md @@ -1,13 +1,18 @@ -### Example 1: Using the Get-MgBetaCommunicationPresenceByUserId Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - Ids = @( + ids = @( "fa8bf3dc-eca7-46b7-bad1-db199b62afc3" "66825e03-7ef5-42da-9069-724602c31f6b" ) } + Get-MgBetaCommunicationPresenceByUserId -BodyParameter $params + ``` This example shows how to use the Get-MgBetaCommunicationPresenceByUserId Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md index 4007a8e5b17..ad363829096 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md @@ -1,12 +1,12 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Get-MgBetaUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" +Get-MgBetaUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" + ``` This example shows how to use the Get-MgBetaUserOnlineMeeting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReport.md index a0779da7590..26921144945 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReport.md @@ -1,12 +1,12 @@ -### Example 1: Code snippet +### Example 1: List attendance reports for an online meeting ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Get-MgBetaUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId -ExpandProperty "attendanceRecords" -``` -This example shows how to use the Get-MgBetaUserOnlineMeetingAttendanceReport Cmdlet. +Get-MgBetaUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will list attendance reports for an online meeting diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord.md b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord.md index 27381e39dc2..51e063bacc5 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + # A UPN can also be used as -UserId. Get-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId + ``` This example shows how to use the Get-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendeeReport.md b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendeeReport.md index e1f220ddd47..ed96c8c8848 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendeeReport.md @@ -1,12 +1,12 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. Get-MgBetaUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId + ``` This example shows how to use the Get-MgBetaUserOnlineMeetingAttendeeReport Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md b/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md index 44e6fd14e2d..81d433a2723 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md @@ -1,12 +1,23 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. Get-MgBetaUserPresence -UserId $userId + ``` This example shows how to use the Get-MgBetaUserPresence Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaUserPresence -UserId $userId + +``` +This example shows how to use the Get-MgBetaUserPresence Cmdlet. diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaAnswerCommunicationCall.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaAnswerCommunicationCall.md index f7023b93e7d..2dc25a59bba 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaAnswerCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaAnswerCommunicationCall.md @@ -1,39 +1,49 @@ -### Example 1: Using the Invoke-MgBetaAnswerCommunicationCall Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - CallbackUri = "https://bot.contoso.com/api/calls" - AcceptedModalities = @( + callbackUri = "callbackUri-value" + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + blob = "" + } + acceptedModalities = @( "audio" ) - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - Blob = "" + callOptions = @{ + "@odata.type" = "#microsoft.graph.incomingCallOptions" + isContentSharingNotificationEnabled = $true } + participantCapacity = 200 } + Invoke-MgBetaAnswerCommunicationCall -CallId $callId -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaAnswerCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Invoke-MgBetaAnswerCommunicationCall Cmdlet + +### Example 2: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - CallbackUri = "callbackUri-value" - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - Blob = "" - } - AcceptedModalities = @( + callbackUri = "https://bot.contoso.com/api/calls" + acceptedModalities = @( "audio" ) - CallOptions = @{ - "@odata.type" = "#microsoft.graph.incomingCallOptions" - IsContentSharingNotificationEnabled = $true + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + blob = "" } - ParticipantCapacity = 200 } + Invoke-MgBetaAnswerCommunicationCall -CallId $callId -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaAnswerCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaCreateOrGetCommunicationOnlineMeeting.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaCreateOrGetCommunicationOnlineMeeting.md index 7e085e97a9b..e69de29bb2d 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaCreateOrGetCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaCreateOrGetCommunicationOnlineMeeting.md @@ -1,31 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.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" - } - } - Upn = "test1@contoso.com" - } - ) - } -} - -# A UPN can also be used as -UserId. -Invoke-MgBetaCreateOrGetUserOnlineMeeting -UserId $userId -BodyParameter $params -``` -This example shows how to use the Invoke-MgBetaCreateOrGetCommunicationOnlineMeeting Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaInviteCommunicationCallParticipant.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaInviteCommunicationCallParticipant.md index a780bc4cd87..f3ef586cd7f 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaInviteCommunicationCallParticipant.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaInviteCommunicationCallParticipant.md @@ -1,179 +1,29 @@ -### Example 1: Using the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - Participants = @( + participants = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" - Identity = @{ + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "278405a3-f568-4b3e-b684-009193463064" - IdentityProvider = "AAD" + id = "278405a3-f568-4b3e-b684-009193463064" + identityProvider = "AAD" } } } ) - ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" + clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" } + Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params -``` -This example shows how to use the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params -``` -This example shows how to use the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params -``` -This example shows how to use the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params -``` -This example shows how to use the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params -``` -This example shows how to use the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params -``` -This example shows how to use the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaKeepCommunicationCallAlive.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaKeepCommunicationCallAlive.md index 093e69dc1a6..ec512b98fc8 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaKeepCommunicationCallAlive.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaKeepCommunicationCallAlive.md @@ -1,7 +1,11 @@ -### Example 1: Using the Invoke-MgBetaKeepCommunicationCallAlive Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + Invoke-MgBetaKeepCommunicationCallAlive -CallId $callId + ``` This example shows how to use the Invoke-MgBetaKeepCommunicationCallAlive Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaMuteCommunicationCall.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaMuteCommunicationCall.md index 0761361cabe..7ca0c9ba2d2 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaMuteCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaMuteCommunicationCall.md @@ -1,10 +1,15 @@ -### Example 1: Using the Invoke-MgBetaMuteCommunicationCall Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - ClientContext = "clientContext-value" + clientContext = "clientContext-value" } + Invoke-MgBetaMuteCommunicationCall -CallId $callId -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaMuteCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaPlayCommunicationCallPrompt.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaPlayCommunicationCallPrompt.md index a555a930e4f..e6ef259bbcf 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaPlayCommunicationCallPrompt.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaPlayCommunicationCallPrompt.md @@ -1,21 +1,26 @@ -### Example 1: Using the Invoke-MgBetaPlayCommunicationCallPrompt Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" - Prompts = @( + clientContext = "d45324c1-fcb5-430a-902c-f20af696537c" + prompts = @( @{ "@odata.type" = "#microsoft.graph.mediaPrompt" - MediaInfo = @{ + mediaInfo = @{ "@odata.type" = "#microsoft.graph.mediaInfo" - Uri = "https://cdn.contoso.com/beep.wav" - ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E" + uri = "https://cdn.contoso.com/beep.wav" + resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E" } } ) - Loop = $false + loop = $false } + Invoke-MgBetaPlayCommunicationCallPrompt -CallId $callId -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaPlayCommunicationCallPrompt Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaRecordCommunicationCallResponse.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaRecordCommunicationCallResponse.md index 044a98440a5..20a5f817d13 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaRecordCommunicationCallResponse.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaRecordCommunicationCallResponse.md @@ -1,25 +1,30 @@ -### Example 1: Using the Invoke-MgBetaRecordCommunicationCallResponse Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - BargeInAllowed = $true - ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" - Prompts = @( + bargeInAllowed = $true + clientContext = "d45324c1-fcb5-430a-902c-f20af696537c" + prompts = @( @{ "@odata.type" = "#microsoft.graph.mediaPrompt" } ) - MaxRecordDurationInSeconds = 10 - InitialSilenceTimeoutInSeconds = 5 - MaxSilenceTimeoutInSeconds = 2 - PlayBeep = $true - StopTones = @( + maxRecordDurationInSeconds = 10 + initialSilenceTimeoutInSeconds = 5 + maxSilenceTimeoutInSeconds = 2 + playBeep = $true + stopTones = @( "#" "1" "*" ) } + Invoke-MgBetaRecordCommunicationCallResponse -CallId $callId -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaRecordCommunicationCallResponse Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaRedirectCommunicationCall.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaRedirectCommunicationCall.md index 839713caaee..a3428c539a7 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaRedirectCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaRedirectCommunicationCall.md @@ -1,45 +1,27 @@ -### Example 1: Using the Invoke-MgBetaRedirectCommunicationCall Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - Targets = @( + targets = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - Application = @{ + phone = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "test bot 2" - Id = "22bfd41f-550e-477d-8789-f6f7bd2a5e8b" + id = "+12345678901" } } } ) - CallbackUri = "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039" + callbackUri = "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039" } + Invoke-MgBetaRedirectCommunicationCall -CallId $callId -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaRedirectCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Invoke-MgBetaRedirectCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaRedirectCommunicationCall -CallId $callId -BodyParameter $params -``` -This example shows how to use the Invoke-MgBetaRedirectCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaRejectCommunicationCall.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaRejectCommunicationCall.md index 3ecef04a329..763fb10a4c1 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaRejectCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaRejectCommunicationCall.md @@ -1,20 +1,30 @@ -### Example 1: Using the Invoke-MgBetaRejectCommunicationCall Cmdlet +### Example 1: Reject an incoming call with 'Busy' reason + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - Reason = "none" + reason = "busy" } + Invoke-MgBetaRejectCommunicationCall -CallId $callId -BodyParameter $params + ``` -This example shows how to use the Invoke-MgBetaRejectCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Invoke-MgBetaRejectCommunicationCall Cmdlet +This example will reject an incoming call with 'busy' reason + +### Example 2: Reject an incoming call with 'None' reason + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - Reason = "busy" + reason = "none" } + Invoke-MgBetaRejectCommunicationCall -CallId $callId -BodyParameter $params + ``` -This example shows how to use the Invoke-MgBetaRejectCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will reject an incoming call with 'none' reason + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaSubscribeCommunicationCallToTone.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaSubscribeCommunicationCallToTone.md index 819657953a0..710465606ca 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaSubscribeCommunicationCallToTone.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaSubscribeCommunicationCallToTone.md @@ -1,10 +1,15 @@ -### Example 1: Using the Invoke-MgBetaSubscribeCommunicationCallToTone Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - ClientContext = "fd1c7836-4d84-4e24-b6aa-23188688cc54" + clientContext = "fd1c7836-4d84-4e24-b6aa-23188688cc54" } + Invoke-MgBetaSubscribeCommunicationCallToTone -CallId $callId -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaSubscribeCommunicationCallToTone Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaUnmuteCommunicationCall.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaUnmuteCommunicationCall.md index 84c55beeafe..4e2704f7434 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaUnmuteCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaUnmuteCommunicationCall.md @@ -1,10 +1,15 @@ -### Example 1: Using the Invoke-MgBetaUnmuteCommunicationCall Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - ClientContext = "clientContext-value" + clientContext = "clientContext-value" } + Invoke-MgBetaUnmuteCommunicationCall -CallId $callId -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaUnmuteCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Move-MgBetaCommunicationCall.md b/src/CloudCommunications/beta/examples/Move-MgBetaCommunicationCall.md index e705ff7d151..b366a7184bd 100644 --- a/src/CloudCommunications/beta/examples/Move-MgBetaCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Move-MgBetaCommunicationCall.md @@ -1,119 +1,144 @@ -### Example 1: Using the Move-MgBetaCommunicationCall Cmdlet +### Example 1: Call transfer from a peer-to-peer call + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - TransferTarget = @{ - EndpointType = "default" - Identity = @{ - User = @{ - Id = "550fae72-d251-43ec-868c-373732c2704f" - TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" - DisplayName = "Heidi Steen" + 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" + languageId = "languageId-value" + region = "region-value" } } + Move-MgBetaCommunicationCall -CallId $callId -BodyParameter $params + ``` -This example shows how to use the Move-MgBetaCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Move-MgBetaCommunicationCall Cmdlet +This example will call transfer from a peer-to-peer call + +### Example 2: Consultative transfer from a peer-to-peer call + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - TransferTarget = @{ + transferTarget = @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - EndpointType = "default" - Identity = @{ + endpointType = "default" + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "550fae72-d251-43ec-868c-373732c2704f" - TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" - DisplayName = "Heidi Steen" + 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" + languageId = "en-us" + region = "amer" + replacesCallId = "e5d39592-99bd-4db8-bca8-30fb894ec51d" } } + Move-MgBetaCommunicationCall -CallId $callId -BodyParameter $params + ``` -This example shows how to use the Move-MgBetaCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Move-MgBetaCommunicationCall Cmdlet +This example will consultative transfer from a peer-to-peer call + +### Example 3: Call transfer from a peer-to-peer call to PSTN number + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - TransferTarget = @{ - EndpointType = "default" - Identity = @{ - Phone = @{ + transferTarget = @{ + endpointType = "default" + identity = @{ + phone = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "+12345678901" + id = "+12345678901" } } - LanguageId = "languageId-value" - Region = "region-value" + languageId = "languageId-value" + region = "region-value" } } + Move-MgBetaCommunicationCall -CallId $callId -BodyParameter $params + ``` -This example shows how to use the Move-MgBetaCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Move-MgBetaCommunicationCall Cmdlet +This example will call transfer from a peer-to-peer call to pstn number + +### Example 4: Consultative transfer from a peer-to-peer call to PSTN number + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - TransferTarget = @{ + transferTarget = @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - EndpointType = "default" - Identity = @{ + endpointType = "default" + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - Phone = @{ + phone = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "+12345678901" + id = "+12345678901" } } - LanguageId = "en-us" - Region = "amer" - ReplacesCallId = "e5d39592-99bd-4db8-bca8-30fb894ec51d" + languageId = "en-us" + region = "amer" + replacesCallId = "e5d39592-99bd-4db8-bca8-30fb894ec51d" } } + Move-MgBetaCommunicationCall -CallId $callId -BodyParameter $params + ``` -This example shows how to use the Move-MgBetaCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Move-MgBetaCommunicationCall Cmdlet +This example will consultative transfer from a peer-to-peer call to pstn number + +### Example 5: Call transfer from a group call + ```powershell + Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - TransferTarget = @{ - EndpointType = "default" - Identity = @{ - User = @{ - Id = "550fae72-d251-43ec-868c-373732c2704f" - TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" - DisplayName = "Heidi Steen" + 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" + transferee = @{ + identity = @{ + user = @{ + id = "751f6800-3180-414d-bd94-333364659951" + tenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" } } - ParticipantId = "909c6581-5130-43e9-88f3-fcb3582cde37" + participantId = "909c6581-5130-43e9-88f3-fcb3582cde37" } - LanguageId = "languageId-value" - Region = "region-value" + languageId = "languageId-value" + region = "region-value" } + Move-MgBetaCommunicationCall -CallId $callId -BodyParameter $params + ``` -This example shows how to use the Move-MgBetaCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will call transfer from a group call + diff --git a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCall.md b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCall.md index 1df6c715c31..181eb95cfe2 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCall.md @@ -1,6 +1,8 @@ -### Example 1: Create peer-to-peer VoIP call with service hosted media +### Example 1: Create peer-to-peer VoIP call with service hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -30,14 +32,16 @@ $params = @{ } } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Create peer-to-peer VoIP call with application hosted media +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will create peer-to-peer voip call with service hosted media + +### Example 2: Create peer-to-peer VoIP call with application hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -73,18 +77,20 @@ $params = @{ ) mediaConfig = @{ "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - blob = "<Media Session Configuration>" + blob = "" } } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Create a group call with service hosted media +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will create peer-to-peer voip call with application hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 3: Create a group call with service hosted media + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -136,14 +142,16 @@ $params = @{ tenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Create a group call with application hosted media +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will create a group call with service hosted media + +### Example 4: Create a group call with application hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -190,20 +198,22 @@ $params = @{ ) mediaConfig = @{ "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - blob = "<Media Session Configuration>" + blob = "" removeFromDefaultAudioGroup = $false } tenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 5: Join scheduled meeting with service hosted media +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will create a group call with application hosted media + +### Example 5: Join scheduled meeting with service hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -237,14 +247,16 @@ $params = @{ tenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 6: Join a scheduled meeting with joinMeetingId and passcode +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will join scheduled meeting with service hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 6: Join a scheduled meeting with joinMeetingId and passcode + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -265,14 +277,16 @@ $params = @{ tenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 7: Join a scheduled meeting with joinMeetingId +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will join a scheduled meeting with joinmeetingid and passcode + +### Example 7: Join a scheduled meeting with joinMeetingId -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -293,14 +307,16 @@ $params = @{ tenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 8: Join scheduled meeting with app hosted media +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will join a scheduled meeting with joinmeetingid + +### Example 8: Join scheduled meeting with app hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -311,7 +327,7 @@ $params = @{ ) mediaConfig = @{ "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - blob = "<Media Session Configuration>" + blob = "" } chatInfo = @{ "@odata.type" = "#microsoft.graph.chatInfo" @@ -334,14 +350,16 @@ $params = @{ tenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 9: Join channel meeting with service hosted media +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will join scheduled meeting with app hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 9: Join channel meeting with service hosted media + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -374,14 +392,16 @@ $params = @{ } } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 10: Join channel meeting as a guest with service hosted media +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will join channel meeting with service hosted media + +### Example 10: Join channel meeting as a guest with service hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -425,14 +445,16 @@ $params = @{ } } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 11: Create peer-to-peer PSTN call with service hosted media +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will### example 10: join channel meeting as a guest with service hosted media + +### Example 11: Create peer-to-peer PSTN call with service hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -473,14 +495,16 @@ $params = @{ tenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 12: Create peer-to-peer PSTN call with application hosted media +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will### example 11: create peer-to-peer pstn call with service hosted media -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 12: Create peer-to-peer PSTN call with application hosted media + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -517,13 +541,13 @@ $params = @{ ) mediaConfig = @{ "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - blob = "<Media Session Configuration>" + blob = "" } tenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" } -New-MgBetaCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgBetaCommunicationCall Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaCommunicationCall -BodyParameter $params + +``` +This example will### example 12: create peer-to-peer pstn call with application hosted media + diff --git a/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeeting.md b/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeeting.md index cd31f880522..eed78b14d1c 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeeting.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") @@ -9,14 +11,16 @@ $params = @{ } # A UPN can also be used as -UserId. -New-MgBetaUserOnlineMeeting -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserOnlineMeeting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Code snippet +New-MgBetaUserOnlineMeeting -UserId $userId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaUserOnlineMeeting Cmdlet. + +### Example 2: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") @@ -28,14 +32,16 @@ $params = @{ } # A UPN can also be used as -UserId. -New-MgBetaUserOnlineMeeting -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserOnlineMeeting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet +New-MgBetaUserOnlineMeeting -UserId $userId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaUserOnlineMeeting Cmdlet. -```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 3: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications $params = @{ startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") @@ -47,8 +53,8 @@ $params = @{ } # A UPN can also be used as -UserId. -New-MgBetaUserOnlineMeeting -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserOnlineMeeting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaUserOnlineMeeting -UserId $userId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaUserOnlineMeeting Cmdlet. + diff --git a/src/CloudCommunications/v1.0/examples/Add-MgCommunicationCallLargeGalleryView.md b/src/CloudCommunications/v1.0/examples/Add-MgCommunicationCallLargeGalleryView.md index 79c20739b5c..4fee64f2f81 100644 --- a/src/CloudCommunications/v1.0/examples/Add-MgCommunicationCallLargeGalleryView.md +++ b/src/CloudCommunications/v1.0/examples/Add-MgCommunicationCallLargeGalleryView.md @@ -1,10 +1,15 @@ -### Example 1: Using the Add-MgCommunicationCallLargeGalleryView Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - ClientContext = "785f4929-92ca-497b-863f-c778c77c9758" + clientContext = "785f4929-92ca-497b-863f-c778c77c9758" } + Add-MgCommunicationCallLargeGalleryView -CallId $callId -BodyParameter $params + ``` 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/v1.0/examples/Clear-MgCommunicationPresence.md b/src/CloudCommunications/v1.0/examples/Clear-MgCommunicationPresence.md index 093355d11d5..e69de29bb2d 100644 --- a/src/CloudCommunications/v1.0/examples/Clear-MgCommunicationPresence.md +++ b/src/CloudCommunications/v1.0/examples/Clear-MgCommunicationPresence.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Clear-MgCommunicationPresenceUserPreferredPresence.md b/src/CloudCommunications/v1.0/examples/Clear-MgCommunicationPresenceUserPreferredPresence.md index 093355d11d5..e69de29bb2d 100644 --- a/src/CloudCommunications/v1.0/examples/Clear-MgCommunicationPresenceUserPreferredPresence.md +++ b/src/CloudCommunications/v1.0/examples/Clear-MgCommunicationPresenceUserPreferredPresence.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCall.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCall.md index 4397a1633b7..ea0073c82bc 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCall.md @@ -1,18 +1,22 @@ -### Example 1: Getting a Peer-to-Peer call +### Example 1: Getting a Peer-to-Peer call -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell -Get-MgCommunicationCall -CallId $callId -``` -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: Getting a group call +Import-Module Microsoft.Graph.CloudCommunications -```powershell Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCall -CallId $callId + +``` +This example shows getting a peer-to-peer call + +### Example 2: Getting a group call + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCall -CallId $callId + +``` +This example shows getting a group call -Get-MgCommunicationCall -CallId $callId -``` -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/v1.0/examples/Get-MgCommunicationCallContentSharingSession.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallContentSharingSession.md index e37e08fd697..219351ffa94 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallContentSharingSession.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCallContentSharingSession -CallId $callId + +``` +This example shows how to use the Get-MgCommunicationCallContentSharingSession Cmdlet. -Get-MgCommunicationCallContentSharingSession -CallId $callId -ContentSharingSessionId $contentSharingSessionId -``` -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/v1.0/examples/Get-MgCommunicationCallOperation.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallOperation.md index 72cf3d5d5c8..80e4f185b01 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallOperation.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCallOperation -CallId $callId -CommsOperationId $commsOperationId + +``` +This example shows how to use the Get-MgCommunicationCallOperation Cmdlet. -Get-MgCommunicationCallOperation -CallId $callId -CommsOperationId $commsOperationId -``` -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/v1.0/examples/Get-MgCommunicationCallParticipant.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallParticipant.md index 7a34144d45b..90e7b895d98 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallParticipant.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallParticipant.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId + +``` +This example shows how to use the Get-MgCommunicationCallParticipant Cmdlet. -Get-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -``` -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/v1.0/examples/Get-MgCommunicationCallRecord.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecord.md index 5b181e87818..05c5a1c4b37 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecord.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecord.md @@ -1,18 +1,22 @@ -### Example 1: Get basic details +### Example 1: Get basic details -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell -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). - -### Example 2: Get full details +Import-Module Microsoft.Graph.CloudCommunications -```powershell Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecord -CallRecordId $callRecordId + +``` +This example will get basic details + +### Example 2: Get full details + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCallRecord -CallRecordId $callRecordId -ExpandProperty "sessions(`$expand=segments)" + +``` +This example will get full details -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). - diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecordSession.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecordSession.md index 058f73fddad..26e10ea1dfd 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecordSession.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecordSession.md @@ -1,18 +1,22 @@ -### Example 1: Get session list +### Example 1: Get session list -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell -Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId -``` -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: Get session list with segments +Import-Module Microsoft.Graph.CloudCommunications -```powershell Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId + +``` +This example will get session list + +### Example 2: Get session list with segments + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId -ExpandProperty "segments" + +``` +This example will get session list with segments -Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId -ExpandProperty "segments" -``` -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/v1.0/examples/Get-MgCommunicationOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeeting.md index 5b8dc7d36b6..f12b7540029 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeeting.md @@ -1,11 +1,11 @@ ### Example 1: Retrieve an online meeting by videoTeleconferenceId ```powershell + Import-Module Microsoft.Graph.CloudCommunications -Get-MgCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" -``` -This example shows how to use the Get-MgCommunicationOnlineMeeting Cmdlet. +Get-MgCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will retrieve an online meeting by videoteleconferenceid diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresence.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresence.md index 1a3cfa8b371..ff10a5ba172 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresence.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresence.md @@ -1,11 +1,11 @@ ### Example 1: Get the presence information of another user ```powershell + Import-Module Microsoft.Graph.CloudCommunications Get-MgCommunicationPresence -PresenceId $presenceId -``` -This example shows how to use the Get-MgCommunicationPresence Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get the presence information of another user diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresenceByUserId.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresenceByUserId.md index a60acba208c..7847d2759fd 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresenceByUserId.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresenceByUserId.md @@ -1,13 +1,18 @@ -### Example 1: Using the Get-MgCommunicationPresenceByUserId Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - Ids = @( + ids = @( "fa8bf3dc-eca7-46b7-bad1-db199b62afc3" "66825e03-7ef5-42da-9069-724602c31f6b" ) } + Get-MgCommunicationPresenceByUserId -BodyParameter $params + ``` 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/v1.0/examples/Get-MgUserOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md index e2921f61f27..8317032aea8 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md @@ -1,48 +1,36 @@ ### Example 1: Retrieve an online meeting by meeting ID ```powershell + Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. Get-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will retrieve an online meeting by meeting id ### Example 2: Retrieve an online meeting by joinWebUrl ```powershell + Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Get-MgUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" -``` -This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. +Get-MgUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will retrieve an online meeting by joinweburl ### Example 3: Retrieve an online meeting by joinMeetingId ```powershell -Import-Module Microsoft.Graph.CloudCommunications -# A UPN can also be used as -UserId. -Get-MgUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" -``` -This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Fetch attendee report of a Teams live event - -```powershell Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Get-MgUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. +Get-MgUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will retrieve an online meeting by joinmeetingid diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReport.md index aca302833e6..a1f0e1341d1 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReport.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Get-MgUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId -ExpandProperty "attendanceRecords" -``` -This example shows how to use the Get-MgUserOnlineMeetingAttendanceReport Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId + +``` +This example shows how to use the Get-MgUserOnlineMeetingAttendanceReport Cmdlet. + diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md index 462f7977cd4..a9e28efa7a7 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. -Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId -``` -This example shows how to use the Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId + +``` +This example shows how to use the Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet. + diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md index 53e53745af9..2cd9069af11 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md @@ -1,12 +1,12 @@ ### Example 1: Fetch attendee report of a Teams live event ```powershell + Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. Get-MgUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -This example shows how to use the Get-MgUserOnlineMeetingAttendeeReport Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will fetch attendee report of a teams live event diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserPresence.md b/src/CloudCommunications/v1.0/examples/Get-MgUserPresence.md index cc0874460f7..0bcb9e15965 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserPresence.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserPresence.md @@ -1,23 +1,23 @@ ### Example 1: Get your own presence information ```powershell + Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. Get-MgUserPresence -UserId $userId -``` -This example shows how to use the Get-MgUserPresence Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get your own presence information ### Example 2: Get the presence information of another user ```powershell + Import-Module Microsoft.Graph.CloudCommunications Get-MgUserPresence -UserId $userId -``` -This example shows how to use the Get-MgUserPresence Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get the presence information of another user diff --git a/src/CloudCommunications/v1.0/examples/Invoke-MgAnswerCommunicationCall.md b/src/CloudCommunications/v1.0/examples/Invoke-MgAnswerCommunicationCall.md index fe39b8f774d..7e203db0395 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgAnswerCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgAnswerCommunicationCall.md @@ -1,53 +1,72 @@ -### Example 1: Using the Invoke-MgAnswerCommunicationCall Cmdlet +### Example 1: Answer a Peer-to-Peer VoIP call with service hosted media + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - CallbackUri = "https://bot.contoso.com/api/calls" - AcceptedModalities = @( + callbackUri = "callbackUri-value" + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + blob = "" + } + acceptedModalities = @( "audio" ) - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - Blob = "" + callOptions = @{ + "@odata.type" = "#microsoft.graph.incomingCallOptions" + isContentSharingNotificationEnabled = $true } + participantCapacity = 200 } + Invoke-MgAnswerCommunicationCall -CallId $callId -BodyParameter $params + ``` -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 +This example will answer a peer-to-peer voip call with service hosted media + +### Example 2: Answer VOIP call with application hosted media + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - CallbackUri = "callbackUri-value" - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - Blob = "" - } - AcceptedModalities = @( + callbackUri = "https://bot.contoso.com/api/calls" + acceptedModalities = @( "audio" ) - ParticipantCapacity = 200 + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + preFetchMedia = @( + ) + } } + Invoke-MgAnswerCommunicationCall -CallId $callId -BodyParameter $params + ``` -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 3: Using the Invoke-MgAnswerCommunicationCall Cmdlet +This example will answer voip call with application hosted media + +### Example 3: Answer a policy-based recording call + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - CallbackUri = "https://bot.contoso.com/api/calls" - AcceptedModalities = @( + callbackUri = "https://bot.contoso.com/api/calls" + acceptedModalities = @( "audio" ) - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" - PreFetchMedia = @( - ) + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + blob = "" } } + Invoke-MgAnswerCommunicationCall -CallId $callId -BodyParameter $params + ``` -This example shows how to use the Invoke-MgAnswerCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will answer a policy-based recording call + diff --git a/src/CloudCommunications/v1.0/examples/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md index 8b997a230fa..e69de29bb2d 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md @@ -1,29 +0,0 @@ -### Example 1: Code snippet - -```powershell 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" - } - } - Upn = "test1@contoso.com" - } - ) - } -} - -# A UPN can also be used as -UserId. -Invoke-MgCreateOrGetUserOnlineMeeting -UserId $userId -BodyParameter $params -``` -This example shows how to use the Invoke-MgCreateOrGetCommunicationOnlineMeeting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/v1.0/examples/Invoke-MgInviteCommunicationCallParticipant.md b/src/CloudCommunications/v1.0/examples/Invoke-MgInviteCommunicationCallParticipant.md index 79ab2f9e04d..e2dcdab818b 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgInviteCommunicationCallParticipant.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgInviteCommunicationCallParticipant.md @@ -1,179 +1,29 @@ -### Example 1: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - Participants = @( + participants = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" - Identity = @{ + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "278405a3-f568-4b3e-b684-009193463064" - IdentityProvider = "AAD" + id = "278405a3-f568-4b3e-b684-009193463064" + identityProvider = "AAD" } } } ) - ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" + 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 2: 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 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 = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe" - DisplayName = "string" - } - } - } - ) - 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" - 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 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" - DisplayName = "string" - } - } - } - @{ - "@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" - DisplayName = "string" - } - } - } - ) - 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" - 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 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 = "278405a3-f568-4b3e-b684-009193463064" - DisplayName = "string" - } - } - } - ) - 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/v1.0/examples/Invoke-MgKeepCommunicationCallAlive.md b/src/CloudCommunications/v1.0/examples/Invoke-MgKeepCommunicationCallAlive.md index c6c112f320d..b27e59e65f1 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgKeepCommunicationCallAlive.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgKeepCommunicationCallAlive.md @@ -1,7 +1,11 @@ -### Example 1: Using the Invoke-MgKeepCommunicationCallAlive Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + Invoke-MgKeepCommunicationCallAlive -CallId $callId + ``` 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/v1.0/examples/Invoke-MgMuteCommunicationCall.md b/src/CloudCommunications/v1.0/examples/Invoke-MgMuteCommunicationCall.md index 3c22f79fe0e..cea5709d6cc 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgMuteCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgMuteCommunicationCall.md @@ -1,10 +1,15 @@ -### Example 1: Using the Invoke-MgMuteCommunicationCall Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - ClientContext = "clientContext-value" + clientContext = "clientContext-value" } + Invoke-MgMuteCommunicationCall -CallId $callId -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgMuteCommunicationCallParticipant.md b/src/CloudCommunications/v1.0/examples/Invoke-MgMuteCommunicationCallParticipant.md index aed263de925..0ed3243f50d 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgMuteCommunicationCallParticipant.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgMuteCommunicationCallParticipant.md @@ -1,10 +1,15 @@ -### Example 1: Using the Invoke-MgMuteCommunicationCallParticipant Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" + clientContext = "d45324c1-fcb5-430a-902c-f20af696537c" } + Invoke-MgMuteCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgPlayCommunicationCallPrompt.md b/src/CloudCommunications/v1.0/examples/Invoke-MgPlayCommunicationCallPrompt.md index 10c8fef5b69..131c7c488df 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgPlayCommunicationCallPrompt.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgPlayCommunicationCallPrompt.md @@ -1,20 +1,25 @@ -### Example 1: Using the Invoke-MgPlayCommunicationCallPrompt Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" - Prompts = @( + clientContext = "d45324c1-fcb5-430a-902c-f20af696537c" + prompts = @( @{ "@odata.type" = "#microsoft.graph.mediaPrompt" - MediaInfo = @{ + mediaInfo = @{ "@odata.type" = "#microsoft.graph.mediaInfo" - Uri = "https://cdn.contoso.com/beep.wav" - ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E" + uri = "https://cdn.contoso.com/beep.wav" + resourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E" } } ) } + Invoke-MgPlayCommunicationCallPrompt -CallId $callId -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgRecordCommunicationCallResponse.md b/src/CloudCommunications/v1.0/examples/Invoke-MgRecordCommunicationCallResponse.md index ea4770278a5..673a6560282 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgRecordCommunicationCallResponse.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgRecordCommunicationCallResponse.md @@ -1,25 +1,30 @@ -### Example 1: Using the Invoke-MgRecordCommunicationCallResponse Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - BargeInAllowed = $true - ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" - Prompts = @( + bargeInAllowed = $true + clientContext = "d45324c1-fcb5-430a-902c-f20af696537c" + prompts = @( @{ "@odata.type" = "#microsoft.graph.mediaPrompt" } ) - MaxRecordDurationInSeconds = 10 - InitialSilenceTimeoutInSeconds = 5 - MaxSilenceTimeoutInSeconds = 2 - PlayBeep = $true - StopTones = @( + maxRecordDurationInSeconds = 10 + initialSilenceTimeoutInSeconds = 5 + maxSilenceTimeoutInSeconds = 2 + playBeep = $true + stopTones = @( "#" "1" "*" ) } + Invoke-MgRecordCommunicationCallResponse -CallId $callId -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgRedirectCommunicationCall.md b/src/CloudCommunications/v1.0/examples/Invoke-MgRedirectCommunicationCall.md index 78de10da0db..ea75e9deb83 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgRedirectCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgRedirectCommunicationCall.md @@ -1,45 +1,27 @@ -### Example 1: Using the Invoke-MgRedirectCommunicationCall Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - Targets = @( + targets = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - Application = @{ + phone = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "test bot 2" - Id = "22bfd41f-550e-477d-8789-f6f7bd2a5e8b" + id = "+12345678901" } } } ) - CallbackUri = "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039" + callbackUri = "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039" } + Invoke-MgRedirectCommunicationCall -CallId $callId -BodyParameter $params + ``` 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 -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 -``` -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/v1.0/examples/Invoke-MgRejectCommunicationCall.md b/src/CloudCommunications/v1.0/examples/Invoke-MgRejectCommunicationCall.md index 46c6566b76a..1cc6009694c 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgRejectCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgRejectCommunicationCall.md @@ -1,20 +1,30 @@ -### Example 1: Using the Invoke-MgRejectCommunicationCall Cmdlet +### Example 1: Reject an incoming call with 'Busy' reason + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - Reason = "none" + reason = "busy" } + Invoke-MgRejectCommunicationCall -CallId $callId -BodyParameter $params + ``` -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 +This example will reject an incoming call with 'busy' reason + +### Example 2: Reject an incoming call with 'None' reason + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - Reason = "busy" + reason = "none" } + Invoke-MgRejectCommunicationCall -CallId $callId -BodyParameter $params + ``` -This example shows how to use the Invoke-MgRejectCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will reject an incoming call with 'none' reason + diff --git a/src/CloudCommunications/v1.0/examples/Invoke-MgSubscribeCommunicationCallToTone.md b/src/CloudCommunications/v1.0/examples/Invoke-MgSubscribeCommunicationCallToTone.md index 77e69a9ac3d..2bcd46c770f 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgSubscribeCommunicationCallToTone.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgSubscribeCommunicationCallToTone.md @@ -1,10 +1,15 @@ -### Example 1: Using the Invoke-MgSubscribeCommunicationCallToTone Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - ClientContext = "fd1c7836-4d84-4e24-b6aa-23188688cc54" + clientContext = "fd1c7836-4d84-4e24-b6aa-23188688cc54" } + Invoke-MgSubscribeCommunicationCallToTone -CallId $callId -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgUnmuteCommunicationCall.md b/src/CloudCommunications/v1.0/examples/Invoke-MgUnmuteCommunicationCall.md index be188d22540..95d39a7e790 100644 --- a/src/CloudCommunications/v1.0/examples/Invoke-MgUnmuteCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/Invoke-MgUnmuteCommunicationCall.md @@ -1,10 +1,15 @@ -### Example 1: Using the Invoke-MgUnmuteCommunicationCall Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - ClientContext = "clientContext-value" + clientContext = "clientContext-value" } + Invoke-MgUnmuteCommunicationCall -CallId $callId -BodyParameter $params + ``` 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/v1.0/examples/Move-MgCommunicationCall.md b/src/CloudCommunications/v1.0/examples/Move-MgCommunicationCall.md index 4cdb23a8dad..4c7fdfce22f 100644 --- a/src/CloudCommunications/v1.0/examples/Move-MgCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/Move-MgCommunicationCall.md @@ -1,112 +1,82 @@ -### Example 1: Using the Move-MgCommunicationCall Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - TransferTarget = @{ - EndpointType = "default" - Identity = @{ - User = @{ - Id = "550fae72-d251-43ec-868c-373732c2704f" - DisplayName = "Heidi Steen" + transferTarget = @{ + endpointType = "default" + identity = @{ + user = @{ + id = "550fae72-d251-43ec-868c-373732c2704f" + displayName = "Heidi Steen" } } } } + 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 2: Using the Move-MgCommunicationCall Cmdlet + +### Example 2: Code snippet + ```powershell + Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - TransferTarget = @{ + transferTarget = @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - EndpointType = "default" - Identity = @{ + endpointType = "default" + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "550fae72-d251-43ec-868c-373732c2704f" - DisplayName = "Heidi Steen" + id = "550fae72-d251-43ec-868c-373732c2704f" + displayName = "Heidi Steen" } } - ReplacesCallId = "e5d39592-99bd-4db8-bca8-30fb894ec51d" + 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 3: Using the Move-MgCommunicationCall Cmdlet + +### Example 3: Code snippet + ```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" - } - ClientContext = "9e90d1c1-f61e-43e7-9f75-d420159aae08" -} -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" - } - ClientContext = "9e90d1c1-f61e-43e7-9f75-d420159aae08" -} -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" - DisplayName = "Heidi Steen" + transferTarget = @{ + endpointType = "default" + identity = @{ + user = @{ + id = "550fae72-d251-43ec-868c-373732c2704f" + displayName = "Heidi Steen" } } } - Transferee = @{ - Identity = @{ - User = @{ - Id = "751f6800-3180-414d-bd94-333364659951" - TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" + transferee = @{ + identity = @{ + user = @{ + id = "751f6800-3180-414d-bd94-333364659951" + tenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" } } - ParticipantId = "909c6581-5130-43e9-88f3-fcb3582cde37" + participantId = "909c6581-5130-43e9-88f3-fcb3582cde37" } } + 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/v1.0/examples/New-MgCommunicationCall.md b/src/CloudCommunications/v1.0/examples/New-MgCommunicationCall.md index d468a413852..94cbb907e7b 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/New-MgCommunicationCall.md @@ -1,43 +1,8 @@ -### Example 1: Create peer-to-peer VoIP call with service hosted media +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell -$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 -``` -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: Create peer-to-peer VoIP call with application hosted media - -```powershell Import-Module Microsoft.Graph.CloudCommunications +Import-Module Microsoft.Graph.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -73,18 +38,20 @@ $params = @{ ) mediaConfig = @{ "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - blob = "<Media Session Configuration>" + blob = "" } } -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 3: Create a group call with service hosted media +New-MgCommunicationCall -BodyParameter $params -```powershell Import-Module Microsoft.Graph.CloudCommunications +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. + +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -135,14 +102,16 @@ $params = @{ } } -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: Create a group call with application hosted media +New-MgCommunicationCall -BodyParameter $params + +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. -```powershell Import-Module Microsoft.Graph.CloudCommunications +### Example 3: Code snippet + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -193,14 +162,16 @@ $params = @{ } } -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: Join scheduled meeting with service hosted media +New-MgCommunicationCall -BodyParameter $params + +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. -```powershell Import-Module Microsoft.Graph.CloudCommunications +### Example 4: Code snippet + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -234,14 +205,16 @@ $params = @{ 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 6: Join scheduled meeting with application hosted media +New-MgCommunicationCall -BodyParameter $params + +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. -```powershell Import-Module Microsoft.Graph.CloudCommunications +### Example 5: Code snippet + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -274,14 +247,16 @@ $params = @{ 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: Join a scheduled meeting with joinMeetingId and passcode +New-MgCommunicationCall -BodyParameter $params + +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. -```powershell Import-Module Microsoft.Graph.CloudCommunications +### Example 6: Code snippet + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -302,14 +277,16 @@ $params = @{ 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 8: Join a scheduled meeting with joinMeetingId +New-MgCommunicationCall -BodyParameter $params + +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. + +### Example 7: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -330,14 +307,16 @@ $params = @{ 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 9: Create peer-to-peer PSTN call with service hosted media +New-MgCommunicationCall -BodyParameter $params + +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. + +### Example 8: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -378,14 +357,16 @@ $params = @{ 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: Create peer-to-peer PSTN call with application hosted media +New-MgCommunicationCall -BodyParameter $params + +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. + +### Example 9: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ "@odata.type" = "#microsoft.graph.call" @@ -422,13 +403,13 @@ $params = @{ ) mediaConfig = @{ "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - blob = "<Media Session Configuration>" + 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). - +New-MgCommunicationCall -BodyParameter $params + +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. + diff --git a/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeeting.md index e6b2abd5721..bb117c16dcb 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeeting.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") @@ -9,14 +11,16 @@ $params = @{ } # A UPN can also be used as -UserId. -New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserOnlineMeeting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Code snippet +New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params + +``` +This example shows how to use the New-MgUserOnlineMeeting Cmdlet. + +### Example 2: Code snippet -```powershell Import-Module Microsoft.Graph.CloudCommunications +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") @@ -28,14 +32,16 @@ $params = @{ } # A UPN can also be used as -UserId. -New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserOnlineMeeting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet +New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params + +``` +This example shows how to use the New-MgUserOnlineMeeting Cmdlet. -```powershell Import-Module Microsoft.Graph.CloudCommunications +### Example 3: Code snippet + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications $params = @{ startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") @@ -47,8 +53,8 @@ $params = @{ } # A UPN can also be used as -UserId. -New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserOnlineMeeting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params + +``` +This example shows how to use the New-MgUserOnlineMeeting Cmdlet. + diff --git a/src/DeviceManagement.Actions/v1.0/examples/Disconnect-MgDeviceManagementRemoteAssistancePartner.md b/src/DeviceManagement.Actions/v1.0/examples/Disconnect-MgDeviceManagementRemoteAssistancePartner.md index 093355d11d5..38ddaf19366 100644 --- a/src/DeviceManagement.Actions/v1.0/examples/Disconnect-MgDeviceManagementRemoteAssistancePartner.md +++ b/src/DeviceManagement.Actions/v1.0/examples/Disconnect-MgDeviceManagementRemoteAssistancePartner.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.DeviceManagement.Actions -{{ Add description here }} +Disconnect-MgDeviceManagementRemoteAssistancePartner -RemoteAssistancePartnerId $remoteAssistancePartnerId -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Disconnect-MgDeviceManagementRemoteAssistancePartner Cmdlet. diff --git a/src/DeviceManagement/v1.0/examples/Get-MgDeviceManagement.md b/src/DeviceManagement/v1.0/examples/Get-MgDeviceManagement.md index 8c8abe50507..8c75435182b 100644 --- a/src/DeviceManagement/v1.0/examples/Get-MgDeviceManagement.md +++ b/src/DeviceManagement/v1.0/examples/Get-MgDeviceManagement.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.DeviceManagement +```powershell + +Import-Module Microsoft.Graph.DeviceManagement + +Get-MgDeviceManagement + +``` +This example shows how to use the Get-MgDeviceManagement Cmdlet. -Get-MgDeviceManagement -``` -This example shows how to use the Get-MgDeviceManagement Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintConnector.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintConnector.md index f565f8f4915..f6c6d702f3e 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintConnector.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintConnector.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintConnector -PrintConnectorId $printConnectorId + +``` +This example shows how to use the Get-MgBetaPrintConnector Cmdlet. -Get-MgBetaPrintConnector -PrintConnectorId $printConnectorId -``` -This example shows how to use the Get-MgBetaPrintConnector Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintOperation.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintOperation.md index 173b2aec8b2..9db26e8f6ed 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintOperation.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintOperation -PrintOperationId $printOperationId + +``` +This example shows how to use the Get-MgBetaPrintOperation Cmdlet. -Get-MgBetaPrintOperation -PrintOperationId $printOperationId -``` -This example shows how to use the Get-MgBetaPrintOperation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinter.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinter.md index 9dce37f5adf..f476668a7f1 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinter.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinter.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintPrinter + +``` +This example shows how to use the Get-MgBetaPrintPrinter Cmdlet. -Get-MgBetaPrintPrinter -PrinterId $printerId -``` -This example shows how to use the Get-MgBetaPrintPrinter Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterConnector.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterConnector.md index bf93467d0e7..f1ca2215a80 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterConnector.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterConnector.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaPrintPrinterConnector Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + Get-MgBetaPrintPrinterConnector -PrinterId $printerId + ``` This example shows how to use the Get-MgBetaPrintPrinterConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterTaskTrigger.md index cad4ac141f1..d3b62ff8cf7 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterTaskTrigger.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintPrinterTaskTrigger -PrinterId $printerId + +``` +This example shows how to use the Get-MgBetaPrintPrinterTaskTrigger Cmdlet. -Get-MgBetaPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId -``` -This example shows how to use the Get-MgBetaPrintPrinterTaskTrigger Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintService.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintService.md index 54763e45ec5..f51b19956e6 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintService.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintService.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintService + +``` +This example shows how to use the Get-MgBetaPrintService Cmdlet. -Get-MgBetaPrintService -PrintServiceId $printServiceId -``` -This example shows how to use the Get-MgBetaPrintService Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintServiceEndpoint.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintServiceEndpoint.md index 30c36623418..dba759f20cc 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintServiceEndpoint.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintServiceEndpoint -PrintServiceId $printServiceId + +``` +This example shows how to use the Get-MgBetaPrintServiceEndpoint Cmdlet. -Get-MgBetaPrintServiceEndpoint -PrintServiceId $printServiceId -PrintServiceEndpointId $printServiceEndpointId -``` -This example shows how to use the Get-MgBetaPrintServiceEndpoint Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShare.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShare.md index bf84dda5c95..dca337d2691 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShare.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShare.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintShare + +``` +This example shows how to use the Get-MgBetaPrintShare Cmdlet. -Get-MgBetaPrintShare -PrinterShareId $printerShareId -``` -This example shows how to use the Get-MgBetaPrintShare Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedGroup.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedGroup.md index 75fec27d44e..db900c2e603 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedGroup.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedGroup.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaPrintShareAllowedGroup Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + Get-MgBetaPrintShareAllowedGroup -PrinterShareId $printerShareId + ``` This example shows how to use the Get-MgBetaPrintShareAllowedGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedGroupByRef.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedGroupByRef.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedUser.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedUser.md index 3c402733cff..687898db1c9 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedUser.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedUser.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaPrintShareAllowedUser Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + Get-MgBetaPrintShareAllowedUser -PrinterShareId $printerShareId + ``` This example shows how to use the Get-MgBetaPrintShareAllowedUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedUserByRef.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShareAllowedUserByRef.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md index 67b6920a70e..4706722a251 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintTaskDefinition + +``` +This example shows how to use the Get-MgBetaPrintTaskDefinition Cmdlet. -Get-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -``` -This example shows how to use the Get-MgBetaPrintTaskDefinition Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md index 6d5d3cb49ad..8ad923e68b4 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId + +``` +This example shows how to use the Get-MgBetaPrintTaskDefinitionTask Cmdlet. -Get-MgBetaPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -``` -This example shows how to use the Get-MgBetaPrintTaskDefinitionTask Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShare.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShare.md index c8894c9ec80..70fb9faddb0 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShare.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShare.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint $params = @{ name = "name-value" "printer@odata.bind" = "https://graph.microsoft.com/beta/print/printers/{id}" } -New-MgBetaPrintShare -BodyParameter $params -``` -This example shows how to use the New-MgBetaPrintShare Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaPrintShare -BodyParameter $params + +``` +This example shows how to use the New-MgBetaPrintShare Cmdlet. + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedGroupByRef.md index 37b1763fd2c..54bdbdc4f5f 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedGroupByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint $params = @{ "@odata.id" = "https://graph.microsoft.com/beta/groups/{id}" } -New-MgBetaPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -BodyParameter $params -``` -This example shows how to use the New-MgBetaPrintShareAllowedGroupByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaPrintShareAllowedGroupByRef Cmdlet. + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedUserByRef.md index f35982fce8b..dda90611412 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedUserByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint $params = @{ "@odata.id" = "https://graph.microsoft.com/beta/users/{id}" } -New-MgBetaPrintShareAllowedUserByRef -PrinterShareId $printerShareId -BodyParameter $params -``` -This example shows how to use the New-MgBetaPrintShareAllowedUserByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaPrintShareAllowedUserByRef -PrinterShareId $printerShareId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaPrintShareAllowedUserByRef Cmdlet. + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinition.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinition.md index 49fcac53c5c..63494136674 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinition.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.CloudPrint $params = @{ displayName = "Test TaskDefinitionName" @@ -9,8 +11,8 @@ $params = @{ } } -New-MgBetaPrintTaskDefinition -BodyParameter $params -``` -This example shows how to use the New-MgBetaPrintTaskDefinition Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaPrintTaskDefinition -BodyParameter $params + +``` +This example shows how to use the New-MgBetaPrintTaskDefinition Cmdlet. + diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md index 9e12f1d9d32..ab92fd08646 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintConnector -PrintConnectorId $printConnectorId +``` +This example shows how to use the Get-MgPrintConnector Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Get-MgPrintConnector -PrintConnectorId $printConnectorId -``` -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/v1.0/examples/Get-MgPrintOperation.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintOperation.md index ecbd12bcc6b..508b63db479 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintOperation.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintOperation -PrintOperationId $printOperationId + +``` +This example shows how to use the Get-MgPrintOperation Cmdlet. -Get-MgPrintOperation -PrintOperationId $printOperationId -``` -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/v1.0/examples/Get-MgPrintPrinter.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinter.md index 826f5ced4db..cf9c30f48b2 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinter.md @@ -1,18 +1,22 @@ -### Example 1: Get a printer +### Example 1: Get a printer -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell -Get-MgPrintPrinter -PrinterId $printerId -``` -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: Get a printer and its capabilities +Import-Module Microsoft.Graph.Devices.CloudPrint -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinter -PrinterId $printerId + +``` +This example will get a printer + +### Example 2: Get a printer and its capabilities + +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintPrinter -PrinterId $printerId -Property "id,displayName,capabilities" + +``` +This example will get a printer and its capabilities -Get-MgPrintPrinter -PrinterId $printerId -Property "id,displayName,capabilities" -``` -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/v1.0/examples/Get-MgPrintPrinterConnector.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterConnector.md index 97b97bcef83..201dd6204cd 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterConnector.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterConnector.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintPrinterConnector -PrinterId $printerId + +``` +This example shows how to use the Get-MgPrintPrinterConnector Cmdlet. -Get-MgPrintPrinterConnector -PrinterId $printerId -``` -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/v1.0/examples/Get-MgPrintPrinterShare.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterShare.md index 4e33cb1c7db..686da43f380 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterShare.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterShare.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintPrinterShare -PrinterId $printerId + +``` +This example shows how to use the Get-MgPrintPrinterShare Cmdlet. -Get-MgPrintPrinterShare -PrinterId $printerId -``` -This example shows how to use the Get-MgPrintPrinterShare Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterTaskTrigger.md index 5725d1c49c1..638ca710cec 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterTaskTrigger.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintPrinterTaskTrigger -PrinterId $printerId + +``` +This example shows how to use the Get-MgPrintPrinterTaskTrigger Cmdlet. -Get-MgPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId -``` -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/v1.0/examples/Get-MgPrintService.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintService.md index 39df3998aaf..c92d4ff4f8f 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintService.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintService.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintService + +``` +This example shows how to use the Get-MgPrintService Cmdlet. -Get-MgPrintService -PrintServiceId $printServiceId -``` -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/v1.0/examples/Get-MgPrintServiceEndpoint.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintServiceEndpoint.md index e9a15f24fc8..1287475f8f9 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintServiceEndpoint.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintServiceEndpoint -PrintServiceId $printServiceId + +``` +This example shows how to use the Get-MgPrintServiceEndpoint Cmdlet. -Get-MgPrintServiceEndpoint -PrintServiceId $printServiceId -PrintServiceEndpointId $printServiceEndpointId -``` -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/v1.0/examples/Get-MgPrintShare.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShare.md index 24b4f809f4b..504d1bedecb 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShare.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShare.md @@ -1,18 +1,11 @@ -### Example 1: Get a printerShare +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell -Get-MgPrintShare -PrinterShareId $printerShareId -``` -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: Get a printerShare and its capabilities +Import-Module Microsoft.Graph.Devices.CloudPrint -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShare -PrinterShareId $printerShareId -Property "id,displayName,capabilities" + +``` +This example shows how to use the Get-MgPrintShare Cmdlet. -Get-MgPrintShare -PrinterShareId $printerShareId -Property "id,displayName,capabilities" -``` -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/v1.0/examples/Get-MgPrintShareAllowedGroup.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedGroup.md index dd8a5e19b37..110cedc6ed4 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedGroup.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedGroup.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgPrintShareAllowedGroup Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Devices.CloudPrint + Get-MgPrintShareAllowedGroup -PrinterShareId $printerShareId + ``` 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/v1.0/examples/Get-MgPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedGroupByRef.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedGroupByRef.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedUser.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedUser.md index a48f3c74576..a3ea5ea06db 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedUser.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedUser.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgPrintShareAllowedUser Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Devices.CloudPrint + Get-MgPrintShareAllowedUser -PrinterShareId $printerShareId + ``` 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/v1.0/examples/Get-MgPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedUserByRef.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShareAllowedUserByRef.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md index 6c821c0e05f..135f1746728 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintTaskDefinition + +``` +This example shows how to use the Get-MgPrintTaskDefinition Cmdlet. -Get-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -``` -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/v1.0/examples/Get-MgPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinitionTask.md index c1105ebe9de..8c059c8a017 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinitionTask.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId + +``` +This example shows how to use the Get-MgPrintTaskDefinitionTask Cmdlet. -Get-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -``` -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/v1.0/examples/New-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintPrinterTaskTrigger.md index 53922432fe1..9b6cbe9c1fb 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintPrinterTaskTrigger.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint $params = @{ event = "jobStarted" "definition@odata.bind" = "https://graph.microsoft.com/v1.0/print/taskDefinitions/{taskDefinitionId}" } -New-MgPrintPrinterTaskTrigger -PrinterId $printerId -BodyParameter $params -``` -This example shows how to use the New-MgPrintPrinterTaskTrigger Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgPrintPrinterTaskTrigger -PrinterId $printerId -BodyParameter $params + +``` +This example shows how to use the New-MgPrintPrinterTaskTrigger Cmdlet. + diff --git a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShare.md b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShare.md index f5f9494cd1b..a6448d1de5e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShare.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShare.md @@ -1,6 +1,7 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell +Import-Module Microsoft.Graph.Devices.CloudPrint $params = @{ displayName = "ShareName" @@ -8,8 +9,9 @@ $params = @{ "printer@odata.bind" = "https://graph.microsoft.com/v1.0/print/printers/{printerId}" } -New-MgPrintShare -BodyParameter $params -``` -This example shows how to use the New-MgPrintShare Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgPrintShare -BodyParameter $params +``` +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/v1.0/examples/New-MgPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedGroupByRef.md index c7b371e0963..2e9a707cddb 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedGroupByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/groups/{groupId}" } -New-MgPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -BodyParameter $params -``` -This example shows how to use the New-MgPrintShareAllowedGroupByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -BodyParameter $params + +``` +This example shows how to use the New-MgPrintShareAllowedGroupByRef Cmdlet. + diff --git a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedUserByRef.md index fbc28eb48a9..01117132850 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedUserByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/users/{userId}" } -New-MgPrintShareAllowedUserByRef -PrinterShareId $printerShareId -BodyParameter $params -``` -This example shows how to use the New-MgPrintShareAllowedUserByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgPrintShareAllowedUserByRef -PrinterShareId $printerShareId -BodyParameter $params + +``` +This example shows how to use the New-MgPrintShareAllowedUserByRef Cmdlet. + diff --git a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintTaskDefinition.md index 32452510389..fd9255345d5 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintTaskDefinition.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell + +Import-Module Microsoft.Graph.Devices.CloudPrint $params = @{ displayName = "Test TaskDefinitionName" @@ -9,8 +11,8 @@ $params = @{ } } -New-MgPrintTaskDefinition -BodyParameter $params -``` -This example shows how to use the New-MgPrintTaskDefinition Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgPrintTaskDefinition -BodyParameter $params + +``` +This example shows how to use the New-MgPrintTaskDefinition Cmdlet. + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementHealthOverview.md index bc1c2451cfa..64f7b281539 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementHealthOverview.md @@ -1,18 +1,22 @@ -### Example 1: Get the properties of a serviceHealth object +### Example 1: Get the properties of a serviceHealth object -```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +```powershell -Get-MgBetaServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId -``` -This example shows how to use the Get-MgBetaServiceAnnouncementHealthOverview Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Include navigation property issues +Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +Get-MgBetaServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId + +``` +This example will get the properties of a servicehealth object + +### Example 2: Include navigation property issues + +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId -ExpandProperty "issues" + +``` +This example will include navigation property issues -Get-MgBetaServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId -ExpandProperty "issues" -``` -This example shows how to use the Get-MgBetaServiceAnnouncementHealthOverview Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementIssue.md b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementIssue.md index 68883ee316f..69b3563056f 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementIssue.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementIssue + +``` +This example shows how to use the Get-MgBetaServiceAnnouncementIssue Cmdlet. -Get-MgBetaServiceAnnouncementIssue -ServiceHealthIssueId $serviceHealthIssueId -``` -This example shows how to use the Get-MgBetaServiceAnnouncementIssue Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessage.md index f6aa6d54bf8..7202d82be27 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessage.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +```powershell + +Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementMessage + +``` +This example shows how to use the Get-MgBetaServiceAnnouncementMessage Cmdlet. -Get-MgBetaServiceAnnouncementMessage -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example shows how to use the Get-MgBetaServiceAnnouncementMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachment.md b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachment.md index 8402d67798a..2e895be2757 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachment.md @@ -1,11 +1,11 @@ ### Example 1: Get an attachment with message ID ```powershell + Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement Get-MgBetaServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -``` -This example shows how to use the Get-MgBetaServiceAnnouncementMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get an attachment with message id diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaArchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaArchiveServiceAnnouncementMessage.md index 3ba8b26cd83..2fa81dae66c 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaArchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaArchiveServiceAnnouncementMessage.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgBetaArchiveServiceAnnouncementMessage Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgBetaArchiveServiceAnnouncementMessage -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaArchiveServiceAnnouncementMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaFavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaFavoriteServiceAnnouncementMessage.md index ac8db757e73..2bb96828d01 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaFavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaFavoriteServiceAnnouncementMessage.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgBetaFavoriteServiceAnnouncementMessage Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgBetaFavoriteServiceAnnouncementMessage -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaFavoriteServiceAnnouncementMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageRead.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageRead.md index 3cec38fde87..1bdbf854f55 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageRead.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageRead.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgBetaMarkServiceAnnouncementMessageRead Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgBetaMarkServiceAnnouncementMessageRead -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaMarkServiceAnnouncementMessageRead Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageUnread.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageUnread.md index c69ed4fac6b..50f335ff829 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageUnread.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaMarkServiceAnnouncementMessageUnread.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgBetaMarkServiceAnnouncementMessageUnread Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgBetaMarkServiceAnnouncementMessageUnread -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaMarkServiceAnnouncementMessageUnread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnarchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnarchiveServiceAnnouncementMessage.md index 6b0d7d22f4a..522fc73be45 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnarchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnarchiveServiceAnnouncementMessage.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgBetaUnarchiveServiceAnnouncementMessage Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgBetaUnarchiveServiceAnnouncementMessage -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaUnarchiveServiceAnnouncementMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage.md index 92aad1760ad..3834f0eaaa5 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Invoke-MgBetaUnfavoriteServiceAnnouncementMessage.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgBetaUnfavoriteServiceAnnouncementMessage Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgBetaUnfavoriteServiceAnnouncementMessage -BodyParameter $params + ``` This example shows how to use the Invoke-MgBetaUnfavoriteServiceAnnouncementMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementHealthOverview.md index aa7200ea9bc..f84b47e5e16 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementHealthOverview.md @@ -1,18 +1,22 @@ -### Example 1: Get the properties of a serviceHealth object +### Example 1: Get serviceHealth resources -```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +```powershell -Get-MgServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId -``` -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: Include navigation property issues +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementHealthOverview + +``` +This example will get servicehealth resources + +### Example 2: Include navigation property issues + +```powershell + +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +Get-MgServiceAnnouncementHealthOverview -ExpandProperty "issues" + +``` +This example will include navigation property issues -Get-MgServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId -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/v1.0/examples/Get-MgServiceAnnouncementIssue.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementIssue.md index be7e751ccfc..6af27701189 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementIssue.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +```powershell + +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +Get-MgServiceAnnouncementIssue + +``` +This example shows how to use the Get-MgServiceAnnouncementIssue Cmdlet. -Get-MgServiceAnnouncementIssue -ServiceHealthIssueId $serviceHealthIssueId -``` -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/v1.0/examples/Get-MgServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessage.md index 6e2f8fd3514..930c13c671f 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessage.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +```powershell + +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +Get-MgServiceAnnouncementMessage + +``` +This example shows how to use the Get-MgServiceAnnouncementMessage Cmdlet. -Get-MgServiceAnnouncementMessage -ServiceUpdateMessageId $serviceUpdateMessageId -``` -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/v1.0/examples/Get-MgServiceAnnouncementMessageAttachment.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachment.md index 96c7b99fe76..d111ad4b17e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachment.md @@ -1,11 +1,11 @@ ### Example 1: Get an attachment message ID ```powershell + Import-Module Microsoft.Graph.Devices.ServiceAnnouncement Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -``` -This example shows how to use the Get-MgServiceAnnouncementMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get an attachment message id diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgArchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgArchiveServiceAnnouncementMessage.md index 61d9e4df39d..a06b60ca226 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgArchiveServiceAnnouncementMessage Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgArchiveServiceAnnouncementMessage -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgFavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgFavoriteServiceAnnouncementMessage.md index e16061e638c..fef79683f67 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgFavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgFavoriteServiceAnnouncementMessage.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgFavoriteServiceAnnouncementMessage Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgFavoriteServiceAnnouncementMessage -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageRead.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageRead.md index fb09fa91814..a34cbaa196f 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageRead.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageRead.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgMarkServiceAnnouncementMessageRead Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgMarkServiceAnnouncementMessageRead -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageUnread.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageUnread.md index 0deb99127e4..4afd35faf9e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageUnread.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgMarkServiceAnnouncementMessageUnread.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgMarkServiceAnnouncementMessageUnread Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgMarkServiceAnnouncementMessageUnread -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnarchiveServiceAnnouncementMessage.md index 702d2b0907b..43609950b6e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgUnarchiveServiceAnnouncementMessage Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgUnarchiveServiceAnnouncementMessage -BodyParameter $params + ``` 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/v1.0/examples/Invoke-MgUnfavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnfavoriteServiceAnnouncementMessage.md index 21ff1c40eec..7b994d5f8d2 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnfavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Invoke-MgUnfavoriteServiceAnnouncementMessage.md @@ -1,13 +1,18 @@ -### Example 1: Using the Invoke-MgUnfavoriteServiceAnnouncementMessage Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + $params = @{ - MessageIds = @( + messageIds = @( "MC172851" "MC167983" ) } + Invoke-MgUnfavoriteServiceAnnouncementMessage -BodyParameter $params + ``` 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/beta/examples/Confirm-MgBetaDirectoryObjectMemberGroup.md b/src/DirectoryObjects/beta/examples/Confirm-MgBetaDirectoryObjectMemberGroup.md index 4e57fcc0954..f4185e50e2c 100644 --- a/src/DirectoryObjects/beta/examples/Confirm-MgBetaDirectoryObjectMemberGroup.md +++ b/src/DirectoryObjects/beta/examples/Confirm-MgBetaDirectoryObjectMemberGroup.md @@ -1,8 +1,11 @@ -### Example 1: Using the Confirm-MgBetaDirectoryObjectMemberGroup Cmdlet +### Example 1: Check group memberships for a directory object + ```powershell + Import-Module Microsoft.Graph.Beta.DirectoryObjects + $params = @{ - GroupIds = @( + groupIds = @( "f448435d-3ca7-4073-8152-a1fd73c0fd09" "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" "93670da6-d731-4366-94b5-abed40b6016b" @@ -10,7 +13,9 @@ $params = @{ "c9103f26-f3cf-4004-a611-2a14e81b8f79" ) } + Confirm-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params + ``` -This example shows how to use the Confirm-MgBetaDirectoryObjectMemberGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will check group memberships for a directory object + diff --git a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObject.md b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObject.md index e6419521ba5..1ad232765cd 100644 --- a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObject.md +++ b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObject.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.DirectoryObjects +```powershell + +Import-Module Microsoft.Graph.Beta.DirectoryObjects + +Get-MgBetaDirectoryObject -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Get-MgBetaDirectoryObject Cmdlet. -Get-MgBetaDirectoryObject -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Get-MgBetaDirectoryObject Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectById.md b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectById.md index 5152c646cae..ba9acbc7c3d 100644 --- a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectById.md +++ b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectById.md @@ -1,20 +1,25 @@ -### Example 1: Using the Get-MgBetaDirectoryObjectById Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.DirectoryObjects + $params = @{ - Ids = @( + ids = @( "84b80893-8749-40a3-97b7-68513b600544" "5d6059b6-368d-45f8-91e1-8e07d485f1d0" "0b944de3-e0fc-4774-a49a-b135213725ef" "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" ) - Types = @( + types = @( "user" "group" "device" ) } + Get-MgBetaDirectoryObjectById -BodyParameter $params + ``` This example shows how to use the Get-MgBetaDirectoryObjectById Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectMemberGroup.md b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectMemberGroup.md index 1b86ec0b760..792bd73af0e 100644 --- a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectMemberGroup.md +++ b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObjectMemberGroup.md @@ -1,10 +1,15 @@ -### Example 1: Using the Get-MgBetaDirectoryObjectMemberGroup Cmdlet +### Example 1: Check group memberships for a directory object + ```powershell + Import-Module Microsoft.Graph.Beta.DirectoryObjects + $params = @{ - SecurityEnabledOnly = $false + securityEnabledOnly = $false } + Get-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params + ``` -This example shows how to use the Get-MgBetaDirectoryObjectMemberGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will check group memberships for a directory object + diff --git a/src/DirectoryObjects/v1.0/examples/Confirm-MgDirectoryObjectMemberGroup.md b/src/DirectoryObjects/v1.0/examples/Confirm-MgDirectoryObjectMemberGroup.md index 2dbde67e20b..a1df51a91ac 100644 --- a/src/DirectoryObjects/v1.0/examples/Confirm-MgDirectoryObjectMemberGroup.md +++ b/src/DirectoryObjects/v1.0/examples/Confirm-MgDirectoryObjectMemberGroup.md @@ -1,8 +1,11 @@ -### Example 1: Using the Confirm-MgDirectoryObjectMemberGroup Cmdlet +### Example 1: Check group memberships for a directory object + ```powershell + Import-Module Microsoft.Graph.DirectoryObjects + $params = @{ - GroupIds = @( + groupIds = @( "f448435d-3ca7-4073-8152-a1fd73c0fd09" "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" "93670da6-d731-4366-94b5-abed40b6016b" @@ -10,7 +13,9 @@ $params = @{ "c9103f26-f3cf-4004-a611-2a14e81b8f79" ) } + Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params + ``` -This example shows how to use the Confirm-MgDirectoryObjectMemberGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will check group memberships for a directory object + diff --git a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObject.md b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObject.md index 96d728fa9b1..a6b6d5e302f 100644 --- a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObject.md +++ b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObject.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.DirectoryObjects +```powershell + +Import-Module Microsoft.Graph.DirectoryObjects + +Get-MgDirectoryObject -DirectoryObjectId $directoryObjectId + +``` +This example shows how to use the Get-MgDirectoryObject Cmdlet. -Get-MgDirectoryObject -DirectoryObjectId $directoryObjectId -``` -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/v1.0/examples/Get-MgDirectoryObjectAvailableExtensionProperty.md b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectAvailableExtensionProperty.md index 1a5b43df21e..bf0c164e363 100644 --- a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectAvailableExtensionProperty.md +++ b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectAvailableExtensionProperty.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgDirectoryObjectAvailableExtensionProperty Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.DirectoryObjects + Get-MgDirectoryObjectAvailableExtensionProperty + ``` This example shows how to use the Get-MgDirectoryObjectAvailableExtensionProperty Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectById.md b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectById.md index 2140ce07471..9074f91fd44 100644 --- a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectById.md +++ b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectById.md @@ -1,20 +1,25 @@ -### Example 1: Using the Get-MgDirectoryObjectById Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.DirectoryObjects + $params = @{ - Ids = @( + ids = @( "84b80893-8749-40a3-97b7-68513b600544" "5d6059b6-368d-45f8-91e1-8e07d485f1d0" "0b944de3-e0fc-4774-a49a-b135213725ef" "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" ) - Types = @( + types = @( "user" "group" "device" ) } + Get-MgDirectoryObjectById -BodyParameter $params + ``` 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/v1.0/examples/Get-MgDirectoryObjectMemberGroup.md b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectMemberGroup.md index 6fbbed6e2da..d1e7453e403 100644 --- a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectMemberGroup.md +++ b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObjectMemberGroup.md @@ -1,10 +1,15 @@ -### Example 1: Using the Get-MgDirectoryObjectMemberGroup Cmdlet +### Example 1: Check group memberships for a directory object + ```powershell + Import-Module Microsoft.Graph.DirectoryObjects + $params = @{ - SecurityEnabledOnly = $false + securityEnabledOnly = $false } + Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params + ``` -This example shows how to use the Get-MgDirectoryObjectMemberGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will check group memberships for a directory object + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClass.md b/src/Education/beta/examples/Get-MgBetaEducationClass.md index 28bab367eb8..17f1abb25d8 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClass.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClass.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Education +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClass -EducationClassId $educationClassId + +``` +This example shows how to use the Get-MgBetaEducationClass Cmdlet. -Get-MgBetaEducationClass -EducationClassId $educationClassId -``` -This example shows how to use the Get-MgBetaEducationClass Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Get-MgEducationClass.md b/src/Education/v1.0/examples/Get-MgEducationClass.md index 4f012aa53f4..d8586f24601 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClass.md +++ b/src/Education/v1.0/examples/Get-MgEducationClass.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationClass + +``` +This example shows how to use the Get-MgEducationClass Cmdlet. -Get-MgEducationClass -EducationClassId $educationClassId -``` -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/v1.0/examples/Get-MgEducationClassAssignment.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md index 1e0a499197f..d2e85a10354 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md @@ -1,11 +1,22 @@ -### Example 1: Code snippet +### Example 1: Get assignments ```powershell + Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +Get-MgEducationClassAssignment -EducationClassId $educationClassId + ``` -This example shows how to use the Get-MgEducationClassAssignment Cmdlet. +This example will get assignments + +### Example 2: Get assignments using $expand options + +```powershell -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignment -EducationClassId $educationClassId -ExpandProperty "resources" + +``` +This example will get assignments using $expand options diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentCategory.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentCategory.md index a89bc948057..135d63f2ac1 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentCategory.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentCategory.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId + +``` +This example shows how to use the Get-MgEducationClassAssignmentCategory Cmdlet. -Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId -``` -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/v1.0/examples/Get-MgEducationClassAssignmentDefault.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentDefault.md index 4674a6e5348..5e0202e5e81 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentDefault.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentDefault.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentDefault -EducationClassId $educationClassId + +``` +This example shows how to use the Get-MgEducationClassAssignmentDefault Cmdlet. -Get-MgEducationClassAssignmentDefault -EducationClassId $educationClassId -``` -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/v1.0/examples/Get-MgEducationClassAssignmentResource.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentResource.md index fa123b2b45c..a87188b385f 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentResource.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentResource.md @@ -1,55 +1,11 @@ -### Example 1: Get an educationLinkResource +### Example 1: Code snippet ```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 2: Get an educationExcelResource - -```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 3: Get an educationPowerPointResource - -```powershell -Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -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: Get an educationFileResource - -```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: Get an educationMediaResource - -```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). - diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md index aa1d9813b39..f13381b7c2c 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId + +``` +This example shows how to use the Get-MgEducationClassAssignmentRubric Cmdlet. -Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -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/v1.0/examples/Get-MgEducationClassAssignmentSubmission.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmission.md index 98829acdf05..b8e2aeca64f 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmission.md @@ -1,18 +1,22 @@ -### Example 1: Get submission +### Example 1: Get submissions -```powershell Import-Module Microsoft.Graph.Education +```powershell -Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -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: Get submission with $expand options +Import-Module Microsoft.Graph.Education -```powershell Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId + +``` +This example will get submissions + +### Example 2: Get submissions with $expand options + +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" + +``` +This example will get submissions with $expand options -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). - diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md index 848da98e93a..5e6b4a41605 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,18 +1,22 @@ -### Example 1: Get all outcomes +### Example 1: Get all outcomes -```powershell Import-Module Microsoft.Graph.Education +```powershell -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -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: Get outcomes filtered by outcome type +Import-Module Microsoft.Graph.Education -```powershell Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId + +``` +This example will get all outcomes + +### Example 2: Get outcomes filtered by outcome type + +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" + +``` +This example will get outcomes filtered by outcome type -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" -``` -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/v1.0/examples/Get-MgEducationClassAssignmentSubmissionResource.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionResource.md index 75a216a762b..4cb22e55a93 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionResource.md @@ -1,54 +1,11 @@ -### Example 1: Get an educationWordResource +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell -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 2: Get an educationFileResource +Import-Module Microsoft.Graph.Education -```powershell Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -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 3: Get an educationExcelResource +``` +This example shows how to use 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: Get an educationPowerPointResource - -```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: Get an educationLinkResource - -```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: Get an educationMediaResource - -```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). - diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionSubmittedResource.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionSubmittedResource.md index 9ddff0997cf..a92454f3f3e 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionSubmittedResource.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionSubmittedResource.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId + +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionSubmittedResource Cmdlet. -Get-MgEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionSubmittedResource Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Get-MgEducationClassMember.md b/src/Education/v1.0/examples/Get-MgEducationClassMember.md index 9dd47d93abf..f8801597c09 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassMember.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassMember.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgEducationClassMember Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Education + Get-MgEducationClassMember -EducationClassId $educationClassId + ``` 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/v1.0/examples/Get-MgEducationClassMemberByRef.md b/src/Education/v1.0/examples/Get-MgEducationClassMemberByRef.md index ca57db6b41a..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassMemberByRef.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassMemberByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Get-MgEducationClassMember -EducationClassId $educationClassId -``` -This example shows how to use the Get-MgEducationClassMemberByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Get-MgEducationClassSchool.md b/src/Education/v1.0/examples/Get-MgEducationClassSchool.md index dd35971af7f..cedee37be4e 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassSchool.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassSchool.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationClassSchool -EducationClassId $educationClassId + +``` +This example shows how to use the Get-MgEducationClassSchool Cmdlet. -Get-MgEducationClassSchool -EducationClassId $educationClassId -``` -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/v1.0/examples/Get-MgEducationClassTeacher.md b/src/Education/v1.0/examples/Get-MgEducationClassTeacher.md index 473fe1c18b8..8b8558a0513 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassTeacher.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassTeacher.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgEducationClassTeacher Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Education + Get-MgEducationClassTeacher -EducationClassId $educationClassId + ``` 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/v1.0/examples/Get-MgEducationClassTeacherByRef.md b/src/Education/v1.0/examples/Get-MgEducationClassTeacherByRef.md index ae6b2a3de56..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassTeacherByRef.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassTeacherByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Get-MgEducationClassTeacher -EducationClassId $educationClassId -``` -This example shows how to use the Get-MgEducationClassTeacherByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Get-MgEducationMeAssignment.md b/src/Education/v1.0/examples/Get-MgEducationMeAssignment.md index 665c497ffcc..54c8547cf30 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeAssignment.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeAssignment.md @@ -1,11 +1,11 @@ ### Example 1: Get the assignments of the logged in user ```powershell + Import-Module Microsoft.Graph.Education Get-MgEducationMeAssignment -``` -This example shows how to use the Get-MgEducationMeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get the assignments of the logged in user diff --git a/src/Education/v1.0/examples/Get-MgEducationMeClass.md b/src/Education/v1.0/examples/Get-MgEducationMeClass.md index 001a835d102..23ef6d1eb01 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeClass.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeClass.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationMeClass + +``` +This example shows how to use the Get-MgEducationMeClass Cmdlet. -Get-MgEducationMeClass -``` -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/v1.0/examples/Get-MgEducationMeRubric.md b/src/Education/v1.0/examples/Get-MgEducationMeRubric.md index 773382f88da..9f426fef0c4 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeRubric.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationMeRubric -EducationRubricId $educationRubricId + +``` +This example shows how to use the Get-MgEducationMeRubric Cmdlet. -Get-MgEducationMeRubric -EducationRubricId $educationRubricId -``` -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/v1.0/examples/Get-MgEducationMeSchool.md b/src/Education/v1.0/examples/Get-MgEducationMeSchool.md index 46a845e0bc2..f4e3995d948 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeSchool.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeSchool.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationMeSchool + +``` +This example shows how to use the Get-MgEducationMeSchool Cmdlet. -Get-MgEducationMeSchool -``` -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/v1.0/examples/Get-MgEducationMeUser.md b/src/Education/v1.0/examples/Get-MgEducationMeUser.md index 6060321b768..7539691724b 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeUser.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeUser.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Education Get-MgEducationMeUser + ``` This example shows how to use the Get-MgEducationMeUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Get-MgEducationSchool.md b/src/Education/v1.0/examples/Get-MgEducationSchool.md index a832b6512c3..243a6952f93 100644 --- a/src/Education/v1.0/examples/Get-MgEducationSchool.md +++ b/src/Education/v1.0/examples/Get-MgEducationSchool.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationSchool + +``` +This example shows how to use the Get-MgEducationSchool Cmdlet. -Get-MgEducationSchool -EducationSchoolId $educationSchoolId -``` -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/v1.0/examples/Get-MgEducationSchoolClass.md b/src/Education/v1.0/examples/Get-MgEducationSchoolClass.md index d62c4b40053..cd0c7cd7d88 100644 --- a/src/Education/v1.0/examples/Get-MgEducationSchoolClass.md +++ b/src/Education/v1.0/examples/Get-MgEducationSchoolClass.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgEducationSchoolClass Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Education + Get-MgEducationSchoolClass -EducationSchoolId $educationSchoolId + ``` 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/v1.0/examples/Get-MgEducationSchoolClassByRef.md b/src/Education/v1.0/examples/Get-MgEducationSchoolClassByRef.md index d5960eea3cd..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Get-MgEducationSchoolClassByRef.md +++ b/src/Education/v1.0/examples/Get-MgEducationSchoolClassByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Get-MgEducationSchoolClass -EducationSchoolId $educationSchoolId -``` -This example shows how to use the Get-MgEducationSchoolClassByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Get-MgEducationSchoolUser.md b/src/Education/v1.0/examples/Get-MgEducationSchoolUser.md index 74fbaed65bd..12f9d97d057 100644 --- a/src/Education/v1.0/examples/Get-MgEducationSchoolUser.md +++ b/src/Education/v1.0/examples/Get-MgEducationSchoolUser.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgEducationSchoolUser Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Education + Get-MgEducationSchoolUser -EducationSchoolId $educationSchoolId + ``` 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/v1.0/examples/Get-MgEducationSchoolUserByRef.md b/src/Education/v1.0/examples/Get-MgEducationSchoolUserByRef.md index 1decf4efd62..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Get-MgEducationSchoolUserByRef.md +++ b/src/Education/v1.0/examples/Get-MgEducationSchoolUserByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Get-MgEducationSchoolUser -EducationSchoolId $educationSchoolId -``` -This example shows how to use the Get-MgEducationSchoolUserByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Get-MgEducationUser.md b/src/Education/v1.0/examples/Get-MgEducationUser.md index cd9ae72a0d8..4f678eefbe1 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUser.md +++ b/src/Education/v1.0/examples/Get-MgEducationUser.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationUser -EducationUserId $educationUserId + +``` +This example shows how to use the Get-MgEducationUser Cmdlet. -Get-MgEducationUser -EducationUserId $educationUserId -``` -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/v1.0/examples/Get-MgEducationUserAssignment.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignment.md index 744a4f42387..9ca919226fa 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignment.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignment.md @@ -1,22 +1,22 @@ ### Example 1: Get assignments of a user ```powershell + Import-Module Microsoft.Graph.Education Get-MgEducationUserAssignment -EducationUserId $educationUserId -``` -This example shows how to use the Get-MgEducationUserAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get assignments of a user ### Example 2: Get user assignments with expand submissions ```powershell + Import-Module Microsoft.Graph.Education -Get-MgEducationUserAssignment -EducationUserId $educationUserId -ExpandProperty "submissions" -``` -This example shows how to use the Get-MgEducationUserAssignment Cmdlet. +Get-MgEducationUserAssignment -EducationUserId $educationUserId -ExpandProperty "submissions" -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get user assignments with expand submissions diff --git a/src/Education/v1.0/examples/Get-MgEducationUserTaughtClass.md b/src/Education/v1.0/examples/Get-MgEducationUserTaughtClass.md index 2dc807ee689..bae5adbd8cf 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserTaughtClass.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserTaughtClass.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell +Import-Module Microsoft.Graph.Education + +Get-MgEducationUserTaughtClass -EducationUserId $educationUserId +``` +This example shows how to use the Get-MgEducationUserTaughtClass Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Get-MgEducationUserTaughtClass -EducationUserId $educationUserId -``` -This example shows how to use the Get-MgEducationUserTaughtClass Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Invoke-MgReassignEducationClassAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgReassignEducationClassAssignmentSubmission.md index 09045ac6546..b510c37e123 100644 --- a/src/Education/v1.0/examples/Invoke-MgReassignEducationClassAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgReassignEducationClassAssignmentSubmission.md @@ -1,14 +1,22 @@ -### Example 1: Using the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet +### Example 1: Request without optional Prefer header + ```powershell + Import-Module Microsoft.Graph.Education + Invoke-MgReassignEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId + ``` -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 +This example will request without optional prefer header + +### Example 2: Request with Prefer header + ```powershell + Import-Module Microsoft.Graph.Education + Invoke-MgReassignEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId + ``` -This example shows how to use the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will request with prefer header + diff --git a/src/Education/v1.0/examples/Invoke-MgReassignEducationMeAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgReassignEducationMeAssignmentSubmission.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Invoke-MgReassignEducationMeAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgReassignEducationMeAssignmentSubmission.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Education/v1.0/examples/Invoke-MgReassignEducationUserAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgReassignEducationUserAssignmentSubmission.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Invoke-MgReassignEducationUserAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgReassignEducationUserAssignmentSubmission.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Education/v1.0/examples/Invoke-MgReturnEducationClassAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgReturnEducationClassAssignmentSubmission.md index 02af8895caf..7d5b27c0313 100644 --- a/src/Education/v1.0/examples/Invoke-MgReturnEducationClassAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgReturnEducationClassAssignmentSubmission.md @@ -1,7 +1,11 @@ -### Example 1: Using the Invoke-MgReturnEducationClassAssignmentSubmission Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Education + Invoke-MgReturnEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId + ``` 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/v1.0/examples/Invoke-MgReturnEducationMeAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgReturnEducationMeAssignmentSubmission.md index 1a389760868..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Invoke-MgReturnEducationMeAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgReturnEducationMeAssignmentSubmission.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Invoke-MgReturnEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Invoke-MgReturnEducationMeAssignmentSubmission Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Invoke-MgReturnEducationUserAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgReturnEducationUserAssignmentSubmission.md index 744eef9a72a..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Invoke-MgReturnEducationUserAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgReturnEducationUserAssignmentSubmission.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Invoke-MgReturnEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Invoke-MgReturnEducationUserAssignmentSubmission Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md index 696c90941ec..fae139adcd5 100644 --- a/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md @@ -1,7 +1,11 @@ -### Example 1: Using the Invoke-MgUnsubmitEducationClassAssignmentSubmission Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Education + Invoke-MgUnsubmitEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId + ``` 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/v1.0/examples/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md index 44f5f342e35..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Invoke-MgUnsubmitEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Invoke-MgUnsubmitEducationMeAssignmentSubmission Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md index a655241fe5d..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Invoke-MgUnsubmitEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Invoke-MgUnsubmitEducationUserAssignmentSubmission Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/New-MgEducationClass.md b/src/Education/v1.0/examples/New-MgEducationClass.md index f58249ff1f9..a640cbe90e6 100644 --- a/src/Education/v1.0/examples/New-MgEducationClass.md +++ b/src/Education/v1.0/examples/New-MgEducationClass.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ "@odata.type" = "#microsoft.graph.educationClass" @@ -21,8 +23,8 @@ $params = @{ } } -New-MgEducationClass -BodyParameter $params -``` -This example shows how to use the New-MgEducationClass Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationClass -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClass Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignment.md b/src/Education/v1.0/examples/New-MgEducationClassAssignment.md index 53637856c7a..7c62908f48e 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignment.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ dueDateTime = [System.DateTime]::Parse("2022-09-16T00:00:00Z") @@ -20,8 +22,8 @@ $params = @{ allowStudentsToAddResourcesToSubmission = $true } -New-MgEducationClassAssignment -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignment Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationClassAssignment -EducationClassId $educationClassId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignment Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategory.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategory.md index 2acc7a7109d..b300c0f62d8 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategory.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategory.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ displayName = "Quizzes" } -New-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentCategory Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentCategory Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategoryByRef.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategoryByRef.md index 8444e379d28..42e58dd2073 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategoryByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategoryByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignmentCategories/ec98f158-341d-4fea-9f8c-14a250d489ac" } -New-MgEducationClassAssignmentCategoryByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentCategoryByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationClassAssignmentCategoryByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentCategoryByRef Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentResource.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentResource.md index 3391a6cf057..0574003bb1a 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentResource.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentResource.md @@ -1,6 +1,8 @@ -### Example 1: Create an educationLinkResource +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ distributeForStudentWork = $false @@ -12,14 +14,16 @@ $params = @{ } } -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 2: Create an educationWordResource +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. + +### Example 2: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ distributeForStudentWork = $false @@ -30,14 +34,16 @@ $params = @{ } } -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 3: Create an educationFileResource +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. -```powershell Import-Module Microsoft.Graph.Education +### Example 3: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ distributeForStudentWork = $false @@ -47,14 +53,16 @@ $params = @{ } } -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: Create an educationExcelResource +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. + +### Example 4: Code snippet + +```powershell -```powershell Import-Module Microsoft.Graph.Education +Import-Module Microsoft.Graph.Education $params = @{ distributeForStudentWork = $false @@ -65,32 +73,16 @@ $params = @{ } } -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: Create an educationPowerPointResource +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -```powershell Import-Module Microsoft.Graph.Education +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. -$params = @{ - distributeForStudentWork = $false - resource = @{ - "@odata.type" = "microsoft.graph.educationPowerPointResource" - displayName = "state diagram.pptx" - fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RN327OXRN6EVFE2Q5FRJZTN5EOJ" - } -} +### Example 5: Code snippet -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: Create an educationMediaResource +```powershell -```powershell Import-Module Microsoft.Graph.Education +Import-Module Microsoft.Graph.Education $params = @{ distributeForStudentWork = $false @@ -101,14 +93,16 @@ $params = @{ } } -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: Create an educationTeamsAppResource +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -```powershell Import-Module Microsoft.Graph.Education +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. + +### Example 6: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ distributeForStudentWork = $false @@ -116,14 +110,14 @@ $params = @{ 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" + 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). - +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionOutcome.md index 93e14880ae2..7c570af7965 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ "@odata.type" = "#microsoft.graph.educationFeedbackResourceOutcome" @@ -10,8 +12,8 @@ $params = @{ } } -New-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionOutcome Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionResource.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionResource.md index cbb7556762c..51340d30ab9 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionResource.md @@ -1,6 +1,8 @@ -### Example 1: Create an educationWordResource +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ resource = @{ @@ -10,31 +12,16 @@ $params = @{ } } -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 2: Create an educationLinkResource +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -```powershell Import-Module Microsoft.Graph.Education +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. -$params = @{ - resource = @{ - displayName = "Wikipedia" - link = "https://en.wikipedia.org/wiki/Main_Page" - "@odata.type" = "#microsoft.graph.educationLinkResource" - } -} +### Example 2: Code snippet -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 3: Create an educationFileResource +```powershell -```powershell Import-Module Microsoft.Graph.Education +Import-Module Microsoft.Graph.Education $params = @{ resource = @{ @@ -44,14 +31,16 @@ $params = @{ } } -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: Create an educationExcelResource +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. + +### Example 3: Code snippet + +```powershell -```powershell Import-Module Microsoft.Graph.Education +Import-Module Microsoft.Graph.Education $params = @{ resource = @{ @@ -61,14 +50,16 @@ $params = @{ } } -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: Create an educationPowerPointResource +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -```powershell Import-Module Microsoft.Graph.Education +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. + +### Example 4: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ resource = @{ @@ -78,14 +69,16 @@ $params = @{ } } -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: Create an educationMediaResource +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. -```powershell Import-Module Microsoft.Graph.Education +### Example 5: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ resource = @{ @@ -95,8 +88,8 @@ $params = @{ } } -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). - +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationClassMemberByRef.md b/src/Education/v1.0/examples/New-MgEducationClassMemberByRef.md index ebd8d19fd33..2ec8bc26ff6 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassMemberByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationClassMemberByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/education/users/13015" } -New-MgEducationClassMemberByRef -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassMemberByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationClassMemberByRef -EducationClassId $educationClassId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassMemberByRef Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationClassTeacherByRef.md b/src/Education/v1.0/examples/New-MgEducationClassTeacherByRef.md index 1aeabc807f1..c61defb327a 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassTeacherByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationClassTeacherByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/education/users/14011" } -New-MgEducationClassTeacherByRef -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassTeacherByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationClassTeacherByRef -EducationClassId $educationClassId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationClassTeacherByRef Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategory.md b/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategory.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategory.md +++ b/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategory.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategoryByRef.md b/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategoryByRef.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategoryByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategoryByRef.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Education/v1.0/examples/New-MgEducationMeRubric.md b/src/Education/v1.0/examples/New-MgEducationMeRubric.md index bbbf4b0ba76..35a803e657f 100644 --- a/src/Education/v1.0/examples/New-MgEducationMeRubric.md +++ b/src/Education/v1.0/examples/New-MgEducationMeRubric.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ displayName = "Example Credit Rubric" @@ -68,8 +70,8 @@ $params = @{ ) } -New-MgEducationMeRubric -BodyParameter $params -``` -This example shows how to use the New-MgEducationMeRubric Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationMeRubric -BodyParameter $params + +``` +This example shows how to use the New-MgEducationMeRubric Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationSchool.md b/src/Education/v1.0/examples/New-MgEducationSchool.md index e2773c96a2b..095142afc32 100644 --- a/src/Education/v1.0/examples/New-MgEducationSchool.md +++ b/src/Education/v1.0/examples/New-MgEducationSchool.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ "@odata.type" = "#microsoft.graph.educationSchool" @@ -25,8 +27,8 @@ $params = @{ } } -New-MgEducationSchool -BodyParameter $params -``` -This example shows how to use the New-MgEducationSchool Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationSchool -BodyParameter $params + +``` +This example shows how to use the New-MgEducationSchool Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationSchoolClassByRef.md b/src/Education/v1.0/examples/New-MgEducationSchoolClassByRef.md index 4f4d2925dae..a60463b9c9f 100644 --- a/src/Education/v1.0/examples/New-MgEducationSchoolClassByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationSchoolClassByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell + +Import-Module Microsoft.Graph.Education $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/education/classes/11006" } -New-MgEducationSchoolClassByRef -EducationSchoolId $educationSchoolId -BodyParameter $params -``` -This example shows how to use the New-MgEducationSchoolClassByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationSchoolClassByRef -EducationSchoolId $educationSchoolId -BodyParameter $params + +``` +This example shows how to use the New-MgEducationSchoolClassByRef Cmdlet. + diff --git a/src/Education/v1.0/examples/New-MgEducationSchoolUserByRef.md b/src/Education/v1.0/examples/New-MgEducationSchoolUserByRef.md index f1b482032ab..22d84d2537b 100644 --- a/src/Education/v1.0/examples/New-MgEducationSchoolUserByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationSchoolUserByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell +Import-Module Microsoft.Graph.Education $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/education/users/14008" } -New-MgEducationSchoolUserByRef -EducationSchoolId $educationSchoolId -BodyParameter $params -``` -This example shows how to use the New-MgEducationSchoolUserByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationSchoolUserByRef -EducationSchoolId $educationSchoolId -BodyParameter $params +``` +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/v1.0/examples/New-MgEducationUser.md b/src/Education/v1.0/examples/New-MgEducationUser.md index 33b2b6cfb83..4daf896782c 100644 --- a/src/Education/v1.0/examples/New-MgEducationUser.md +++ b/src/Education/v1.0/examples/New-MgEducationUser.md @@ -1,6 +1,7 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell +Import-Module Microsoft.Graph.Education $params = @{ "@odata.type" = "#microsoft.graph.educationUser" @@ -65,8 +66,9 @@ $params = @{ } } -New-MgEducationUser -BodyParameter $params -``` -This example shows how to use the New-MgEducationUser Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgEducationUser -BodyParameter $params +``` +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/v1.0/examples/New-MgEducationUserAssignmentCategory.md b/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategory.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategory.md +++ b/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategory.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategoryByRef.md b/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategoryByRef.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategoryByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategoryByRef.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Education/v1.0/examples/Publish-MgEducationClassAssignment.md b/src/Education/v1.0/examples/Publish-MgEducationClassAssignment.md index 60310cb3a0c..68bbae8b209 100644 --- a/src/Education/v1.0/examples/Publish-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/Publish-MgEducationClassAssignment.md @@ -1,7 +1,11 @@ -### Example 1: Using the Publish-MgEducationClassAssignment Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Education + Publish-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId + ``` 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/v1.0/examples/Publish-MgEducationMeAssignment.md b/src/Education/v1.0/examples/Publish-MgEducationMeAssignment.md index cc81d88e4c6..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Publish-MgEducationMeAssignment.md +++ b/src/Education/v1.0/examples/Publish-MgEducationMeAssignment.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Publish-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Publish-MgEducationMeAssignment Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Publish-MgEducationUserAssignment.md b/src/Education/v1.0/examples/Publish-MgEducationUserAssignment.md index ac1664e61a4..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Publish-MgEducationUserAssignment.md +++ b/src/Education/v1.0/examples/Publish-MgEducationUserAssignment.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Education - -Publish-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Publish-MgEducationUserAssignment Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/beta/examples/Add-MgBetaDriveListContentTypeCopy.md b/src/Files/beta/examples/Add-MgBetaDriveListContentTypeCopy.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/beta/examples/Add-MgBetaDriveListContentTypeCopy.md +++ b/src/Files/beta/examples/Add-MgBetaDriveListContentTypeCopy.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/beta/examples/Add-MgBetaDriveListContentTypeCopyFromContentTypeHub.md b/src/Files/beta/examples/Add-MgBetaDriveListContentTypeCopyFromContentTypeHub.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/beta/examples/Add-MgBetaDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Files/beta/examples/Add-MgBetaDriveListContentTypeCopyFromContentTypeHub.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/beta/examples/Add-MgBetaShareListContentTypeCopy.md b/src/Files/beta/examples/Add-MgBetaShareListContentTypeCopy.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/beta/examples/Add-MgBetaShareListContentTypeCopy.md +++ b/src/Files/beta/examples/Add-MgBetaShareListContentTypeCopy.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/beta/examples/Add-MgBetaShareListContentTypeCopyFromContentTypeHub.md b/src/Files/beta/examples/Add-MgBetaShareListContentTypeCopyFromContentTypeHub.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/beta/examples/Add-MgBetaShareListContentTypeCopyFromContentTypeHub.md +++ b/src/Files/beta/examples/Add-MgBetaShareListContentTypeCopyFromContentTypeHub.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/beta/examples/Copy-MgBetaDriveItem.md b/src/Files/beta/examples/Copy-MgBetaDriveItem.md index 093355d11d5..e8f27bbd05b 100644 --- a/src/Files/beta/examples/Copy-MgBetaDriveItem.md +++ b/src/Files/beta/examples/Copy-MgBetaDriveItem.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Beta.Files -{{ Add description here }} +$params = @{ + parentReference = @{ + driveId = "6F7D00BF-FC4D-4E62-9769-6AEA81F3A21B" + id = "DCD0D3AD-8989-4F23-A5A2-2C086050513F" + } + name = "contoso plan (copy).txt" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Copy-MgBetaDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Copy-MgBetaDriveItem Cmdlet. diff --git a/src/Files/beta/examples/Copy-MgBetaDriveListContentTypeToDefaultContentLocation.md b/src/Files/beta/examples/Copy-MgBetaDriveListContentTypeToDefaultContentLocation.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/beta/examples/Copy-MgBetaDriveListContentTypeToDefaultContentLocation.md +++ b/src/Files/beta/examples/Copy-MgBetaDriveListContentTypeToDefaultContentLocation.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/beta/examples/Copy-MgBetaDriveRoot.md b/src/Files/beta/examples/Copy-MgBetaDriveRoot.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/beta/examples/Copy-MgBetaDriveRoot.md +++ b/src/Files/beta/examples/Copy-MgBetaDriveRoot.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/beta/examples/Copy-MgBetaShareListContentTypeToDefaultContentLocation.md b/src/Files/beta/examples/Copy-MgBetaShareListContentTypeToDefaultContentLocation.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/beta/examples/Copy-MgBetaShareListContentTypeToDefaultContentLocation.md +++ b/src/Files/beta/examples/Copy-MgBetaShareListContentTypeToDefaultContentLocation.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveBundle.md b/src/Files/beta/examples/Get-MgBetaDriveBundle.md index 6508002ea6a..0ca52c5e9b4 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveBundle.md +++ b/src/Files/beta/examples/Get-MgBetaDriveBundle.md @@ -1,11 +1,22 @@ -### Example 1: Get a bundle +### Example 1: List all bundles in a drive ```powershell + Import-Module Microsoft.Graph.Beta.Files -Get-MgBetaDriveBundle -DriveId $driveId -DriveItemId $driveItemId +Get-MgBetaDriveBundle -DriveId $driveId + ``` -This example shows how to use the Get-MgBetaDriveBundle Cmdlet. +This example will list all bundles in a drive + +### Example 2: List all photo albums in a drive + +```powershell -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaDriveBundle -DriveId $driveId -Filter "bundle/album ne null" + +``` +This example will list all photo albums in a drive diff --git a/src/Files/beta/examples/Get-MgBetaDriveFollowing.md b/src/Files/beta/examples/Get-MgBetaDriveFollowing.md index 093355d11d5..10a83032d94 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveFollowing.md +++ b/src/Files/beta/examples/Get-MgBetaDriveFollowing.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Beta.Files -{{ Add description here }} +Get-MgBetaDriveFollowing -DriveId $driveId -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Get-MgBetaDriveFollowing Cmdlet. diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemChild.md b/src/Files/beta/examples/Get-MgBetaDriveItemChild.md index f6c6949389e..cacc4eb7d55 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemChild.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemChild.md @@ -1,17 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell - PS C:\> {{ Add code here }} -{{ Add output here }} +Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaDriveItemChild -DriveId $driveId -DriveItemId $driveItemId + ``` +This example shows how to use the Get-MgBetaDriveItemChild Cmdlet. -{{ Add description here }} +### Example 2: Code snippet -### Example 2: {{ Add title here }} ```powershell - PS C:\> {{ Add code here }} -{{ Add output here }} +Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaDriveItemChild -DriveId $driveId -DriveItemId $driveItemId + ``` +This example shows how to use the Get-MgBetaDriveItemChild Cmdlet. -{{ Add description here }} diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaDriveItemListItemDocumentSetVersion.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemListItemDocumentSetVersion.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemPermission.md b/src/Files/beta/examples/Get-MgBetaDriveItemPermission.md index e25547b7f7d..24ef4633b67 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemPermission.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemPermission.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Files +```powershell + +Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaDriveItemPermission -DriveId $driveId -DriveItemId $driveItemId + +``` +This example shows how to use the Get-MgBetaDriveItemPermission Cmdlet. -Get-MgBetaDriveItemPermission -DriveId $driveId -DriveItemId $driveItemId -PermissionId $permissionId -``` -This example shows how to use the Get-MgBetaDriveItemPermission Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemThumbnail.md b/src/Files/beta/examples/Get-MgBetaDriveItemThumbnail.md index 093355d11d5..0c909741447 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemThumbnail.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemThumbnail.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} +Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaDriveItemThumbnail -DriveId $driveId -DriveItemId $driveItemId + ``` +This example shows how to use the Get-MgBetaDriveItemThumbnail Cmdlet. -{{ Add description here }} +### Example 2: Code snippet -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaDriveItemThumbnail -DriveId $driveId -DriveItemId $driveItemId -Property "c300x400_crop" -{{ Add description here }} +``` +This example shows how to use the Get-MgBetaDriveItemThumbnail Cmdlet. diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemVersion.md b/src/Files/beta/examples/Get-MgBetaDriveItemVersion.md index c16d4f53493..5b16dfde3b4 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemVersion.md @@ -1,18 +1,22 @@ -### Example 1: Get specified version of a file +### Example 1: Get specified version of a file -```powershell Import-Module Microsoft.Graph.Beta.Files +```powershell -Get-MgBetaDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId -``` -This example shows how to use the Get-MgBetaDriveItemVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get current version of a file +Import-Module Microsoft.Graph.Beta.Files -```powershell Import-Module Microsoft.Graph.Beta.Files +Get-MgBetaDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId + +``` +This example will get specified version of a file + +### Example 2: Get current version of a file + +```powershell + +Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId + +``` +This example will get current version of a file -Get-MgBetaDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId -``` -This example shows how to use the Get-MgBetaDriveItemVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemVersionContent.md b/src/Files/beta/examples/Get-MgBetaDriveItemVersionContent.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemVersionContent.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemVersionContent.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Files/beta/examples/Get-MgBetaDriveListColumn.md b/src/Files/beta/examples/Get-MgBetaDriveListColumn.md index dfa77fbdff1..e69de29bb2d 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveListColumn.md +++ b/src/Files/beta/examples/Get-MgBetaDriveListColumn.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSiteListColumn -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgBetaDriveListColumn Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/beta/examples/Get-MgBetaDriveListContentType.md b/src/Files/beta/examples/Get-MgBetaDriveListContentType.md index 3f6e5b0ed44..e69de29bb2d 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveListContentType.md +++ b/src/Files/beta/examples/Get-MgBetaDriveListContentType.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSiteListContentType -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgBetaDriveListContentType Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/v1.0/examples/Add-MgDriveListContentTypeCopy.md b/src/Files/v1.0/examples/Add-MgDriveListContentTypeCopy.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Add-MgDriveListContentTypeCopy.md +++ b/src/Files/v1.0/examples/Add-MgDriveListContentTypeCopy.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/v1.0/examples/Add-MgDriveListContentTypeCopyFromContentTypeHub.md b/src/Files/v1.0/examples/Add-MgDriveListContentTypeCopyFromContentTypeHub.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Add-MgDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Files/v1.0/examples/Add-MgDriveListContentTypeCopyFromContentTypeHub.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/v1.0/examples/Add-MgShareListContentTypeCopy.md b/src/Files/v1.0/examples/Add-MgShareListContentTypeCopy.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Add-MgShareListContentTypeCopy.md +++ b/src/Files/v1.0/examples/Add-MgShareListContentTypeCopy.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/v1.0/examples/Add-MgShareListContentTypeCopyFromContentTypeHub.md b/src/Files/v1.0/examples/Add-MgShareListContentTypeCopyFromContentTypeHub.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Add-MgShareListContentTypeCopyFromContentTypeHub.md +++ b/src/Files/v1.0/examples/Add-MgShareListContentTypeCopyFromContentTypeHub.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/v1.0/examples/Copy-MgDriveItem.md b/src/Files/v1.0/examples/Copy-MgDriveItem.md index 093355d11d5..23a489e798d 100644 --- a/src/Files/v1.0/examples/Copy-MgDriveItem.md +++ b/src/Files/v1.0/examples/Copy-MgDriveItem.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Files -{{ Add description here }} +$params = @{ + parentReference = @{ + driveId = "6F7D00BF-FC4D-4E62-9769-6AEA81F3A21B" + id = "DCD0D3AD-8989-4F23-A5A2-2C086050513F" + } + name = "contoso plan (copy).txt" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Copy-MgDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Copy-MgDriveItem Cmdlet. diff --git a/src/Files/v1.0/examples/Copy-MgDriveListContentTypeToDefaultContentLocation.md b/src/Files/v1.0/examples/Copy-MgDriveListContentTypeToDefaultContentLocation.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Copy-MgDriveListContentTypeToDefaultContentLocation.md +++ b/src/Files/v1.0/examples/Copy-MgDriveListContentTypeToDefaultContentLocation.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/v1.0/examples/Copy-MgDriveRoot.md b/src/Files/v1.0/examples/Copy-MgDriveRoot.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Copy-MgDriveRoot.md +++ b/src/Files/v1.0/examples/Copy-MgDriveRoot.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/v1.0/examples/Copy-MgShareListContentTypeToDefaultContentLocation.md b/src/Files/v1.0/examples/Copy-MgShareListContentTypeToDefaultContentLocation.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Copy-MgShareListContentTypeToDefaultContentLocation.md +++ b/src/Files/v1.0/examples/Copy-MgShareListContentTypeToDefaultContentLocation.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveBundle.md b/src/Files/v1.0/examples/Get-MgDriveBundle.md index e42b1773d28..b802528a86f 100644 --- a/src/Files/v1.0/examples/Get-MgDriveBundle.md +++ b/src/Files/v1.0/examples/Get-MgDriveBundle.md @@ -1,11 +1,11 @@ ### Example 1: Get a bundle ```powershell + Import-Module Microsoft.Graph.Files Get-MgDriveBundle -DriveId $driveId -DriveItemId $driveItemId -``` -This example shows how to use the Get-MgDriveBundle Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get a bundle diff --git a/src/Files/v1.0/examples/Get-MgDriveFollowing.md b/src/Files/v1.0/examples/Get-MgDriveFollowing.md index 1e096575092..d498c444be8 100644 --- a/src/Files/v1.0/examples/Get-MgDriveFollowing.md +++ b/src/Files/v1.0/examples/Get-MgDriveFollowing.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Files +```powershell + +Import-Module Microsoft.Graph.Files + +Get-MgDriveFollowing -DriveId $driveId + +``` +This example shows how to use the Get-MgDriveFollowing Cmdlet. -Get-MgDriveFollowing -DriveId $driveId -``` -This example shows how to use the Get-MgDriveFollowing Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/v1.0/examples/Get-MgDriveItem.md b/src/Files/v1.0/examples/Get-MgDriveItem.md index cbf330f04da..27caba816dd 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItem.md +++ b/src/Files/v1.0/examples/Get-MgDriveItem.md @@ -1,11 +1,11 @@ ### Example 1: Get a bundle and its children in a single call ```powershell + Import-Module Microsoft.Graph.Files -Get-MgDriveItem -DriveId $driveId -DriveItemId $driveItemId -ExpandProperty "children" -``` -This example shows how to use the Get-MgDriveItem Cmdlet. +Get-MgDriveItem -DriveId $driveId -DriveItemId $driveItemId -ExpandProperty "children" -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get a bundle and its children in a single call diff --git a/src/Files/v1.0/examples/Get-MgDriveItemChild.md b/src/Files/v1.0/examples/Get-MgDriveItemChild.md index f54b68e38b3..8966c72d6ab 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemChild.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemChild.md @@ -1,18 +1,22 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Files +```powershell -Get-MgDriveItemChild -DriveId $driveId -DriveItemId $driveItemId -``` -This example shows how to use the Get-MgDriveItemChild Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Code snippet +Import-Module Microsoft.Graph.Files -```powershell Import-Module Microsoft.Graph.Files +Get-MgDriveItemChild -DriveId $driveId -DriveItemId $driveItemId + +``` +This example shows how to use the Get-MgDriveItemChild Cmdlet. + +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Files + +Get-MgDriveItemChild -DriveId $driveId -DriveItemId $driveItemId + +``` +This example shows how to use the Get-MgDriveItemChild Cmdlet. -Get-MgDriveItemChild -DriveId $driveId -DriveItemId $driveItemId -``` -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/v1.0/examples/Get-MgDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgDriveItemListItemDocumentSetVersion.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemListItemDocumentSetVersion.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Files/v1.0/examples/Get-MgDriveItemListItemVersion.md b/src/Files/v1.0/examples/Get-MgDriveItemListItemVersion.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemListItemVersion.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Files/v1.0/examples/Get-MgDriveItemPermission.md b/src/Files/v1.0/examples/Get-MgDriveItemPermission.md index 6def7b51e7b..166343fb8ad 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemPermission.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemPermission.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Files +```powershell + +Import-Module Microsoft.Graph.Files + +Get-MgDriveItemPermission -DriveId $driveId -DriveItemId $driveItemId + +``` +This example shows how to use the Get-MgDriveItemPermission Cmdlet. -Get-MgDriveItemPermission -DriveId $driveId -DriveItemId $driveItemId -PermissionId $permissionId -``` -This example shows how to use the Get-MgDriveItemPermission Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/v1.0/examples/Get-MgDriveItemThumbnail.md b/src/Files/v1.0/examples/Get-MgDriveItemThumbnail.md index 15039408479..7c074d4dbda 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemThumbnail.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemThumbnail.md @@ -1,22 +1,22 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Files Get-MgDriveItemThumbnail -DriveId $driveId -DriveItemId $driveItemId + ``` This example shows how to use the Get-MgDriveItemThumbnail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - ### Example 2: Code snippet ```powershell + Import-Module Microsoft.Graph.Files -Get-MgDriveItemThumbnail -DriveId $driveId -DriveItemId $driveItemId -Property "c300x400_crop" +Get-MgDriveItemThumbnail -DriveId $driveId -DriveItemId $driveItemId -Property "c300x400_crop" + ``` This example shows how to use the Get-MgDriveItemThumbnail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/v1.0/examples/Get-MgDriveItemVersion.md b/src/Files/v1.0/examples/Get-MgDriveItemVersion.md index 02f80e4c8d1..ed6f5ef1068 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemVersion.md @@ -1,18 +1,22 @@ -### Example 1: Get specified version of a file +### Example 1: Get specified version of a file -```powershell Import-Module Microsoft.Graph.Files +```powershell -Get-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId -``` -This example shows how to use the Get-MgDriveItemVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get current version of a file +Import-Module Microsoft.Graph.Files -```powershell Import-Module Microsoft.Graph.Files +Get-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId + +``` +This example will get specified version of a file + +### Example 2: Get current version of a file + +```powershell + +Import-Module Microsoft.Graph.Files + +Get-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId + +``` +This example will get current version of a file -Get-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId -``` -This example shows how to use the Get-MgDriveItemVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/v1.0/examples/Get-MgDriveItemVersionContent.md b/src/Files/v1.0/examples/Get-MgDriveItemVersionContent.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemVersionContent.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemVersionContent.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Files/v1.0/examples/Get-MgDriveListColumn.md b/src/Files/v1.0/examples/Get-MgDriveListColumn.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Get-MgDriveListColumn.md +++ b/src/Files/v1.0/examples/Get-MgDriveListColumn.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Files/v1.0/examples/Get-MgDriveListContentType.md b/src/Files/v1.0/examples/Get-MgDriveListContentType.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Get-MgDriveListContentType.md +++ b/src/Files/v1.0/examples/Get-MgDriveListContentType.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Groups/beta/examples/Add-MgBetaGroupDriveListContentTypeCopy.md b/src/Groups/beta/examples/Add-MgBetaGroupDriveListContentTypeCopy.md index e0346cceb7d..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Add-MgBetaGroupDriveListContentTypeCopy.md +++ b/src/Groups/beta/examples/Add-MgBetaGroupDriveListContentTypeCopy.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgBetaSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaGroupDriveListContentTypeCopy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Add-MgBetaGroupDriveListContentTypeCopyFromContentTypeHub.md b/src/Groups/beta/examples/Add-MgBetaGroupDriveListContentTypeCopyFromContentTypeHub.md index d640a49f3fd..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Add-MgBetaGroupDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/beta/examples/Add-MgBetaGroupDriveListContentTypeCopyFromContentTypeHub.md @@ -1,30 +0,0 @@ -### Example 1: Synchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaGroupDriveListContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaGroupDriveListContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Add-MgBetaGroupFavorite.md b/src/Groups/beta/examples/Add-MgBetaGroupFavorite.md index ec1145bd9da..0e4cede6247 100644 --- a/src/Groups/beta/examples/Add-MgBetaGroupFavorite.md +++ b/src/Groups/beta/examples/Add-MgBetaGroupFavorite.md @@ -1,7 +1,11 @@ -### Example 1: Using the Add-MgBetaGroupFavorite Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Groups + Add-MgBetaGroupFavorite -GroupId $groupId + ``` This example shows how to use the Add-MgBetaGroupFavorite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Add-MgBetaGroupSiteContentTypeCopy.md b/src/Groups/beta/examples/Add-MgBetaGroupSiteContentTypeCopy.md index c11e6b4bf48..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Add-MgBetaGroupSiteContentTypeCopy.md +++ b/src/Groups/beta/examples/Add-MgBetaGroupSiteContentTypeCopy.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgBetaSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaGroupSiteContentTypeCopy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Add-MgBetaGroupSiteContentTypeCopyFromContentTypeHub.md b/src/Groups/beta/examples/Add-MgBetaGroupSiteContentTypeCopyFromContentTypeHub.md index 9839cd7bc96..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Add-MgBetaGroupSiteContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/beta/examples/Add-MgBetaGroupSiteContentTypeCopyFromContentTypeHub.md @@ -1,30 +0,0 @@ -### Example 1: Synchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaGroupSiteContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaGroupSiteContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Add-MgBetaGroupSiteListContentTypeCopy.md b/src/Groups/beta/examples/Add-MgBetaGroupSiteListContentTypeCopy.md index 82c7bf1bca4..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Add-MgBetaGroupSiteListContentTypeCopy.md +++ b/src/Groups/beta/examples/Add-MgBetaGroupSiteListContentTypeCopy.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgBetaSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaGroupSiteListContentTypeCopy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Add-MgBetaGroupSiteListContentTypeCopyFromContentTypeHub.md b/src/Groups/beta/examples/Add-MgBetaGroupSiteListContentTypeCopyFromContentTypeHub.md index ed7c1ee1820..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Add-MgBetaGroupSiteListContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/beta/examples/Add-MgBetaGroupSiteListContentTypeCopyFromContentTypeHub.md @@ -1,30 +0,0 @@ -### Example 1: Synchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaGroupSiteListContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaGroupSiteListContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Confirm-MgBetaGroupMemberGroup.md b/src/Groups/beta/examples/Confirm-MgBetaGroupMemberGroup.md index ef4983f981e..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Confirm-MgBetaGroupMemberGroup.md +++ b/src/Groups/beta/examples/Confirm-MgBetaGroupMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaGroupMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaGroupMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Confirm-MgBetaGroupPermissionGrantMemberGroup.md b/src/Groups/beta/examples/Confirm-MgBetaGroupPermissionGrantMemberGroup.md index 1af2d631647..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Confirm-MgBetaGroupPermissionGrantMemberGroup.md +++ b/src/Groups/beta/examples/Confirm-MgBetaGroupPermissionGrantMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaGroupPermissionGrantMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaGroupPermissionGrantMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Copy-MgBetaGroupDriveItem.md b/src/Groups/beta/examples/Copy-MgBetaGroupDriveItem.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Copy-MgBetaGroupDriveItem.md +++ b/src/Groups/beta/examples/Copy-MgBetaGroupDriveItem.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Groups/beta/examples/Copy-MgBetaGroupDriveListContentTypeToDefaultContentLocation.md b/src/Groups/beta/examples/Copy-MgBetaGroupDriveListContentTypeToDefaultContentLocation.md index 4c36e33b4c5..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Copy-MgBetaGroupDriveListContentTypeToDefaultContentLocation.md +++ b/src/Groups/beta/examples/Copy-MgBetaGroupDriveListContentTypeToDefaultContentLocation.md @@ -1,21 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - SourceFile = @{ - SharepointIds = @{ - ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" - ListItemId = "2" - } - } - DestinationFileName = "newname.txt" -} - -Copy-MgBetaSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaGroupDriveListContentTypeToDefaultContentLocation Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Copy-MgBetaGroupDriveRoot.md b/src/Groups/beta/examples/Copy-MgBetaGroupDriveRoot.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Copy-MgBetaGroupDriveRoot.md +++ b/src/Groups/beta/examples/Copy-MgBetaGroupDriveRoot.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteNotebook.md b/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteNotebook.md index ddd7baaab94..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteNotebook.md +++ b/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteNotebook.md @@ -1,17 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupId = "groupId-value" - RenameAs = "renameAs-value" -} - -# A UPN can also be used as -UserId. -Copy-MgBetaUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaGroupOnenoteNotebook Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Copy-MgBetaGroupOnenotePageToSection.md b/src/Groups/beta/examples/Copy-MgBetaGroupOnenotePageToSection.md index 78cafbc7369..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Copy-MgBetaGroupOnenotePageToSection.md +++ b/src/Groups/beta/examples/Copy-MgBetaGroupOnenotePageToSection.md @@ -1,17 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - Id = "id-value" - GroupId = "groupId-value" -} - -# A UPN can also be used as -UserId. -Copy-MgBetaUserOnenotePageToSection -UserId $userId -OnenotePageId $onenotePageId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaGroupOnenotePageToSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteSectionToNotebook.md b/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteSectionToNotebook.md index 0bce2756a60..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteSectionToNotebook.md +++ b/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteSectionToNotebook.md @@ -1,18 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - Id = "id-value" - GroupId = "groupId-value" - RenameAs = "renameAs-value" -} - -# A UPN can also be used as -UserId. -Copy-MgBetaUserOnenoteSectionToNotebook -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaGroupOnenoteSectionToNotebook Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteSectionToSectionGroup.md b/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteSectionToSectionGroup.md index 56914fd0fb7..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteSectionToSectionGroup.md +++ b/src/Groups/beta/examples/Copy-MgBetaGroupOnenoteSectionToSectionGroup.md @@ -1,18 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - Id = "id-value" - GroupId = "groupId-value" - RenameAs = "renameAs-value" -} - -# A UPN can also be used as -UserId. -Copy-MgBetaUserOnenoteSectionToSectionGroup -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaGroupOnenoteSectionToSectionGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Copy-MgBetaGroupSiteContentTypeToDefaultContentLocation.md b/src/Groups/beta/examples/Copy-MgBetaGroupSiteContentTypeToDefaultContentLocation.md index 1ebea1caf23..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Copy-MgBetaGroupSiteContentTypeToDefaultContentLocation.md +++ b/src/Groups/beta/examples/Copy-MgBetaGroupSiteContentTypeToDefaultContentLocation.md @@ -1,21 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - SourceFile = @{ - SharepointIds = @{ - ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" - ListItemId = "2" - } - } - DestinationFileName = "newname.txt" -} - -Copy-MgBetaSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaGroupSiteContentTypeToDefaultContentLocation Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Copy-MgBetaGroupSiteListContentTypeToDefaultContentLocation.md b/src/Groups/beta/examples/Copy-MgBetaGroupSiteListContentTypeToDefaultContentLocation.md index 84fea0ab5d2..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Copy-MgBetaGroupSiteListContentTypeToDefaultContentLocation.md +++ b/src/Groups/beta/examples/Copy-MgBetaGroupSiteListContentTypeToDefaultContentLocation.md @@ -1,21 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - SourceFile = @{ - SharepointIds = @{ - ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" - ListItemId = "2" - } - } - DestinationFileName = "newname.txt" -} - -Copy-MgBetaSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaGroupSiteListContentTypeToDefaultContentLocation Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupAcceptedSender.md b/src/Groups/beta/examples/Get-MgBetaGroupAcceptedSender.md index ac1612bf1ef..75b95401104 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupAcceptedSender.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupAcceptedSender.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaGroupAcceptedSender Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Groups + Get-MgBetaGroupAcceptedSender -GroupId $groupId + ``` This example shows how to use the Get-MgBetaGroupAcceptedSender Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Get-MgBetaGroupAcceptedSenderByRef.md b/src/Groups/beta/examples/Get-MgBetaGroupAcceptedSenderByRef.md index 635a1ffbea7..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupAcceptedSenderByRef.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupAcceptedSenderByRef.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Groups - -Get-MgBetaGroupAcceptedSender -GroupId $groupId -``` -This example shows how to use the Get-MgBetaGroupAcceptedSenderByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupById.md b/src/Groups/beta/examples/Get-MgBetaGroupById.md index 848334fac80..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupById.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupById.md @@ -1,25 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectById -BodyParameter $params -``` -This example shows how to use the Get-MgBetaGroupById Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupCalendarSchedule.md b/src/Groups/beta/examples/Get-MgBetaGroupCalendarSchedule.md index 94b36d8148a..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupCalendarSchedule.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupCalendarSchedule.md @@ -1,28 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaUserDefaultCalendarSchedule -UserId $userId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaGroupCalendarSchedule Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupConversation.md b/src/Groups/beta/examples/Get-MgBetaGroupConversation.md index 803759332ba..b6e6df66db8 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupConversation.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupConversation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Groups +```powershell + +Import-Module Microsoft.Graph.Beta.Groups + +Get-MgBetaGroupConversation -GroupId $groupId + +``` +This example shows how to use the Get-MgBetaGroupConversation Cmdlet. -Get-MgBetaGroupConversation -GroupId $groupId -ConversationId $conversationId -``` -This example shows how to use the Get-MgBetaGroupConversation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupConversationThread.md b/src/Groups/beta/examples/Get-MgBetaGroupConversationThread.md index 8c85f65aa08..fb12096c873 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupConversationThread.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupConversationThread.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaGroupConversationThread Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Groups + Get-MgBetaGroupConversationThread -GroupId $groupId -ConversationId $conversationId + ``` This example shows how to use the Get-MgBetaGroupConversationThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPost.md b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPost.md index d4cf6690e4d..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPost.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPost.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Groups - -Get-MgBetaGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -``` -This example shows how to use the Get-MgBetaGroupConversationThreadPost Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostAttachment.md b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostAttachment.md index 301d5fc8574..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostAttachment.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostAttachment.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Groups - -Get-MgBetaGroupThreadPostAttachment -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -``` -This example shows how to use the Get-MgBetaGroupConversationThreadPostAttachment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostInReplyToAttachment.md b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostInReplyToAttachment.md index 82ddbc926a8..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostInReplyToAttachment.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostInReplyToAttachment.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Groups - -Get-MgBetaGroupThreadPostAttachment -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -``` -This example shows how to use the Get-MgBetaGroupConversationThreadPostInReplyToAttachment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Add-MgGroupDriveListContentTypeCopy.md b/src/Groups/v1.0/examples/Add-MgGroupDriveListContentTypeCopy.md index 20ef36cf54b..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Add-MgGroupDriveListContentTypeCopy.md +++ b/src/Groups/v1.0/examples/Add-MgGroupDriveListContentTypeCopy.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgGroupDriveListContentTypeCopy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md b/src/Groups/v1.0/examples/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md index d8e9f3405d8..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/v1.0/examples/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md @@ -1,26 +0,0 @@ -### Example 1: Synchronous pull - -```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-MgGroupDriveListContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```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-MgGroupDriveListContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Add-MgGroupFavorite.md b/src/Groups/v1.0/examples/Add-MgGroupFavorite.md index d0fba8517ea..b4414ec8928 100644 --- a/src/Groups/v1.0/examples/Add-MgGroupFavorite.md +++ b/src/Groups/v1.0/examples/Add-MgGroupFavorite.md @@ -1,7 +1,11 @@ -### Example 1: Using the Add-MgGroupFavorite Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Groups + Add-MgGroupFavorite -GroupId $groupId + ``` 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/v1.0/examples/Add-MgGroupSiteContentTypeCopy.md b/src/Groups/v1.0/examples/Add-MgGroupSiteContentTypeCopy.md index 786bb789ba6..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Add-MgGroupSiteContentTypeCopy.md +++ b/src/Groups/v1.0/examples/Add-MgGroupSiteContentTypeCopy.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgGroupSiteContentTypeCopy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md b/src/Groups/v1.0/examples/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md index df305c5cb98..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/v1.0/examples/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md @@ -1,26 +0,0 @@ -### Example 1: Synchronous pull - -```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-MgGroupSiteContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```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-MgGroupSiteContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Add-MgGroupSiteListContentTypeCopy.md b/src/Groups/v1.0/examples/Add-MgGroupSiteListContentTypeCopy.md index fb73eacda86..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Add-MgGroupSiteListContentTypeCopy.md +++ b/src/Groups/v1.0/examples/Add-MgGroupSiteListContentTypeCopy.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgGroupSiteListContentTypeCopy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md b/src/Groups/v1.0/examples/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md index 1723e67ff68..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/v1.0/examples/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md @@ -1,26 +0,0 @@ -### Example 1: Synchronous pull - -```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-MgGroupSiteListContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```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-MgGroupSiteListContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Add-MgGroupToLifecyclePolicy.md b/src/Groups/v1.0/examples/Add-MgGroupToLifecyclePolicy.md index 093355d11d5..8b5e2366120 100644 --- a/src/Groups/v1.0/examples/Add-MgGroupToLifecyclePolicy.md +++ b/src/Groups/v1.0/examples/Add-MgGroupToLifecyclePolicy.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Groups -{{ Add description here }} +$params = @{ + groupId = "ffffffff-ffff-ffff-ffff-ffffffffffff" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgGroupToLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Add-MgGroupToLifecyclePolicy Cmdlet. diff --git a/src/Groups/v1.0/examples/Confirm-MgGroupMemberGroup.md b/src/Groups/v1.0/examples/Confirm-MgGroupMemberGroup.md index abb97f1cdf6..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Confirm-MgGroupMemberGroup.md +++ b/src/Groups/v1.0/examples/Confirm-MgGroupMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgGroupMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgGroupMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Confirm-MgGroupPermissionGrantMemberGroup.md b/src/Groups/v1.0/examples/Confirm-MgGroupPermissionGrantMemberGroup.md index ad70b2f1159..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Confirm-MgGroupPermissionGrantMemberGroup.md +++ b/src/Groups/v1.0/examples/Confirm-MgGroupPermissionGrantMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgGroupPermissionGrantMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgGroupPermissionGrantMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Copy-MgGroupDriveItem.md b/src/Groups/v1.0/examples/Copy-MgGroupDriveItem.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Copy-MgGroupDriveItem.md +++ b/src/Groups/v1.0/examples/Copy-MgGroupDriveItem.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md b/src/Groups/v1.0/examples/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md index 8d619750093..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md +++ b/src/Groups/v1.0/examples/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md @@ -1,19 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgGroupDriveListContentTypeToDefaultContentLocation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Copy-MgGroupDriveRoot.md b/src/Groups/v1.0/examples/Copy-MgGroupDriveRoot.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Copy-MgGroupDriveRoot.md +++ b/src/Groups/v1.0/examples/Copy-MgGroupDriveRoot.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Copy-MgGroupOnenoteNotebook.md b/src/Groups/v1.0/examples/Copy-MgGroupOnenoteNotebook.md index 823360dbfc2..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Copy-MgGroupOnenoteNotebook.md +++ b/src/Groups/v1.0/examples/Copy-MgGroupOnenoteNotebook.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgGroupOnenoteNotebook Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Copy-MgGroupOnenotePageToSection.md b/src/Groups/v1.0/examples/Copy-MgGroupOnenotePageToSection.md index 5b71558b3a2..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Copy-MgGroupOnenotePageToSection.md +++ b/src/Groups/v1.0/examples/Copy-MgGroupOnenotePageToSection.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgGroupOnenotePageToSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Copy-MgGroupOnenoteSectionToNotebook.md b/src/Groups/v1.0/examples/Copy-MgGroupOnenoteSectionToNotebook.md index 3768165ad57..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Copy-MgGroupOnenoteSectionToNotebook.md +++ b/src/Groups/v1.0/examples/Copy-MgGroupOnenoteSectionToNotebook.md @@ -1,16 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgGroupOnenoteSectionToNotebook Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Copy-MgGroupOnenoteSectionToSectionGroup.md b/src/Groups/v1.0/examples/Copy-MgGroupOnenoteSectionToSectionGroup.md index 28e4680d161..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Copy-MgGroupOnenoteSectionToSectionGroup.md +++ b/src/Groups/v1.0/examples/Copy-MgGroupOnenoteSectionToSectionGroup.md @@ -1,16 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgGroupOnenoteSectionToSectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md b/src/Groups/v1.0/examples/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md index c909beda839..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md +++ b/src/Groups/v1.0/examples/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md @@ -1,19 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgGroupSiteContentTypeToDefaultContentLocation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md b/src/Groups/v1.0/examples/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md index 06e5517fe09..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md +++ b/src/Groups/v1.0/examples/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md @@ -1,19 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgGroupSiteListContentTypeToDefaultContentLocation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Get-MgGroupAcceptedSender.md b/src/Groups/v1.0/examples/Get-MgGroupAcceptedSender.md index 99b4f1ef2e8..8eefe5e904f 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupAcceptedSender.md +++ b/src/Groups/v1.0/examples/Get-MgGroupAcceptedSender.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgGroupAcceptedSender Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Groups + Get-MgGroupAcceptedSender -GroupId $groupId + ``` 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/v1.0/examples/Get-MgGroupAcceptedSenderByRef.md b/src/Groups/v1.0/examples/Get-MgGroupAcceptedSenderByRef.md index 6fc315a10f6..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupAcceptedSenderByRef.md +++ b/src/Groups/v1.0/examples/Get-MgGroupAcceptedSenderByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Groups - -Get-MgGroupAcceptedSender -GroupId $groupId -``` -This example shows how to use the Get-MgGroupAcceptedSenderByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Get-MgGroupById.md b/src/Groups/v1.0/examples/Get-MgGroupById.md index 93632a147f1..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupById.md +++ b/src/Groups/v1.0/examples/Get-MgGroupById.md @@ -1,23 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Get-MgGroupById Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Get-MgGroupCalendarSchedule.md b/src/Groups/v1.0/examples/Get-MgGroupCalendarSchedule.md index a116df3befa..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupCalendarSchedule.md +++ b/src/Groups/v1.0/examples/Get-MgGroupCalendarSchedule.md @@ -1,26 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Get-MgGroupCalendarSchedule Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Get-MgGroupConversation.md b/src/Groups/v1.0/examples/Get-MgGroupConversation.md index a9d577b8d44..284c3613ad3 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupConversation.md +++ b/src/Groups/v1.0/examples/Get-MgGroupConversation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Groups +```powershell + +Import-Module Microsoft.Graph.Groups + +Get-MgGroupConversation -GroupId $groupId + +``` +This example shows how to use the Get-MgGroupConversation Cmdlet. -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/v1.0/examples/Get-MgGroupConversationThread.md b/src/Groups/v1.0/examples/Get-MgGroupConversationThread.md index 4fa6842973d..578cd66275a 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupConversationThread.md +++ b/src/Groups/v1.0/examples/Get-MgGroupConversationThread.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Groups +```powershell + +Import-Module Microsoft.Graph.Groups + +Get-MgGroupConversationThread -GroupId $groupId -ConversationId $conversationId + +``` +This example shows how to use the Get-MgGroupConversationThread Cmdlet. -Get-MgGroupConversationThread -GroupId $groupId -ConversationId $conversationId -``` -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/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaContactMemberGroup.md b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaContactMemberGroup.md index 939f04366ef..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaContactMemberGroup.md +++ b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaContactMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaContactMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaContactMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaContractMemberGroup.md b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaContractMemberGroup.md index cab4413e37f..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaContractMemberGroup.md +++ b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaContractMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaContractMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaContractMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDeviceMemberGroup.md b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDeviceMemberGroup.md index efe187fb190..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDeviceMemberGroup.md +++ b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDeviceMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaDeviceMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaDeviceMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryDeletedItemMemberGroup.md b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryDeletedItemMemberGroup.md index 52d0b8dbdab..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryDeletedItemMemberGroup.md +++ b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryDeletedItemMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaDirectoryDeletedItemMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaDirectoryDeletedItemMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryRoleMemberGroup.md b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryRoleMemberGroup.md index 2293eb0a118..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryRoleMemberGroup.md +++ b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryRoleMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaDirectoryRoleMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaDirectoryRoleMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryRoleTemplateMemberGroup.md b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryRoleTemplateMemberGroup.md index cee049ee0be..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryRoleTemplateMemberGroup.md +++ b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDirectoryRoleTemplateMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaDirectoryRoleTemplateMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaDirectoryRoleTemplateMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDomain.md b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDomain.md index f8cc699f564..094499afe24 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDomain.md +++ b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaDomain.md @@ -1,7 +1,11 @@ -### Example 1: Using the Confirm-MgBetaDomain Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Confirm-MgBetaDomain -DomainId $domainId + ``` This example shows how to use the Confirm-MgBetaDomain Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaOrganizationMemberGroup.md b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaOrganizationMemberGroup.md index 22724726dda..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaOrganizationMemberGroup.md +++ b/src/Identity.DirectoryManagement/beta/examples/Confirm-MgBetaOrganizationMemberGroup.md @@ -1,40 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaOrganizationMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgBetaOrganizationMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactById.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactById.md index bb416f1140c..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactById.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactById.md @@ -1,25 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectById -BodyParameter $params -``` -This example shows how to use the Get-MgBetaContactById Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactDirectReport.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactDirectReport.md index 20ea6eb38e2..adb9230a76e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactDirectReport.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactDirectReport.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaContactDirectReport Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Get-MgBetaContactDirectReport -OrgContactId $orgContactId + ``` This example shows how to use the Get-MgBetaContactDirectReport Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactManager.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactManager.md index c4d7d768194..11ea1cb2f82 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactManager.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactManager.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaContactManager -OrgContactId $orgContactId + +``` +This example shows how to use the Get-MgBetaContactManager Cmdlet. -Get-MgBetaContactManager -OrgContactId $orgContactId -``` -This example shows how to use the Get-MgBetaContactManager Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberGroup.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberGroup.md index b0158ad119b..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberGroup.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberGroup.md @@ -1,31 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell -Import-Module Microsoft.Graph.Beta.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $false -} - -Get-MgBetaDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaContactMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - SecurityEnabledOnly = $true -} - -# A UPN can also be used as -UserId. -Get-MgBetaUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaContactMemberGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberObject.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberObject.md index d7a83ad783b..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberObject.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberObject.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $true -} - -Get-MgBetaDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaContactMemberObject Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberOf.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberOf.md index 6af42f57f4f..6d2d04c89b1 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberOf.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactMemberOf.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaContactMemberOf Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + Get-MgBetaContactMemberOf -OrgContactId $orgContactId + ``` This example shows how to use the Get-MgBetaContactMemberOf Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgContactMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgContactMemberGroup.md index c2f1a54d157..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgContactMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgContactMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgContactMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgContactMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgContractMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgContractMemberGroup.md index 9beef18574f..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgContractMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgContractMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgContractMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgContractMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDeviceMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDeviceMemberGroup.md index 0b26e89fb1a..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDeviceMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDeviceMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgDeviceMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgDeviceMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryDeletedItemMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryDeletedItemMemberGroup.md index 8850d054cf0..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryDeletedItemMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryDeletedItemMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgDirectoryDeletedItemMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgDirectoryDeletedItemMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryRoleMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryRoleMemberGroup.md index a3a21a1b96a..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryRoleMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryRoleMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgDirectoryRoleMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgDirectoryRoleMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryRoleTemplateMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryRoleTemplateMemberGroup.md index 797def08b4c..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryRoleTemplateMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDirectoryRoleTemplateMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgDirectoryRoleTemplateMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgDirectoryRoleTemplateMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDomain.md b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDomain.md index 4790401e679..6a9ee4c3949 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDomain.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgDomain.md @@ -1,7 +1,11 @@ -### Example 1: Using the Confirm-MgDomain Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Identity.DirectoryManagement + Confirm-MgDomain -DomainId $domainId + ``` 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/v1.0/examples/Confirm-MgOrganizationMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgOrganizationMemberGroup.md index 9a35811edf0..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgOrganizationMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Confirm-MgOrganizationMemberGroup.md @@ -1,36 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell 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 -``` -This example shows how to use the Confirm-MgOrganizationMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - GroupIds = @( - "fee2c45b-915a-4a64b130f4eb9e75525e" - "4fe90ae065a-478b9400e0a0e1cbd540" - ) -} - -# A UPN can also be used as -UserId. -Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Confirm-MgOrganizationMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactById.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactById.md index 1e82d69f22b..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactById.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactById.md @@ -1,23 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Get-MgContactById Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactDirectReport.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactDirectReport.md index 305fe22f400..53da89d51df 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactDirectReport.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactDirectReport.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgContactDirectReport -OrgContactId $orgContactId + +``` +This example shows how to use the Get-MgContactDirectReport Cmdlet. -Get-MgContactDirectReport -OrgContactId $orgContactId -``` -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/v1.0/examples/Get-MgContactManager.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactManager.md index 14b159b0683..8e6057d9098 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactManager.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactManager.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgContactManager -OrgContactId $orgContactId + +``` +This example shows how to use the Get-MgContactManager Cmdlet. -Get-MgContactManager -OrgContactId $orgContactId -``` -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/v1.0/examples/Get-MgContactMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberGroup.md index 98ab06f094c..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberGroup.md @@ -1,27 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $false -} - -Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgContactMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - SecurityEnabledOnly = $true -} - -# A UPN can also be used as -UserId. -Get-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Get-MgContactMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberObject.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberObject.md index 7f2c5fcc28f..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberObject.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberObject.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $true -} - -Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgContactMemberObject Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberOf.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberOf.md index 94348ac4547..3dab67e8953 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberOf.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactMemberOf.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgContactMemberOf -OrgContactId $orgContactId + +``` +This example shows how to use the Get-MgContactMemberOf Cmdlet. -Get-MgContactMemberOf -OrgContactId $orgContactId -``` -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/v1.0/examples/Get-MgContactTransitiveMemberOf.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactTransitiveMemberOf.md index 16e152b8815..73f7d989042 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactTransitiveMemberOf.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactTransitiveMemberOf.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgContactTransitiveMemberOf -OrgContactId $orgContactId + +``` +This example shows how to use the Get-MgContactTransitiveMemberOf Cmdlet. -Get-MgContactTransitiveMemberOf -OrgContactId $orgContactId -``` -This example shows how to use the Get-MgContactTransitiveMemberOf Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContract.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContract.md index 4422efae40f..17990db6e4a 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContract.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContract.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgContract + +``` +This example shows how to use the Get-MgContract Cmdlet. -Get-MgContract -ContractId $contractId -``` -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/v1.0/examples/Get-MgContractById.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractById.md index 501933fcf2b..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractById.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractById.md @@ -1,23 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Get-MgContractById Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractMemberGroup.md index 0ff7f0945ff..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractMemberGroup.md @@ -1,27 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $false -} - -Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgContractMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - SecurityEnabledOnly = $true -} - -# A UPN can also be used as -UserId. -Get-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Get-MgContractMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractMemberObject.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractMemberObject.md index abac6db6f2b..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractMemberObject.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContractMemberObject.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $true -} - -Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgContractMemberObject Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md index 981b1993a23..0370f89aa7c 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md @@ -1,11 +1,35 @@ -### Example 1: Get a device +### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDevice -DeviceId $deviceId +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 2: Code snippet + +```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. + +### Example 3: Code snippet + +```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. diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceById.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceById.md index 397285288d3..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceById.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceById.md @@ -1,23 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Get-MgDeviceById Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberGroup.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberGroup.md index 6aec58a36af..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberGroup.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberGroup.md @@ -1,27 +0,0 @@ -### Example 1: Check group memberships for a directory object - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $false -} - -Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgDeviceMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Check group memberships for the signed-in user - -```powershell Import-Module Microsoft.Graph.Users.Actions - -$params = @{ - SecurityEnabledOnly = $true -} - -# A UPN can also be used as -UserId. -Get-MgUserMemberGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the Get-MgDeviceMemberGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberObject.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberObject.md index 6d715b2ffa2..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberObject.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberObject.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.DirectoryObjects - -$params = @{ - SecurityEnabledOnly = $true -} - -Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Get-MgDeviceMemberObject Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberOf.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberOf.md index 6124da04dc6..5ae20f5f2e4 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberOf.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceMemberOf.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.DirectoryManagement Get-MgDeviceMemberOf -DeviceId $deviceId + ``` 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/v1.0/examples/Get-MgDeviceRegisteredOwner.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredOwner.md index a1180f205f5..e0dc54c106e 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredOwner.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredOwner.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgDeviceRegisteredOwner Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Identity.DirectoryManagement + Get-MgDeviceRegisteredOwner -DeviceId $deviceId + ``` 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/v1.0/examples/Get-MgDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredOwnerByRef.md index 4527be2c3a7..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredOwnerByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement - -Get-MgDeviceRegisteredOwner -DeviceId $deviceId -``` -This example shows how to use the Get-MgDeviceRegisteredOwnerByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredUser.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredUser.md index c99c9ce8aac..9cc7a30df75 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredUser.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceRegisteredUser.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgDeviceRegisteredUser Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Identity.DirectoryManagement + Get-MgDeviceRegisteredUser -DeviceId $deviceId + ``` 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/v1.0/examples/Get-MgDeviceTransitiveMemberOf.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceTransitiveMemberOf.md index c4e9e951e56..11233dcad34 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceTransitiveMemberOf.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDeviceTransitiveMemberOf.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Identity.DirectoryManagement Get-MgDeviceTransitiveMemberOf -DeviceId $deviceId + ``` 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/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md index 58a834e5aaf..0c8b4864714 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgDirectoryAdministrativeUnit + +``` +This example shows how to use the Get-MgDirectoryAdministrativeUnit Cmdlet. -Get-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -``` -This example shows how to use the Get-MgDirectoryAdministrativeUnit Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitMember.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitMember.md index 476caeabfab..a2cecde9c49 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitMember.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitMember.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgDirectoryAdministrativeUnitMember Cmdlet +### Example 1: List member objects + ```powershell + Import-Module Microsoft.Graph.Identity.DirectoryManagement + Get-MgDirectoryAdministrativeUnitMember -AdministrativeUnitId $administrativeUnitId + ``` -This example shows how to use the Get-MgDirectoryAdministrativeUnitMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will list member objects + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitMemberByRef.md index f8311e3be03..e2df730f55d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitMemberByRef.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgDirectoryAdministrativeUnitMemberByRef Cmdlet +### Example 1: List member references + ```powershell + Import-Module Microsoft.Graph.Identity.DirectoryManagement + Get-MgDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId + ``` -This example shows how to use the Get-MgDirectoryAdministrativeUnitMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will list member references + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md index 019e12184a9..889ec830a1d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId + +``` +This example shows how to use the Get-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. -Get-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId -``` -This example shows how to use the Get-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md b/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md index aa149fbea1f..e04ba6fad29 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md @@ -1,11 +1,11 @@ ### Example 1: Get the agreement file for a specific language ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance Get-MgBetaAgreementFile -AgreementId $agreementId -``` -This example shows how to use the Get-MgBetaAgreementFile Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get the agreement file for a specific language diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFileLocalization.md b/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFileLocalization.md index 093355d11d5..7b934706372 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFileLocalization.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFileLocalization.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Beta.Identity.Governance -{{ Add description here }} +Get-MgBetaAgreementFileLocalization -AgreementId $agreementId -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Get-MgBetaAgreementFileLocalization Cmdlet. diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md index 90aaa99c3f2..dc2047b1bd8 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement -AccessPackageId $accessPackageId + ``` This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackage.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackage.md index 1eca0ffc895..f297f3eadf5 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackage.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackage.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackage Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackage -AccessPackageId $accessPackageId + ``` This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md index 9a93d7ef4ab..e69de29bb2d 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance - -Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackage -AccessPackageId $accessPackageId -``` -This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroup.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroup.md index 17a45a965e6..5bceba5adb5 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroup.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroup.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroup Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroup -AccessPackageId $accessPackageId + ``` This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md index cdb2fa1fbbb..e69de29bb2d 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance - -Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroup -AccessPackageId $accessPackageId -``` -This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleWith.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleWith.md index 02c19f05589..6450a2c5b12 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleWith.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageIncompatibleWith.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaEntitlementManagementAccessPackageIncompatibleWith Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaEntitlementManagementAccessPackageIncompatibleWith -AccessPackageId $accessPackageId + ``` This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageIncompatibleWith Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md index a1bf4c853a7..680d82ef8bd 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaEntitlementManagementConnectedOrganization + +``` +This example shows how to use the Get-MgBetaEntitlementManagementConnectedOrganization Cmdlet. -Get-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -``` -This example shows how to use the Get-MgBetaEntitlementManagementConnectedOrganization Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsor.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsor.md index fb6ca2aec2a..7463b948447 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsor.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsor.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsor Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsor -ConnectedOrganizationId $connectedOrganizationId + ``` This example shows how to use the Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsor Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorById.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorById.md index e9f47827457..e69de29bb2d 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorById.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorById.md @@ -1,25 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectById -BodyParameter $params -``` -This example shows how to use the Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorById Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsor.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsor.md index 7e69856a959..8478791b69b 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsor.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsor.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsor Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsor -ConnectedOrganizationId $connectedOrganizationId + ``` This example shows how to use the Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsor Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorById.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorById.md index 74a03d431cb..e69de29bb2d 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorById.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorById.md @@ -1,25 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaDirectoryObjectById -BodyParameter $params -``` -This example shows how to use the Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorById Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinition.md index 4a2017609ce..03541b864ea 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinition.md @@ -1,9 +1,22 @@ -### Example 1: Code snippet +### Example 1: List the first one hundred access review definitions -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAccessReviewDefinition -Top 100 -Skip 0 + +``` +This example will list the first one hundred access review definitions + +### Example 2: Retrieve all access review definitions scoped to all Microsoft 365 groups in a tenant + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAccessReviewDefinition -Filter "contains(scope/microsoft.graph.accessReviewQueryScope/query, './members')" + +``` +This example will retrieve all access review definitions scoped to all microsoft 365 groups in a tenant -Get-MgBetaIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md index af63f5942fe..97a607125f0 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -Top 100 -Skip 0 + +``` +This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. -Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md index d99e0ff96ab..9248161f526 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId + ``` This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 8e7b2a7d400..a496b6a9a40 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,11 +1,11 @@ ### Example 1: Retrieve a decision on an accessReviewInstance ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will retrieve a decision on an accessreviewinstance diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 4692c943849..027757052b8 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId + +``` +This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. -Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index 5af4b8ff954..ce3dffc6ff4 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,11 +1,11 @@ ### Example 1: Retrieve a decision from a stage of a multi-stage access review ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will retrieve a decision from a stage of a multi-stage access review diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md index b94242e7963..c6ed3802483 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition + +``` +This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. -Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance.md index 38f36424cbe..ef9737e0a06 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId + ``` This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequest.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequest.md index c888370b9bb..fbea5e39343 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequest.md @@ -1,9 +1,22 @@ -### Example 1: Code snippet +### Example 1: List all appConsentRequests -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAppConsentRequest + +``` +This example will list all appconsentrequests + +### Example 2: List all appConsentRequests with at least one userConsentRequest whose status is InProgress + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAppConsentRequest -Filter "userConsentRequests/any (u:u/status eq 'InProgress')" + +``` +This example will list all appconsentrequests with at least one userconsentrequest whose status is inprogress -Get-MgBetaIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAppConsentRequest Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md index 20cea9694f2..a00b2ab6e58 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId + +``` +This example shows how to use the Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. -Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflow.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflow.md index 87803725535..1a5d00c1edc 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflow.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflow.md @@ -1,9 +1,22 @@ -### Example 1: Code snippet +### Example 1: Retrieve all workflows created in the tenant -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflow + +``` +This example will retrieve all workflows created in the tenant + +### Example 2: Retrieve only specific properties of "leaver" workflows + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflow -Filter "category eq 'leaver'" -Property "id,category,displayName,isEnabled,isSchedulingEnabled" + +``` +This example will retrieve only specific properties of "leaver" workflows -Get-MgBetaIdentityGovernanceLifecycleWorkflow -WorkflowId $workflowId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md index 072bcdb6119..e7885c73f7b 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension + +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet. -Get-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension -CustomTaskExtensionId $customTaskExtensionId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md index 732f87bd4e4..0a07b8baeca 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md @@ -1,18 +1,22 @@ -### Example 1: Get a deleted workflow +### Example 1: Get a deleted workflow -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell -Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow -WorkflowId $workflowId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get specific properties of a deleted workflow +Import-Module Microsoft.Graph.Beta.Identity.Governance -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow -WorkflowId $workflowId + +``` +This example will get a deleted workflow + +### Example 2: Get specific properties of a deleted workflow + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow -WorkflowId $workflowId -Property "id,category,displayName,description,version,executionConditions" + +``` +This example will get specific properties of a deleted workflow -Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow -WorkflowId $workflowId -Property "id,category,displayName,description,version,executionConditions" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRun.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRun.md index d32f3260205..0ba52ba82f8 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRun.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRun.md @@ -1,18 +1,22 @@ -### Example 1: Get a run report for a workflow +### Example 1: Get a run report for a workflow -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell -Get-MgBetaIdentityGovernanceLifecycleWorkflowRun -WorkflowId $workflowId -RunId $runId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get specific properties of a run report for a workflow +Import-Module Microsoft.Graph.Beta.Identity.Governance -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +Get-MgBetaIdentityGovernanceLifecycleWorkflowRun -WorkflowId $workflowId -RunId $runId + +``` +This example will get a run report for a workflow + +### Example 2: Get specific properties of a run report for a workflow + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowRun -WorkflowId $workflowId -RunId $runId -Property "id,failedTasksCount,failedUsersCount,processingStatus,totalTasksCount,totalUnprocessedTasksCount,totalUsersCount" + +``` +This example will get specific properties of a run report for a workflow -Get-MgBetaIdentityGovernanceLifecycleWorkflowRun -WorkflowId $workflowId -RunId $runId -Property "id,failedTasksCount,failedUsersCount,processingStatus,totalTasksCount,totalUnprocessedTasksCount,totalUsersCount" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult.md index 093355d11d5..4f5023198c2 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Beta.Identity.Governance -{{ Add description here }} +Get-MgBetaIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult -WorkflowId $workflowId -RunId $runId -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult Cmdlet. diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.md index a4584162af3..719b976641a 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.md @@ -1,18 +1,22 @@ -### Example 1: Get a user processing result in a run report +### Example 1: Get a user processing result in a run report -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell -Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult -WorkflowId $workflowId -RunId $runId -UserProcessingResultId $userProcessingResultId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get a user processing results for a workflow run +Import-Module Microsoft.Graph.Beta.Identity.Governance -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult -WorkflowId $workflowId -RunId $runId -UserProcessingResultId $userProcessingResultId + +``` +This example will get a user processing result in a run report + +### Example 2: Get a user processing results for a workflow run + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult -WorkflowId $workflowId -RunId $runId -UserProcessingResultId $userProcessingResultId -Property "id,failedTasksCount,processingStatus,totalTasksCount,totalUnprocessedTasksCount,subject" + +``` +This example will get a user processing results for a workflow run -Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult -WorkflowId $workflowId -RunId $runId -UserProcessingResultId $userProcessingResultId -Property "id,failedTasksCount,processingStatus,totalTasksCount,totalUnprocessedTasksCount,subject" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult.md index 5ac9ab317b5..99b6e12c68b 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult -WorkflowId $workflowId -RunId $runId -UserProcessingResultId $userProcessingResultId + ``` This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md index 3f0dc5e5ad0..edc19d4d9f6 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting + +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting Cmdlet. -Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition.md index 4c758843b95..b6d755312b9 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition.md @@ -1,9 +1,22 @@ -### Example 1: Code snippet +### Example 1: Retrieve all built-in task definitions -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition + +``` +This example will retrieve all built-in task definitions + +### Example 2: Retrieve all built-in tasks supported for "joiner" workflows + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition -Filter "category has 'joiner'" + +``` +This example will retrieve all built-in tasks supported for "joiner" workflows -Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition -TaskDefinitionId $taskDefinitionId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport.md index b18fe547d23..654bb74105c 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport.md @@ -1,14 +1,22 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport Cmdlet +### Example 1: List the task reports for a workflow + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport -WorkflowId $workflowId -TaskReportId $taskReportId + +Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport -WorkflowId $workflowId + ``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport Cmdlet +This example will list the task reports for a workflow + +### Example 2: List the task reports for a workflow + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport -WorkflowId $workflowId + +Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport -WorkflowId $workflowId -Property "id,failedUsersCount,processingStatus,successfulUsersCount,totalUsersCount,unprocessedUsersCount,taskDefinition,taskProcessingResults" + ``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReport Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will list the task reports for a workflow + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult.md index 2cf8fdae1a8..80b589ae2bd 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult.md @@ -1,7 +1,22 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult Cmdlet +### Example 1: List the task processing results that are included in a task report for a workflow + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult -WorkflowId $workflowId -TaskReportId $taskReportId + ``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will list the task processing results that are included in a task report for a workflow + +### Example 2: List the task processing results that are included in a task report for a workflow, and retrieve specific properties + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult -WorkflowId $workflowId -TaskReportId $taskReportId -Property "id,failureReason,processingStatus,subject,task" + +``` +This example will list the task processing results that are included in a task report for a workflow, and retrieve specific properties + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate.md index 8c35e2c6710..08895b40b8e 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate.md @@ -1,9 +1,22 @@ -### Example 1: Code snippet +### Example 1: Retrieve all Lifecycle Workflows workflow templates -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate + +``` +This example will retrieve all lifecycle workflows workflow templates + +### Example 2: Retrieve workflow templates supported for "leaver" workflows + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate -Filter "category eq 'leaver'" + +``` +This example will retrieve workflow templates supported for "leaver" workflows -Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate -WorkflowTemplateId $workflowTemplateId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult.md index 40ce616ff6d..a410af75c4f 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult.md @@ -1,14 +1,22 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult Cmdlet +### Example 1: List the user processing results for a workflow + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult -WorkflowId $workflowId + ``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult Cmdlet +This example will list the user processing results for a workflow + +### Example 2: List specific properties of user processing results for a workflow + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult -WorkflowId $workflowId -UserProcessingResultId $userProcessingResultId + +Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult -WorkflowId $workflowId -Property "id,failedTasksCount,processingStatus,totalTasksCount,totalUnprocessedTasksCount,workflowExecutionType,subject" + ``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResult Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will list specific properties of user processing results for a workflow + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult.md index 0973f252dc0..e2cd18c1767 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult.md @@ -1,7 +1,22 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.Governance + Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult -WorkflowId $workflowId -UserProcessingResultId $userProcessingResultId + ``` This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult -WorkflowId $workflowId -UserProcessingResultId $userProcessingResultId -Property "id,processingStatus,failureReason,subject,task" + +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult Cmdlet. + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion.md index a4881c36528..de986e70e52 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion.md @@ -1,18 +1,22 @@ -### Example 1: Get a workflow version +### Example 1: Get a workflow version -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell -Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion -WorkflowId $workflowId -WorkflowVersionVersionNumber $workflowVersionVersionNumber -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get specific properties of a version of a workflow +Import-Module Microsoft.Graph.Beta.Identity.Governance -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion -WorkflowId $workflowId -WorkflowVersionVersionNumber $workflowVersionVersionNumber + +``` +This example will get a workflow version + +### Example 2: Get specific properties of a version of a workflow + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion -WorkflowId $workflowId -WorkflowVersionVersionNumber $workflowVersionVersionNumber -Property "category,displayName,versionNumber,executionConditions" -ExpandProperty "tasks" + +``` +This example will get specific properties of a version of a workflow -Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion -WorkflowId $workflowId -WorkflowVersionVersionNumber $workflowVersionVersionNumber -Property "category,displayName,versionNumber,executionConditions" -ExpandProperty "tasks" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/v1.0/examples/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/v1.0/examples/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index b47c8495eb0..723f9980459 100644 --- a/src/Identity.Governance/v1.0/examples/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/v1.0/examples/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,7 +1,11 @@ -### Example 1: Using the Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Identity.Governance + Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId + ``` 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/v1.0/examples/Get-MgAgreementFile.md b/src/Identity.Governance/v1.0/examples/Get-MgAgreementFile.md index ea568cfe2a0..b936e844c9c 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgAgreementFile.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgAgreementFile.md @@ -1,11 +1,11 @@ ### Example 1: Get the agreement file for a specific language ```powershell + Import-Module Microsoft.Graph.Identity.Governance Get-MgAgreementFile -AgreementId $agreementId -``` -This example shows how to use the Get-MgAgreementFile Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +``` +This example will get the agreement file for a specific language diff --git a/src/Identity.Governance/v1.0/examples/Get-MgAgreementFileLocalization.md b/src/Identity.Governance/v1.0/examples/Get-MgAgreementFileLocalization.md index 2c0df3e6f46..0c8294b0594 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgAgreementFileLocalization.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgAgreementFileLocalization.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgAgreementFileLocalization -AgreementId $agreementId + +``` +This example shows how to use the Get-MgAgreementFileLocalization Cmdlet. -Get-MgAgreementFileLocalization -AgreementId $agreementId -``` -This example shows how to use the Get-MgAgreementFileLocalization Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md index 62a18d5f86f..f846027bc7b 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAccessPackage + +``` +This example shows how to use the Get-MgEntitlementManagementAccessPackage Cmdlet. -Get-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -``` -This example shows how to use the Get-MgEntitlementManagementAccessPackage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md index 68e1cff8a15..be88d9d6add 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Identity.Governance + Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement -AccessPackageId $accessPackageId + ``` 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/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md index 6bc990a24bf..38db18cc026 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage -ApprovalId $approvalId + +``` +This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet. -Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage -ApprovalId $approvalId -ApprovalStageId $approvalStageId -``` -This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage.md index dcdc1b6deeb..7b248ce41da 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage -AccessPackageId $accessPackageId + +``` +This example shows how to use the Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage Cmdlet. -Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage -AccessPackageId $accessPackageId -``` -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/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md index 5ee85c195ee..e69de29bb2d 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Identity.Governance - -Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage -AccessPackageId $accessPackageId -``` -This example shows how to use the Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleGroup.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleGroup.md index ecc88750468..845456ffdd7 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleGroup.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleGroup.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAccessPackageIncompatibleGroup -AccessPackageId $accessPackageId + +``` +This example shows how to use the Get-MgEntitlementManagementAccessPackageIncompatibleGroup Cmdlet. -Get-MgEntitlementManagementAccessPackageIncompatibleGroup -AccessPackageId $accessPackageId -``` -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/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md index 38caabeaa6e..e69de29bb2d 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Identity.Governance - -Get-MgEntitlementManagementAccessPackageIncompatibleGroup -AccessPackageId $accessPackageId -``` -This example shows how to use the Get-MgEntitlementManagementAccessPackageIncompatibleGroupByRef Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleWith.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleWith.md index 7dba2a8c214..71000b35bfb 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleWith.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageIncompatibleWith.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAccessPackageIncompatibleWith -AccessPackageId $accessPackageId + +``` +This example shows how to use the Get-MgEntitlementManagementAccessPackageIncompatibleWith Cmdlet. -Get-MgEntitlementManagementAccessPackageIncompatibleWith -AccessPackageId $accessPackageId -``` -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/v1.0/examples/Get-MgEntitlementManagementAssignment.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md index c1897ac787b..f9948e89f26 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example scenarios for using query parameters -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAssignment + +``` +This example will### example scenarios for using query parameters -Get-MgEntitlementManagementAssignment -AccessPackageAssignmentId $accessPackageAssignmentId -``` -This example shows how to use the Get-MgEntitlementManagementAssignment Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentPolicy.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentPolicy.md index 817ea95ffc6..ec60e4236f8 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentPolicy.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAssignmentPolicy + +``` +This example shows how to use the Get-MgEntitlementManagementAssignmentPolicy Cmdlet. -Get-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId -``` -This example shows how to use the Get-MgEntitlementManagementAssignmentPolicy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md index 096f1995a79..fdbd690c184 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example scenarios for using query parameters -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAssignmentRequest + +``` +This example will### example scenarios for using query parameters -Get-MgEntitlementManagementAssignmentRequest -AccessPackageAssignmentRequestId $accessPackageAssignmentRequestId -``` -This example shows how to use the Get-MgEntitlementManagementAssignmentRequest Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md index ccd5b5ceb82..f803177e989 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementCatalog + +``` +This example shows how to use the Get-MgEntitlementManagementCatalog Cmdlet. -Get-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -``` -This example shows how to use the Get-MgEntitlementManagementCatalog Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/beta/examples/Confirm-MgBetaRiskyServicePrincipalCompromised.md b/src/Identity.SignIns/beta/examples/Confirm-MgBetaRiskyServicePrincipalCompromised.md index 87d7bdc1c1c..53233b20418 100644 --- a/src/Identity.SignIns/beta/examples/Confirm-MgBetaRiskyServicePrincipalCompromised.md +++ b/src/Identity.SignIns/beta/examples/Confirm-MgBetaRiskyServicePrincipalCompromised.md @@ -1,12 +1,17 @@ -### Example 1: Using the Confirm-MgBetaRiskyServicePrincipalCompromised Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - ServicePrincipalIds = @( + servicePrincipalIds = @( "9089a539-a539-9089-39a5-899039a58990" ) } + Confirm-MgBetaRiskyServicePrincipalCompromised -BodyParameter $params + ``` This example shows how to use the Confirm-MgBetaRiskyServicePrincipalCompromised Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Confirm-MgRiskyUserCompromised.md b/src/Identity.SignIns/v1.0/examples/Confirm-MgRiskyUserCompromised.md index d7e4481bb1a..5f882513a13 100644 --- a/src/Identity.SignIns/v1.0/examples/Confirm-MgRiskyUserCompromised.md +++ b/src/Identity.SignIns/v1.0/examples/Confirm-MgRiskyUserCompromised.md @@ -1,13 +1,18 @@ -### Example 1: Using the Confirm-MgRiskyUserCompromised Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - UserIds = @( + userIds = @( "29f270bb-4d23-4f68-8a57-dc73dc0d4caf" "20f91ec9-d140-4d90-9cd9-f618587a1471" ) } + Confirm-MgRiskyUserCompromised -BodyParameter $params + ``` This example shows how to use the Confirm-MgRiskyUserCompromised Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgDataPolicyOperation.md b/src/Identity.SignIns/v1.0/examples/Get-MgDataPolicyOperation.md index f0a41356992..ad3d1a5c601 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgDataPolicyOperation.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgDataPolicyOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId +``` +This example shows how to use the Get-MgDataPolicyOperation Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Get-MgDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId -``` -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/v1.0/examples/Get-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md index 5284a0ac7e4..64e6f8fe812 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId + +``` +This example shows how to use the Get-MgIdentityApiConnector Cmdlet. -Get-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -``` -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/v1.0/examples/Get-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlow.md index 1d45185b647..46d4e2e3937 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlow.md @@ -1,9 +1,22 @@ -### Example 1: Code snippet +### Example 1: List all b2xIdentityUserFlow objects -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlow + +``` +This example will list all b2xidentityuserflow objects + +### Example 2: List all b2xIdentityUserFlow objects and expand identityProviders + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlow -ExpandProperty "identityProviders" + +``` +This example will list all b2xidentityuserflow objects and expand identityproviders -Get-MgIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -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/v1.0/examples/Get-MgIdentityB2XUserFlowIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowIdentityProvider.md index 43941a2f38b..12761fe9fb7 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowIdentityProvider.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlowIdentityProvider -B2xIdentityUserFlowId $b2xIdentityUserFlowId + +``` +This example shows how to use the Get-MgIdentityB2XUserFlowIdentityProvider Cmdlet. -Get-MgIdentityB2XUserFlowIdentityProvider -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -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/v1.0/examples/Get-MgIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguage.md index 0e62b346e5d..4a64421afc8 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguage.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId + +``` +This example shows how to use the Get-MgIdentityB2XUserFlowLanguage Cmdlet. -Get-MgIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -``` -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/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageOverridePage.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageOverridePage.md index ae642d01555..8c3149979e8 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageOverridePage.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguageOverridePage.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId + +``` +This example shows how to use the Get-MgIdentityB2XUserFlowLanguageOverridePage Cmdlet. -Get-MgIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -``` -This example shows how to use the Get-MgIdentityB2XUserFlowLanguageOverridePage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md index db724ef192d..05e9417eed1 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,18 +1,22 @@ -### Example 1: Get the details of an identityUserFlowAttributeAssignment +### Example 1: Get the details of an identityUserFlowAttributeAssignment -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell -Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -``` -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: Get the details of an identityUserFlowAttributeAssignment and expand userAttribute +Import-Module Microsoft.Graph.Identity.SignIns -```powershell Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId + +``` +This example will get the details of an identityuserflowattributeassignment + +### Example 2: Get the details of an identityUserFlowAttributeAssignment and expand userAttribute + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -ExpandProperty "userAttribute" + +``` +This example will get the details of an identityuserflowattributeassignment and expand userattribute -Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -ExpandProperty "userAttribute" -``` -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/v1.0/examples/Get-MgIdentityConditionalAccessAuthenticationContextClassReference.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityConditionalAccessAuthenticationContextClassReference.md index d007e80dada..408654d6323 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityConditionalAccessAuthenticationContextClassReference.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityConditionalAccessAuthenticationContextClassReference.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityConditionalAccessAuthenticationContextClassReference + +``` +This example shows how to use the Get-MgIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. -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/v1.0/examples/Get-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityProvider.md index cee70f90610..85d87170afb 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityProvider.md @@ -1,27 +1,33 @@ -### Example 1: Retrieve a specific social identity provider (Azure AD or Azure AD B2C) +### Example 1: Retrieve a specific social identity provider (Azure AD or Azure AD B2C) -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell -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 2: Retrieve a specific built-in identity provider (only for Azure AD) +Import-Module Microsoft.Graph.Identity.SignIns -```powershell Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -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 3: Retrieves Apple identity provider(only for Azure AD B2C) +``` +This example will retrieve a specific social identity provider (azure ad or azure ad b2c) -```powershell Import-Module Microsoft.Graph.Identity.SignIns +### Example 2: Retrieve a specific built-in identity provider (only for Azure AD) + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId + +``` +This example will retrieve a specific built-in identity provider (only for azure ad) + +### Example 3: Retrieves Apple identity provider(only for Azure AD B2C) + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId + +``` +This example retrieves apple identity provider(only for azure ad b2c) -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/v1.0/examples/Get-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityUserFlowAttribute.md index 4930ce2dd79..9259c9a26c2 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityUserFlowAttribute.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityUserFlowAttribute + +``` +This example shows how to use the Get-MgIdentityUserFlowAttribute Cmdlet. -Get-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -``` -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/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md index d747366b0de..8d9c1d1398f 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md @@ -1,36 +1,55 @@ -### Example 1: Code snippet - -```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 2: Code snippet - -```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 3: Code snippet - -```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: Code snippet - -```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 1: Get the properties of a mail assessment request + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId + +``` +This example will get the properties of a mail assessment request + +### Example 2: Get the properties of an email file assessment request + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId + +``` +This example will get the properties of an email file assessment request + +### Example 3: Get the properties of a file assessment request + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId + +``` +This example will get the properties of a file assessment request + +### Example 4: Get the properties of an url assessment request + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId + +``` +This example will get the properties of an url assessment request + +### Example 5: Expand threat assessment results for a request + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -ExpandProperty "results" + +``` +This example will expand threat assessment results for a request + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md b/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md index 0d8159bf907..bd78a42d8da 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgOauth2PermissionGrant + +``` +This example shows how to use the Get-MgOauth2PermissionGrant Cmdlet. -Get-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -``` -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/v1.0/examples/Get-MgOrganizationCertificateBasedAuthConfiguration.md b/src/Identity.SignIns/v1.0/examples/Get-MgOrganizationCertificateBasedAuthConfiguration.md index 892619000a3..29a875fb00a 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgOrganizationCertificateBasedAuthConfiguration.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgOrganizationCertificateBasedAuthConfiguration.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId + +``` +This example shows how to use the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet. -Get-MgOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId -CertificateBasedAuthConfigurationId $certificateBasedAuthConfigurationId -``` -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/v1.0/examples/Get-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyActivityBasedTimeoutPolicy.md index 57f7dde4730..1aae21581c4 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyActivityBasedTimeoutPolicy + +``` +This example shows how to use the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet. -Get-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -``` -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/v1.0/examples/Get-MgPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAdminConsentRequestPolicy.md index 9e29354eab0..c37191d2a56 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAdminConsentRequestPolicy.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyAdminConsentRequestPolicy + +``` +This example shows how to use the Get-MgPolicyAdminConsentRequestPolicy Cmdlet. -Get-MgPolicyAdminConsentRequestPolicy -``` -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/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md index ef50d971df8..e6c318c3dc8 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyAuthenticationFlowPolicy + +``` +This example shows how to use the Get-MgPolicyAuthenticationFlowPolicy Cmdlet. -Get-MgPolicyAuthenticationFlowPolicy -``` -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/v1.0/examples/Get-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationMethodPolicy.md index 3304ff35f08..59453f3a34e 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationMethodPolicy.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyAuthenticationMethodPolicy + +``` +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicy Cmdlet. -Get-MgPolicyAuthenticationMethodPolicy -``` -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/v1.0/examples/Get-MgPolicyAuthorizationPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthorizationPolicy.md index 4122cb09e95..8867b7c0953 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthorizationPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthorizationPolicy.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyAuthorizationPolicy + +``` +This example shows how to use the Get-MgPolicyAuthorizationPolicy Cmdlet. -Get-MgPolicyAuthorizationPolicy -``` -This example shows how to use the Get-MgPolicyAuthorizationPolicy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md index 37a46eeade3..7b84a5b88ce 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyClaimMappingPolicy + +``` +This example shows how to use the Get-MgPolicyClaimMappingPolicy Cmdlet. -Get-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -``` -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/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicy.md index cd735ac5270..45bce54896f 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicy.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyCrossTenantAccessPolicy + +``` +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicy Cmdlet. -Get-MgPolicyCrossTenantAccessPolicy -``` -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/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyDefault.md index 1de5103fce0..19961aa9969 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyDefault.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyCrossTenantAccessPolicyDefault + +``` +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyDefault Cmdlet. -Get-MgPolicyCrossTenantAccessPolicyDefault -``` -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/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartner.md index 70bafaf2346..8274381b3f0 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,9 +1,22 @@ -### Example 1: Code snippet +### Example 1: List all partner configurations within a cross-tenant access policy -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyCrossTenantAccessPolicyPartner + +``` +This example will list all partner configurations within a cross-tenant access policy + +### Example 2: List the user synchronization policy for all partner configurations + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyCrossTenantAccessPolicyPartner -Property "tenantId" -ExpandProperty "identitySynchronization" + +``` +This example will list the user synchronization policy for all partner configurations -Get-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -``` -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/v1.0/examples/Get-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyFeatureRolloutPolicy.md index 52491dfd8d7..3d6f70636a4 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyFeatureRolloutPolicy.md @@ -1,18 +1,22 @@ -### Example 1: Get a feature rollout policy +### Example 1: Get a feature rollout policy -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell -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). - -### Example 2: Get a feature rollout policy and expand appliesTo +Import-Module Microsoft.Graph.Identity.SignIns -```powershell Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId + +``` +This example will get a feature rollout policy + +### Example 2: Get a feature rollout policy and expand appliesTo + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" + +``` +This example will get a feature rollout policy and expand appliesto -Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" -``` -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/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md b/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md index 86248c7d5f1..21a343fc2c2 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md +++ b/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md @@ -1,14 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Mail +```powershell -$params = @{ - classifyAs = "focused" -} +Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Update-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaBetaUserInferenceClassificationOverride Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserInferenceClassificationOverride -UserId $userId + +``` +This example shows how to use the Get-MgBetaUserInferenceClassificationOverride Cmdlet. + diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md index 5dc8809e92f..854dea7bea0 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md @@ -1,20 +1,24 @@ -### Example 1: Get a mail folder +### Example 1: Get a mail folder -```powershell Import-Module Microsoft.Graph.Beta.Mail +```powershell + +Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -``` -This example shows how to use the Get-MgBetaUserMailFolder Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get a mail search folder +Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId + +``` +This example will get a mail folder + +### Example 2: Get a mail search folder -```powershell Import-Module Microsoft.Graph.Beta.Mail +```powershell + +Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -``` -This example shows how to use the Get-MgBetaUserMailFolder Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId + +``` +This example will get a mail search folder + diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolder.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolder.md index 086a33a8cac..0c90478920a 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolder.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolder.md @@ -1,16 +1,36 @@ -### Example 1: Using the Get-MgBetaUserMailFolderChildFolder Cmdlet +### Example 1: List mail folders + ```powershell + Import-Module Microsoft.Graph.Beta.Mail + # A UPN can also be used as -UserId. Get-MgBetaUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId + ``` -This example shows how to use the Get-MgBetaUserMailFolderChildFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserMailFolderChildFolder Cmdlet +This example will list mail folders + +### Example 2: List mail search folders + ```powershell + Import-Module Microsoft.Graph.Beta.Mail + # A UPN can also be used as -UserId. Get-MgBetaUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId + ``` -This example shows how to use the Get-MgBetaUserMailFolderChildFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will list mail search folders + +### Example 3: Include hidden child folders under a specified mail folder + +```powershell + +Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -Includehiddenfolders true + +``` +This example will include hidden child folders under a specified mail folder + diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessage.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessage.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessage.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessage.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md b/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md index 13ad51513de..cbced9cf1a0 100644 --- a/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md +++ b/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Mail +```powershell +Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Get-MgUserInferenceClassificationOverride -UserId $userId -``` -This example shows how to use the Get-MgUserInferenceClassificationOverride Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserInferenceClassificationOverride -UserId $userId +``` +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/v1.0/examples/Get-MgUserMailFolder.md b/src/Mail/v1.0/examples/Get-MgUserMailFolder.md index 9f2ec5cb596..8c962bb3b9d 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolder.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolder.md @@ -1,20 +1,24 @@ -### Example 1: Get a mail folder +### Example 1: Get a mail folder -```powershell Import-Module Microsoft.Graph.Mail +```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). - -### Example 2: Get a mail sent items folder +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId + +``` +This example will get a mail folder + +### Example 2: Get a mail sent items folder -```powershell Import-Module Microsoft.Graph.Mail +```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). - +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId + +``` +This example will get a mail sent items folder + diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolder.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolder.md index 7285526d10a..946d243a45f 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolder.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolder.md @@ -1,20 +1,24 @@ -### Example 1: List mail folders +### Example 1: List mail folders -```powershell Import-Module Microsoft.Graph.Mail +```powershell + +Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Get-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -``` -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: Include hidden child folders under a specified mail folder +Get-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId + +``` +This example will list mail folders + +### Example 2: Include hidden child folders under a specified mail folder -```powershell Import-Module Microsoft.Graph.Mail +```powershell + +Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Get-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -Includehiddenfolders true -``` -This example shows how to use the Get-MgUserMailFolderChildFolder Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -Includehiddenfolders true + +``` +This example will include hidden child folders under a specified mail folder + diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageExtension.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageExtension.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageExtension.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageExtension.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebookSection.md b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebookSection.md index e6198336096..e69de29bb2d 100644 --- a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebookSection.md +++ b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebookSection.md @@ -1,12 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Notes - -# A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgBetaGroupOnenoteNotebookSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebookSectionGroup.md b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebookSectionGroup.md index 8081d48106b..e69de29bb2d 100644 --- a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebookSectionGroup.md +++ b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebookSectionGroup.md @@ -1,12 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Notes - -# A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgBetaGroupOnenoteNotebookSectionGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSectionGroupSection.md b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSectionGroupSection.md index 9ae91f7320d..e69de29bb2d 100644 --- a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSectionGroupSection.md +++ b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSectionGroupSection.md @@ -1,12 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Notes - -# A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -``` -This example shows how to use the Get-MgBetaGroupOnenoteSectionGroupSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebookSection.md b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebookSection.md index e80b512b8e5..e69de29bb2d 100644 --- a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebookSection.md +++ b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebookSection.md @@ -1,12 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Notes - -# A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgBetaSiteOnenoteNotebookSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebookSectionGroup.md b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebookSectionGroup.md index d300aabff7b..e69de29bb2d 100644 --- a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebookSectionGroup.md +++ b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebookSectionGroup.md @@ -1,12 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Notes - -# A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgBetaSiteOnenoteNotebookSectionGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSectionGroupSection.md b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSectionGroupSection.md index 37ce455b132..e69de29bb2d 100644 --- a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSectionGroupSection.md +++ b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSectionGroupSection.md @@ -1,12 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Notes - -# A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -``` -This example shows how to use the Get-MgBetaSiteOnenoteSectionGroupSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebook.md b/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebook.md index 71a07495c8c..e234d1d400c 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebook.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebook.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Notes +```powershell + +Import-Module Microsoft.Graph.Beta.Notes # A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgBetaUserOnenoteNotebook Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteNotebook -UserId $userId + +``` +This example shows how to use the Get-MgBetaUserOnenoteNotebook Cmdlet. + diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebookSection.md b/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebookSection.md index de04ba0651e..69c48ea2ae3 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebookSection.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebookSection.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgBetaUserOnenoteNotebookSection Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Notes + # A UPN can also be used as -UserId. Get-MgBetaUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId + ``` This example shows how to use the Get-MgBetaUserOnenoteNotebookSection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebookSectionGroup.md b/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebookSectionGroup.md index 6c280e49e01..0b861812c01 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebookSectionGroup.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgBetaUserOnenoteNotebookSectionGroup Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Notes + # A UPN can also be used as -UserId. Get-MgBetaUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId + ``` This example shows how to use the Get-MgBetaUserOnenoteNotebookSectionGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenoteOperation.md b/src/Notes/beta/examples/Get-MgBetaUserOnenoteOperation.md index 2fcb9733b12..a679db81fb7 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteOperation.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteOperation.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Notes +```powershell + +Import-Module Microsoft.Graph.Beta.Notes # A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteOperation -UserId $userId -OnenoteOperationId $onenoteOperationId -``` -This example shows how to use the Get-MgBetaUserOnenoteOperation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteOperation -UserId $userId -OnenoteOperationId $onenoteOperationId + +``` +This example shows how to use the Get-MgBetaUserOnenoteOperation Cmdlet. + diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSection.md b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSection.md index 9e246d50943..fbc88d65c40 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSection.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSection.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Notes +```powershell + +Import-Module Microsoft.Graph.Beta.Notes # A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteSection -UserId $userId -OnenoteSectionId $onenoteSectionId -``` -This example shows how to use the Get-MgBetaUserOnenoteSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteSection -UserId $userId + +``` +This example shows how to use the Get-MgBetaUserOnenoteSection Cmdlet. + diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroup.md b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroup.md index 5c82c55d7cb..ed5402fde05 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroup.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Notes +```powershell + +Import-Module Microsoft.Graph.Beta.Notes # A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteSectionGroup -UserId $userId -SectionGroupId $sectionGroupId -``` -This example shows how to use the Get-MgBetaUserOnenoteSectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteSectionGroup -UserId $userId + +``` +This example shows how to use the Get-MgBetaUserOnenoteSectionGroup Cmdlet. + diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroupSection.md b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroupSection.md index d89e48be623..3b78065875d 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroupSection.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroupSection.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgBetaUserOnenoteSectionGroupSection Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Notes + # A UPN can also be used as -UserId. Get-MgBetaUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId + ``` This example shows how to use the Get-MgBetaUserOnenoteSectionGroupSection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebook.md b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebook.md index 42dac050b11..632652e9648 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebook.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebook.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Notes +```powershell + +Import-Module Microsoft.Graph.Beta.Notes $params = @{ displayName = "My Private notebook" } # A UPN can also be used as -UserId. -New-MgBetaUserOnenoteNotebook -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserOnenoteNotebook Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaUserOnenoteNotebook -UserId $userId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaUserOnenoteNotebook Cmdlet. + diff --git a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSection.md b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSection.md index 19580663861..cd9a370eb65 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSection.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSection.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Notes +```powershell + +Import-Module Microsoft.Graph.Beta.Notes $params = @{ displayName = "Section name" } # A UPN can also be used as -UserId. -New-MgBetaUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserOnenoteNotebookSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaUserOnenoteNotebookSection Cmdlet. + diff --git a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSectionGroup.md b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSectionGroup.md index a00ff13a020..5c599f800cb 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSectionGroup.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Notes +```powershell + +Import-Module Microsoft.Graph.Beta.Notes $params = @{ displayName = "Section group name" } # A UPN can also be used as -UserId. -New-MgBetaUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserOnenoteNotebookSectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaUserOnenoteNotebookSectionGroup Cmdlet. + diff --git a/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroupSection.md b/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroupSection.md index 793e7f27471..01393047248 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroupSection.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroupSection.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Notes +```powershell + +Import-Module Microsoft.Graph.Beta.Notes $params = @{ displayName = "Section name" } # A UPN can also be used as -UserId. -New-MgBetaUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserOnenoteSectionGroupSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -BodyParameter $params + +``` +This example shows how to use the New-MgBetaUserOnenoteSectionGroupSection Cmdlet. + diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebookSection.md b/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebookSection.md index a89c90f2151..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebookSection.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebookSection.md @@ -1,10 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Notes - -# A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgGroupOnenoteNotebookSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebookSectionGroup.md b/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebookSectionGroup.md index e6ba0d69b7e..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebookSectionGroup.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebookSectionGroup.md @@ -1,10 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Notes - -# A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgGroupOnenoteNotebookSectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionGroupSection.md b/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionGroupSection.md index eb081993598..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionGroupSection.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionGroupSection.md @@ -1,10 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Notes - -# A UPN can also be used as -UserId. -Get-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -``` -This example shows how to use the Get-MgGroupOnenoteSectionGroupSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionPage.md b/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionPage.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionPage.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionPage.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebookSection.md b/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebookSection.md index 736521bfae0..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebookSection.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebookSection.md @@ -1,10 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Notes - -# A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgSiteOnenoteNotebookSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebookSectionGroup.md b/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebookSectionGroup.md index 8d145272b50..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebookSectionGroup.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebookSectionGroup.md @@ -1,10 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Notes - -# A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgSiteOnenoteNotebookSectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/v1.0/examples/Get-MgSiteOnenoteOperation.md b/src/Notes/v1.0/examples/Get-MgSiteOnenoteOperation.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenoteOperation.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenoteOperation.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionGroupSection.md b/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionGroupSection.md index aa22ddedc3c..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionGroupSection.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionGroupSection.md @@ -1,10 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Notes - -# A UPN can also be used as -UserId. -Get-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -``` -This example shows how to use the Get-MgSiteOnenoteSectionGroupSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionPage.md b/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionPage.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionPage.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionPage.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebook.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebook.md index 2f0e03d970a..edd02adef89 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebook.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Notes +```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). - +Get-MgUserOnenoteNotebook -UserId $userId + +``` +This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. + diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebookSection.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebookSection.md index 5e24f9cb2ac..2b3dca1d945 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebookSection.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebookSection.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgUserOnenoteNotebookSection Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Notes + # A UPN can also be used as -UserId. Get-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId + ``` 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/v1.0/examples/Get-MgUserOnenoteNotebookSectionGroup.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebookSectionGroup.md index 2b4e4da71f2..38c2c730c49 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebookSectionGroup.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgUserOnenoteNotebookSectionGroup Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Notes + # A UPN can also be used as -UserId. Get-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId + ``` 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/v1.0/examples/Get-MgUserOnenoteOperation.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteOperation.md index b9edb480023..8ce096eac02 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteOperation.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteOperation.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Notes +```powershell + +Import-Module Microsoft.Graph.Notes # A UPN can also be used as -UserId. -Get-MgUserOnenoteOperation -UserId $userId -OnenoteOperationId $onenoteOperationId -``` -This example shows how to use the Get-MgUserOnenoteOperation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserOnenoteOperation -UserId $userId -OnenoteOperationId $onenoteOperationId + +``` +This example shows how to use the Get-MgUserOnenoteOperation Cmdlet. + diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenoteSection.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteSection.md index b269a62775e..b1863afffce 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteSection.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteSection.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Notes +```powershell + +Import-Module Microsoft.Graph.Notes # A UPN can also be used as -UserId. -Get-MgUserOnenoteSection -UserId $userId -OnenoteSectionId $onenoteSectionId -``` -This example shows how to use the Get-MgUserOnenoteSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserOnenoteSection -UserId $userId + +``` +This example shows how to use the Get-MgUserOnenoteSection Cmdlet. + diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroup.md index d11e465483b..3f9fa631130 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroup.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Notes +```powershell + +Import-Module Microsoft.Graph.Notes # A UPN can also be used as -UserId. -Get-MgUserOnenoteSectionGroup -UserId $userId -SectionGroupId $sectionGroupId -``` -This example shows how to use the Get-MgUserOnenoteSectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserOnenoteSectionGroup -UserId $userId + +``` +This example shows how to use the Get-MgUserOnenoteSectionGroup Cmdlet. + diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroupSection.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroupSection.md index a234de3df29..0d76d0a2ba8 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroupSection.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroupSection.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgUserOnenoteSectionGroupSection Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Notes + # A UPN can also be used as -UserId. Get-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId + ``` 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/v1.0/examples/Get-MgUserOnenoteSectionPage.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionPage.md index 093355d11d5..f85ae23c87e 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionPage.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionPage.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Notes -{{ Add description here }} +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSectionPage -UserId $userId -OnenoteSectionId $onenoteSectionId -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Get-MgUserOnenoteSectionPage Cmdlet. diff --git a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebook.md b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebook.md index a6869f69d6d..96ea90c5c9a 100644 --- a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebook.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Notes +```powershell +Import-Module Microsoft.Graph.Notes $params = @{ displayName = "My Private notebook" } # A UPN can also be used as -UserId. -New-MgUserOnenoteNotebook -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserOnenoteNotebook Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgUserOnenoteNotebook -UserId $userId -BodyParameter $params +``` +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/v1.0/examples/New-MgUserOnenoteNotebookSection.md b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSection.md index 0add618e889..c827d3643fb 100644 --- a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSection.md +++ b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSection.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Notes +```powershell + +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 -``` -This example shows how to use the New-MgUserOnenoteNotebookSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -BodyParameter $params + +``` +This example shows how to use the New-MgUserOnenoteNotebookSection Cmdlet. + diff --git a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSectionGroup.md b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSectionGroup.md index 242a0a37cac..6d0aa77bda9 100644 --- a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSectionGroup.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Notes +```powershell + +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 -``` -This example shows how to use the New-MgUserOnenoteNotebookSectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -BodyParameter $params + +``` +This example shows how to use the New-MgUserOnenoteNotebookSectionGroup Cmdlet. + diff --git a/src/Notes/v1.0/examples/New-MgUserOnenoteSectionGroupSection.md b/src/Notes/v1.0/examples/New-MgUserOnenoteSectionGroupSection.md index 0cb1af0efbe..0c51e6cc1f9 100644 --- a/src/Notes/v1.0/examples/New-MgUserOnenoteSectionGroupSection.md +++ b/src/Notes/v1.0/examples/New-MgUserOnenoteSectionGroupSection.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Notes +```powershell + +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 -``` -This example shows how to use the New-MgUserOnenoteSectionGroupSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -BodyParameter $params + +``` +This example shows how to use the New-MgUserOnenoteSectionGroupSection Cmdlet. + diff --git a/src/People/beta/examples/Get-MgBetaUserPerson.md b/src/People/beta/examples/Get-MgBetaUserPerson.md index aaa87a98d73..f68d17ebc9b 100644 --- a/src/People/beta/examples/Get-MgBetaUserPerson.md +++ b/src/People/beta/examples/Get-MgBetaUserPerson.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgBetaUserPerson Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.People + # A UPN can also be used as -UserId. Get-MgBetaUserPerson -UserId $userId + ``` This example shows how to use the Get-MgBetaUserPerson Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/People/v1.0/examples/Get-MgUserPerson.md b/src/People/v1.0/examples/Get-MgUserPerson.md index 37b435308ce..6aa5aefa399 100644 --- a/src/People/v1.0/examples/Get-MgUserPerson.md +++ b/src/People/v1.0/examples/Get-MgUserPerson.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.People +```powershell + +Import-Module Microsoft.Graph.People # A UPN can also be used as -UserId. -Get-MgUserPerson -UserId $userId -``` -This example shows how to use the Get-MgUserPerson Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserPerson -UserId $userId + +``` +This example shows how to use the Get-MgUserPerson Cmdlet. + diff --git a/src/People/v1.0/examples/Get-MgUserSharedInsight.md b/src/People/v1.0/examples/Get-MgUserSharedInsight.md index c9dac3ecfc3..c1dfae0ae63 100644 --- a/src/People/v1.0/examples/Get-MgUserSharedInsight.md +++ b/src/People/v1.0/examples/Get-MgUserSharedInsight.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.People +```powershell +Import-Module Microsoft.Graph.People # A UPN can also be used as -UserId. -Get-MgUserSharedInsight -UserId $userId -``` -This example shows how to use the Get-MgUserSharedInsight Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserSharedInsight -UserId $userId +``` +This example shows how to use the Get-MgUserSharedInsight Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/People/v1.0/examples/Get-MgUserTrendingInsight.md b/src/People/v1.0/examples/Get-MgUserTrendingInsight.md index e709a0eed77..f6b1fd46e83 100644 --- a/src/People/v1.0/examples/Get-MgUserTrendingInsight.md +++ b/src/People/v1.0/examples/Get-MgUserTrendingInsight.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.People +```powershell + +Import-Module Microsoft.Graph.People # A UPN can also be used as -UserId. -Get-MgUserTrendingInsight -UserId $userId -``` -This example shows how to use the Get-MgUserTrendingInsight Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserTrendingInsight -UserId $userId + +``` +This example shows how to use the Get-MgUserTrendingInsight Cmdlet. + diff --git a/src/People/v1.0/examples/Get-MgUserUsedInsight.md b/src/People/v1.0/examples/Get-MgUserUsedInsight.md index 255bfb8006d..c065044ea03 100644 --- a/src/People/v1.0/examples/Get-MgUserUsedInsight.md +++ b/src/People/v1.0/examples/Get-MgUserUsedInsight.md @@ -1,20 +1,24 @@ -### Example 1: Return documents that user has modified +### Example 1: Return documents that user has modified -```powershell Import-Module Microsoft.Graph.People +```powershell + +Import-Module Microsoft.Graph.People # A UPN can also be used as -UserId. -Get-MgUserUsedInsight -UserId $userId -``` -This example shows how to use the Get-MgUserUsedInsight Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Return the most recently viewed documents that the signed-in user might or might not have modified +Get-MgUserUsedInsight -UserId $userId + +``` +This example will return documents that user has modified + +### Example 2: Return the most recently viewed documents that the signed-in user might or might not have modified -```powershell Import-Module Microsoft.Graph.People +```powershell + +Import-Module Microsoft.Graph.People # A UPN can also be used as -UserId. -Get-MgUserUsedInsight -UserId $userId -Sort "LastUsed/LastAccessedDateTime desc" -``` -This example shows how to use the Get-MgUserUsedInsight Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserUsedInsight -UserId $userId -Sort "LastUsed/LastAccessedDateTime desc" + +``` +This example will return the most recently viewed documents that the signed-in user might or might not have modified + diff --git a/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md b/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md index a65704924b6..bd468f8fe76 100644 --- a/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md +++ b/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts +```powershell + +Import-Module Microsoft.Graph.Beta.PersonalContacts # A UPN can also be used as -UserId. -Get-MgBetaUserContact -UserId $userId -ContactId $contactId -``` -This example shows how to use the Get-MgBetaUserContact Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserContact -UserId $userId -Property "displayName,emailAddresses" + +``` +This example shows how to use the Get-MgBetaUserContact Cmdlet. + diff --git a/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md b/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md index cbfe90d3f1d..598bc9ca377 100644 --- a/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md +++ b/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts +```powershell + +Import-Module Microsoft.Graph.Beta.PersonalContacts # A UPN can also be used as -UserId. -Get-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -``` -This example shows how to use the Get-MgBetaUserContactFolder Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserContactFolder -UserId $userId + +``` +This example shows how to use the Get-MgBetaUserContactFolder Cmdlet. + diff --git a/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolderChildFolderContact.md b/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolderChildFolderContact.md index 093355d11d5..e69de29bb2d 100644 --- a/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolderChildFolderContact.md +++ b/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolderChildFolderContact.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md b/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md index fa2098cb656..2f517df40e8 100644 --- a/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md +++ b/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.PersonalContacts +```powershell + +Import-Module Microsoft.Graph.PersonalContacts # A UPN can also be used as -UserId. -Get-MgUserContact -UserId $userId -ContactId $contactId -``` -This example shows how to use the Get-MgUserContact Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserContact -UserId $userId + +``` +This example shows how to use the Get-MgUserContact Cmdlet. + diff --git a/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md b/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md index a29a6ded1f1..62ec28c365e 100644 --- a/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md +++ b/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.PersonalContacts +```powershell + +Import-Module Microsoft.Graph.PersonalContacts # A UPN can also be used as -UserId. -Get-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -``` -This example shows how to use the Get-MgUserContactFolder Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId + +``` +This example shows how to use the Get-MgUserContactFolder Cmdlet. + diff --git a/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolderChildFolder.md b/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolderChildFolder.md index 6edb4db8e1a..26822d9d8fd 100644 --- a/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolderChildFolder.md +++ b/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolderChildFolder.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.PersonalContacts +```powershell + +Import-Module Microsoft.Graph.PersonalContacts # A UPN can also be used as -UserId. -Get-MgUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId -``` -This example shows how to use the Get-MgUserContactFolderChildFolder Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId + +``` +This example shows how to use the Get-MgUserContactFolderChildFolder Cmdlet. + diff --git a/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlan.md b/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlan.md index c66e81d6d3f..f191cc08fde 100644 --- a/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlan.md +++ b/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlan.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaGroupPlannerPlan Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Planner + Get-MgBetaGroupPlannerPlan -GroupId $groupId + ``` This example shows how to use the Get-MgBetaGroupPlannerPlan Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanBucket.md b/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanBucket.md index 70a0baf2105..e69de29bb2d 100644 --- a/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanBucket.md +++ b/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanBucket.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Planner - -Get-MgBetaPlannerPlanBucket -PlannerPlanId $plannerPlanId -``` -This example shows how to use the Get-MgBetaGroupPlannerPlanBucket Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanTask.md b/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanTask.md index ba8d782eee4..e69de29bb2d 100644 --- a/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanTask.md +++ b/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanTask.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Planner - -Get-MgBetaPlannerPlanTask -PlannerPlanId $plannerPlanId -``` -This example shows how to use the Get-MgBetaGroupPlannerPlanTask Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md b/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md index 2c482e7adbe..ddc9063c7dd 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Get-MgBetaPlannerBucket + +``` +This example shows how to use the Get-MgBetaPlannerBucket Cmdlet. -Get-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId -``` -This example shows how to use the Get-MgBetaPlannerBucket Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerBucketTask.md b/src/Planner/beta/examples/Get-MgBetaPlannerBucketTask.md index 291df9ef1ec..2a4542e4733 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerBucketTask.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerBucketTask.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaPlannerBucketTask Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Planner + Get-MgBetaPlannerBucketTask -PlannerBucketId $plannerBucketId + ``` This example shows how to use the Get-MgBetaPlannerBucketTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md b/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md index f8811f4ba9d..771053de79d 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Get-MgBetaPlannerPlan + +``` +This example shows how to use the Get-MgBetaPlannerPlan Cmdlet. -Get-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId -``` -This example shows how to use the Get-MgBetaPlannerPlan Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerPlanBucket.md b/src/Planner/beta/examples/Get-MgBetaPlannerPlanBucket.md index d4907127bf9..2c9a2079596 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerPlanBucket.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerPlanBucket.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaPlannerPlanBucket Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Planner + Get-MgBetaPlannerPlanBucket -PlannerPlanId $plannerPlanId + ``` This example shows how to use the Get-MgBetaPlannerPlanBucket Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerPlanDetail.md b/src/Planner/beta/examples/Get-MgBetaPlannerPlanDetail.md index 4b1092a459f..a924a00ff61 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerPlanDetail.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerPlanDetail.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Get-MgBetaPlannerPlanDetail -PlannerPlanId $plannerPlanId + +``` +This example shows how to use the Get-MgBetaPlannerPlanDetail Cmdlet. -Get-MgBetaPlannerPlanDetail -PlannerPlanId $plannerPlanId -``` -This example shows how to use the Get-MgBetaPlannerPlanDetail Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerPlanTask.md b/src/Planner/beta/examples/Get-MgBetaPlannerPlanTask.md index 24b251596f9..8b8868f2b8f 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerPlanTask.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerPlanTask.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaPlannerPlanTask Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Planner + Get-MgBetaPlannerPlanTask -PlannerPlanId $plannerPlanId + ``` This example shows how to use the Get-MgBetaPlannerPlanTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTask.md b/src/Planner/beta/examples/Get-MgBetaPlannerTask.md index e784507eb87..0658fbd90d6 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTask.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Get-MgBetaPlannerTask + +``` +This example shows how to use the Get-MgBetaPlannerTask Cmdlet. -Get-MgBetaPlannerTask -PlannerTaskId $plannerTaskId -``` -This example shows how to use the Get-MgBetaPlannerTask Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md index 1c1f9fcfc86..2ef6ad19e26 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Get-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId + +``` +This example shows how to use the Get-MgBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet. -Get-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -``` -This example shows how to use the Get-MgBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md index b7537bf8fc2..3c6f9acf1d5 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Get-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId + +``` +This example shows how to use the Get-MgBetaPlannerTaskBucketTaskBoardFormat Cmdlet. -Get-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -``` -This example shows how to use the Get-MgBetaPlannerTaskBucketTaskBoardFormat Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md index dee17d1bf79..41bf2e0e483 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Get-MgBetaPlannerTaskDetail -PlannerTaskId $plannerTaskId + +``` +This example shows how to use the Get-MgBetaPlannerTaskDetail Cmdlet. -Get-MgBetaPlannerTaskDetail -PlannerTaskId $plannerTaskId -``` -This example shows how to use the Get-MgBetaPlannerTaskDetail Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md index c2689c25953..ae4954baf5b 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +Get-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId + +``` +This example shows how to use the Get-MgBetaPlannerTaskProgressTaskBoardFormat Cmdlet. -Get-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -``` -This example shows how to use the Get-MgBetaPlannerTaskProgressTaskBoardFormat Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/beta/examples/Get-MgBetaUserPlannerPlan.md b/src/Planner/beta/examples/Get-MgBetaUserPlannerPlan.md index 3452b12ffad..9679bf68ad1 100644 --- a/src/Planner/beta/examples/Get-MgBetaUserPlannerPlan.md +++ b/src/Planner/beta/examples/Get-MgBetaUserPlannerPlan.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgBetaUserPlannerPlan Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Planner + # A UPN can also be used as -UserId. Get-MgBetaUserPlannerPlan -UserId $userId + ``` This example shows how to use the Get-MgBetaUserPlannerPlan Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Get-MgBetaUserPlannerTask.md b/src/Planner/beta/examples/Get-MgBetaUserPlannerTask.md index 354cbdea6fe..4c7e4487d79 100644 --- a/src/Planner/beta/examples/Get-MgBetaUserPlannerTask.md +++ b/src/Planner/beta/examples/Get-MgBetaUserPlannerTask.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgBetaUserPlannerTask Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Planner + # A UPN can also be used as -UserId. Get-MgBetaUserPlannerTask -UserId $userId + ``` This example shows how to use the Get-MgBetaUserPlannerTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/New-MgBetaPlannerBucket.md b/src/Planner/beta/examples/New-MgBetaPlannerBucket.md index f7ffd90405c..7d06fc07efc 100644 --- a/src/Planner/beta/examples/New-MgBetaPlannerBucket.md +++ b/src/Planner/beta/examples/New-MgBetaPlannerBucket.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner $params = @{ name = "Advertising" @@ -8,8 +10,8 @@ $params = @{ orderHint = " !" } -New-MgBetaPlannerBucket -BodyParameter $params -``` -This example shows how to use the New-MgBetaPlannerBucket Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaPlannerBucket -BodyParameter $params + +``` +This example shows how to use the New-MgBetaPlannerBucket Cmdlet. + diff --git a/src/Planner/beta/examples/New-MgBetaPlannerPlan.md b/src/Planner/beta/examples/New-MgBetaPlannerPlan.md index 680ad39dd3b..daf0f1a71b8 100644 --- a/src/Planner/beta/examples/New-MgBetaPlannerPlan.md +++ b/src/Planner/beta/examples/New-MgBetaPlannerPlan.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner $params = @{ container = @{ @@ -9,8 +11,8 @@ $params = @{ title = "title-value" } -New-MgBetaPlannerPlan -BodyParameter $params -``` -This example shows how to use the New-MgBetaPlannerPlan Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaPlannerPlan -BodyParameter $params + +``` +This example shows how to use the New-MgBetaPlannerPlan Cmdlet. + diff --git a/src/Planner/beta/examples/New-MgBetaPlannerTask.md b/src/Planner/beta/examples/New-MgBetaPlannerTask.md index b464a9c4a9b..9d2ceb3fdcc 100644 --- a/src/Planner/beta/examples/New-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/New-MgBetaPlannerTask.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell + +Import-Module Microsoft.Graph.Beta.Planner $params = @{ planId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" @@ -14,8 +16,8 @@ $params = @{ } } -New-MgBetaPlannerTask -BodyParameter $params -``` -This example shows how to use the New-MgBetaPlannerTask Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaPlannerTask -BodyParameter $params + +``` +This example shows how to use the New-MgBetaPlannerTask Cmdlet. + diff --git a/src/Planner/v1.0/examples/Get-MgGroupPlannerPlan.md b/src/Planner/v1.0/examples/Get-MgGroupPlannerPlan.md index 69d5a2130ea..8dadbc837ad 100644 --- a/src/Planner/v1.0/examples/Get-MgGroupPlannerPlan.md +++ b/src/Planner/v1.0/examples/Get-MgGroupPlannerPlan.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner + +Get-MgGroupPlannerPlan -GroupId $groupId + +``` +This example shows how to use the Get-MgGroupPlannerPlan Cmdlet. -Get-MgGroupPlannerPlan -GroupId $groupId -``` -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/v1.0/examples/Get-MgGroupPlannerPlanBucket.md b/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanBucket.md index 51800bf36b9..e69de29bb2d 100644 --- a/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanBucket.md +++ b/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanBucket.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Planner - -Get-MgPlannerPlanBucket -PlannerPlanId $plannerPlanId -``` -This example shows how to use the Get-MgGroupPlannerPlanBucket Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanTask.md b/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanTask.md index b2d09b7b4da..e69de29bb2d 100644 --- a/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanTask.md +++ b/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanTask.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Planner - -Get-MgPlannerPlanTask -PlannerPlanId $plannerPlanId -``` -This example shows how to use the Get-MgGroupPlannerPlanTask Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Planner/v1.0/examples/Get-MgPlannerBucket.md b/src/Planner/v1.0/examples/Get-MgPlannerBucket.md index b224608c70c..c332408ad7f 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerBucket.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerBucket.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner + +Get-MgPlannerBucket + +``` +This example shows how to use the Get-MgPlannerBucket Cmdlet. -Get-MgPlannerBucket -PlannerBucketId $plannerBucketId -``` -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/v1.0/examples/Get-MgPlannerBucketTask.md b/src/Planner/v1.0/examples/Get-MgPlannerBucketTask.md index 7428815cc14..5e7d42df316 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerBucketTask.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerBucketTask.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgPlannerBucketTask Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Planner + Get-MgPlannerBucketTask -PlannerBucketId $plannerBucketId + ``` 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/v1.0/examples/Get-MgPlannerPlan.md b/src/Planner/v1.0/examples/Get-MgPlannerPlan.md index 2637cd1661e..3316ed17f1a 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerPlan.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner + +Get-MgPlannerPlan + +``` +This example shows how to use the Get-MgPlannerPlan Cmdlet. -Get-MgPlannerPlan -PlannerPlanId $plannerPlanId -``` -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/v1.0/examples/Get-MgPlannerPlanDetail.md b/src/Planner/v1.0/examples/Get-MgPlannerPlanDetail.md index 7a9b647ef3b..81d7697abe9 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerPlanDetail.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerPlanDetail.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner + +Get-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId + +``` +This example shows how to use the Get-MgPlannerPlanDetail Cmdlet. -Get-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId -``` -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/v1.0/examples/Get-MgPlannerPlanTask.md b/src/Planner/v1.0/examples/Get-MgPlannerPlanTask.md index 6f9debbe198..8c946785335 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerPlanTask.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerPlanTask.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgPlannerPlanTask Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Planner + Get-MgPlannerPlanTask -PlannerPlanId $plannerPlanId + ``` 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/v1.0/examples/Get-MgPlannerTask.md b/src/Planner/v1.0/examples/Get-MgPlannerTask.md index b9a651abb07..bcf8607c2d3 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTask.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTask.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner + +Get-MgPlannerTask + +``` +This example shows how to use the Get-MgPlannerTask Cmdlet. -Get-MgPlannerTask -PlannerTaskId $plannerTaskId -``` -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/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md index 9fc43149905..1aeb78ec791 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner + +Get-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId + +``` +This example shows how to use the Get-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. -Get-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -``` -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/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md index 081cb39391a..3945a655af6 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner + +Get-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId + +``` +This example shows how to use the Get-MgPlannerTaskBucketTaskBoardFormat Cmdlet. -Get-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -``` -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/v1.0/examples/Get-MgPlannerTaskDetail.md b/src/Planner/v1.0/examples/Get-MgPlannerTaskDetail.md index 9fa03a7205d..873f0836e80 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskDetail.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskDetail.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner + +Get-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId + +``` +This example shows how to use the Get-MgPlannerTaskDetail Cmdlet. -Get-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId -``` -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/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md index bb88424dd2d..de23d1ac7c6 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner + +Get-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId + +``` +This example shows how to use the Get-MgPlannerTaskProgressTaskBoardFormat Cmdlet. -Get-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -``` -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/v1.0/examples/Get-MgUserPlannerTask.md b/src/Planner/v1.0/examples/Get-MgUserPlannerTask.md index 4a3c8888dca..80132b1872e 100644 --- a/src/Planner/v1.0/examples/Get-MgUserPlannerTask.md +++ b/src/Planner/v1.0/examples/Get-MgUserPlannerTask.md @@ -1,8 +1,12 @@ -### Example 1: Using the Get-MgUserPlannerTask Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Planner + # A UPN can also be used as -UserId. Get-MgUserPlannerTask -UserId $userId + ``` 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/v1.0/examples/New-MgPlannerBucket.md b/src/Planner/v1.0/examples/New-MgPlannerBucket.md index 5daaa961901..d05de460f00 100644 --- a/src/Planner/v1.0/examples/New-MgPlannerBucket.md +++ b/src/Planner/v1.0/examples/New-MgPlannerBucket.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner $params = @{ name = "Advertising" @@ -8,8 +10,8 @@ $params = @{ orderHint = " !" } -New-MgPlannerBucket -BodyParameter $params -``` -This example shows how to use the New-MgPlannerBucket Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgPlannerBucket -BodyParameter $params + +``` +This example shows how to use the New-MgPlannerBucket Cmdlet. + diff --git a/src/Planner/v1.0/examples/New-MgPlannerPlan.md b/src/Planner/v1.0/examples/New-MgPlannerPlan.md index bb1d522ab44..a6e22d20d90 100644 --- a/src/Planner/v1.0/examples/New-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/New-MgPlannerPlan.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner $params = @{ container = @{ @@ -9,8 +11,8 @@ $params = @{ title = "title-value" } -New-MgPlannerPlan -BodyParameter $params -``` -This example shows how to use the New-MgPlannerPlan Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgPlannerPlan -BodyParameter $params + +``` +This example shows how to use the New-MgPlannerPlan Cmdlet. + diff --git a/src/Planner/v1.0/examples/New-MgPlannerTask.md b/src/Planner/v1.0/examples/New-MgPlannerTask.md index 8f69081c637..1ea77fd7295 100644 --- a/src/Planner/v1.0/examples/New-MgPlannerTask.md +++ b/src/Planner/v1.0/examples/New-MgPlannerTask.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell + +Import-Module Microsoft.Graph.Planner $params = @{ planId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" @@ -14,8 +16,8 @@ $params = @{ } } -New-MgPlannerTask -BodyParameter $params -``` -This example shows how to use the New-MgPlannerTask Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgPlannerTask -BodyParameter $params + +``` +This example shows how to use the New-MgPlannerTask Cmdlet. + diff --git a/src/Reports/beta/examples/Get-MgBetaAuditLogDirectoryAudit.md b/src/Reports/beta/examples/Get-MgBetaAuditLogDirectoryAudit.md index a93e29069f7..96556ebadd3 100644 --- a/src/Reports/beta/examples/Get-MgBetaAuditLogDirectoryAudit.md +++ b/src/Reports/beta/examples/Get-MgBetaAuditLogDirectoryAudit.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Reports +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaAuditLogDirectoryAudit + +``` +This example shows how to use the Get-MgBetaAuditLogDirectoryAudit Cmdlet. -Get-MgBetaAuditLogDirectoryAudit -DirectoryAuditId $directoryAuditId -``` -This example shows how to use the Get-MgBetaAuditLogDirectoryAudit Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Reports/beta/examples/Get-MgBetaAuditLogProvisioning.md b/src/Reports/beta/examples/Get-MgBetaAuditLogProvisioning.md index 8c83684744a..be5fad672b9 100644 --- a/src/Reports/beta/examples/Get-MgBetaAuditLogProvisioning.md +++ b/src/Reports/beta/examples/Get-MgBetaAuditLogProvisioning.md @@ -1,14 +1,22 @@ -### Example 1: Using the Get-MgBetaAuditLogProvisioning Cmdlet +### Example 1: Successful request + ```powershell + Import-Module Microsoft.Graph.Beta.Reports + Get-MgBetaAuditLogProvisioning + ``` -This example shows how to use the Get-MgBetaAuditLogProvisioning Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaAuditLogProvisioning Cmdlet +This example will successful request + +### Example 2: Error reponse + ```powershell + Import-Module Microsoft.Graph.Beta.Reports + Get-MgBetaAuditLogProvisioning + ``` -This example shows how to use the Get-MgBetaAuditLogProvisioning Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example will error reponse + diff --git a/src/Reports/beta/examples/Get-MgBetaAuditLogSignIn.md b/src/Reports/beta/examples/Get-MgBetaAuditLogSignIn.md index 8758983a5ff..03147f1c526 100644 --- a/src/Reports/beta/examples/Get-MgBetaAuditLogSignIn.md +++ b/src/Reports/beta/examples/Get-MgBetaAuditLogSignIn.md @@ -1,9 +1,33 @@ -### Example 1: Code snippet +### Example 1: List all sign-ins -```powershell Import-Module Microsoft.Graph.Beta.Reports +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaAuditLogSignIn + +``` +This example will list all sign-ins + +### Example 2: Retrieve the first 10 sign-ins to apps with the appDisplayName that starts with 'Azure' + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaAuditLogSignIn -Filter "startsWith(appDisplayName,'Azure')" -Top 10 + +``` +This example will retrieve the first 10 sign-ins to apps with the appdisplayname that starts with 'azure' + +### Example 3: Retrieve the first 10 sign-ins where the signInEventType is not interactiveUser starting with the latest sign-in + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaAuditLogSignIn -Filter "(signInEventTypes/any(t: t ne 'interactiveUser'))" -Sort "createdDateTime DESC" -Top 10 + +``` +This example will retrieve the first 10 sign-ins where the signineventtype is not interactiveuser starting with the latest sign-in -Get-MgBetaAuditLogSignIn -SignInId $signInId -``` -This example shows how to use the Get-MgBetaAuditLogSignIn Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserRegistrationDetail.md b/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserRegistrationDetail.md index 0f3e111c9d8..63a905417d6 100644 --- a/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserRegistrationDetail.md +++ b/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserRegistrationDetail.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Reports +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportAuthenticationMethodUserRegistrationDetail + +``` +This example shows how to use the Get-MgBetaReportAuthenticationMethodUserRegistrationDetail Cmdlet. -Get-MgBetaReportAuthenticationMethodUserRegistrationDetail -UserRegistrationDetailsId $userRegistrationDetailsId -``` -This example shows how to use the Get-MgBetaReportAuthenticationMethodUserRegistrationDetail Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByPrinter.md b/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByPrinter.md index 481baf13750..745b374def7 100644 --- a/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByPrinter.md +++ b/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByPrinter.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.Reports -Get-MgBetaReportDailyPrintUsageByPrinter -PrintUsageByPrinterId $printUsageByPrinterId +Get-MgBetaReportDailyPrintUsageByPrinter + ``` This example shows how to use the Get-MgBetaReportDailyPrintUsageByPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByUser.md b/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByUser.md index 122793c9808..d2dd118e439 100644 --- a/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByUser.md +++ b/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByUser.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.Reports Get-MgBetaReportDailyPrintUsageByUser -PrintUsageByUserId $printUsageByUserId + ``` This example shows how to use the Get-MgBetaReportDailyPrintUsageByUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Reports/v1.0/examples/Get-MgAuditLogDirectoryAudit.md b/src/Reports/v1.0/examples/Get-MgAuditLogDirectoryAudit.md index 9bcbdcea257..8f78b79e254 100644 --- a/src/Reports/v1.0/examples/Get-MgAuditLogDirectoryAudit.md +++ b/src/Reports/v1.0/examples/Get-MgAuditLogDirectoryAudit.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Reports +```powershell + +Import-Module Microsoft.Graph.Reports + +Get-MgAuditLogDirectoryAudit + +``` +This example shows how to use the Get-MgAuditLogDirectoryAudit Cmdlet. -Get-MgAuditLogDirectoryAudit -DirectoryAuditId $directoryAuditId -``` -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/v1.0/examples/Get-MgAuditLogProvisioning.md b/src/Reports/v1.0/examples/Get-MgAuditLogProvisioning.md index 4cf1c7c7f26..364b1104138 100644 --- a/src/Reports/v1.0/examples/Get-MgAuditLogProvisioning.md +++ b/src/Reports/v1.0/examples/Get-MgAuditLogProvisioning.md @@ -1,18 +1,11 @@ -### Example 1: Successful request +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Reports +```powershell -Get-MgAuditLogProvisioning -``` -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: Error reponse +Import-Module Microsoft.Graph.Reports -```powershell Import-Module Microsoft.Graph.Reports +Get-MgAuditLogProvisioning + +``` +This example shows how to use the Get-MgAuditLogProvisioning Cmdlet. -Get-MgAuditLogProvisioning -``` -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/v1.0/examples/Get-MgAuditLogSignIn.md b/src/Reports/v1.0/examples/Get-MgAuditLogSignIn.md index 62c23125b69..357bd7f964e 100644 --- a/src/Reports/v1.0/examples/Get-MgAuditLogSignIn.md +++ b/src/Reports/v1.0/examples/Get-MgAuditLogSignIn.md @@ -1,9 +1,22 @@ -### Example 1: Code snippet +### Example 1: List all sign-ins -```powershell Import-Module Microsoft.Graph.Reports +```powershell + +Import-Module Microsoft.Graph.Reports + +Get-MgAuditLogSignIn + +``` +This example will list all sign-ins + +### Example 2: Retrieve the first 10 sign-ins to apps with the appDisplayName that starts with 'Graph' + +```powershell + +Import-Module Microsoft.Graph.Reports + +Get-MgAuditLogSignIn -Filter "startsWith(appDisplayName,'Graph')" -Top 10 + +``` +This example will retrieve the first 10 sign-ins to apps with the appdisplayname that starts with 'graph' -Get-MgAuditLogSignIn -SignInId $signInId -``` -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/v1.0/examples/Get-MgReportDailyPrintUsageByPrinter.md b/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByPrinter.md index 5519699597f..fd05a0c0fca 100644 --- a/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByPrinter.md +++ b/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByPrinter.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Reports +```powershell + +Import-Module Microsoft.Graph.Reports + +Get-MgReportDailyPrintUsageByPrinter + +``` +This example shows how to use the Get-MgReportDailyPrintUsageByPrinter Cmdlet. -Get-MgReportDailyPrintUsageByPrinter -PrintUsageByPrinterId $printUsageByPrinterId -``` -This example shows how to use the Get-MgReportDailyPrintUsageByPrinter Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByUser.md b/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByUser.md index 88479b12bce..cf5c651a171 100644 --- a/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByUser.md +++ b/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByUser.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Reports +```powershell + +Import-Module Microsoft.Graph.Reports + +Get-MgReportDailyPrintUsageByUser + +``` +This example shows how to use the Get-MgReportDailyPrintUsageByUser Cmdlet. -Get-MgReportDailyPrintUsageByUser -PrintUsageByUserId $printUsageByUserId -``` -This example shows how to use the Get-MgReportDailyPrintUsageByUser Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md b/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md index 54bbd07127c..ef53bb840e5 100644 --- a/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions +```powershell + +Import-Module Microsoft.Graph.Beta.SchemaExtensions + +Get-MgBetaSchemaExtension -Filter "id eq 'graphlearn_test'" + +``` +This example shows how to use the Get-MgBetaSchemaExtension Cmdlet. -Get-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -``` -This example shows how to use the Get-MgBetaSchemaExtension Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md b/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md index ad205416f65..8f54361a56a 100644 --- a/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md @@ -1,6 +1,8 @@ -### Example 1: Creating a schema extension using a verified domain +### Example 1: Creating a schema extension using a verified domain -```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions +```powershell + +Import-Module Microsoft.Graph.Beta.SchemaExtensions $params = @{ id = "graphlearn_courses" @@ -24,14 +26,16 @@ $params = @{ ) } -New-MgBetaSchemaExtension -BodyParameter $params -``` -This example shows how to use the New-MgBetaSchemaExtension Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Creating a schema extension using just a name +New-MgBetaSchemaExtension -BodyParameter $params + +``` +This example shows creating a schema extension using a verified domain + +### Example 2: Creating a schema extension using just a name -```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions +```powershell + +Import-Module Microsoft.Graph.Beta.SchemaExtensions $params = @{ id = "courses" @@ -55,14 +59,16 @@ $params = @{ ) } -New-MgBetaSchemaExtension -BodyParameter $params -``` -This example shows how to use the New-MgBetaSchemaExtension Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Creating a schema extension setting the owner +New-MgBetaSchemaExtension -BodyParameter $params + +``` +This example shows creating a schema extension using just a name -```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions +### Example 3: Creating a schema extension setting the owner + +```powershell + +Import-Module Microsoft.Graph.Beta.SchemaExtensions $params = @{ id = "courses" @@ -87,8 +93,8 @@ $params = @{ ) } -New-MgBetaSchemaExtension -BodyParameter $params -``` -This example shows how to use the New-MgBetaSchemaExtension Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaSchemaExtension -BodyParameter $params + +``` +This example shows creating a schema extension setting the owner + diff --git a/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md b/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md index b40fa380b9e..4e45bdf0e65 100644 --- a/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.SchemaExtensions +```powershell + +Import-Module Microsoft.Graph.SchemaExtensions + +Get-MgSchemaExtension -Filter "id eq 'graphlearn_test'" + +``` +This example shows how to use the Get-MgSchemaExtension Cmdlet. -Get-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -``` -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/v1.0/examples/New-MgSchemaExtension.md b/src/SchemaExtensions/v1.0/examples/New-MgSchemaExtension.md index d3477495995..d29f243adc9 100644 --- a/src/SchemaExtensions/v1.0/examples/New-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/New-MgSchemaExtension.md @@ -1,6 +1,8 @@ -### Example 1: Creating a schema extension using a verified domain +### Example 1: Creating a schema extension using a verified domain -```powershell Import-Module Microsoft.Graph.SchemaExtensions +```powershell + +Import-Module Microsoft.Graph.SchemaExtensions $params = @{ id = "graphlearn_courses" @@ -24,14 +26,16 @@ $params = @{ ) } -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). - -### Example 2: Creating a schema extension using just a name +New-MgSchemaExtension -BodyParameter $params + +``` +This example shows creating a schema extension using a verified domain + +### Example 2: Creating a schema extension using just a name -```powershell Import-Module Microsoft.Graph.SchemaExtensions +```powershell + +Import-Module Microsoft.Graph.SchemaExtensions $params = @{ id = "courses" @@ -55,14 +59,16 @@ $params = @{ ) } -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). - -### Example 3: Creating a schema extension setting the owner +New-MgSchemaExtension -BodyParameter $params + +``` +This example shows creating a schema extension using just a name -```powershell Import-Module Microsoft.Graph.SchemaExtensions +### Example 3: Creating a schema extension setting the owner + +```powershell + +Import-Module Microsoft.Graph.SchemaExtensions $params = @{ id = "courses" @@ -87,8 +93,8 @@ $params = @{ ) } -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). - +New-MgSchemaExtension -BodyParameter $params + +``` +This example shows creating a schema extension setting the owner + diff --git a/src/Search/beta/examples/Get-MgBetaExternalConnection.md b/src/Search/beta/examples/Get-MgBetaExternalConnection.md index 94ca9c038c1..1f2643ed63f 100644 --- a/src/Search/beta/examples/Get-MgBetaExternalConnection.md +++ b/src/Search/beta/examples/Get-MgBetaExternalConnection.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Search +```powershell + +Import-Module Microsoft.Graph.Beta.Search + +Get-MgBetaExternalConnection + +``` +This example shows how to use the Get-MgBetaExternalConnection Cmdlet. -Get-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId -``` -This example shows how to use the Get-MgBetaExternalConnection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Search/v1.0/examples/Get-MgExternalConnection.md b/src/Search/v1.0/examples/Get-MgExternalConnection.md index f558b471e2d..0378240c8cc 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnection.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnection.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Search +```powershell + +Import-Module Microsoft.Graph.Search + +Get-MgExternalConnection + +``` +This example shows how to use the Get-MgExternalConnection Cmdlet. -Get-MgExternalConnection -ExternalConnectionId $externalConnectionId -``` -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/v1.0/examples/Get-MgExternalConnectionGroup.md b/src/Search/v1.0/examples/Get-MgExternalConnectionGroup.md index 04ba189363c..68fc034e30e 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnectionGroup.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Search +```powershell + +Import-Module Microsoft.Graph.Search + +Get-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId + +``` +This example shows how to use the Get-MgExternalConnectionGroup Cmdlet. -Get-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -``` -This example shows how to use the Get-MgExternalConnectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Search/v1.0/examples/Get-MgExternalConnectionOperation.md b/src/Search/v1.0/examples/Get-MgExternalConnectionOperation.md index 4eaca8b698c..888f5a54bbe 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnectionOperation.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnectionOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Search +```powershell + +Import-Module Microsoft.Graph.Search + +Get-MgExternalConnectionOperation -ExternalConnectionId $externalConnectionId -ConnectionOperationId $connectionOperationId + +``` +This example shows how to use the Get-MgExternalConnectionOperation Cmdlet. -Get-MgExternalConnectionOperation -ExternalConnectionId $externalConnectionId -ConnectionOperationId $connectionOperationId -``` -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/v1.0/examples/Get-MgExternalConnectionSchema.md b/src/Search/v1.0/examples/Get-MgExternalConnectionSchema.md index dfde94d5d8e..efcd63824ee 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnectionSchema.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnectionSchema.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Search +```powershell +Import-Module Microsoft.Graph.Search + +Get-MgExternalConnectionSchema -ExternalConnectionId $externalConnectionId +``` +This example shows how to use the Get-MgExternalConnectionSchema Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Get-MgExternalConnectionSchema -ExternalConnectionId $externalConnectionId -``` -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/v1.0/examples/Invoke-MgQuerySearch.md b/src/Search/v1.0/examples/Invoke-MgQuerySearch.md index 093355d11d5..c1c46deaf33 100644 --- a/src/Search/v1.0/examples/Invoke-MgQuerySearch.md +++ b/src/Search/v1.0/examples/Invoke-MgQuerySearch.md @@ -1,18 +1,60 @@ -### Example 1: {{ Add title here }} +### Example 1: Basic call to perform a search request + ```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 + ``` +This example will basic call to perform a search request -{{ Add description here }} +### Example 2: Basic call to use queryTemplate -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.Search + +$params = @{ + requests = @( + @{ + entityTypes = @( + "listItem" + ) + query = @{ + queryString = "contoso" + queryTemplate = '{searchTerms} CreatedBy:Bob" + } + from = 0 + size = 25 + } + ) +} -{{ Add description here }} +Invoke-MgQuerySearch -BodyParameter $params + +``` +This example will basic call to use querytemplate diff --git a/src/Search/v1.0/examples/New-MgExternalConnection.md b/src/Search/v1.0/examples/New-MgExternalConnection.md index 8df25db5f0c..cf6e83c1ad1 100644 --- a/src/Search/v1.0/examples/New-MgExternalConnection.md +++ b/src/Search/v1.0/examples/New-MgExternalConnection.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Search +```powershell + +Import-Module Microsoft.Graph.Search $params = @{ id = "contosohr" @@ -8,8 +10,8 @@ $params = @{ description = "Connection to index Contoso HR system" } -New-MgExternalConnection -BodyParameter $params -``` -This example shows how to use the New-MgExternalConnection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgExternalConnection -BodyParameter $params + +``` +This example shows how to use the New-MgExternalConnection Cmdlet. + diff --git a/src/Search/v1.0/examples/New-MgExternalConnectionGroup.md b/src/Search/v1.0/examples/New-MgExternalConnectionGroup.md index bb142f0ad37..69774882dce 100644 --- a/src/Search/v1.0/examples/New-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/New-MgExternalConnectionGroup.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Search +```powershell + +Import-Module Microsoft.Graph.Search $params = @{ id = "31bea3d537902000" @@ -8,8 +10,8 @@ $params = @{ description = "The product marketing team" } -New-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -BodyParameter $params -``` -This example shows how to use the New-MgExternalConnectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -BodyParameter $params + +``` +This example shows how to use the New-MgExternalConnectionGroup Cmdlet. + diff --git a/src/Search/v1.0/examples/New-MgExternalConnectionGroupMember.md b/src/Search/v1.0/examples/New-MgExternalConnectionGroupMember.md index 05b319c2c32..6a057fe9ad9 100644 --- a/src/Search/v1.0/examples/New-MgExternalConnectionGroupMember.md +++ b/src/Search/v1.0/examples/New-MgExternalConnectionGroupMember.md @@ -1,42 +1,48 @@ -### Example 1: Add an Azure Active Directory user as a member +### Example 1: Add an Azure Active Directory user as a member -```powershell Import-Module Microsoft.Graph.Search +```powershell + +Import-Module Microsoft.Graph.Search $params = @{ id = "e811976d-83df-4cbd-8b9b-5215b18aa874" type = "user" } -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). - -### Example 2: Add an Azure Active Directory group as a member +New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params + +``` +This example will add an azure active directory user as a member + +### Example 2: Add an Azure Active Directory group as a member -```powershell Import-Module Microsoft.Graph.Search +```powershell + +Import-Module Microsoft.Graph.Search $params = @{ id = "e5477431-1038-484e-bf69-1dfedb97a110" type = "group" } -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). - -### Example 3: Add another external group as a member +New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params + +``` +This example will add an azure active directory group as a member -```powershell Import-Module Microsoft.Graph.Search +### Example 3: Add another external group as a member + +```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). - +New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params + +``` +This example will add another external group as a member + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityAlert.md b/src/Security/beta/examples/Get-MgBetaSecurityAlert.md index da370537ddd..0f0f761242a 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityAlert.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityAlert.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityAlert + +``` +This example shows how to use the Get-MgBetaSecurityAlert Cmdlet. -Get-MgBetaSecurityAlert -AlertId $alertId -``` -This example shows how to use the Get-MgBetaSecurityAlert Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulation.md b/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulation.md index 4258588603f..06a9bd6e834 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityAttackSimulation + +``` +This example shows how to use the Get-MgBetaSecurityAttackSimulation Cmdlet. -Get-MgBetaSecurityAttackSimulation -``` -This example shows how to use the Get-MgBetaBetaSecurityAttackSimulation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomation.md b/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomation.md index f22e9620105..43da43b04cf 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityAttackSimulationAutomation + +``` +This example shows how to use the Get-MgBetaSecurityAttackSimulationAutomation Cmdlet. -Get-MgBetaSecurityAttackSimulationAutomation -SimulationAutomationId $simulationAutomationId -``` -This example shows how to use the Get-MgBetaSecurityAttackSimulationAutomation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomationRun.md b/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomationRun.md index fc5083c815d..8b89fb3f78e 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomationRun.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomationRun.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaSecurityAttackSimulationAutomationRun Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Security + Get-MgBetaSecurityAttackSimulationAutomationRun -SimulationAutomationId $simulationAutomationId + ``` This example shows how to use the Get-MgBetaSecurityAttackSimulationAutomationRun Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md index 2d1b4944f99..42b41341af4 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId +Get-MgBetaSecurityCaseEdiscoveryCase + ``` This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCase Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodian.md index 50cc4879fba..021f0f9dcf0 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodian.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodian Cmdlet. -Get-MgBetaSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodian Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md index 8cf4ebcbbc6..d70b9cd3865 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId + +``` +This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation Cmdlet. -Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource.md index afb761397c1..4b7e159336a 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource.md @@ -1,14 +1,11 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Security + Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId + ``` This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 73f96c2d660..351e3825fb8 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Security + Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId + ``` This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource.md index a9d5a57705e..6bbf34f80bb 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource.md @@ -1,14 +1,11 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Security + Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId + ``` This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseOperation.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseOperation.md index f382c776271..a4fd97d335f 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseOperation Cmdlet. -Get-MgBetaSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId -CaseOperationId $caseOperationId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseOperation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md index cc6edd138be..e190c977ed1 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet Cmdlet. -Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md index 0e78da45fe2..c19c9ecc37c 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId + +``` +This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. -Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md index 5f9850c906b..991f19e4401 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId +Get-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId + ``` This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource.md index bdf255b0326..b9b1035c573 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource.md @@ -1,14 +1,11 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Security + Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId + ``` This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource.md index f6c6949389e..7f7b527e136 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource.md @@ -1,17 +1,11 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell -{{ Add description here }} +Import-Module Microsoft.Graph.Beta.Security -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} +Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -{{ Add output here }} ``` +This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet. -{{ Add description here }} diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md index 856fd2b5453..32d9ba7c73e 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId + +``` +This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet. -Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md index bbeae8a9233..94387a2fedc 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSetting Cmdlet. -Get-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSetting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseTag.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseTag.md index d4326fc3222..74f1252ab32 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseTag.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet. -Get-MgBetaSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityIncident.md b/src/Security/beta/examples/Get-MgBetaSecurityIncident.md index dbf39c143b5..6763b4820d1 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityIncident.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityIncident.md @@ -1,9 +1,22 @@ -### Example 1: Code snippet +### Example 1: List all incidents -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityIncident + +``` +This example will list all incidents + +### Example 2: List all incidents with their alerts + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityIncident -ExpandProperty "alerts" + +``` +This example will list all incidents with their alerts -Get-MgBetaSecurityIncident -IncidentId $incidentId -``` -This example shows how to use the Get-MgBetaSecurityIncident Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/v1.0/examples/Get-MgSecurityAlert.md b/src/Security/v1.0/examples/Get-MgSecurityAlert.md index 9edab6408b2..5aae25b3102 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityAlert.md +++ b/src/Security/v1.0/examples/Get-MgSecurityAlert.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityAlert + +``` +This example shows how to use the Get-MgSecurityAlert Cmdlet. -Get-MgSecurityAlert -AlertId $alertId -``` -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/v1.0/examples/Get-MgSecurityAttackSimulation.md b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulation.md index 4da8f3bba9b..86657b70bfc 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityAttackSimulation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityAttackSimulation + +``` +This example shows how to use the Get-MgSecurityAttackSimulation Cmdlet. -Get-MgSecurityAttackSimulation -``` -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/v1.0/examples/Get-MgSecurityAttackSimulationAutomation.md b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationAutomation.md index f4feee5805c..a06850b5a50 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationAutomation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationAutomation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityAttackSimulationAutomation + +``` +This example shows how to use the Get-MgSecurityAttackSimulationAutomation Cmdlet. -Get-MgSecurityAttackSimulationAutomation -SimulationAutomationId $simulationAutomationId -``` -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/v1.0/examples/Get-MgSecurityAttackSimulationAutomationRun.md b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationAutomationRun.md index a20028d18a1..ed10517c723 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationAutomationRun.md +++ b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationAutomationRun.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityAttackSimulationAutomationRun -SimulationAutomationId $simulationAutomationId + +``` +This example shows how to use the Get-MgSecurityAttackSimulationAutomationRun Cmdlet. -Get-MgSecurityAttackSimulationAutomationRun -SimulationAutomationId $simulationAutomationId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md index 56cec938ea6..732009db377 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCase + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCase Cmdlet. -Get-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodian.md index 3f2ddb637c1..c9ea5471d51 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md index b7ff360bcea..d09a029a2f7 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md index f7154f8d12f..433995f5a10 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index e08eb39b1d2..184fde463a5 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Security Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId + ``` 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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md index ed6e29485ac..ee9706bbac3 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseOperation.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseOperation.md index c9c73ecd758..657fab61807 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId -CaseOperationId $caseOperationId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md index 9223ada4d6f..43b7a44de29 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 18b21760443..a76d578bbb3 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md index b0e453ac390..587200966a8 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,11 +1,11 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId +Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId + ``` 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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md index b92870fa1e4..640d57fc4ad 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md index 2ecf36baa5c..f2833c37b70 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md index cbcdf545870..17096a017c1 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md index 8406ccf27db..4264ca53fd9 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSetting Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -``` -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/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md index 7bd8b777cfb..7640a270c3c 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet. -Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId -``` -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/v1.0/examples/Get-MgSecuritySecureScore.md b/src/Security/v1.0/examples/Get-MgSecuritySecureScore.md index 96ef851a83a..8e733cfe712 100644 --- a/src/Security/v1.0/examples/Get-MgSecuritySecureScore.md +++ b/src/Security/v1.0/examples/Get-MgSecuritySecureScore.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecuritySecureScore -Top 1 + +``` +This example shows how to use the Get-MgSecuritySecureScore Cmdlet. -Get-MgSecuritySecureScore -SecureScoreId $secureScoreId -``` -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/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md b/src/Security/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md index a2aa9308a28..e2f8f87cf18 100644 --- a/src/Security/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecuritySecureScoreControlProfile + +``` +This example shows how to use the Get-MgSecuritySecureScoreControlProfile Cmdlet. -Get-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -``` -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/v1.0/examples/New-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCase.md index 70112aa0171..bcf005799b6 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCase.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security $params = @{ displayName = "CONTOSO LITIGATION-005" @@ -8,8 +10,8 @@ $params = @{ externalId = "324516" } -New-MgSecurityCaseEdiscoveryCase -BodyParameter $params -``` -This example shows how to use the New-MgSecurityCaseEdiscoveryCase Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgSecurityCaseEdiscoveryCase -BodyParameter $params + +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCase Cmdlet. + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodian.md index 9c5101437ea..20325e4aa9e 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security $params = @{ email = "AdeleV@contoso.com" } -New-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params + +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md index 4315650af34..9312b3e5981 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security $params = @{ site = @{ @@ -8,8 +10,8 @@ $params = @{ } } -New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params -``` -This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params + +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 92c9b1df909..8efce71b541 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,6 +1,8 @@ -### Example 1: Create unifiedGroupSource with group SMTP address +### Example 1: Create unifiedGroupSource with group SMTP address -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security $params = @{ group = @{ @@ -9,22 +11,24 @@ $params = @{ includedSources = "mailbox, site" } -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). - -### Example 2: Create unifiedGroupSource with group@odata.bind +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params + +``` +This example will create unifiedgroupsource with group smtp address + +### Example 2: Create unifiedGroupSource with group@odata.bind -```powershell Import-Module Microsoft.Graph.Security +```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). - +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params + +``` +This example will create unifiedgroupsource with group@odata.bind + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index c81ac3af0c0..ba9fb2ef252 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security $params = @{ dataSource = @{ @@ -8,8 +10,8 @@ $params = @{ } } -New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params + +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSet.md index 27137b0fc42..6b7ce51c131 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security $params = @{ displayName = "My review set 2" } -New-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the New-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params + +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 7e8e6a857ab..eb9193518e7 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,14 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell +Import-Module Microsoft.Graph.Security $params = @{ displayName = "My Query 1" contentQuery = "(Author="edison")" } -New-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -BodyParameter $params -``` -This example shows how to use the New-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -BodyParameter $params +``` +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/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md index d1287c6ed83..87f8cbc753b 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,6 +1,8 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell + +Import-Module Microsoft.Graph.Security $params = @{ displayName = "My search 2" @@ -16,8 +18,8 @@ $params = @{ ) } -New-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the New-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params + +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. + diff --git a/src/Sites/beta/examples/Add-MgBetaSiteContentTypeCopy.md b/src/Sites/beta/examples/Add-MgBetaSiteContentTypeCopy.md index 3ea0d401989..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Add-MgBetaSiteContentTypeCopy.md +++ b/src/Sites/beta/examples/Add-MgBetaSiteContentTypeCopy.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgBetaSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaSiteContentTypeCopy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/beta/examples/Add-MgBetaSiteContentTypeCopyFromContentTypeHub.md b/src/Sites/beta/examples/Add-MgBetaSiteContentTypeCopyFromContentTypeHub.md index bf4e072af4c..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Add-MgBetaSiteContentTypeCopyFromContentTypeHub.md +++ b/src/Sites/beta/examples/Add-MgBetaSiteContentTypeCopyFromContentTypeHub.md @@ -1,30 +0,0 @@ -### Example 1: Synchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaSiteContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaSiteContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/beta/examples/Add-MgBetaSiteListContentTypeCopy.md b/src/Sites/beta/examples/Add-MgBetaSiteListContentTypeCopy.md index 33971e4a340..025af63c7af 100644 --- a/src/Sites/beta/examples/Add-MgBetaSiteListContentTypeCopy.md +++ b/src/Sites/beta/examples/Add-MgBetaSiteListContentTypeCopy.md @@ -1,10 +1,15 @@ -### Example 1: Using the Add-MgBetaSiteListContentTypeCopy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - ContentType = "https://graph.microsoft.com/beta/sites/id/contentTypes/0x0101" + contentType = "https://graph.microsoft.com/beta/sites/id/contentTypes/0x0101" } + Add-MgBetaSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params + ``` This example shows how to use the Add-MgBetaSiteListContentTypeCopy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Add-MgBetaSiteListContentTypeCopyFromContentTypeHub.md b/src/Sites/beta/examples/Add-MgBetaSiteListContentTypeCopyFromContentTypeHub.md index 714ba8adb90..2bdb60da52b 100644 --- a/src/Sites/beta/examples/Add-MgBetaSiteListContentTypeCopyFromContentTypeHub.md +++ b/src/Sites/beta/examples/Add-MgBetaSiteListContentTypeCopyFromContentTypeHub.md @@ -1,30 +1,30 @@ -### Example 1: Using the Add-MgBetaSiteListContentTypeCopyFromContentTypeHub Cmdlet +### Example 1: Synchronous pull + ```powershell + Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - ContentTypeId = "String" + contentTypeId = "0x0101" } + Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params + ``` -This example shows how to use the Add-MgBetaSiteListContentTypeCopyFromContentTypeHub Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Add-MgBetaSiteListContentTypeCopyFromContentTypeHub Cmdlet +This example synchronous pull + +### Example 2: Asynchronous pull + ```powershell + Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - ContentTypeId = "String" + contentTypeId = "String" } + Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params + ``` -This example shows how to use the Add-MgBetaSiteListContentTypeCopyFromContentTypeHub Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Add-MgBetaSiteListContentTypeCopyFromContentTypeHub Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - ContentTypeId = "0x0101" -} -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaSiteListContentTypeCopyFromContentTypeHub Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +This example asynchronous pull + diff --git a/src/Sites/beta/examples/Copy-MgBetaSiteContentTypeToDefaultContentLocation.md b/src/Sites/beta/examples/Copy-MgBetaSiteContentTypeToDefaultContentLocation.md index 656d90cced8..b868a9f8c84 100644 --- a/src/Sites/beta/examples/Copy-MgBetaSiteContentTypeToDefaultContentLocation.md +++ b/src/Sites/beta/examples/Copy-MgBetaSiteContentTypeToDefaultContentLocation.md @@ -1,16 +1,21 @@ -### Example 1: Using the Copy-MgBetaSiteContentTypeToDefaultContentLocation Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - SourceFile = @{ - SharepointIds = @{ - ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" - ListItemId = "2" + sourceFile = @{ + sharepointIds = @{ + listId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + listItemId = "2" } } - DestinationFileName = "newname.txt" + destinationFileName = "newname.txt" } + Copy-MgBetaSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params + ``` This example shows how to use the Copy-MgBetaSiteContentTypeToDefaultContentLocation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Copy-MgBetaSiteListContentTypeToDefaultContentLocation.md b/src/Sites/beta/examples/Copy-MgBetaSiteListContentTypeToDefaultContentLocation.md index d6d675d697e..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Copy-MgBetaSiteListContentTypeToDefaultContentLocation.md +++ b/src/Sites/beta/examples/Copy-MgBetaSiteListContentTypeToDefaultContentLocation.md @@ -1,21 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - SourceFile = @{ - SharepointIds = @{ - ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" - ListItemId = "2" - } - } - DestinationFileName = "newname.txt" -} - -Copy-MgBetaSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaSiteListContentTypeToDefaultContentLocation Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteNotebook.md b/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteNotebook.md index 0c259d3d16c..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteNotebook.md +++ b/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteNotebook.md @@ -1,17 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - GroupId = "groupId-value" - RenameAs = "renameAs-value" -} - -# A UPN can also be used as -UserId. -Copy-MgBetaUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaSiteOnenoteNotebook Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/beta/examples/Copy-MgBetaSiteOnenotePageToSection.md b/src/Sites/beta/examples/Copy-MgBetaSiteOnenotePageToSection.md index 41787292f8d..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Copy-MgBetaSiteOnenotePageToSection.md +++ b/src/Sites/beta/examples/Copy-MgBetaSiteOnenotePageToSection.md @@ -1,17 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - Id = "id-value" - GroupId = "groupId-value" -} - -# A UPN can also be used as -UserId. -Copy-MgBetaUserOnenotePageToSection -UserId $userId -OnenotePageId $onenotePageId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaSiteOnenotePageToSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteSectionToNotebook.md b/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteSectionToNotebook.md index db1e039e3d5..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteSectionToNotebook.md +++ b/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteSectionToNotebook.md @@ -1,18 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - Id = "id-value" - GroupId = "groupId-value" - RenameAs = "renameAs-value" -} - -# A UPN can also be used as -UserId. -Copy-MgBetaUserOnenoteSectionToNotebook -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaSiteOnenoteSectionToNotebook Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteSectionToSectionGroup.md b/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteSectionToSectionGroup.md index b5d8bd0ca8c..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteSectionToSectionGroup.md +++ b/src/Sites/beta/examples/Copy-MgBetaSiteOnenoteSectionToSectionGroup.md @@ -1,18 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Users.Actions - -$params = @{ - Id = "id-value" - GroupId = "groupId-value" - RenameAs = "renameAs-value" -} - -# A UPN can also be used as -UserId. -Copy-MgBetaUserOnenoteSectionToSectionGroup -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params -``` -This example shows how to use the Copy-MgBetaSiteOnenoteSectionToSectionGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteColumn.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteColumn.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteColumn.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteColumn.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteListColumn.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteListColumn.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteListColumn.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteListColumn.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteListContentType.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteListContentType.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteListContentType.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteListContentType.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Add-MgSiteContentTypeCopy.md b/src/Sites/v1.0/examples/Add-MgSiteContentTypeCopy.md index 294801639ce..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Add-MgSiteContentTypeCopy.md +++ b/src/Sites/v1.0/examples/Add-MgSiteContentTypeCopy.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgSiteContentTypeCopy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/v1.0/examples/Add-MgSiteContentTypeCopyFromContentTypeHub.md b/src/Sites/v1.0/examples/Add-MgSiteContentTypeCopyFromContentTypeHub.md index d7a7c014bfe..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Add-MgSiteContentTypeCopyFromContentTypeHub.md +++ b/src/Sites/v1.0/examples/Add-MgSiteContentTypeCopyFromContentTypeHub.md @@ -1,26 +0,0 @@ -### Example 1: Synchronous pull - -```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-MgSiteContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```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-MgSiteContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/v1.0/examples/Add-MgSiteListContentTypeCopy.md b/src/Sites/v1.0/examples/Add-MgSiteListContentTypeCopy.md index e97b7e16de3..1bc3690e8fc 100644 --- a/src/Sites/v1.0/examples/Add-MgSiteListContentTypeCopy.md +++ b/src/Sites/v1.0/examples/Add-MgSiteListContentTypeCopy.md @@ -1,10 +1,15 @@ -### Example 1: Using the Add-MgSiteListContentTypeCopy Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Sites + $params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" + contentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" } + Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params + ``` 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/v1.0/examples/Add-MgSiteListContentTypeCopyFromContentTypeHub.md b/src/Sites/v1.0/examples/Add-MgSiteListContentTypeCopyFromContentTypeHub.md index ae45a5e322a..f0660c62099 100644 --- a/src/Sites/v1.0/examples/Add-MgSiteListContentTypeCopyFromContentTypeHub.md +++ b/src/Sites/v1.0/examples/Add-MgSiteListContentTypeCopyFromContentTypeHub.md @@ -1,30 +1,30 @@ -### Example 1: Using the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet +### Example 1: Synchronous pull + ```powershell + Import-Module Microsoft.Graph.Sites + $params = @{ - ContentTypeId = "0x0101" + 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). -### Example 2: Using the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet +This example synchronous pull + +### Example 2: Asynchronous pull + ```powershell + Import-Module Microsoft.Graph.Sites + $params = @{ - ContentTypeId = "0x0101" + 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). -### 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). +This example asynchronous pull + diff --git a/src/Sites/v1.0/examples/Copy-MgSiteContentTypeToDefaultContentLocation.md b/src/Sites/v1.0/examples/Copy-MgSiteContentTypeToDefaultContentLocation.md index 89c2c33ead5..b4163450a3e 100644 --- a/src/Sites/v1.0/examples/Copy-MgSiteContentTypeToDefaultContentLocation.md +++ b/src/Sites/v1.0/examples/Copy-MgSiteContentTypeToDefaultContentLocation.md @@ -1,16 +1,21 @@ -### Example 1: Using the Copy-MgSiteContentTypeToDefaultContentLocation Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Sites + $params = @{ - SourceFile = @{ - SharepointIds = @{ - ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" - ListItemId = "2" + sourceFile = @{ + sharepointIds = @{ + listId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + listItemId = "2" } } - DestinationFileName = "newname.txt" + destinationFileName = "newname.txt" } + Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params + ``` 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/v1.0/examples/Copy-MgSiteListContentTypeToDefaultContentLocation.md b/src/Sites/v1.0/examples/Copy-MgSiteListContentTypeToDefaultContentLocation.md index 11427cc5b11..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Copy-MgSiteListContentTypeToDefaultContentLocation.md +++ b/src/Sites/v1.0/examples/Copy-MgSiteListContentTypeToDefaultContentLocation.md @@ -1,19 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgSiteListContentTypeToDefaultContentLocation Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/v1.0/examples/Copy-MgSiteOnenoteNotebook.md b/src/Sites/v1.0/examples/Copy-MgSiteOnenoteNotebook.md index 7ef478c7320..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Copy-MgSiteOnenoteNotebook.md +++ b/src/Sites/v1.0/examples/Copy-MgSiteOnenoteNotebook.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgSiteOnenoteNotebook Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/v1.0/examples/Copy-MgSiteOnenotePageToSection.md b/src/Sites/v1.0/examples/Copy-MgSiteOnenotePageToSection.md index 4069ed9d420..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Copy-MgSiteOnenotePageToSection.md +++ b/src/Sites/v1.0/examples/Copy-MgSiteOnenotePageToSection.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgSiteOnenotePageToSection Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/v1.0/examples/Copy-MgSiteOnenoteSectionToNotebook.md b/src/Sites/v1.0/examples/Copy-MgSiteOnenoteSectionToNotebook.md index ea5201ecdf4..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Copy-MgSiteOnenoteSectionToNotebook.md +++ b/src/Sites/v1.0/examples/Copy-MgSiteOnenoteSectionToNotebook.md @@ -1,16 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgSiteOnenoteSectionToNotebook Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/v1.0/examples/Copy-MgSiteOnenoteSectionToSectionGroup.md b/src/Sites/v1.0/examples/Copy-MgSiteOnenoteSectionToSectionGroup.md index ae69ac19bd0..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Copy-MgSiteOnenoteSectionToSectionGroup.md +++ b/src/Sites/v1.0/examples/Copy-MgSiteOnenoteSectionToSectionGroup.md @@ -1,16 +0,0 @@ -### Example 1: Code snippet - -```powershell 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 -``` -This example shows how to use the Copy-MgSiteOnenoteSectionToSectionGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteList.md b/src/Sites/v1.0/examples/Get-MgGroupSiteList.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteList.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteList.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteListColumn.md b/src/Sites/v1.0/examples/Get-MgGroupSiteListColumn.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteListColumn.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteListColumn.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteListContentType.md b/src/Sites/v1.0/examples/Get-MgGroupSiteListContentType.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteListContentType.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteListContentType.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Teams/beta/examples/Add-MgBetaChatMember.md b/src/Teams/beta/examples/Add-MgBetaChatMember.md index 6c30278e4bc..e69de29bb2d 100644 --- a/src/Teams/beta/examples/Add-MgBetaChatMember.md +++ b/src/Teams/beta/examples/Add-MgBetaChatMember.md @@ -1,87 +0,0 @@ -### Example 1: Add members in bulk to a team - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaChatMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Add members in bulk and encounter partial failure - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaChatMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Add members in bulk to a team using user principal name - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaChatMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/beta/examples/Add-MgBetaTeamChannelMember.md b/src/Teams/beta/examples/Add-MgBetaTeamChannelMember.md index c0dfee7090b..e69de29bb2d 100644 --- a/src/Teams/beta/examples/Add-MgBetaTeamChannelMember.md +++ b/src/Teams/beta/examples/Add-MgBetaTeamChannelMember.md @@ -1,87 +0,0 @@ -### Example 1: Add members in bulk to a team - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaTeamChannelMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Add members in bulk and encounter partial failure - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaTeamChannelMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Add members in bulk to a team using user principal name - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaTeamChannelMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/beta/examples/Add-MgBetaTeamMember.md b/src/Teams/beta/examples/Add-MgBetaTeamMember.md index 782534f95fa..c964a450346 100644 --- a/src/Teams/beta/examples/Add-MgBetaTeamMember.md +++ b/src/Teams/beta/examples/Add-MgBetaTeamMember.md @@ -1,72 +1,58 @@ -### Example 1: Using the Add-MgBetaTeamMember Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Values = @( + values = @( @{ "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + "user@odata.bind" = "https://graph.microsoft.com/beta/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" } @{ "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + "user@odata.bind" = "https://graph.microsoft.com/beta/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" } ) } + Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params + ``` This example shows how to use the Add-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Add-MgBetaTeamMember Cmdlet + +### Example 2: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Values = @( + values = @( @{ "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + "user@odata.bind" = "https://graph.microsoft.com/beta/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" } @{ "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + "user@odata.bind" = "https://graph.microsoft.com/beta/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" } ) } + Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params + ``` This example shows how to use the Add-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Add-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.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-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Add-MgBetaTeamPrimaryChannelMember.md b/src/Teams/beta/examples/Add-MgBetaTeamPrimaryChannelMember.md index c65304f1150..e69de29bb2d 100644 --- a/src/Teams/beta/examples/Add-MgBetaTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/Add-MgBetaTeamPrimaryChannelMember.md @@ -1,87 +0,0 @@ -### Example 1: Add members in bulk to a team - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaTeamPrimaryChannelMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Add members in bulk and encounter partial failure - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaTeamPrimaryChannelMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Add members in bulk to a team using user principal name - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaTeamPrimaryChannelMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/beta/examples/Add-MgBetaTeamworkDeletedTeamChannelMember.md b/src/Teams/beta/examples/Add-MgBetaTeamworkDeletedTeamChannelMember.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Teams/beta/examples/Add-MgBetaTeamworkDeletedTeamChannelMember.md +++ b/src/Teams/beta/examples/Add-MgBetaTeamworkDeletedTeamChannelMember.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Teams/beta/examples/Complete-MgBetaTeamChannelMigration.md b/src/Teams/beta/examples/Complete-MgBetaTeamChannelMigration.md index e43ce6c5f5c..e79e3481f8a 100644 --- a/src/Teams/beta/examples/Complete-MgBetaTeamChannelMigration.md +++ b/src/Teams/beta/examples/Complete-MgBetaTeamChannelMigration.md @@ -1,7 +1,11 @@ -### Example 1: Using the Complete-MgBetaTeamChannelMigration Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Teams + Complete-MgBetaTeamChannelMigration -TeamId $teamId -ChannelId $channelId + ``` This example shows how to use the Complete-MgBetaTeamChannelMigration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Complete-MgBetaTeamMigration.md b/src/Teams/beta/examples/Complete-MgBetaTeamMigration.md index 97378ce589f..5a509eb6811 100644 --- a/src/Teams/beta/examples/Complete-MgBetaTeamMigration.md +++ b/src/Teams/beta/examples/Complete-MgBetaTeamMigration.md @@ -1,7 +1,11 @@ -### Example 1: Using the Complete-MgBetaTeamMigration Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Teams + Complete-MgBetaTeamMigration -TeamId $teamId + ``` This example shows how to use the Complete-MgBetaTeamMigration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Complete-MgBetaTeamPrimaryChannelMigration.md b/src/Teams/beta/examples/Complete-MgBetaTeamPrimaryChannelMigration.md index 102e43d692b..e69de29bb2d 100644 --- a/src/Teams/beta/examples/Complete-MgBetaTeamPrimaryChannelMigration.md +++ b/src/Teams/beta/examples/Complete-MgBetaTeamPrimaryChannelMigration.md @@ -1,11 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Complete-MgBetaTeamChannelMigration -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Complete-MgBetaTeamPrimaryChannelMigration Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/beta/examples/Complete-MgBetaTeamworkDeletedTeamChannelMigration.md b/src/Teams/beta/examples/Complete-MgBetaTeamworkDeletedTeamChannelMigration.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Teams/beta/examples/Complete-MgBetaTeamworkDeletedTeamChannelMigration.md +++ b/src/Teams/beta/examples/Complete-MgBetaTeamworkDeletedTeamChannelMigration.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Teams/beta/examples/Copy-MgBetaTeam.md b/src/Teams/beta/examples/Copy-MgBetaTeam.md index 3833f81caf0..a7aff995780 100644 --- a/src/Teams/beta/examples/Copy-MgBetaTeam.md +++ b/src/Teams/beta/examples/Copy-MgBetaTeam.md @@ -1,14 +1,19 @@ -### Example 1: Using the Copy-MgBetaTeam Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "Library Assist" - Description = "Self help community for library" - MailNickname = "libassist" - PartsToClone = "apps,tabs,settings,channels,members" - Visibility = "public" + displayName = "Library Assist" + description = "Self help community for library" + mailNickname = "libassist" + partsToClone = "apps,tabs,settings,channels,members" + visibility = "public" } + Copy-MgBetaTeam -TeamId $teamId -BodyParameter $params + ``` This example shows how to use the Copy-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Add-MgChatMember.md b/src/Teams/v1.0/examples/Add-MgChatMember.md index f01f11743c4..e69de29bb2d 100644 --- a/src/Teams/v1.0/examples/Add-MgChatMember.md +++ b/src/Teams/v1.0/examples/Add-MgChatMember.md @@ -1,81 +0,0 @@ -### Example 1: Add members in bulk to a team - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgChatMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Add members in bulk and encounter partial failure - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgChatMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Add members in bulk to a team using user principal name - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgChatMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/v1.0/examples/Add-MgTeamChannelMember.md b/src/Teams/v1.0/examples/Add-MgTeamChannelMember.md index be431fb184e..e69de29bb2d 100644 --- a/src/Teams/v1.0/examples/Add-MgTeamChannelMember.md +++ b/src/Teams/v1.0/examples/Add-MgTeamChannelMember.md @@ -1,81 +0,0 @@ -### Example 1: Add members in bulk to a team - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgTeamChannelMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Add members in bulk and encounter partial failure - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgTeamChannelMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Add members in bulk to a team using user principal name - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgTeamChannelMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/v1.0/examples/Add-MgTeamMember.md b/src/Teams/v1.0/examples/Add-MgTeamMember.md index 6f859aea166..473606f95f0 100644 --- a/src/Teams/v1.0/examples/Add-MgTeamMember.md +++ b/src/Teams/v1.0/examples/Add-MgTeamMember.md @@ -1,72 +1,58 @@ -### Example 1: Using the Add-MgTeamMember Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Teams + $params = @{ - Values = @( + values = @( @{ "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" } @{ "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" } ) } + 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). -### Example 2: Using the Add-MgTeamMember Cmdlet + +### Example 2: Code snippet + ```powershell + Import-Module Microsoft.Graph.Teams + $params = @{ - Values = @( + values = @( @{ "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" } @{ "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/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). -### 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/v1.0/users('jacob@contoso.com')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/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/v1.0/examples/Add-MgTeamPrimaryChannelMember.md b/src/Teams/v1.0/examples/Add-MgTeamPrimaryChannelMember.md index 5f8c199978a..e69de29bb2d 100644 --- a/src/Teams/v1.0/examples/Add-MgTeamPrimaryChannelMember.md +++ b/src/Teams/v1.0/examples/Add-MgTeamPrimaryChannelMember.md @@ -1,81 +0,0 @@ -### Example 1: Add members in bulk to a team - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgTeamPrimaryChannelMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Add members in bulk and encounter partial failure - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgTeamPrimaryChannelMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Add members in bulk to a team using user principal name - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgTeamPrimaryChannelMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/v1.0/examples/Complete-MgTeamChannelMigration.md b/src/Teams/v1.0/examples/Complete-MgTeamChannelMigration.md index 9c4dafda6ab..f2edc8cdb32 100644 --- a/src/Teams/v1.0/examples/Complete-MgTeamChannelMigration.md +++ b/src/Teams/v1.0/examples/Complete-MgTeamChannelMigration.md @@ -1,7 +1,11 @@ -### Example 1: Using the Complete-MgTeamChannelMigration Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Teams + Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId + ``` 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/v1.0/examples/Complete-MgTeamMigration.md b/src/Teams/v1.0/examples/Complete-MgTeamMigration.md index 795dcfe6125..55615ec0987 100644 --- a/src/Teams/v1.0/examples/Complete-MgTeamMigration.md +++ b/src/Teams/v1.0/examples/Complete-MgTeamMigration.md @@ -1,7 +1,11 @@ -### Example 1: Using the Complete-MgTeamMigration Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Teams + Complete-MgTeamMigration -TeamId $teamId + ``` 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/v1.0/examples/Complete-MgTeamPrimaryChannelMigration.md b/src/Teams/v1.0/examples/Complete-MgTeamPrimaryChannelMigration.md index 7174462bea4..e69de29bb2d 100644 --- a/src/Teams/v1.0/examples/Complete-MgTeamPrimaryChannelMigration.md +++ b/src/Teams/v1.0/examples/Complete-MgTeamPrimaryChannelMigration.md @@ -1,9 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Teams - -Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Complete-MgTeamPrimaryChannelMigration Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/v1.0/examples/Copy-MgTeam.md b/src/Teams/v1.0/examples/Copy-MgTeam.md index 968077d9544..bcaa137d353 100644 --- a/src/Teams/v1.0/examples/Copy-MgTeam.md +++ b/src/Teams/v1.0/examples/Copy-MgTeam.md @@ -1,14 +1,19 @@ -### Example 1: Using the Copy-MgTeam Cmdlet +### Example 1: Code snippet + ```powershell + 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" + 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 + ``` 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/Users.Actions/beta/examples/Add-MgBetaUserChatMember.md b/src/Users.Actions/beta/examples/Add-MgBetaUserChatMember.md index e79c356dea7..e69de29bb2d 100644 --- a/src/Users.Actions/beta/examples/Add-MgBetaUserChatMember.md +++ b/src/Users.Actions/beta/examples/Add-MgBetaUserChatMember.md @@ -1,87 +0,0 @@ -### Example 1: Add members in bulk to a team - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaUserChatMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Add members in bulk and encounter partial failure - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaUserChatMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Add members in bulk to a team using user principal name - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" - } - ) -} - -Add-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaUserChatMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Users.Actions/beta/examples/Add-MgBetaUserDriveListContentTypeCopy.md b/src/Users.Actions/beta/examples/Add-MgBetaUserDriveListContentTypeCopy.md index 5f47b9c5409..e69de29bb2d 100644 --- a/src/Users.Actions/beta/examples/Add-MgBetaUserDriveListContentTypeCopy.md +++ b/src/Users.Actions/beta/examples/Add-MgBetaUserDriveListContentTypeCopy.md @@ -1,15 +0,0 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgBetaSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaUserDriveListContentTypeCopy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Users.Actions/beta/examples/Add-MgBetaUserDriveListContentTypeCopyFromContentTypeHub.md b/src/Users.Actions/beta/examples/Add-MgBetaUserDriveListContentTypeCopyFromContentTypeHub.md index 53e65c409e3..e69de29bb2d 100644 --- a/src/Users.Actions/beta/examples/Add-MgBetaUserDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Users.Actions/beta/examples/Add-MgBetaUserDriveListContentTypeCopyFromContentTypeHub.md @@ -1,30 +0,0 @@ -### Example 1: Synchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaUserDriveListContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - ContentTypeId = "0x0101" -} - -Add-MgBetaSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgBetaUserDriveListContentTypeCopyFromContentTypeHub Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Users.Actions/v1.0/examples/Add-MgUserChatMember.md b/src/Users.Actions/v1.0/examples/Add-MgUserChatMember.md index 0356bd9d9d2..e69de29bb2d 100644 --- a/src/Users.Actions/v1.0/examples/Add-MgUserChatMember.md +++ b/src/Users.Actions/v1.0/examples/Add-MgUserChatMember.md @@ -1,81 +0,0 @@ -### Example 1: Add members in bulk to a team - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgUserChatMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Add members in bulk and encounter partial failure - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgUserChatMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Add members in bulk to a team using user principal name - -```powershell Import-Module Microsoft.Graph.Teams - -$params = @{ - Values = @( - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" - } - @{ - "@odata.type" = "microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" - } - ) -} - -Add-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Add-MgUserChatMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Users.Actions/v1.0/examples/Add-MgUserDriveListContentTypeCopy.md b/src/Users.Actions/v1.0/examples/Add-MgUserDriveListContentTypeCopy.md index f8c4f9e0b92..e69de29bb2d 100644 --- a/src/Users.Actions/v1.0/examples/Add-MgUserDriveListContentTypeCopy.md +++ b/src/Users.Actions/v1.0/examples/Add-MgUserDriveListContentTypeCopy.md @@ -1,13 +0,0 @@ -### Example 1: Code snippet - -```powershell Import-Module Microsoft.Graph.Sites - -$params = @{ - ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" -} - -Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the Add-MgUserDriveListContentTypeCopy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Users.Actions/v1.0/examples/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md b/src/Users.Actions/v1.0/examples/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md index e7a68a5df2d..e69de29bb2d 100644 --- a/src/Users.Actions/v1.0/examples/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Users.Actions/v1.0/examples/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md @@ -1,26 +0,0 @@ -### Example 1: Synchronous pull - -```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-MgUserDriveListContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Asynchronous pull - -```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-MgUserDriveListContentTypeCopyFromContentTypeHub Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Users/v1.0/examples/Get-MgUserMemberOf.md b/src/Users/v1.0/examples/Get-MgUserMemberOf.md index 53a9b16f1b3..085a1fa79c3 100644 --- a/src/Users/v1.0/examples/Get-MgUserMemberOf.md +++ b/src/Users/v1.0/examples/Get-MgUserMemberOf.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Users +```powershell + +Import-Module Microsoft.Graph.Users + +Get-MgUserMemberOf -UserId $userId + +``` +This example shows how to use the Get-MgUserMemberOf Cmdlet. -Get-MgUserMemberOf -UserId $userId -``` -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/v1.0/examples/Get-MgUserOutlookMasterCategory.md b/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md index 096a452d50a..e1810791e14 100644 --- a/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md +++ b/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Users +```powershell + +Import-Module Microsoft.Graph.Users # A UPN can also be used as -UserId. -Get-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -``` -This example shows how to use the Get-MgUserOutlookMasterCategory Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserOutlookMasterCategory -UserId $userId + +``` +This example shows how to use the Get-MgUserOutlookMasterCategory Cmdlet. + diff --git a/src/Users/v1.0/examples/Get-MgUserOwnedDevice.md b/src/Users/v1.0/examples/Get-MgUserOwnedDevice.md index 630880cd65c..c16d3101eb8 100644 --- a/src/Users/v1.0/examples/Get-MgUserOwnedDevice.md +++ b/src/Users/v1.0/examples/Get-MgUserOwnedDevice.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Users +```powershell + +Import-Module Microsoft.Graph.Users # A UPN can also be used as -UserId. -Get-MgUserOwnedDevice -UserId $userId -``` -This example shows how to use the Get-MgUserOwnedDevice Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserOwnedDevice -UserId $userId + +``` +This example shows how to use the Get-MgUserOwnedDevice Cmdlet. + diff --git a/src/Users/v1.0/examples/Get-MgUserOwnedObject.md b/src/Users/v1.0/examples/Get-MgUserOwnedObject.md index 326c26306a0..3bb92a991bf 100644 --- a/src/Users/v1.0/examples/Get-MgUserOwnedObject.md +++ b/src/Users/v1.0/examples/Get-MgUserOwnedObject.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Users +```powershell + +Import-Module Microsoft.Graph.Users # A UPN can also be used as -UserId. -Get-MgUserOwnedObject -UserId $userId -``` -This example shows how to use the Get-MgUserOwnedObject Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserOwnedObject -UserId $userId + +``` +This example shows how to use the Get-MgUserOwnedObject Cmdlet. + diff --git a/src/Users/v1.0/examples/Get-MgUserPhotoContent.md b/src/Users/v1.0/examples/Get-MgUserPhotoContent.md index 5e40b7ad89b..eb1f8eae6a1 100644 --- a/src/Users/v1.0/examples/Get-MgUserPhotoContent.md +++ b/src/Users/v1.0/examples/Get-MgUserPhotoContent.md @@ -1,12 +1,12 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Users # A UPN can also be used as -UserId. Get-MgUserPhotoContent -UserId $userId -OutFile $outFileId + ``` This example shows how to use the Get-MgUserPhotoContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Users/v1.0/examples/Get-MgUserRegisteredDevice.md b/src/Users/v1.0/examples/Get-MgUserRegisteredDevice.md index 577d6d561fa..0b906e0d3ab 100644 --- a/src/Users/v1.0/examples/Get-MgUserRegisteredDevice.md +++ b/src/Users/v1.0/examples/Get-MgUserRegisteredDevice.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Users +```powershell + +Import-Module Microsoft.Graph.Users # A UPN can also be used as -UserId. -Get-MgUserRegisteredDevice -UserId $userId -``` -This example shows how to use the Get-MgUserRegisteredDevice Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserRegisteredDevice -UserId $userId + +``` +This example shows how to use the Get-MgUserRegisteredDevice Cmdlet. + diff --git a/src/Users/v1.0/examples/Get-MgUserSetting.md b/src/Users/v1.0/examples/Get-MgUserSetting.md index 9b10f0a85f1..0ce069edee9 100644 --- a/src/Users/v1.0/examples/Get-MgUserSetting.md +++ b/src/Users/v1.0/examples/Get-MgUserSetting.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Users +```powershell + +Import-Module Microsoft.Graph.Users # A UPN can also be used as -UserId. -Get-MgUserSetting -UserId $userId -``` -This example shows how to use the Get-MgUserSetting Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserSetting -UserId $userId + +``` +This example shows how to use the Get-MgUserSetting Cmdlet. + diff --git a/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md b/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md index c90fb30a5ff..c1edc457e8e 100644 --- a/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md +++ b/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Users +```powershell +Import-Module Microsoft.Graph.Users + +Get-MgUserSettingShiftPreference -UserId $userId +``` +This example shows how to use the Get-MgUserSettingShiftPreference Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Get-MgUserSettingShiftPreference -UserId $userId -``` -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/v1.0/examples/Get-MgUserTodoList.md b/src/Users/v1.0/examples/Get-MgUserTodoList.md index e2e9af01667..8096b1556fe 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoList.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoList.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Users +```powershell + +Import-Module Microsoft.Graph.Users # A UPN can also be used as -UserId. -Get-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -``` -This example shows how to use the Get-MgUserTodoList Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserTodoList -UserId $userId + +``` +This example shows how to use the Get-MgUserTodoList Cmdlet. + diff --git a/tools/ImportExamples.ps1 b/tools/ImportExamples.ps1 index cd5230b33b8..59ed8c4e623 100644 --- a/tools/ImportExamples.ps1 +++ b/tools/ImportExamples.ps1 @@ -3,10 +3,6 @@ Param( $ModulesToGenerate = @(), $Available = @(), - [hashtable]$V1CommandGetVariantList = @{}, - [hashtable]$BetaCommandGetVariantList = @{}, - [hashtable]$V1CommandListVariantList = @{}, - [hashtable]$BetaCommandListVariantList = @{}, [string] $ModuleMappingConfigPath = (Join-Path $PSScriptRoot "..\config\ModulesMapping.jsonc"), [string] $FolderForExamplesToBeReviewed = (Join-Path $PSScriptRoot "..\examplesreport"), [string] $ExamplesToBeReviewed = "ExamplesToBeReviewed.csv", @@ -87,22 +83,20 @@ function Get-Files { #Extract command over here $Command = [System.IO.Path]::GetFileNameWithoutExtension($File) #Extract URI path - $CommandValue = $null - if ($GraphProfile -eq "beta") { - $CommandValue = $BetaCommandGetVariantList[$Command] - + $CommandDetails = Find-MgGraphCommand -Command $Command + if ($CommandDetails) { + foreach ($CommandDetail in $CommandDetails) { + $ApiPath = $CommandDetail.URI + $Method = $CommandDetails.Method + Get-ExternalDocsUrl -GraphProfile $GraphProfile -UriPath $ApiPath -Command $Command -OpenApiContent $OpenApiContent -GraphProfilePath $GraphProfilePath -Method $Method.Trim() -Module $Module + } } else { - $CommandValue = $V1CommandGetVariantList[$Command] - } - - if ($CommandValue) { - $CommandValueParams = $CommandValue.Split(",") - $ApiPath = $CommandValueParams[0] - $Method = $CommandValueParams[1] - Get-ExternalDocsUrl -GraphProfile $GraphProfile -Url -UriPath $ApiPath -Command $Command -OpenApiContent $OpenApiContent -GraphProfilePath $GraphProfilePath -Method $Method.Trim() -Module $Module + #Clear any content in that file as long as its not a readme file + if ($Command -ine "README") { + Clear-Content $File -Force + } } - } } } @@ -147,47 +141,42 @@ function Get-ExternalDocsUrl { "GET" { $ExternalDocUrl = $path[$UriPath].get.externalDocs.url if ([string]::IsNullOrEmpty($ExternalDocUrl)) { - $GETApiPath = Extract-PathFromListVariant -GraphProfile $GraphProfile -Command $Command - if (-not([string]::IsNullOrEmpty($GETApiPath))) { - $ExternalDocUrl = $Path[$GETApiPath].get.externalDocs.url - } + #Try with microsoft.graph prefix on the last path segment + $UriPathWithGraphPrefix = Append-GraphPrefix -UriPath $UriPath + $ExternalDocUrl = $path[$UriPathWithGraphPrefix].get.externalDocs.url } } "POST" { - $ExternalDocUrl = $Path[$UriPath].post.externalDocs.url + $ExternalDocUrl = $Path[$UriPath].post.externalDocs.url if ([string]::IsNullOrEmpty($ExternalDocUrl)) { - $POSTApiPath = Extract-PathFromListVariant -GraphProfile $GraphProfile -Command $Command - if (-not([string]::IsNullOrEmpty($POSTApiPath))) { - $ExternalDocUrl = $Path[$POSTApiPath].post.externalDocs.url - } - } + #Try with microsoft.graph prefix on the last path segment + $UriPathWithGraphPrefix = Append-GraphPrefix -UriPath $UriPath + $ExternalDocUrl = $path[$UriPathWithGraphPrefix].post.externalDocs.url + } } "PATCH" { - $ExternalDocUrl = $Path[$UriPath].patch.externalDocs.url + $ExternalDocUrl = $Path[$UriPath].patch.externalDocs.url if ([string]::IsNullOrEmpty($ExternalDocUrl)) { - $PATCHApiPath = Extract-PathFromListVariant -GraphProfile $GraphProfile -Command $Command - if (-not([string]::IsNullOrEmpty($PATCHApiPath))) { - $ExternalDocUrl = $Path[$PATCHApiPath].patch.externalDocs.url - } - } + #Try with microsoft.graph prefix on the last path segment + $UriPathWithGraphPrefix = Append-GraphPrefix -UriPath $UriPath + $ExternalDocUrl = $path[$UriPathWithGraphPrefix].patch.externalDocs.url + } } "DELETE" { $ExternalDocUrl = $Path[$UriPath].delete.externalDocs.url if ([string]::IsNullOrEmpty($ExternalDocUrl)) { - $DELETEApiPath = Extract-PathFromListVariant -GraphProfile $GraphProfile -Command $Command - if (-not([string]::IsNullOrEmpty($DELETEApiPath))) { - $ExternalDocUrl = $Path[$DELETEApiPath].delete.externalDocs.url - } + #Try with microsoft.graph prefix on the last path segment + $UriPathWithGraphPrefix = Append-GraphPrefix -UriPath $UriPath + $ExternalDocUrl = $path[$UriPathWithGraphPrefix].delete.externalDocs.url } } "PUT" { $ExternalDocUrl = $Path[$UriPath].put.externalDocs.url if ([string]::IsNullOrEmpty($ExternalDocUrl)) { - $PUTApiPath = Extract-PathFromListVariant -GraphProfile $GraphProfile -Command $Command - if (-not([string]::IsNullOrEmpty($PUTApiPath))) { - $ExternalDocUrl = $Path[$PUTApiPath].put.externalDocs.url - } - } + #Try with microsoft.graph prefix on the last path segment + $UriPathWithGraphPrefix = Append-GraphPrefix -UriPath $UriPath + $ExternalDocUrl = $path[$UriPathWithGraphPrefix].put.externalDocs.url + } } } @@ -201,25 +190,15 @@ function Get-ExternalDocsUrl { } } -function Extract-PathFromListVariant { + +function Append-GraphPrefix { param( - [ValidateSet("beta", "v1.0")] - [string] $GraphProfile = "v1.0", - [string] $Command = "Get-MgUser" + [string] $UriPath ) - $ListApiPath = $null - $ListCommandValue = $null - if ($GraphProfile -eq "beta") { - $ListCommandValue = $BetaCommandListVariantList[$Command] - } - else { - $ListCommandValue = $V1CommandListVariantList[$Command] - } - if (-not([string]::IsNullOrEmpty($ListCommandValue))) { - $ListCommandValueParams = $ListCommandValue.Split(",") - $ListApiPath = $ListCommandValueParams[0] - } - return $ListApiPath + $UriPathSegments = $UriPath.Split("/") + $LastUriPathSegment = $UriPathSegments[$UriPathSegments.Length - 1] + $UriPath = $UriPath.Replace($LastUriPathSegment, "microsoft.graph." + $LastUriPathSegment) + return $UriPath } function Start-WebScrapping { param( @@ -232,42 +211,78 @@ function Start-WebScrapping { [string] $UriPath, [string] $Module = "Users", [string] $GraphProfilePath = (Join-Path $PSScriptRoot "..\src\Users\Users\examples\v1.0") - ) + ) + + $ExternalDocUrlPaths = $ExternalDocUrl.Split("://")[1].Split("/") + $LastExternalDocUrlPathSegmentWithQueryParam = $ExternalDocUrlPaths[$ExternalDocUrlPaths.Length - 1] + $LastExternalDocUrlPathSegmentWithoutQueryParam = $LastExternalDocUrlPathSegmentWithQueryParam.Split("?")[0] + + $GraphDocsUrl = "https://raw.githubusercontent.com/microsoftgraph/microsoft-graph-docs/main/api-reference/$GraphProfile/api/$LastExternalDocUrlPathSegmentWithoutQueryParam.md" + $UrlPaths = $GraphDocsUrl.Split("://")[1].Split("/") + $LastPathSegment = $UrlPaths[$UrlPaths.Length - 1] + $HeaderList = New-Object -TypeName 'System.Collections.ArrayList'; + $ExampleLinks = New-Object -TypeName 'System.Collections.ArrayList'; + $Snippets = New-Object -TypeName 'System.Collections.ArrayList'; + ($readStream, $HttpWebResponse) = FetchStream -GraphDocsUrl $GraphDocsUrl + + while (-not $readStream.EndOfStream) { + $Line = $readStream.ReadLine() + if ($Line -match "^### Example") { + $H = $HeaderList.Add($Line) + } + if ($Line -match "/includes/snippets/powershell/") { + $Line = $Line.Replace("[!INCLUDE [sample-code](..", "") + $SnippetPath = $Line.Replace(")", "").Replace("]", "") + $SnippetUrl = $GraphDocsUrl.Replace("/api/$LastPathSegment", $SnippetPath) + $E = $ExampleLinks.Add($SnippetUrl) + } + } + $HttpWebResponse.Close() + $readStream.Close() + + foreach ($Link in $ExampleLinks) { + $ConstructedSnippet = ""; + ($Rs, $HttpResponse) = FetchStream -GraphDocsUrl $Link + while (-not $Rs.EndOfStream) { + $Snippet = $Rs.ReadLine() + + #Write-Host $desc + $Snippet = $Snippet.Replace("---", "") + $Snippet = $Snippet.Replace('description: "Automatically generated file. DO NOT MODIFY"', "") + $ConstructedSnippet += $Snippet + "`n" + + } + $S = $Snippets.Add($ConstructedSnippet) + } + if ($HeaderList.Count -ne $Snippets.Count) { + $HeaderList.Clear() + for ($d = 0; $d -lt $Snippets.Count; $d++) { + $sum = $d + 1 + $H = $HeaderList.Add("### Example " + $sum + ": Code snippet".Trim()) + } + } + $ExampleFile = "$GraphProfilePath/$Command.md" $url = $ExternalDocUrl if ($GraphProfile -eq "beta") { $url = $url.Replace("graph-rest-1.0", "graph-rest-beta") } $DescriptionCommand = $Command - $Description = "This example shows how to use the $DescriptionCommand Cmdlet.`r`n`r`To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference)." - $WebResponse = Invoke-WebRequest -Uri $url - $HeaderList = New-Object -TypeName 'System.Collections.ArrayList'; - $ExampleList = New-Object -TypeName 'System.Collections.ArrayList'; - $htmlDom = ConvertFrom-Html $WebResponse - $nodes = $htmlDom.SelectNodes('//pre/code') - $headers = $htmlDom.SelectNodes('//h3') - foreach ($node in $nodes) { - $checkPowershell = $node.OuterHtml - - if ($checkPowershell.Contains('lang-powershell')) { - $result = $node.InnerHtml - $result = $result.Replace('"', '"') - $EL = $ExampleList.Add($result) - } - } - foreach ($header in $headers) { - $checkPowershell = $header.OuterHtml - - if ($checkPowershell.Contains('Example')) { - $result = $header.InnerHtml - $HL = $HeaderList.Add($result) - } - - } + $Description = "This example shows how to use the $DescriptionCommand Cmdlet." - Update-ExampleFile -GraphProfile $GraphProfile -HeaderList $HeaderList -ExampleList $ExampleList -ExampleFile $ExampleFile -Description $Description -Command $Command -ExternalDocUrl $url -UriPath $UriPath -Module $Module + Update-ExampleFile -GraphProfile $GraphProfile -HeaderList $HeaderList -ExampleList $Snippets -ExampleFile $ExampleFile -Description $Description -Command $Command -ExternalDocUrl $url -UriPath $UriPath -Module $Module +} +function FetchStream { + param( + [string]$GraphDocsUrl + ) + $HttpWebRequest = [System.Net.WebRequest]::Create($GraphDocsUrl) + $HttpWebResponse = $HttpWebRequest.GetResponse() + $ReceiveStream = $HttpWebResponse.GetResponseStream() + $Encode = [System.Text.Encoding]::GetEncoding("utf-8") + $ReadStream = [System.IO.StreamReader]::new($ReceiveStream, $Encode) + return ($ReadStream, $HttpWebResponse) } - function Update-ExampleFile { param( [ValidateSet("beta", "v1.0")] @@ -290,14 +305,14 @@ function Update-ExampleFile { if ($HeaderList.Count -eq 0) { for ($d = 0; $d -lt $ExampleList.Count; $d++) { $sum = $d + 1 - $HL = $HeaderList.Add("Example " + $sum + ": Code snippet".Trim()) + $HL = $HeaderList.Add("### Example " + $sum + ": Code snippet".Trim()) } } if ($HeaderList.Count -ne $ExampleList.Count) { $HeaderList.Clear() for ($d = 0; $d -lt $ExampleList.Count; $d++) { $sum = $d + 1 - $H = $HeaderList.Add("Example " + $sum + ": Code snippet".Trim()) + $H = $HeaderList.Add("### Example " + $sum + ": Code snippet".Trim()) } } $EmptyFile = Test-FileEmpty $ExampleFile @@ -309,15 +324,33 @@ function Update-ExampleFile { $WrongExamplesCount = 0; $SkippedExample = -1 $ContainsRightExamples = $False + $SearchString = "### Example \d:" + $Option = [System.Text.RegularExpressions.RegexOptions]::Multiline + $DescriptionRegex = [regex]::new($SearchString, $Option) #===========================Importing new examples into files ============================================# if ($ReplaceEverything -and $ExampleCount -gt 0 -and $HeadCount -eq $ExampleCount) { Clear-Content $ExampleFile -Force for ($d = 0; $d -lt $HeaderList.Count; $d++) { $CodeValue = $ExampleList[$d].Trim() if ($CodeValue -match "\b$CommandPattern\b") { - $TitleValue = "### " + $HeaderList[$d].Trim() - $Code = "``````powershell`r$CodeValue`r`n``````" - $TotalText = "$TitleValue`r`n`n$Code`r`n$Description`r`n" + $TitleValue = $HeaderList[$d].Trim() + $TitleDesc = $TitleValue + if (-not($TitleValue.Contains("Code snippet"))) { + if ($TitleDesc -match $DescriptionRegex) { + $TitleDesc = $TitleDesc -replace $DescriptionRegex, '' + } + $DescriptionPrefix = "This example will" + $FirstDescriptionString = $TitleDesc.Split(" ")[1] + if ($FirstDescriptionString.EndsWith("s")) { + $DescriptionPrefix = "This example" + } + elseif ($FirstDescriptionString.EndsWith("ing")) { + $DescriptionPrefix = "This example shows" + } + + $Description = $DescriptionPrefix + $TitleDesc.ToLower() + } + $TotalText = "$TitleValue`r`n`n$CodeValue`r`n$Description`r`n" Add-Content -Path $ExampleFile -Value $TotalText $ContainsRightExamples = $True } @@ -347,9 +380,24 @@ function Update-ExampleFile { #We should only add the correct examples from external docs link if ($ExampleList[$d] -match "\b$CommandPattern\b") { $CodeValue = $ExampleList[$d].Trim() - $TitleValue = "### " + $HeaderList[$d].Trim() - $Code = "``````powershell`r$CodeValue`r`n``````" - $TotalText = "$TitleValue`r`n`n$Code`r`n$Description`r`n" + $TitleValue = $HeaderList[$d].Trim() + $TitleDesc = $TitleValue + if (-not($TitleValue.Contains("Code snippet"))) { + if ($TitleDesc -match $DescriptionRegex) { + $TitleDesc = $TitleDesc -replace $DescriptionRegex, '' + } + $DescriptionPrefix = "This example will" + $FirstDescriptionString = $TitleDesc.Split(" ")[1] + if ($FirstDescriptionString.EndsWith("s")) { + $DescriptionPrefix = "This example" + } + elseif ($FirstDescriptionString.EndsWith("ing")) { + $DescriptionPrefix = "This example shows" + } + + $Description = $DescriptionPrefix + $TitleDesc.ToLower() + } + $TotalText = "$TitleValue`r`n`n$CodeValue`r`n$Description`r`n" Add-Content -Path $ExampleFile -Value $TotalText } else { @@ -470,14 +518,12 @@ function Retain-ExistingCorrectExamples { Set-Content -Path $File -Value $RetainedContent #Remove the last two empty lines at the end of the file $Stream = [IO.File]::OpenWrite($ExampleFile) - try - { + try { $Stream.SetLength($stream.Length - 2) $Stream.Close() } - catch - { - Write-Error "Error in removing empty lines at the end of the file: $File" + catch { + } $Stream.Dispose() $RetainedExamples.Clear() @@ -529,30 +575,8 @@ function Get-ExistingCorrectExamples { } } -$RetainedExamples = New-Object Collections.Generic.List[string] -$JsonContent = Get-Content -Path $MetaDataJsonFile -$DeserializedContent = $JsonContent | ConvertFrom-Json -foreach ($Data in $DeserializedContent) { - if ($Data.ApiVersion -eq "beta") { - if ((-not($Data.Variants[0].Contains("List")))) { - $BetaAPIPathAndMethod = $Data.Uri, $Data.Method -join "," - $Beta = $BetaCommandGetVariantList.Add($Data.Command, $BetaAPIPathAndMethod) - } - else { - $Beta1 = $BetaCommandListVariantList.Add($Data.Command, $BetaAPIPathAndMethod) - } - } +$RetainedExamples = New-Object Collections.Generic.List[string] - if ($Data.ApiVersion -eq "v1.0") { - $V1APIPathAndMethod = $Data.Uri, $Data.Method -join "," - if ((-not($Data.Variants[0].Contains("List")))) { - $V1 = $V1CommandGetVariantList.Add($Data.Command, $V1APIPathAndMethod) - } - else { - $V11 = $V1CommandListVariantList.Add($Data.Command, $V1APIPathAndMethod) - } - } -} if (!(Get-Module "powershell-yaml" -ListAvailable -ErrorAction SilentlyContinue)) { Install-Module "powershell-yaml" -AcceptLicense -Scope CurrentUser -Force }