diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationExtensionProperty.md b/src/Applications/beta/examples/Get-MgBetaApplicationExtensionProperty.md index 09d28176945..c533af7ccc1 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationExtensionProperty.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationExtensionProperty.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaApplicationExtensionProperty Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -``` -This example shows how to use the Get-MgBetaApplicationExtensionProperty Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaApplicationExtensionProperty Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId +``` +This example shows how to use the Get-MgBetaBetaApplicationExtensionProperty 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 c296e869be5..05809298c62 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationFederatedIdentityCredential.md @@ -1,14 +1,19 @@ -### Example 1: Using the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -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). -### Example 2: Using the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -``` -This example shows how to use the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +$params = @{ + name = "testing02" + issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + description = "Updated description" + audiences = @( + "api://AzureADTokenExchange" + ) +} + +Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md b/src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md index 7c471e1ba51..698c62bf650 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaApplicationTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -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). -### Example 2: Using the Get-MgBetaApplicationTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Get-MgBetaApplicationTemplate -``` -This example shows how to use the Get-MgBetaApplicationTemplate Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaApplicationTemplate -ApplicationTemplateId $applicationTemplateId +``` +This example shows how to use the Get-MgBetaBetaApplicationTemplate Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppManagementPolicy.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppManagementPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppManagementPolicy.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppManagementPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppRoleAssignedTo.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppRoleAssignedTo.md index 5a0ffdc67e9..d752de727ce 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalAppRoleAssignedTo.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Get-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Get-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +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-MgBetaServicePrincipalDelegatedPermissionClassification.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalDelegatedPermissionClassification.md index 4956f4e3bae..b9849b81630 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalDelegatedPermissionClassification.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Get-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Get-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +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/New-MgBetaApplicationAppManagementPolicyByRef.md b/src/Applications/beta/examples/New-MgBetaApplicationAppManagementPolicyByRef.md index ac21811ff16..2652dc97338 100644 --- a/src/Applications/beta/examples/New-MgBetaApplicationAppManagementPolicyByRef.md +++ b/src/Applications/beta/examples/New-MgBetaApplicationAppManagementPolicyByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaApplicationAppManagementPolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/policies/appManagementPolicies/{id}" + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/appManagementPolicies/{id}" } -New-MgBetaApplicationAppManagementPolicyByRef -ApplicationId $applicationId -BodyParameter $params -``` -This example shows how to use the New-MgBetaApplicationAppManagementPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaApplicationAppManagementPolicyByRef -ApplicationId $applicationId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaApplicationAppManagementPolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/New-MgBetaApplicationExtensionProperty.md b/src/Applications/beta/examples/New-MgBetaApplicationExtensionProperty.md index 47115a4029d..84afb3cb71c 100644 --- a/src/Applications/beta/examples/New-MgBetaApplicationExtensionProperty.md +++ b/src/Applications/beta/examples/New-MgBetaApplicationExtensionProperty.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaApplicationExtensionProperty Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - Name = "jobGroup" - DataType = "String" - TargetObjects = @( + name = "jobGroup" + dataType = "String" + targetObjects = @( "User" ) } -New-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params -``` -This example shows how to use the New-MgBetaApplicationExtensionProperty Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaApplicationExtensionProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/New-MgBetaApplicationFederatedIdentityCredential.md b/src/Applications/beta/examples/New-MgBetaApplicationFederatedIdentityCredential.md index 67b9039f27d..c6ad2545311 100644 --- a/src/Applications/beta/examples/New-MgBetaApplicationFederatedIdentityCredential.md +++ b/src/Applications/beta/examples/New-MgBetaApplicationFederatedIdentityCredential.md @@ -1,15 +1,18 @@ -### Example 1: Using the New-MgBetaApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - Name = "testing02" - Issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - Subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - Audiences = @( + name = "testing02" + issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + audiences = @( "api://AzureADTokenExchange" ) } -New-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params -``` -This example shows how to use the New-MgBetaApplicationFederatedIdentityCredential Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/New-MgBetaApplicationTokenIssuancePolicyByRef.md b/src/Applications/beta/examples/New-MgBetaApplicationTokenIssuancePolicyByRef.md index 08576f3be9a..25bd86c9e5f 100644 --- a/src/Applications/beta/examples/New-MgBetaApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/beta/examples/New-MgBetaApplicationTokenIssuancePolicyByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaApplicationTokenIssuancePolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/policies/tokenIssuancePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenIssuancePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" } -New-MgBetaApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params -``` -This example shows how to use the New-MgBetaApplicationTokenIssuancePolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaApplicationTokenIssuancePolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/New-MgBetaApplicationTokenLifetimePolicyByRef.md b/src/Applications/beta/examples/New-MgBetaApplicationTokenLifetimePolicyByRef.md index 4cce8452607..1e1bfea769c 100644 --- a/src/Applications/beta/examples/New-MgBetaApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/beta/examples/New-MgBetaApplicationTokenLifetimePolicyByRef.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +```powershell Import-Module Microsoft.Graph.Beta.Applications -Get-MgBetaApplicationTokenLifetimePolicy -ApplicationId $applicationId -``` -This example shows how to use the New-MgBetaApplicationTokenLifetimePolicyByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenLifetimePolicies/4d2f137b-e8a9-46da-a5c3-cc85b2b840a4" +} +New-MgBetaApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaApplicationTokenLifetimePolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/New-MgBetaServicePrincipalAppRoleAssignedTo.md b/src/Applications/beta/examples/New-MgBetaServicePrincipalAppRoleAssignedTo.md index ddf1e128509..6a3a0899fae 100644 --- a/src/Applications/beta/examples/New-MgBetaServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/beta/examples/New-MgBetaServicePrincipalAppRoleAssignedTo.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - PrincipalId = "33ad69f9-da99-4bed-acd0-3f24235cb296" - ResourceId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" - AppRoleId = "ef7437e6-4f94-4a0a-a110-a439eb2aa8f7" + principalId = "33ad69f9-da99-4bed-acd0-3f24235cb296" + resourceId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" + appRoleId = "ef7437e6-4f94-4a0a-a110-a439eb2aa8f7" } -New-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaServicePrincipalAppRoleAssignedTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/New-MgBetaServicePrincipalAppRoleAssignment.md b/src/Applications/beta/examples/New-MgBetaServicePrincipalAppRoleAssignment.md index 9dde24b391a..41c26aedc95 100644 --- a/src/Applications/beta/examples/New-MgBetaServicePrincipalAppRoleAssignment.md +++ b/src/Applications/beta/examples/New-MgBetaServicePrincipalAppRoleAssignment.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaServicePrincipalAppRoleAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - PrincipalId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" - ResourceId = "8fce32da-1246-437b-99cd-76d1d4677bd5" - AppRoleId = "498476ce-e0fe-48b0-b801-37ba7e2685c6" + principalId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" + resourceId = "8fce32da-1246-437b-99cd-76d1d4677bd5" + appRoleId = "498476ce-e0fe-48b0-b801-37ba7e2685c6" } -New-MgBetaServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgBetaServicePrincipalAppRoleAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaServicePrincipalAppRoleAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/New-MgBetaServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/beta/examples/New-MgBetaServicePrincipalClaimMappingPolicyByRef.md index 7c46aea5062..f05f5dc2c3f 100644 --- a/src/Applications/beta/examples/New-MgBetaServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/beta/examples/New-MgBetaServicePrincipalClaimMappingPolicyByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaServicePrincipalClaimMappingPolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/policies/claimsMappingPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/claimsMappingPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" } -New-MgBetaServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgBetaServicePrincipalClaimMappingPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaServicePrincipalClaimMappingPolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/New-MgBetaServicePrincipalDelegatedPermissionClassification.md b/src/Applications/beta/examples/New-MgBetaServicePrincipalDelegatedPermissionClassification.md index 0b8d2f222d2..c1557a7bf82 100644 --- a/src/Applications/beta/examples/New-MgBetaServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/beta/examples/New-MgBetaServicePrincipalDelegatedPermissionClassification.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - PermissionId = "e1fe6dd8-ba31-4d61-89e7-88639da4683d" - PermissionName = "User.Read" - Classification = "low" + permissionId = "e1fe6dd8-ba31-4d61-89e7-88639da4683d" + permissionName = "User.Read" + classification = "low" } -New-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaServicePrincipalDelegatedPermissionClassification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/beta/examples/New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md index d381ef1efab..e8adfdf6d52 100644 --- a/src/Applications/beta/examples/New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/beta/examples/New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/policies/homeRealmDiscoveryPolicies/6c6f154f-cb39-4ff9-bf5b-62d5ad585cde" + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/homeRealmDiscoveryPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" } -New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaApplicationAppManagementPolicyByRef.md b/src/Applications/beta/examples/Remove-MgBetaApplicationAppManagementPolicyByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/beta/examples/Remove-MgBetaApplicationAppManagementPolicyByRef.md +++ b/src/Applications/beta/examples/Remove-MgBetaApplicationAppManagementPolicyByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/beta/examples/Remove-MgBetaApplicationExtensionProperty.md b/src/Applications/beta/examples/Remove-MgBetaApplicationExtensionProperty.md index 7370c7c2d14..50c3f8d39da 100644 --- a/src/Applications/beta/examples/Remove-MgBetaApplicationExtensionProperty.md +++ b/src/Applications/beta/examples/Remove-MgBetaApplicationExtensionProperty.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaApplicationExtensionProperty Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId -``` -This example shows how to use the Remove-MgBetaApplicationExtensionProperty Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId +``` +This example shows how to use the Remove-MgBetaBetaApplicationExtensionProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaApplicationFederatedIdentityCredential.md b/src/Applications/beta/examples/Remove-MgBetaApplicationFederatedIdentityCredential.md index 7719a3a21ec..63fabc0368b 100644 --- a/src/Applications/beta/examples/Remove-MgBetaApplicationFederatedIdentityCredential.md +++ b/src/Applications/beta/examples/Remove-MgBetaApplicationFederatedIdentityCredential.md @@ -1,7 +1,19 @@ -### Example 1: Using the Remove-MgBetaApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -``` -This example shows how to use the Remove-MgBetaApplicationFederatedIdentityCredential Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +$params = @{ + name = "testing02" + issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + description = "Updated description" + audiences = @( + "api://AzureADTokenExchange" + ) +} + +Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaApplicationOwnerByRef.md b/src/Applications/beta/examples/Remove-MgBetaApplicationOwnerByRef.md index 503232ea497..db2495630d7 100644 --- a/src/Applications/beta/examples/Remove-MgBetaApplicationOwnerByRef.md +++ b/src/Applications/beta/examples/Remove-MgBetaApplicationOwnerByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaApplicationOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaApplicationOwnerByRef -ApplicationId $applicationId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaApplicationOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Remove-MgBetaApplicationOwnerByRef -ApplicationId $applicationId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaApplicationOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaApplicationTokenIssuancePolicyByRef.md b/src/Applications/beta/examples/Remove-MgBetaApplicationTokenIssuancePolicyByRef.md index 9cd65252ee0..49517131a22 100644 --- a/src/Applications/beta/examples/Remove-MgBetaApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/beta/examples/Remove-MgBetaApplicationTokenIssuancePolicyByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaApplicationTokenIssuancePolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -TokenIssuancePolicyId $tokenIssuancePolicyId -``` -This example shows how to use the Remove-MgBetaApplicationTokenIssuancePolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Remove-MgBetaApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -TokenIssuancePolicyId $tokenIssuancePolicyId +``` +This example shows how to use the Remove-MgBetaBetaApplicationTokenIssuancePolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaApplicationTokenLifetimePolicyByRef.md b/src/Applications/beta/examples/Remove-MgBetaApplicationTokenLifetimePolicyByRef.md index 97c87a62c2c..c81d9f862cc 100644 --- a/src/Applications/beta/examples/Remove-MgBetaApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/beta/examples/Remove-MgBetaApplicationTokenLifetimePolicyByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaApplicationTokenLifetimePolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -TokenLifetimePolicyId $tokenLifetimePolicyId -``` -This example shows how to use the Remove-MgBetaApplicationTokenLifetimePolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Remove-MgBetaApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -TokenLifetimePolicyId $tokenLifetimePolicyId +``` +This example shows how to use the Remove-MgBetaBetaApplicationTokenLifetimePolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaGroupAppRoleAssignment.md b/src/Applications/beta/examples/Remove-MgBetaGroupAppRoleAssignment.md index 13ea9ce7d94..c058bd45bc9 100644 --- a/src/Applications/beta/examples/Remove-MgBetaGroupAppRoleAssignment.md +++ b/src/Applications/beta/examples/Remove-MgBetaGroupAppRoleAssignment.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaGroupAppRoleAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaGroupAppRoleAssignment -GroupId $groupId -AppRoleAssignmentId $appRoleAssignmentId -``` -This example shows how to use the Remove-MgBetaGroupAppRoleAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Remove-MgBetaGroupAppRoleAssignment -GroupId $groupId -AppRoleAssignmentId $appRoleAssignmentId +``` +This example shows how to use the Remove-MgBetaBetaGroupAppRoleAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaServicePrincipal.md b/src/Applications/beta/examples/Remove-MgBetaServicePrincipal.md index 713360680a5..5798d15cf0b 100644 --- a/src/Applications/beta/examples/Remove-MgBetaServicePrincipal.md +++ b/src/Applications/beta/examples/Remove-MgBetaServicePrincipal.md @@ -1,7 +1,18 @@ -### Example 1: Using the Remove-MgBetaServicePrincipal Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaServicePrincipal -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Remove-MgBetaServicePrincipal Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Retrieve a service principal by its ID + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipal -ServicePrincipalId $servicePrincipalId +``` +This example shows how to use the Remove-MgBetaBetaServicePrincipal Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve the specific properties of a service principal + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipal -ServicePrincipalId $servicePrincipalId -Property "id,appId,displayName,appRoles,oauth2PermissionScopes" +``` +This example shows how to use the Remove-MgBetaBetaServicePrincipal Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalAppRoleAssignedTo.md b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalAppRoleAssignedTo.md index ab29934a069..7183918e5b9 100644 --- a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalAppRoleAssignedTo.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId -``` -This example shows how to use the Remove-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Remove-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId +``` +This example shows how to use the Remove-MgBetaBetaServicePrincipalAppRoleAssignedTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalClaimMappingPolicyByRef.md index 5b982c46677..239cfd3de02 100644 --- a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalClaimMappingPolicyByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaServicePrincipalClaimMappingPolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -ClaimsMappingPolicyId $claimsMappingPolicyId -``` -This example shows how to use the Remove-MgBetaServicePrincipalClaimMappingPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Remove-MgBetaServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -ClaimsMappingPolicyId $claimsMappingPolicyId +``` +This example shows how to use the Remove-MgBetaBetaServicePrincipalClaimMappingPolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalDelegatedPermissionClassification.md b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalDelegatedPermissionClassification.md index 74cf0150236..927ddcddb46 100644 --- a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalDelegatedPermissionClassification.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId -``` -This example shows how to use the Remove-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Remove-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId +``` +This example shows how to use the Remove-MgBetaBetaServicePrincipalDelegatedPermissionClassification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md index de20d894ed7..d33d6150deb 100644 --- a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications -Remove-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId -``` -This example shows how to use the Remove-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + +Remove-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId +``` +This example shows how to use the Remove-MgBetaBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalOwnerByRef.md b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalOwnerByRef.md index 79ff18262f4..1d84c2e8b49 100644 --- a/src/Applications/beta/examples/Remove-MgBetaServicePrincipalOwnerByRef.md +++ b/src/Applications/beta/examples/Remove-MgBetaServicePrincipalOwnerByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the Remove-MgBetaServicePrincipalOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" } -Remove-MgBetaServicePrincipalOwnerByRef -ServicePrincipalId $servicePrincipalId -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaServicePrincipalOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Remove-MgBetaServicePrincipalOwnerByRef -ServicePrincipalId $servicePrincipalId -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaServicePrincipalOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Update-MgBetaApplicationExtensionProperty.md b/src/Applications/beta/examples/Update-MgBetaApplicationExtensionProperty.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/beta/examples/Update-MgBetaApplicationExtensionProperty.md +++ b/src/Applications/beta/examples/Update-MgBetaApplicationExtensionProperty.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/beta/examples/Update-MgBetaApplicationFederatedIdentityCredential.md b/src/Applications/beta/examples/Update-MgBetaApplicationFederatedIdentityCredential.md index d891f0d99c9..c3844c34ff2 100644 --- a/src/Applications/beta/examples/Update-MgBetaApplicationFederatedIdentityCredential.md +++ b/src/Applications/beta/examples/Update-MgBetaApplicationFederatedIdentityCredential.md @@ -1,16 +1,19 @@ -### Example 1: Using the Update-MgBetaApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Applications + $params = @{ - Name = "testing02" - Issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - Subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - Description = "Updated description" - Audiences = @( + name = "testing02" + issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + description = "Updated description" + audiences = @( "api://AzureADTokenExchange" ) } -Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaApplicationFederatedIdentityCredential Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/beta/examples/Update-MgBetaGroupAppRoleAssignment.md b/src/Applications/beta/examples/Update-MgBetaGroupAppRoleAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/beta/examples/Update-MgBetaGroupAppRoleAssignment.md +++ b/src/Applications/beta/examples/Update-MgBetaGroupAppRoleAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/beta/examples/Update-MgBetaServicePrincipalAppRoleAssignedTo.md b/src/Applications/beta/examples/Update-MgBetaServicePrincipalAppRoleAssignedTo.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/beta/examples/Update-MgBetaServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/beta/examples/Update-MgBetaServicePrincipalAppRoleAssignedTo.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/beta/examples/Update-MgBetaServicePrincipalAppRoleAssignment.md b/src/Applications/beta/examples/Update-MgBetaServicePrincipalAppRoleAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/beta/examples/Update-MgBetaServicePrincipalAppRoleAssignment.md +++ b/src/Applications/beta/examples/Update-MgBetaServicePrincipalAppRoleAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/beta/examples/Update-MgBetaServicePrincipalDelegatedPermissionClassification.md b/src/Applications/beta/examples/Update-MgBetaServicePrincipalDelegatedPermissionClassification.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/beta/examples/Update-MgBetaServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/beta/examples/Update-MgBetaServicePrincipalDelegatedPermissionClassification.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/beta/examples/Update-MgBetaUserAppRoleAssignment.md b/src/Applications/beta/examples/Update-MgBetaUserAppRoleAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/beta/examples/Update-MgBetaUserAppRoleAssignment.md +++ b/src/Applications/beta/examples/Update-MgBetaUserAppRoleAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/v1.0/examples/Get-MgApplicationExtensionProperty.md b/src/Applications/v1.0/examples/Get-MgApplicationExtensionProperty.md index 14b1502be22..6e0db4d8728 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationExtensionProperty.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationExtensionProperty.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgApplicationExtensionProperty Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Get-MgApplicationExtensionProperty -ApplicationId $applicationId -``` -This example shows how to use the Get-MgApplicationExtensionProperty Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgApplicationExtensionProperty Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +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 869826d975b..8b1ae6f231b 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationFederatedIdentityCredential.md @@ -1,14 +1,19 @@ -### Example 1: Using the Get-MgApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -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). -### Example 2: Using the Get-MgApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -``` -This example shows how to use the Get-MgApplicationFederatedIdentityCredential Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +$params = @{ + name = "testing02" + issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + description = "Updated description" + audiences = @( + "api://AzureADTokenExchange" + ) +} + +Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +``` +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-MgApplicationTemplate.md b/src/Applications/v1.0/examples/Get-MgApplicationTemplate.md index 3d6e1be9646..8013df6f4ad 100644 --- a/src/Applications/v1.0/examples/Get-MgApplicationTemplate.md +++ b/src/Applications/v1.0/examples/Get-MgApplicationTemplate.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgApplicationTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -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). -### Example 2: Using the Get-MgApplicationTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Get-MgApplicationTemplate -``` -This example shows how to use the Get-MgApplicationTemplate Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +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-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalAppRoleAssignedTo.md index 82ca0f055ea..871f85b90c3 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalAppRoleAssignedTo.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgServicePrincipalAppRoleAssignedTo Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId +``` +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-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalDelegatedPermissionClassification.md index 710883795e7..e39c19574d5 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgServicePrincipalDelegatedPermissionClassification Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId +``` +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/New-MgApplicationExtensionProperty.md b/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md index eb112b818fd..7f1d7045fa7 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md +++ b/src/Applications/v1.0/examples/New-MgApplicationExtensionProperty.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgApplicationExtensionProperty Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ - Name = "jobGroup" - DataType = "String" - TargetObjects = @( + name = "jobGroup" + dataType = "String" + targetObjects = @( "User" ) } -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md index 334052bdac3..17a98538bd3 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/New-MgApplicationFederatedIdentityCredential.md @@ -1,15 +1,18 @@ -### Example 1: Using the New-MgApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ - Name = "testing02" - Issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - Subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - Audiences = @( + name = "testing02" + issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + audiences = @( "api://AzureADTokenExchange" ) } -New-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params -``` -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/New-MgApplicationTokenIssuancePolicyByRef.md b/src/Applications/v1.0/examples/New-MgApplicationTokenIssuancePolicyByRef.md index c83a2763557..91eb4b84c32 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/v1.0/examples/New-MgApplicationTokenIssuancePolicyByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgApplicationTokenIssuancePolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenIssuancePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" } -New-MgApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params -``` -This example shows how to use the New-MgApplicationTokenIssuancePolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params +``` +This example shows how to use the New-MgApplicationTokenIssuancePolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/New-MgApplicationTokenLifetimePolicyByRef.md b/src/Applications/v1.0/examples/New-MgApplicationTokenLifetimePolicyByRef.md index 63b1debb000..87a6ed31631 100644 --- a/src/Applications/v1.0/examples/New-MgApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/v1.0/examples/New-MgApplicationTokenLifetimePolicyByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgApplicationTokenLifetimePolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenLifetimePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenLifetimePolicies/4d2f137b-e8a9-46da-a5c3-cc85b2b840a4" } -New-MgApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -BodyParameter $params -``` -This example shows how to use the New-MgApplicationTokenLifetimePolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -BodyParameter $params +``` +This example shows how to use the New-MgApplicationTokenLifetimePolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignedTo.md index ecb8a812e56..86e3d0ea50b 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignedTo.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgServicePrincipalAppRoleAssignedTo Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ - PrincipalId = "33ad69f9-da99-4bed-acd0-3f24235cb296" - ResourceId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" - AppRoleId = "ef7437e6-4f94-4a0a-a110-a439eb2aa8f7" + principalId = "33ad69f9-da99-4bed-acd0-3f24235cb296" + resourceId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" + appRoleId = "ef7437e6-4f94-4a0a-a110-a439eb2aa8f7" } -New-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgServicePrincipalAppRoleAssignedTo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgServicePrincipalAppRoleAssignedTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignment.md b/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignment.md index 2fbc476eb3c..20f88247a9e 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignment.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalAppRoleAssignment.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgServicePrincipalAppRoleAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ - PrincipalId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" - ResourceId = "8fce32da-1246-437b-99cd-76d1d4677bd5" - AppRoleId = "498476ce-e0fe-48b0-b801-37ba7e2685c6" + principalId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" + resourceId = "8fce32da-1246-437b-99cd-76d1d4677bd5" + appRoleId = "498476ce-e0fe-48b0-b801-37ba7e2685c6" } -New-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgServicePrincipalAppRoleAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgServicePrincipalAppRoleAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/v1.0/examples/New-MgServicePrincipalClaimMappingPolicyByRef.md index 60caa27b9c4..585ba41db5e 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalClaimMappingPolicyByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgServicePrincipalClaimMappingPolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/policies/claimsMappingPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" } -New-MgServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/v1.0/examples/New-MgServicePrincipalDelegatedPermissionClassification.md index 10a2a668b0e..a106c62d2a0 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgServicePrincipalDelegatedPermissionClassification Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ - PermissionId = "e1fe6dd8-ba31-4d61-89e7-88639da4683d" - PermissionName = "User.Read" - Classification = "low" + permissionId = "e1fe6dd8-ba31-4d61-89e7-88639da4683d" + permissionName = "User.Read" + classification = "low" } -New-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgServicePrincipalDelegatedPermissionClassification Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgServicePrincipalDelegatedPermissionClassification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index c4d0b8ee9cd..74cd0f2a694 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/policies/homeRealmDiscoveryPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" } -New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params -``` -This example shows how to use the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params +``` +This example shows how to use the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationExtensionProperty.md b/src/Applications/v1.0/examples/Remove-MgApplicationExtensionProperty.md index a9d88ed5110..3bd90bbcf71 100644 --- a/src/Applications/v1.0/examples/Remove-MgApplicationExtensionProperty.md +++ b/src/Applications/v1.0/examples/Remove-MgApplicationExtensionProperty.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgApplicationExtensionProperty Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId -``` -This example shows how to use the Remove-MgApplicationExtensionProperty Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Get-MgApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId +``` +This example shows how to use the Remove-MgApplicationExtensionProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md index 2874fed579c..00fd700006b 100644 --- a/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/Remove-MgApplicationFederatedIdentityCredential.md @@ -1,7 +1,19 @@ -### Example 1: Using the Remove-MgApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -``` -This example shows how to use the Remove-MgApplicationFederatedIdentityCredential Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +$params = @{ + name = "testing02" + issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + description = "Updated description" + audiences = @( + "api://AzureADTokenExchange" + ) +} + +Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +``` +This example shows how to use the Remove-MgApplicationFederatedIdentityCredential Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationOwnerByRef.md b/src/Applications/v1.0/examples/Remove-MgApplicationOwnerByRef.md index f7a280b7768..017e2a9b95d 100644 --- a/src/Applications/v1.0/examples/Remove-MgApplicationOwnerByRef.md +++ b/src/Applications/v1.0/examples/Remove-MgApplicationOwnerByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgApplicationOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgApplicationOwnerByRef -ApplicationId $applicationId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgApplicationOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgApplicationOwnerByRef -ApplicationId $applicationId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgApplicationOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationTokenIssuancePolicyByRef.md b/src/Applications/v1.0/examples/Remove-MgApplicationTokenIssuancePolicyByRef.md index 55ccb6304e9..34ca510f3cb 100644 --- a/src/Applications/v1.0/examples/Remove-MgApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/v1.0/examples/Remove-MgApplicationTokenIssuancePolicyByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgApplicationTokenIssuancePolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -TokenIssuancePolicyId $tokenIssuancePolicyId -``` -This example shows how to use the Remove-MgApplicationTokenIssuancePolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -TokenIssuancePolicyId $tokenIssuancePolicyId +``` +This example shows how to use the Remove-MgApplicationTokenIssuancePolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgApplicationTokenLifetimePolicyByRef.md b/src/Applications/v1.0/examples/Remove-MgApplicationTokenLifetimePolicyByRef.md index 777a40a3775..8faab857fdf 100644 --- a/src/Applications/v1.0/examples/Remove-MgApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/v1.0/examples/Remove-MgApplicationTokenLifetimePolicyByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgApplicationTokenLifetimePolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -TokenLifetimePolicyId $tokenLifetimePolicyId -``` -This example shows how to use the Remove-MgApplicationTokenLifetimePolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -TokenLifetimePolicyId $tokenLifetimePolicyId +``` +This example shows how to use the Remove-MgApplicationTokenLifetimePolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgGroupAppRoleAssignment.md b/src/Applications/v1.0/examples/Remove-MgGroupAppRoleAssignment.md index 77e7e67590f..c0c1804ea3c 100644 --- a/src/Applications/v1.0/examples/Remove-MgGroupAppRoleAssignment.md +++ b/src/Applications/v1.0/examples/Remove-MgGroupAppRoleAssignment.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgGroupAppRoleAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgGroupAppRoleAssignment -GroupId $groupId -AppRoleAssignmentId $appRoleAssignmentId -``` -This example shows how to use the Remove-MgGroupAppRoleAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgGroupAppRoleAssignment -GroupId $groupId -AppRoleAssignmentId $appRoleAssignmentId +``` +This example shows how to use the Remove-MgGroupAppRoleAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipal.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipal.md index c8cdcb99005..9f46fd7d2bf 100644 --- a/src/Applications/v1.0/examples/Remove-MgServicePrincipal.md +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipal.md @@ -1,7 +1,18 @@ -### Example 1: Using the Remove-MgServicePrincipal Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgServicePrincipal -ServicePrincipalId $servicePrincipalId -``` -This example shows how to use the Remove-MgServicePrincipal Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Retrieve a service principal by its ID + +```powershell Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipal -ServicePrincipalId $servicePrincipalId +``` +This example shows how to use the Remove-MgServicePrincipal Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve the specific properties of a service principal + +```powershell Import-Module Microsoft.Graph.Applications + +Get-MgServicePrincipal -ServicePrincipalId $servicePrincipalId -Property "id,appId,displayName,appRoles,oauth2PermissionScopes" +``` +This example shows how to use the Remove-MgServicePrincipal Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalAppRoleAssignedTo.md index eeca1c742c8..12c84ef0470 100644 --- a/src/Applications/v1.0/examples/Remove-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalAppRoleAssignedTo.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgServicePrincipalAppRoleAssignedTo Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId -``` -This example shows how to use the Remove-MgServicePrincipalAppRoleAssignedTo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId +``` +This example shows how to use the Remove-MgServicePrincipalAppRoleAssignedTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalClaimMappingPolicyByRef.md index 3bc662a8b15..284e17a7045 100644 --- a/src/Applications/v1.0/examples/Remove-MgServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalClaimMappingPolicyByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgServicePrincipalClaimMappingPolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -ClaimsMappingPolicyId $claimsMappingPolicyId -``` -This example shows how to use the Remove-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -ClaimsMappingPolicyId $claimsMappingPolicyId +``` +This example shows how to use the Remove-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalDelegatedPermissionClassification.md index d57746674c7..4d0e220fda9 100644 --- a/src/Applications/v1.0/examples/Remove-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgServicePrincipalDelegatedPermissionClassification Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId -``` -This example shows how to use the Remove-MgServicePrincipalDelegatedPermissionClassification Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId +``` +This example shows how to use the Remove-MgServicePrincipalDelegatedPermissionClassification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index 700f0f90dfd..2a03bd7134a 100644 --- a/src/Applications/v1.0/examples/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications -Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId -``` -This example shows how to use the Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + +Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId +``` +This example shows how to use the Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Remove-MgServicePrincipalOwnerByRef.md b/src/Applications/v1.0/examples/Remove-MgServicePrincipalOwnerByRef.md index 644be87292b..ed49eb95975 100644 --- a/src/Applications/v1.0/examples/Remove-MgServicePrincipalOwnerByRef.md +++ b/src/Applications/v1.0/examples/Remove-MgServicePrincipalOwnerByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the Remove-MgServicePrincipalOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" } -Remove-MgServicePrincipalOwnerByRef -ServicePrincipalId $servicePrincipalId -DirectoryObjectId $directoryObjectId -BodyParameter $params -``` -This example shows how to use the Remove-MgServicePrincipalOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Remove-MgServicePrincipalOwnerByRef -ServicePrincipalId $servicePrincipalId -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Remove-MgServicePrincipalOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Update-MgApplicationExtensionProperty.md b/src/Applications/v1.0/examples/Update-MgApplicationExtensionProperty.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/v1.0/examples/Update-MgApplicationExtensionProperty.md +++ b/src/Applications/v1.0/examples/Update-MgApplicationExtensionProperty.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredential.md b/src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredential.md index 80f87ba63ce..67759887cab 100644 --- a/src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/v1.0/examples/Update-MgApplicationFederatedIdentityCredential.md @@ -1,16 +1,19 @@ -### Example 1: Using the Update-MgApplicationFederatedIdentityCredential Cmdlet -```powershell -Import-Module Microsoft.Graph.Applications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Applications + $params = @{ - Name = "testing02" - Issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" - Subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" - Description = "Updated description" - Audiences = @( + name = "testing02" + issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + description = "Updated description" + audiences = @( "api://AzureADTokenExchange" ) } -Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params -``` -This example shows how to use the Update-MgApplicationFederatedIdentityCredential Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params +``` +This example shows how to use the Update-MgApplicationFederatedIdentityCredential Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Update-MgGroupAppRoleAssignment.md b/src/Applications/v1.0/examples/Update-MgGroupAppRoleAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/v1.0/examples/Update-MgGroupAppRoleAssignment.md +++ b/src/Applications/v1.0/examples/Update-MgGroupAppRoleAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/v1.0/examples/Update-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/v1.0/examples/Update-MgServicePrincipalAppRoleAssignedTo.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/v1.0/examples/Update-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/v1.0/examples/Update-MgServicePrincipalAppRoleAssignedTo.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/v1.0/examples/Update-MgServicePrincipalAppRoleAssignment.md b/src/Applications/v1.0/examples/Update-MgServicePrincipalAppRoleAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/v1.0/examples/Update-MgServicePrincipalAppRoleAssignment.md +++ b/src/Applications/v1.0/examples/Update-MgServicePrincipalAppRoleAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/v1.0/examples/Update-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/v1.0/examples/Update-MgServicePrincipalDelegatedPermissionClassification.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/v1.0/examples/Update-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/v1.0/examples/Update-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Applications/v1.0/examples/Update-MgUserAppRoleAssignment.md b/src/Applications/v1.0/examples/Update-MgUserAppRoleAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Applications/v1.0/examples/Update-MgUserAppRoleAssignment.md +++ b/src/Applications/v1.0/examples/Update-MgUserAppRoleAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusiness.md b/src/Bookings/v1.0/examples/Get-MgBookingBusiness.md index 5e4e59495a4..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusiness.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusiness.md @@ -1,21 +1,17 @@ -### Example 1: Using the Get-MgBookingBusiness Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusiness -BookingBusinessId $bookingBusinessId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusiness Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBookingBusiness Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusiness + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusiness Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBookingBusiness Cmdlet -```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusiness -Query "Adventure" -``` -This example shows how to use the Get-MgBookingBusiness Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusinessAppointment.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessAppointment.md index 5f209860cfd..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessAppointment.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessAppointment.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBookingBusinessAppointment Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessAppointment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBookingBusinessAppointment Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessAppointment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomQuestion.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomQuestion.md index 7d05eb18251..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomQuestion.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBookingBusinessCustomQuestion Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBookingBusinessCustomQuestion Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomer.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomer.md index 9de03cac486..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomer.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessCustomer.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBookingBusinessCustomer Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessCustomer Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBookingBusinessCustomer Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessCustomer Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusinessService.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessService.md index e72504695b7..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessService.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessService.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBookingBusinessService Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessService -BookingBusinessId $bookingBusinessId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessService Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBookingBusinessService Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BookingServiceId $bookingServiceId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessService Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffMember.md b/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffMember.md index a42fd1a0c85..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffMember.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingBusinessStaffMember.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBookingBusinessStaffMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessStaffMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBookingBusinessStaffMember Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BookingStaffMemberBaseId $bookingStaffMemberBaseId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingBusinessStaffMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Get-MgBookingCurrency.md b/src/Bookings/v1.0/examples/Get-MgBookingCurrency.md index ac3d61ce26d..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Get-MgBookingCurrency.md +++ b/src/Bookings/v1.0/examples/Get-MgBookingCurrency.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBookingCurrency Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingCurrency -BookingCurrencyId $bookingCurrencyId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingCurrency Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBookingCurrency Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Get-MgBookingCurrency + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBookingCurrency Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusiness.md b/src/Bookings/v1.0/examples/New-MgBookingBusiness.md index acefac58049..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusiness.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusiness.md @@ -1,22 +1,17 @@ -### Example 1: Using the New-MgBookingBusiness Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - DisplayName = "Fourth Coffee" - Address = @{ - PostOfficeBox = "P.O. Box 123" - Street = "4567 Main Street" - City = "Buffalo" - State = "NY" - CountryOrRegion = "USA" - PostalCode = "98052" - } - Phone = "206-555-0100" - Email = "manager@fourthcoffee.com" - WebSiteUrl = "https://www.fourthcoffee.com" - DefaultCurrencyIso = "USD" -} -New-MgBookingBusiness -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBookingBusiness Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusinessAppointment.md b/src/Bookings/v1.0/examples/New-MgBookingBusinessAppointment.md index 55320fcdf00..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusinessAppointment.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusinessAppointment.md @@ -1,112 +1,17 @@ -### Example 1: Using the New-MgBookingBusinessAppointment Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingAppointment" - CustomerTimeZone = "America/Chicago" - SmsNotificationsEnabled = $true - EndDateTime = @{ - "@odata.type" = "#microsoft.graph.dateTimeTimeZone" - DateTime = "2018-05-01T12:30:00.0000000+00:00" - TimeZone = "UTC" - } - IsLocationOnline = $true - OptOutOfCustomerEmail = $false - PostBuffer = "PT10M" - PreBuffer = "PT5M" - Price = 10 - "PriceType@odata.type" = "#microsoft.graph.bookingPriceType" - PriceType = "fixedPrice" - "Reminders@odata.type" = "#Collection(microsoft.graph.bookingReminder)" - Reminders = @( - @{ - "@odata.type" = "#microsoft.graph.bookingReminder" - Message = "This service is tomorrow" - Offset = "P1D" - "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" - Recipients = "allAttendees" - } - @{ - "@odata.type" = "#microsoft.graph.bookingReminder" - Message = "Please be available to enjoy your lunch service." - Offset = "PT1H" - "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" - Recipients = "customer" - } - @{ - "@odata.type" = "#microsoft.graph.bookingReminder" - Message = "Please check traffic for next cater." - Offset = "PT2H" - "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" - Recipients = "staff" - } - ) - ServiceId = "57da6774-a087-4d69-b0e6-6fb82c339976" - ServiceLocation = @{ - "@odata.type" = "#microsoft.graph.location" - Address = @{ - "@odata.type" = "#microsoft.graph.physicalAddress" - City = "Buffalo" - CountryOrRegion = "USA" - PostalCode = "98052" - PostOfficeBox = $null - State = "NY" - Street = "123 First Avenue" - "Type@odata.type" = "#microsoft.graph.physicalAddressType" - Type = $null - } - Coordinates = $null - DisplayName = "Customer location" - LocationEmailAddress = $null - "LocationType@odata.type" = "#microsoft.graph.locationType" - LocationType = $null - LocationUri = $null - UniqueId = $null - "UniqueIdType@odata.type" = "#microsoft.graph.locationUniqueIdType" - UniqueIdType = $null - } - ServiceName = "Catered bento" - ServiceNotes = "Customer requires punctual service." - StartDateTime = @{ - "@odata.type" = "#microsoft.graph.dateTimeTimeZone" - DateTime = "2018-05-01T12:00:00.0000000+00:00" - TimeZone = "UTC" - } - MaximumAttendeesCount = 5 - FilledAttendeesCount = 1 - "Customers@odata.type" = "#Collection(microsoft.graph.bookingCustomerInformation)" - Customers = @( - @{ - "@odata.type" = "#microsoft.graph.bookingCustomerInformation" - CustomerId = "7ed53fa5-9ef2-4f2f-975b-27447440bc09" - Name = "Jordan Miller" - EmailAddress = "jordanm@contoso.com" - Phone = "213-555-0199" - Notes = $null - Location = @{ - "@odata.type" = "#microsoft.graph.location" - DisplayName = "Customer" - LocationEmailAddress = $null - LocationUri = "" - LocationType = $null - UniqueId = $null - UniqueIdType = $null - Address = @{ - "@odata.type" = "#microsoft.graph.physicalAddress" - Street = "" - City = "" - State = "" - CountryOrRegion = "" - PostalCode = "" - } - } - TimeZone = "America/Chicago" - CustomQuestionAnswers = @( - ) - } - ) -} -New-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBookingBusinessAppointment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomQuestion.md b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomQuestion.md index bbef8fe35a1..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomQuestion.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBookingBusinessCustomQuestion Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingCustomQuestion" - DisplayName = "What is your age?" - AnswerInputType = "text" - AnswerOptions = @( - ) -} -New-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBookingBusinessCustomQuestion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md index bad67825208..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusinessCustomer.md @@ -1,16 +1,17 @@ -### Example 1: Using the New-MgBookingBusinessCustomer Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingCustomer" - DisplayName = "Joni Sherman" - EmailAddress = "jonis@relecloud.com" - Addresses = @( - ) - Phones = @( - ) -} -New-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBookingBusinessCustomer Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusinessService.md b/src/Bookings/v1.0/examples/New-MgBookingBusinessService.md index 98e0beffc16..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusinessService.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusinessService.md @@ -1,68 +1,17 @@ -### Example 1: Using the New-MgBookingBusinessService Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingService" - DefaultDuration = "PT1H30M" - DefaultLocation = @{ - "@odata.type" = "#microsoft.graph.location" - Address = @{ - "@odata.type" = "#microsoft.graph.physicalAddress" - City = "Buffalo" - CountryOrRegion = "USA" - PostalCode = "98052" - PostOfficeBox = $null - State = "NY" - Street = "4567 First Street" - "Type@odata.type" = "#microsoft.graph.physicalAddressType" - Type = $null - } - Coordinates = $null - DisplayName = "Contoso Lunch Delivery" - LocationEmailAddress = $null - "LocationType@odata.type" = "#microsoft.graph.locationType" - LocationType = $null - LocationUri = $null - UniqueId = $null - "UniqueIdType@odata.type" = "#microsoft.graph.locationUniqueIdType" - UniqueIdType = $null - } - DefaultPrice = 10 - "DefaultPriceType@odata.type" = "#microsoft.graph.bookingPriceType" - DefaultPriceType = "fixedPrice" - "DefaultReminders@odata.type" = "#Collection(microsoft.graph.bookingReminder)" - DefaultReminders = @( - @{ - "@odata.type" = "#microsoft.graph.bookingReminder" - Message = "Please be reminded that this service is tomorrow." - Offset = "P1D" - "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" - Recipients = "allAttendees" - } - ) - Description = "Individual bento box lunch delivery" - DisplayName = "Bento" - IsLocationOnline = $true - SmsNotificationsEnabled = $true - IsHiddenFromCustomers = $false - Notes = "Home-cooked special" - PostBuffer = "PT10M" - PreBuffer = "PT5M" - SchedulingPolicy = @{ - "@odata.type" = "#microsoft.graph.bookingSchedulingPolicy" - AllowStaffSelection = $true - MaximumAdvance = "P10D" - MinimumLeadTime = "PT10H" - SendConfirmationsToOwner = $true - TimeSlotInterval = "PT1H" - } - "StaffMemberIds@odata.type" = "#Collection(String)" - StaffMemberIds = @( - "d90d1e8c-5cfe-48cf-a2d5-966267375b6a" - "2f5f8794-0b29-45b5-b56a-2eb5ff7aa880" - ) -} -New-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBookingBusinessService Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md b/src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md index f0d9e62e534..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md +++ b/src/Bookings/v1.0/examples/New-MgBookingBusinessStaffMember.md @@ -1,84 +1,17 @@ -### Example 1: Using the New-MgBookingBusinessStaffMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingStaffMember" - DisplayName = "Dana Swope" - EmailAddress = "danas@contoso.com" - "Role@odata.type" = "#microsoft.graph.bookingStaffRole" - Role = "externalGuest" - TimeZone = "America/Chicago" - UseBusinessHours = $true - "WorkingHours@odata.type" = "#Collection(microsoft.graph.bookingWorkHours)" - WorkingHours = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "monday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" - EndTime = "17:00:00.0000000" - StartTime = "08:00:00.0000000" - } - ) - } - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "tuesday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" - EndTime = "17:00:00.0000000" - StartTime = "08:00:00.0000000" - } - ) - } - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "wednesday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" - EndTime = "17:00:00.0000000" - StartTime = "08:00:00.0000000" - } - ) - } - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "thursday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" - EndTime = "17:00:00.0000000" - StartTime = "08:00:00.0000000" - } - ) - } - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "friday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" - EndTime = "17:00:00.0000000" - StartTime = "08:00:00.0000000" - } - ) - } - ) -} -New-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBookingBusinessStaffMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Remove-MgBookingBusiness.md b/src/Bookings/v1.0/examples/Remove-MgBookingBusiness.md index 84933be35a7..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Remove-MgBookingBusiness.md +++ b/src/Bookings/v1.0/examples/Remove-MgBookingBusiness.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBookingBusiness Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Remove-MgBookingBusiness -BookingBusinessId $bookingBusinessId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBookingBusiness Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessAppointment.md b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessAppointment.md index f92bcc7df5c..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessAppointment.md +++ b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessAppointment.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBookingBusinessAppointment Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Remove-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBookingBusinessAppointment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomQuestion.md b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomQuestion.md index 51a0ba0af7e..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomQuestion.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBookingBusinessCustomQuestion Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Remove-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBookingBusinessCustomQuestion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomer.md b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomer.md index 4b5f81fc809..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomer.md +++ b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessCustomer.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBookingBusinessCustomer Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Remove-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBookingBusinessCustomer Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessService.md b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessService.md index e494b1f117d..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessService.md +++ b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessService.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBookingBusinessService Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Remove-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BookingServiceId $bookingServiceId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBookingBusinessService Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessStaffMember.md b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessStaffMember.md index d6408062bec..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Remove-MgBookingBusinessStaffMember.md +++ b/src/Bookings/v1.0/examples/Remove-MgBookingBusinessStaffMember.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBookingBusinessStaffMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -Remove-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BookingStaffMemberBaseId $bookingStaffMemberBaseId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBookingBusinessStaffMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Update-MgBookingBusiness.md b/src/Bookings/v1.0/examples/Update-MgBookingBusiness.md index 6a64110a44e..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Update-MgBookingBusiness.md +++ b/src/Bookings/v1.0/examples/Update-MgBookingBusiness.md @@ -1,17 +1,17 @@ -### Example 1: Using the Update-MgBookingBusiness Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - Email = "admin@fabrikam.com" - SchedulingPolicy = @{ - TimeSlotInterval = "PT60M" - MinimumLeadTime = "P1D" - MaximumAdvance = "P30D" - SendConfirmationsToOwner = $true - AllowStaffSelection = $true - } -} -Update-MgBookingBusiness -BookingBusinessId $bookingBusinessId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBookingBusiness Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Update-MgBookingBusinessAppointment.md b/src/Bookings/v1.0/examples/Update-MgBookingBusinessAppointment.md index 9ee35f73c20..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Update-MgBookingBusinessAppointment.md +++ b/src/Bookings/v1.0/examples/Update-MgBookingBusinessAppointment.md @@ -1,20 +1,17 @@ -### Example 1: Using the Update-MgBookingBusinessAppointment Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingAppointment" - EndDateTime = @{ - "@odata.type" = "#microsoft.graph.dateTimeTimeZone" - DateTime = "2018-05-06T12:30:00.0000000+00:00" - TimeZone = "UTC" - } - StartDateTime = @{ - "@odata.type" = "#microsoft.graph.dateTimeTimeZone" - DateTime = "2018-05-06T12:00:00.0000000+00:00" - TimeZone = "UTC" - } -} -Update-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBookingBusinessAppointment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Update-MgBookingBusinessCustomQuestion.md b/src/Bookings/v1.0/examples/Update-MgBookingBusinessCustomQuestion.md index b27df262376..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Update-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/v1.0/examples/Update-MgBookingBusinessCustomQuestion.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBookingBusinessCustomQuestion Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingCustomQuestion" - DisplayName = "What is your age?" - AnswerInputType = "text" - AnswerOptions = @( - ) -} -Update-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBookingBusinessCustomQuestion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Update-MgBookingBusinessCustomer.md b/src/Bookings/v1.0/examples/Update-MgBookingBusinessCustomer.md index ece979a84c6..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Update-MgBookingBusinessCustomer.md +++ b/src/Bookings/v1.0/examples/Update-MgBookingBusinessCustomer.md @@ -1,12 +1,17 @@ -### Example 1: Using the Update-MgBookingBusinessCustomer Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingCustomer" - DisplayName = "Adele" - EmailAddress = "adele@relecloud.com" -} -Update-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBookingBusinessCustomer Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Update-MgBookingBusinessService.md b/src/Bookings/v1.0/examples/Update-MgBookingBusinessService.md index 12850936771..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Update-MgBookingBusinessService.md +++ b/src/Bookings/v1.0/examples/Update-MgBookingBusinessService.md @@ -1,11 +1,17 @@ -### Example 1: Using the Update-MgBookingBusinessService Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingService" - DefaultDuration = "PT30M" -} -Update-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BookingServiceId $bookingServiceId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBookingBusinessService Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Bookings/v1.0/examples/Update-MgBookingBusinessStaffMember.md b/src/Bookings/v1.0/examples/Update-MgBookingBusinessStaffMember.md index dc906b3ceea..f6c6949389e 100644 --- a/src/Bookings/v1.0/examples/Update-MgBookingBusinessStaffMember.md +++ b/src/Bookings/v1.0/examples/Update-MgBookingBusinessStaffMember.md @@ -1,72 +1,17 @@ -### Example 1: Using the Update-MgBookingBusinessStaffMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Bookings -$params = @{ - "@odata.type" = "#microsoft.graph.bookingStaffMember" - WorkingHours = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "monday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - ) - } - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "tuesday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" - EndTime = "17:00:00.0000000" - StartTime = "08:00:00.0000000" - } - ) - } - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "wednesday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" - EndTime = "17:00:00.0000000" - StartTime = "08:00:00.0000000" - } - ) - } - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "thursday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" - EndTime = "17:00:00.0000000" - StartTime = "08:00:00.0000000" - } - ) - } - @{ - "@odata.type" = "#microsoft.graph.bookingWorkHours" - "Day@odata.type" = "#microsoft.graph.dayOfWeek" - Day = "friday" - "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" - TimeSlots = @( - @{ - "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" - EndTime = "17:00:00.0000000" - StartTime = "08:00:00.0000000" - } - ) - } - ) -} -Update-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BookingStaffMemberBaseId $bookingStaffMemberBaseId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBookingBusinessStaffMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Calendar/beta/examples/Get-MgBetaGroupCalendarPermission.md b/src/Calendar/beta/examples/Get-MgBetaGroupCalendarPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Get-MgBetaGroupCalendarPermission.md +++ b/src/Calendar/beta/examples/Get-MgBetaGroupCalendarPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Get-MgBetaGroupEvent.md b/src/Calendar/beta/examples/Get-MgBetaGroupEvent.md index 23e3c1e6b68..542711d2471 100644 --- a/src/Calendar/beta/examples/Get-MgBetaGroupEvent.md +++ b/src/Calendar/beta/examples/Get-MgBetaGroupEvent.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaGroupEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -Get-MgBetaGroupEvent -GroupId $groupId -EventId $eventId -``` -This example shows how to use the Get-MgBetaGroupEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaGroupEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -Get-MgBetaGroupEvent -GroupId $groupId -``` -This example shows how to use the Get-MgBetaGroupEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +Get-MgBetaGroupEvent -GroupId $groupId -EventId $eventId +``` +This example shows how to use the Get-MgBetaBetaGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Get-MgBetaGroupEventAttachment.md b/src/Calendar/beta/examples/Get-MgBetaGroupEventAttachment.md index c3e0865dd46..b4ba794eb34 100644 --- a/src/Calendar/beta/examples/Get-MgBetaGroupEventAttachment.md +++ b/src/Calendar/beta/examples/Get-MgBetaGroupEventAttachment.md @@ -1,12 +1,10 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +```powershell Import-Module Microsoft.Graph.Beta.Calendar # A UPN can also be used as -UserId. -Get-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -``` -This example shows how to use the Get-MgBetaGroupEventAttachment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Remove-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgBetaBetaGroupEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Get-MgBetaGroupEventExtension.md b/src/Calendar/beta/examples/Get-MgBetaGroupEventExtension.md index 81c097e2478..2d17ff67377 100644 --- a/src/Calendar/beta/examples/Get-MgBetaGroupEventExtension.md +++ b/src/Calendar/beta/examples/Get-MgBetaGroupEventExtension.md @@ -1,7 +1,48 @@ -### Example 1: Using the Get-MgBetaGroupEventExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -Get-MgBetaGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId -``` -This example shows how to use the Get-MgBetaGroupEventExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgBetaBetaGroupEventExtension 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.Calendar + +Get-MgBetaGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgBetaBetaGroupEventExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgBetaBetaGroupEventExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +Get-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgBetaBetaGroupEventExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgBetaBetaGroupEventExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Get-MgBetaGroupEventInstanceAttachment.md b/src/Calendar/beta/examples/Get-MgBetaGroupEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Get-MgBetaGroupEventInstanceAttachment.md +++ b/src/Calendar/beta/examples/Get-MgBetaGroupEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Get-MgBetaGroupEventInstanceExtension.md b/src/Calendar/beta/examples/Get-MgBetaGroupEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Get-MgBetaGroupEventInstanceExtension.md +++ b/src/Calendar/beta/examples/Get-MgBetaGroupEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Get-MgBetaUserCalendarGroup.md b/src/Calendar/beta/examples/Get-MgBetaUserCalendarGroup.md index c6929daa999..5f52ace5a7c 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserCalendarGroup.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserCalendarGroup.md @@ -1,16 +1,14 @@ -### Example 1: Using the Get-MgBetaUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +$params = @{ + name = "name-value" +} + # A UPN can also be used as -UserId. -Get-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -``` -This example shows how to use the Get-MgBetaUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -# A UPN can also be used as -UserId. -Get-MgBetaUserCalendarGroup -UserId $userId -``` -This example shows how to use the Get-MgBetaUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserCalendarGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Get-MgBetaUserCalendarPermission.md b/src/Calendar/beta/examples/Get-MgBetaUserCalendarPermission.md index 5bbe8fd4d30..4e9c84ebc87 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserCalendarPermission.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserCalendarPermission.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgBetaUserCalendarPermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -Get-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -``` -This example shows how to use the Get-MgBetaUserCalendarPermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +$params = @{ + role = "write" +} + +Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserCalendarPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Get-MgBetaUserDefaultCalendar.md b/src/Calendar/beta/examples/Get-MgBetaUserDefaultCalendar.md index f9cc97eae2f..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserDefaultCalendar.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserDefaultCalendar.md @@ -1,8 +1,17 @@ -### Example 1: Using the Get-MgBetaUserDefaultCalendar Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Calendar -# A UPN can also be used as -UserId. -Get-MgBetaUserDefaultCalendar -UserId $userId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaUserDefaultCalendar Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Calendar/beta/examples/Get-MgBetaUserEvent.md b/src/Calendar/beta/examples/Get-MgBetaUserEvent.md index 99e2c85cdfb..64e36724477 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserEvent.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserEvent.md @@ -1,48 +1,28 @@ -### Example 1: Using the Get-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +$params = @{ + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + responseStatus = @{ + response = "" + time = [System.DateTime]::Parse("datetime-value") + } + recurrence = $null + reminderMinutesBeforeStart = 99 + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" + isReminderOn = $true + hideAttendees = $false + categories = @( + "Red category" + ) +} + # A UPN can also be used as -UserId. -Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview" -``` -This example shows how to use the Get-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -# A UPN can also be used as -UserId. -Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" -``` -This example shows how to use the Get-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -# A UPN can also be used as -UserId. -Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" -``` -This example shows how to use the Get-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -# A UPN can also be used as -UserId. -Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,start,end,occurrenceId,exceptionOccurrences,cancelledOccurrences" -ExpandProperty "exceptionOccurrences" -``` -This example shows how to use the Get-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -# A UPN can also be used as -UserId. -Get-MgBetaUserEvent -UserId $userId -Property "subject,body,bodyPreview" -``` -This example shows how to use the Get-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -# A UPN can also be used as -UserId. -Get-MgBetaUserEvent -UserId $userId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location" -``` -This example shows how to use the Get-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Get-MgBetaUserEventAttachment.md b/src/Calendar/beta/examples/Get-MgBetaUserEventAttachment.md index 5b17965d27c..b23df19e74d 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserEventAttachment.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserEventAttachment.md @@ -1,16 +1,10 @@ -### Example 1: Using the Get-MgBetaUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + # A UPN can also be used as -UserId. -Get-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -``` -This example shows how to use the Get-MgBetaUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -# A UPN can also be used as -UserId. -Get-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId -``` -This example shows how to use the Get-MgBetaUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgBetaBetaUserEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Get-MgBetaUserEventExtension.md b/src/Calendar/beta/examples/Get-MgBetaUserEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserEventExtension.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Get-MgBetaUserEventInstanceAttachment.md b/src/Calendar/beta/examples/Get-MgBetaUserEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserEventInstanceAttachment.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Get-MgBetaUserEventInstanceExtension.md b/src/Calendar/beta/examples/Get-MgBetaUserEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserEventInstanceExtension.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/New-MgBetaGroupEvent.md b/src/Calendar/beta/examples/New-MgBetaGroupEvent.md index e9234536cad..b8f9652e7fb 100644 --- a/src/Calendar/beta/examples/New-MgBetaGroupEvent.md +++ b/src/Calendar/beta/examples/New-MgBetaGroupEvent.md @@ -1,34 +1,37 @@ -### Example 1: Using the New-MgBetaGroupEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does late morning work for you?" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does late morning work for you?" } - Start = @{ - DateTime = "2019-06-15T12:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2019-06-16T12:00:00" + timeZone = "Pacific Standard Time" } - End = @{ - DateTime = "2019-06-15T14:00:00" - TimeZone = "Pacific Standard Time" + end = @{ + dateTime = "2019-06-16T14:00:00" + timeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "adelev@contoso.onmicrosoft.com" - Name = "Adele Vance" + emailAddress = @{ + address = "adelev@contoso.onmicrosoft.com" + name = "Adele Vance" } - Type = "required" + type = "required" } ) } -New-MgBetaGroupEvent -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaGroupEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaGroupEvent -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/New-MgBetaGroupEventAttachment.md b/src/Calendar/beta/examples/New-MgBetaGroupEventAttachment.md index c8e17253fbd..93262ded810 100644 --- a/src/Calendar/beta/examples/New-MgBetaGroupEventAttachment.md +++ b/src/Calendar/beta/examples/New-MgBetaGroupEventAttachment.md @@ -1,12 +1,37 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + "@odata.type" = "microsoft.graph.fileAttachment" + name = "name-value" + contentType = "contentType-value" + isInline = $false + contentLocation = "contentLocation-value" + contentBytes = "base64-contentBytes-value" +} # A UPN can also be used as -UserId. -Get-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -``` -This example shows how to use the New-MgBetaGroupEventAttachment Cmdlet. +New-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupEventAttachment 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.Calendar -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" + name = "name-value" + item = @{ + "@odata.type" = "microsoft.graph.message" + } +} +# A UPN can also be used as -UserId. +New-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/New-MgBetaGroupEventExtension.md b/src/Calendar/beta/examples/New-MgBetaGroupEventExtension.md index ff756a96058..f6c6949389e 100644 --- a/src/Calendar/beta/examples/New-MgBetaGroupEventExtension.md +++ b/src/Calendar/beta/examples/New-MgBetaGroupEventExtension.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaGroupEventExtension Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - "@odata.type" = "microsoft.graph.openTypeExtension" - ExtensionName = "Com.Contoso.Deal" - CompanyName = "Alpine Skis" - DealValue = - ExpirationDate = "2015-07-03T13:04:00.000Z" -} -New-MgBetaGroupEventExtension -GroupId $groupId -EventId $eventId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaGroupEventExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Calendar/beta/examples/New-MgBetaGroupEventInstanceAttachment.md b/src/Calendar/beta/examples/New-MgBetaGroupEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/New-MgBetaGroupEventInstanceAttachment.md +++ b/src/Calendar/beta/examples/New-MgBetaGroupEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/New-MgBetaUserCalendar.md b/src/Calendar/beta/examples/New-MgBetaUserCalendar.md index 844f7af9460..8fc4d82c6e4 100644 --- a/src/Calendar/beta/examples/New-MgBetaUserCalendar.md +++ b/src/Calendar/beta/examples/New-MgBetaUserCalendar.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaUserCalendar Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Name = "Volunteer" + name = "Volunteer" } + # A UPN can also be used as -UserId. -New-MgBetaUserCalendar -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserCalendar Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserCalendar -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserCalendar Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/New-MgBetaUserCalendarEvent.md b/src/Calendar/beta/examples/New-MgBetaUserCalendarEvent.md index 1287ea21331..daddd7466ec 100644 --- a/src/Calendar/beta/examples/New-MgBetaUserCalendarEvent.md +++ b/src/Calendar/beta/examples/New-MgBetaUserCalendarEvent.md @@ -1,73 +1,79 @@ -### Example 1: Using the New-MgBetaUserCalendarEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Create an event in a specific calendar + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does next month work for you?" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does mid month work for you?" } - Start = @{ - DateTime = "2019-03-10T12:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2019-03-15T12:00:00" + timeZone = "Pacific Standard Time" } - End = @{ - DateTime = "2019-03-10T14:00:00" - TimeZone = "Pacific Standard Time" + end = @{ + dateTime = "2019-03-15T14:00:00" + timeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "adelev@contoso.onmicrosoft.com" - Name = "Adele Vance" + emailAddress = @{ + address = "adelev@contoso.onmicrosoft.com" + name = "Adele Vance" } - Type = "required" + type = "required" } ) - TransactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" + transactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" } + # A UPN can also be used as -UserId. -New-MgBetaUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserCalendarEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaUserCalendarEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +New-MgBetaUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create and enable an event as an online meeting + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does next month work for you?" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does next month work for you?" } - Start = @{ - DateTime = "2019-03-10T12:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2019-03-10T12:00:00" + timeZone = "Pacific Standard Time" } - End = @{ - DateTime = "2019-03-10T14:00:00" - TimeZone = "Pacific Standard Time" + end = @{ + dateTime = "2019-03-10T14:00:00" + timeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "adelev@contoso.onmicrosoft.com" - Name = "Adele Vance" + emailAddress = @{ + address = "adelev@contoso.onmicrosoft.com" + name = "Adele Vance" } - Type = "required" + type = "required" } ) - IsOnlineMeeting = $true - OnlineMeetingProvider = "teamsForBusiness" + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" } + # A UPN can also be used as -UserId. -New-MgBetaUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserCalendarEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/New-MgBetaUserCalendarGroup.md b/src/Calendar/beta/examples/New-MgBetaUserCalendarGroup.md index f04fe04ecc6..e581c30d7da 100644 --- a/src/Calendar/beta/examples/New-MgBetaUserCalendarGroup.md +++ b/src/Calendar/beta/examples/New-MgBetaUserCalendarGroup.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Name = "Personal events" + name = "Personal events" } + # A UPN can also be used as -UserId. -New-MgBetaUserCalendarGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserCalendarGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserCalendarGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/New-MgBetaUserCalendarGroupCalendar.md b/src/Calendar/beta/examples/New-MgBetaUserCalendarGroupCalendar.md index 6784acaac86..6eae9e08b5e 100644 --- a/src/Calendar/beta/examples/New-MgBetaUserCalendarGroupCalendar.md +++ b/src/Calendar/beta/examples/New-MgBetaUserCalendarGroupCalendar.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaUserCalendarGroupCalendar Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Name = "Marketing calendar" + name = "Marketing calendar" } + # A UPN can also be used as -UserId. -New-MgBetaUserCalendarGroupCalendar -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserCalendarGroupCalendar Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserCalendarGroupCalendar -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserCalendarGroupCalendar Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/New-MgBetaUserEvent.md b/src/Calendar/beta/examples/New-MgBetaUserEvent.md index a7d08f8ef4f..be523f92ec5 100644 --- a/src/Calendar/beta/examples/New-MgBetaUserEvent.md +++ b/src/Calendar/beta/examples/New-MgBetaUserEvent.md @@ -1,236 +1,134 @@ -### Example 1: Using the New-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Subject = "Plan summer company picnic" - Body = @{ - ContentType = "HTML" - Content = "Let's kick-start this event planning!" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does noon work for you?" } - Start = @{ - DateTime = "2017-08-30T11:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2017-04-15T12:00:00" + timeZone = "Pacific Standard Time" } - End = @{ - DateTime = "2017-08-30T12:00:00" - TimeZone = "Pacific Standard Time" + end = @{ + dateTime = "2017-04-15T14:00:00" + timeZone = "Pacific Standard Time" } - Attendees = @( - @{ - EmailAddress = @{ - Address = "DanaS@contoso.onmicrosoft.com" - Name = "Dana Swope" - } - Type = "Required" - } - @{ - EmailAddress = @{ - Address = "AlexW@contoso.onmicrosoft.com" - Name = "Alex Wilber" - } - Type = "Required" - } - ) - Location = @{ - DisplayName = "Conf Room 3; Fourth Coffee; Home Office" - LocationType = "Default" + location = @{ + displayName = "Harry's Bar" } - Locations = @( - @{ - DisplayName = "Conf Room 3" - } + attendees = @( @{ - DisplayName = "Fourth Coffee" - Address = @{ - Street = "4567 Main St" - City = "Redmond" - State = "WA" - CountryOrRegion = "US" - PostalCode = "32008" + emailAddress = @{ + address = "samanthab@contoso.onmicrosoft.com" + name = "Samantha Booth" } - Coordinates = @{ - Latitude = 47.672 - Longitude = -102.103 - } - } - @{ - DisplayName = "Home Office" + type = "required" } ) - AllowNewTimeProposals = $true + allowNewTimeProposals = $true + transactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" } + # A UPN can also be used as -UserId. -New-MgBetaUserEvent -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +New-MgBetaUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserEvent 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.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does noon work for you?" - } - Start = @{ - DateTime = "2017-04-15T12:00:00" - TimeZone = "Pacific Standard Time" - } - End = @{ - DateTime = "2017-04-15T14:00:00" - TimeZone = "Pacific Standard Time" - } - Location = @{ - DisplayName = "Harry's Bar" - } - Attendees = @( - @{ - EmailAddress = @{ - Address = "samanthab@contoso.onmicrosoft.com" - Name = "Samantha Booth" - } - Type = "required" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does noon time work for you?" + } + start = @{ + dateTime = "2017-09-04T12:00:00" + timeZone = "Pacific Standard Time" + } + end = @{ + dateTime = "2017-09-04T14:00:00" + timeZone = "Pacific Standard Time" + } + recurrence = @{ + pattern = @{ + type = "weekly" + interval = 1 + daysOfWeek = @( + "Monday" + ) } - ) - AllowNewTimeProposals = $true - TransactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" -} -# A UPN can also be used as -UserId. -New-MgBetaUserEvent -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does noon work for you?" - } - Start = @{ - DateTime = "2017-04-15T12:00:00" - TimeZone = "Pacific Standard Time" - } - End = @{ - DateTime = "2017-04-15T14:00:00" - TimeZone = "Pacific Standard Time" - } - Location = @{ - DisplayName = "Harry's Bar" - } - Attendees = @( - @{ - EmailAddress = @{ - Address = "samanthab@contoso.onmicrosoft.com" - Name = "Samantha Booth" - } - Type = "required" + range = @{ + type = "endDate" + startDate = "2017-09-04" + endDate = "2017-12-31" } - ) - AllowNewTimeProposals = $true - IsOnlineMeeting = $true - OnlineMeetingProvider = "teamsForBusiness" -} -# A UPN can also be used as -UserId. -New-MgBetaUserEvent -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does noon work for you?" - } - Start = @{ - DateTime = "2020-02-25T12:00:00" - TimeZone = "Pacific Standard Time" - } - End = @{ - DateTime = "2020-02-25T14:00:00" - TimeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "AlexW@contoso.OnMicrosoft.com" - Name = "Alex Wilbur" + emailAddress = @{ + address = "AdeleV@contoso.onmicrosoft.com" + name = "Adele Vance" } - Type = "required" + type = "required" } ) - Recurrence = @{ - Pattern = @{ - Type = "daily" - Interval = 1 - } - Range = @{ - Type = "numbered" - StartDate = "2020-02-25" - NumberOfOccurrences = 2 - } - } + allowNewTimeProposals = $true } + # A UPN can also be used as -UserId. -New-MgBetaUserEvent -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +New-MgBetaUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does noon time work for you?" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does noon work for you?" } - Start = @{ - DateTime = "2017-09-04T12:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2017-04-15T12:00:00" + timeZone = "Pacific Standard Time" } - End = @{ - DateTime = "2017-09-04T14:00:00" - TimeZone = "Pacific Standard Time" - } - Recurrence = @{ - Pattern = @{ - Type = "weekly" - Interval = 1 - DaysOfWeek = @( - "Monday" - ) - } - Range = @{ - Type = "endDate" - StartDate = "2017-09-04" - EndDate = "2017-12-31" - } + end = @{ + dateTime = "2017-04-15T14:00:00" + timeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "AdeleV@contoso.onmicrosoft.com" - Name = "Adele Vance" + emailAddress = @{ + address = "samanthab@contoso.onmicrosoft.com" + name = "Samantha Booth" } - Type = "required" + type = "required" } ) + allowNewTimeProposals = $true + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" } + # A UPN can also be used as -UserId. -New-MgBetaUserEvent -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/New-MgBetaUserEventAttachment.md b/src/Calendar/beta/examples/New-MgBetaUserEventAttachment.md index 35ed18e5849..eba9017c656 100644 --- a/src/Calendar/beta/examples/New-MgBetaUserEventAttachment.md +++ b/src/Calendar/beta/examples/New-MgBetaUserEventAttachment.md @@ -1,60 +1,37 @@ -### Example 1: Using the New-MgBetaUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - "@odata.type" = "#microsoft.graph.fileAttachment" - Name = "menu.txt" - ContentBytes = "bWFjIGFuZCBjaGVlc2UgdG9kYXk=" + "@odata.type" = "microsoft.graph.fileAttachment" + name = "name-value" + contentType = "contentType-value" + isInline = $false + contentLocation = "contentLocation-value" + contentBytes = "base64-contentBytes-value" } + # A UPN can also be used as -UserId. -New-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - "@odata.type" = "#microsoft.graph.itemAttachment" - Name = "Holiday event" - Item = @{ - "@odata.type" = "microsoft.graph.event" - Subject = "Discuss gifts for children" - } -} -# A UPN can also be used as -UserId. -New-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +New-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserEventAttachment 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.Calendar + $params = @{ "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" - Name = "name-value" - Item = @{ + name = "name-value" + item = @{ "@odata.type" = "microsoft.graph.message" } } + # A UPN can also be used as -UserId. -New-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - "@odata.type" = "#microsoft.graph.referenceAttachment" - Name = "Personal pictures" - SourceUrl = "https://contoso.com/personal/mario_contoso_net/Documents/Pics" - ProviderType = "oneDriveConsumer" - Permission = "Edit" - IsFolder = "True" -} -# A UPN can also be used as -UserId. -New-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/New-MgBetaUserEventInstanceAttachment.md b/src/Calendar/beta/examples/New-MgBetaUserEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/New-MgBetaUserEventInstanceAttachment.md +++ b/src/Calendar/beta/examples/New-MgBetaUserEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Remove-MgBetaGroupCalendarPermission.md b/src/Calendar/beta/examples/Remove-MgBetaGroupCalendarPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaGroupCalendarPermission.md +++ b/src/Calendar/beta/examples/Remove-MgBetaGroupCalendarPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Remove-MgBetaGroupEvent.md b/src/Calendar/beta/examples/Remove-MgBetaGroupEvent.md index d5a8bf7c9c9..e2176fe3048 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaGroupEvent.md +++ b/src/Calendar/beta/examples/Remove-MgBetaGroupEvent.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaGroupEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -Remove-MgBetaGroupEvent -GroupId $groupId -EventId $eventId -``` -This example shows how to use the Remove-MgBetaGroupEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +Get-MgBetaGroupEvent -GroupId $groupId -EventId $eventId +``` +This example shows how to use the Remove-MgBetaBetaGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Remove-MgBetaGroupEventAttachment.md b/src/Calendar/beta/examples/Remove-MgBetaGroupEventAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaGroupEventAttachment.md +++ b/src/Calendar/beta/examples/Remove-MgBetaGroupEventAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Remove-MgBetaGroupEventExtension.md b/src/Calendar/beta/examples/Remove-MgBetaGroupEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaGroupEventExtension.md +++ b/src/Calendar/beta/examples/Remove-MgBetaGroupEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Remove-MgBetaGroupEventInstanceAttachment.md b/src/Calendar/beta/examples/Remove-MgBetaGroupEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaGroupEventInstanceAttachment.md +++ b/src/Calendar/beta/examples/Remove-MgBetaGroupEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Remove-MgBetaGroupEventInstanceExtension.md b/src/Calendar/beta/examples/Remove-MgBetaGroupEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaGroupEventInstanceExtension.md +++ b/src/Calendar/beta/examples/Remove-MgBetaGroupEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Remove-MgBetaPlace.md b/src/Calendar/beta/examples/Remove-MgBetaPlace.md index 24ec3d8779c..e37bfc37565 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaPlace.md +++ b/src/Calendar/beta/examples/Remove-MgBetaPlace.md @@ -1,20 +1,18 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +```powershell Import-Module Microsoft.Graph.Beta.Calendar $params = @{ "@odata.type" = "microsoft.graph.room" - Nickname = "Conf Room" - Building = "1" - Label = "100" - Capacity = - IsWheelChairAccessible = $false + nickname = "Conf Room" + building = "1" + label = "100" + capacity = + isWheelChairAccessible = $false } -Update-MgBetaPlace -PlaceId $placeId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaPlace Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPlace -PlaceId $placeId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPlace Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserCalendarGroup.md b/src/Calendar/beta/examples/Remove-MgBetaUserCalendarGroup.md index f00c63f9630..20195d65d53 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserCalendarGroup.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserCalendarGroup.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgBetaUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +$params = @{ + name = "name-value" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -``` -This example shows how to use the Remove-MgBetaUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserCalendarGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserCalendarPermission.md b/src/Calendar/beta/examples/Remove-MgBetaUserCalendarPermission.md index 09f85a553fb..71e8ab15fb0 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserCalendarPermission.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserCalendarPermission.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaUserCalendarPermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -Remove-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -``` -This example shows how to use the Remove-MgBetaUserCalendarPermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +$params = @{ + role = "write" +} + +Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserCalendarPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserEvent.md b/src/Calendar/beta/examples/Remove-MgBetaUserEvent.md index 53954c1c503..1a789b6454d 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserEvent.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserEvent.md @@ -1,8 +1,28 @@ -### Example 1: Using the Remove-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +$params = @{ + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + responseStatus = @{ + response = "" + time = [System.DateTime]::Parse("datetime-value") + } + recurrence = $null + reminderMinutesBeforeStart = 99 + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" + isReminderOn = $true + hideAttendees = $false + categories = @( + "Red category" + ) +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserEvent -UserId $userId -EventId $eventId -``` -This example shows how to use the Remove-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserEventAttachment.md b/src/Calendar/beta/examples/Remove-MgBetaUserEventAttachment.md index 675a684b5cc..7d9070b8089 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserEventAttachment.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserEventAttachment.md @@ -1,8 +1,10 @@ -### Example 1: Using the Remove-MgBetaUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + # A UPN can also be used as -UserId. -Remove-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId -``` -This example shows how to use the Remove-MgBetaUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId +``` +This example shows how to use the Remove-MgBetaBetaUserEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserEventExtension.md b/src/Calendar/beta/examples/Remove-MgBetaUserEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserEventExtension.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserEventInstanceAttachment.md b/src/Calendar/beta/examples/Remove-MgBetaUserEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserEventInstanceAttachment.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Remove-MgBetaUserEventInstanceExtension.md b/src/Calendar/beta/examples/Remove-MgBetaUserEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Remove-MgBetaUserEventInstanceExtension.md +++ b/src/Calendar/beta/examples/Remove-MgBetaUserEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Update-MgBetaGroupCalendarPermission.md b/src/Calendar/beta/examples/Update-MgBetaGroupCalendarPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Update-MgBetaGroupCalendarPermission.md +++ b/src/Calendar/beta/examples/Update-MgBetaGroupCalendarPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Update-MgBetaGroupEvent.md b/src/Calendar/beta/examples/Update-MgBetaGroupEvent.md index 4bddd72541e..f0b3d0135ba 100644 --- a/src/Calendar/beta/examples/Update-MgBetaGroupEvent.md +++ b/src/Calendar/beta/examples/Update-MgBetaGroupEvent.md @@ -1,18 +1,9 @@ -### Example 1: Using the Update-MgBetaGroupEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - OriginalStartTimeZone = "originalStartTimeZone-value" - OriginalEndTimeZone = "originalEndTimeZone-value" - ResponseStatus = @{ - Response = "" - Time = [System.DateTime]::Parse("datetime-value") - } - Uid = "iCalUId-value" - ReminderMinutesBeforeStart = 99 - IsReminderOn = $true -} -Update-MgBetaGroupEvent -GroupId $groupId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaGroupEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + +Get-MgBetaGroupEvent -GroupId $groupId -EventId $eventId +``` +This example shows how to use the Update-MgBetaBetaGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Update-MgBetaGroupEventExtension.md b/src/Calendar/beta/examples/Update-MgBetaGroupEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Update-MgBetaGroupEventExtension.md +++ b/src/Calendar/beta/examples/Update-MgBetaGroupEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Update-MgBetaGroupEventInstanceExtension.md b/src/Calendar/beta/examples/Update-MgBetaGroupEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Update-MgBetaGroupEventInstanceExtension.md +++ b/src/Calendar/beta/examples/Update-MgBetaGroupEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Update-MgBetaPlace.md b/src/Calendar/beta/examples/Update-MgBetaPlace.md index 725e9f1bc33..3ece786c58c 100644 --- a/src/Calendar/beta/examples/Update-MgBetaPlace.md +++ b/src/Calendar/beta/examples/Update-MgBetaPlace.md @@ -1,56 +1,18 @@ -### Example 1: Using the Update-MgBetaPlace Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ "@odata.type" = "microsoft.graph.room" - Nickname = "Conf Room" - Building = "1" - Label = "100" - Capacity = - IsWheelChairAccessible = $false + nickname = "Conf Room" + building = "1" + label = "100" + capacity = + isWheelChairAccessible = $false } -Update-MgBetaPlace -PlaceId $placeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlace Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaPlace Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - "@odata.type" = "microsoft.graph.roomList" - DisplayName = "Building 1" - Phone = "555-555-0100" - Address = @{ - Street = "4567 Main Street" - City = "Buffalo" - State = "NY" - PostalCode = "98052" - CountryOrRegion = "USA" - } - GeoCoordinates = @{ - Altitude = $null - Latitude = 47 - Longitude = -122 - Accuracy = $null - AltitudeAccuracy = $null - } -} -Update-MgBetaPlace -PlaceId $placeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlace Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgBetaPlace Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar -$params = @{ - "@odata.type" = "microsoft.graph.workspace" - Nickname = "Conf Room" - Building = "1" - Label = "100" - Capacity = - IsWheelChairAccessible = $false -} -Update-MgBetaPlace -PlaceId $placeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlace Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPlace -PlaceId $placeId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPlace Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Update-MgBetaUserCalendarGroup.md b/src/Calendar/beta/examples/Update-MgBetaUserCalendarGroup.md index 23768411005..45cfa184148 100644 --- a/src/Calendar/beta/examples/Update-MgBetaUserCalendarGroup.md +++ b/src/Calendar/beta/examples/Update-MgBetaUserCalendarGroup.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Name = "name-value" + name = "name-value" } + # A UPN can also be used as -UserId. -Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserCalendarGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Update-MgBetaUserCalendarPermission.md b/src/Calendar/beta/examples/Update-MgBetaUserCalendarPermission.md index c3060e518e9..ac9e3fd94d7 100644 --- a/src/Calendar/beta/examples/Update-MgBetaUserCalendarPermission.md +++ b/src/Calendar/beta/examples/Update-MgBetaUserCalendarPermission.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaUserCalendarPermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - Role = "write" + role = "write" } -Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserCalendarPermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserCalendarPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Update-MgBetaUserEvent.md b/src/Calendar/beta/examples/Update-MgBetaUserEvent.md index 82017fc9f44..98e447531be 100644 --- a/src/Calendar/beta/examples/Update-MgBetaUserEvent.md +++ b/src/Calendar/beta/examples/Update-MgBetaUserEvent.md @@ -1,26 +1,28 @@ -### Example 1: Using the Update-MgBetaUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Calendar + $params = @{ - OriginalStartTimeZone = "originalStartTimeZone-value" - OriginalEndTimeZone = "originalEndTimeZone-value" - ResponseStatus = @{ - Response = "" - Time = [System.DateTime]::Parse("2016-10-19T10:37:00Z") + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + responseStatus = @{ + response = "" + time = [System.DateTime]::Parse("datetime-value") } - Recurrence = $null - Uid = "iCalUId-value" - ReminderMinutesBeforeStart = 99 - IsOnlineMeeting = $true - OnlineMeetingProvider = "teamsForBusiness" - IsReminderOn = $true - HideAttendees = $false - Categories = @( + recurrence = $null + reminderMinutesBeforeStart = 99 + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" + isReminderOn = $true + hideAttendees = $false + categories = @( "Red category" ) } + # A UPN can also be used as -UserId. -Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/beta/examples/Update-MgBetaUserEventExtension.md b/src/Calendar/beta/examples/Update-MgBetaUserEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Update-MgBetaUserEventExtension.md +++ b/src/Calendar/beta/examples/Update-MgBetaUserEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/beta/examples/Update-MgBetaUserEventInstanceExtension.md b/src/Calendar/beta/examples/Update-MgBetaUserEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/beta/examples/Update-MgBetaUserEventInstanceExtension.md +++ b/src/Calendar/beta/examples/Update-MgBetaUserEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Get-MgGroupCalendarPermission.md b/src/Calendar/v1.0/examples/Get-MgGroupCalendarPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Get-MgGroupCalendarPermission.md +++ b/src/Calendar/v1.0/examples/Get-MgGroupCalendarPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Get-MgGroupEvent.md b/src/Calendar/v1.0/examples/Get-MgGroupEvent.md index 576d1eba13b..465a54865d8 100644 --- a/src/Calendar/v1.0/examples/Get-MgGroupEvent.md +++ b/src/Calendar/v1.0/examples/Get-MgGroupEvent.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgGroupEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -Get-MgGroupEvent -GroupId $groupId -EventId $eventId -``` -This example shows how to use the Get-MgGroupEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgGroupEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -Get-MgGroupEvent -GroupId $groupId -``` -This example shows how to use the Get-MgGroupEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +Get-MgGroupEvent -GroupId $groupId -EventId $eventId +``` +This example shows how to use the Get-MgGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Get-MgGroupEventAttachment.md b/src/Calendar/v1.0/examples/Get-MgGroupEventAttachment.md index 4cb7ac8014c..61b0eeddf92 100644 --- a/src/Calendar/v1.0/examples/Get-MgGroupEventAttachment.md +++ b/src/Calendar/v1.0/examples/Get-MgGroupEventAttachment.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Calendar # A UPN can also be used as -UserId. -Get-MgUserEventAttachment -UserId $userId -EventId $eventId +Remove-MgUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId ``` This example shows how to use the Get-MgGroupEventAttachment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/Get-MgGroupEventExtension.md b/src/Calendar/v1.0/examples/Get-MgGroupEventExtension.md index b7963e8c734..101546890e7 100644 --- a/src/Calendar/v1.0/examples/Get-MgGroupEventExtension.md +++ b/src/Calendar/v1.0/examples/Get-MgGroupEventExtension.md @@ -1,7 +1,48 @@ -### Example 1: Using the Get-MgGroupEventExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -Get-MgGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId -``` -This example shows how to use the Get-MgGroupEventExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgGroupEventExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +Get-MgGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgGroupEventExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgGroupEventExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +Get-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgGroupEventExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgGroupEventExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceAttachment.md b/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceAttachment.md +++ b/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceExtension.md b/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceExtension.md +++ b/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Get-MgUserCalendarGroup.md b/src/Calendar/v1.0/examples/Get-MgUserCalendarGroup.md index 991c27561b2..2f8cde87bb4 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserCalendarGroup.md +++ b/src/Calendar/v1.0/examples/Get-MgUserCalendarGroup.md @@ -1,16 +1,14 @@ -### Example 1: Using the Get-MgUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +$params = @{ + name = "name-value" +} + # A UPN can also be used as -UserId. -Get-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -``` -This example shows how to use the Get-MgUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -# A UPN can also be used as -UserId. -Get-MgUserCalendarGroup -UserId $userId -``` -This example shows how to use the Get-MgUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +``` +This example shows how to use the Get-MgUserCalendarGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Get-MgUserCalendarPermission.md b/src/Calendar/v1.0/examples/Get-MgUserCalendarPermission.md index 7c6799f1684..8299031beae 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserCalendarPermission.md +++ b/src/Calendar/v1.0/examples/Get-MgUserCalendarPermission.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgUserCalendarPermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -Get-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -``` -This example shows how to use the Get-MgUserCalendarPermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +$params = @{ + role = "write" +} + +Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +``` +This example shows how to use the Get-MgUserCalendarPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Get-MgUserDefaultCalendar.md b/src/Calendar/v1.0/examples/Get-MgUserDefaultCalendar.md index 9fed45b71bd..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserDefaultCalendar.md +++ b/src/Calendar/v1.0/examples/Get-MgUserDefaultCalendar.md @@ -1,8 +1,17 @@ -### Example 1: Using the Get-MgUserDefaultCalendar Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Calendar -# A UPN can also be used as -UserId. -Get-MgUserDefaultCalendar -UserId $userId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgUserDefaultCalendar Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Calendar/v1.0/examples/Get-MgUserEvent.md b/src/Calendar/v1.0/examples/Get-MgUserEvent.md index 2b0291b584b..2c6dc0c99c6 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserEvent.md +++ b/src/Calendar/v1.0/examples/Get-MgUserEvent.md @@ -1,24 +1,28 @@ -### Example 1: Using the Get-MgUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +$params = @{ + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + responseStatus = @{ + response = "" + time = [System.DateTime]::Parse("datetime-value") + } + recurrence = $null + reminderMinutesBeforeStart = 99 + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" + isReminderOn = $true + hideAttendees = $false + categories = @( + "Red category" + ) +} + # A UPN can also be used as -UserId. -Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" -``` -This example shows how to use the Get-MgUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -# A UPN can also be used as -UserId. -Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" -``` -This example shows how to use the Get-MgUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -# A UPN can also be used as -UserId. -Get-MgUserEvent -UserId $userId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location" -``` -This example shows how to use the Get-MgUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Get-MgUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Get-MgUserEventAttachment.md b/src/Calendar/v1.0/examples/Get-MgUserEventAttachment.md index 112c7fcde4e..bb19a840d4d 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserEventAttachment.md +++ b/src/Calendar/v1.0/examples/Get-MgUserEventAttachment.md @@ -1,8 +1,10 @@ -### Example 1: Using the Get-MgUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + # A UPN can also be used as -UserId. -Get-MgUserEventAttachment -UserId $userId -EventId $eventId -``` -This example shows how to use the Get-MgUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgUserEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Get-MgUserEventExtension.md b/src/Calendar/v1.0/examples/Get-MgUserEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserEventExtension.md +++ b/src/Calendar/v1.0/examples/Get-MgUserEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Get-MgUserEventInstanceAttachment.md b/src/Calendar/v1.0/examples/Get-MgUserEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserEventInstanceAttachment.md +++ b/src/Calendar/v1.0/examples/Get-MgUserEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Get-MgUserEventInstanceExtension.md b/src/Calendar/v1.0/examples/Get-MgUserEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Get-MgUserEventInstanceExtension.md +++ b/src/Calendar/v1.0/examples/Get-MgUserEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/New-MgGroupEvent.md b/src/Calendar/v1.0/examples/New-MgGroupEvent.md index a969a29ae5c..102157601b5 100644 --- a/src/Calendar/v1.0/examples/New-MgGroupEvent.md +++ b/src/Calendar/v1.0/examples/New-MgGroupEvent.md @@ -1,34 +1,37 @@ -### Example 1: Using the New-MgGroupEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does late morning work for you?" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does late morning work for you?" } - Start = @{ - DateTime = "2019-06-16T12:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2019-06-16T12:00:00" + timeZone = "Pacific Standard Time" } - End = @{ - DateTime = "2019-06-16T14:00:00" - TimeZone = "Pacific Standard Time" + end = @{ + dateTime = "2019-06-16T14:00:00" + timeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "adelev@contoso.onmicrosoft.com" - Name = "Adele Vance" + emailAddress = @{ + address = "adelev@contoso.onmicrosoft.com" + name = "Adele Vance" } - Type = "required" + type = "required" } ) } -New-MgGroupEvent -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgGroupEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgGroupEvent -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/New-MgGroupEventAttachment.md b/src/Calendar/v1.0/examples/New-MgGroupEventAttachment.md index 770da03b5ef..d78a02a50ed 100644 --- a/src/Calendar/v1.0/examples/New-MgGroupEventAttachment.md +++ b/src/Calendar/v1.0/examples/New-MgGroupEventAttachment.md @@ -1,9 +1,36 @@ ### Example 1: Code snippet +```powershell Import-Module Microsoft.Graph.Mail + +$params = @{ + "@odata.type" = "microsoft.graph.fileAttachment" + name = "name-value" + contentType = "contentType-value" + isInline = $false + contentLocation = "contentLocation-value" + contentBytes = "base64-contentBytes-value" +} + +# A UPN can also be used as -UserId. +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgGroupEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + ```powershell Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" + name = "name-value" + item = @{ + "@odata.type" = "microsoft.graph.message" + } +} + # A UPN can also be used as -UserId. -Get-MgUserEventAttachment -UserId $userId -EventId $eventId +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params ``` This example shows how to use the New-MgGroupEventAttachment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/v1.0/examples/New-MgGroupEventInstanceAttachment.md b/src/Calendar/v1.0/examples/New-MgGroupEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/New-MgGroupEventInstanceAttachment.md +++ b/src/Calendar/v1.0/examples/New-MgGroupEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/New-MgUserCalendar.md b/src/Calendar/v1.0/examples/New-MgUserCalendar.md index 781e86826e4..9f575619f2b 100644 --- a/src/Calendar/v1.0/examples/New-MgUserCalendar.md +++ b/src/Calendar/v1.0/examples/New-MgUserCalendar.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserCalendar Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Name = "Volunteer" + name = "Volunteer" } + # A UPN can also be used as -UserId. -New-MgUserCalendar -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserCalendar Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserCalendar -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserCalendar Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/New-MgUserCalendarEvent.md b/src/Calendar/v1.0/examples/New-MgUserCalendarEvent.md index aa4b94d60e7..4a1cf3ffd1a 100644 --- a/src/Calendar/v1.0/examples/New-MgUserCalendarEvent.md +++ b/src/Calendar/v1.0/examples/New-MgUserCalendarEvent.md @@ -1,73 +1,79 @@ -### Example 1: Using the New-MgUserCalendarEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Create an event in a specific calendar + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does mid month work for you?" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does mid month work for you?" } - Start = @{ - DateTime = "2019-03-15T12:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2019-03-15T12:00:00" + timeZone = "Pacific Standard Time" } - End = @{ - DateTime = "2019-03-15T14:00:00" - TimeZone = "Pacific Standard Time" + end = @{ + dateTime = "2019-03-15T14:00:00" + timeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "adelev@contoso.onmicrosoft.com" - Name = "Adele Vance" + emailAddress = @{ + address = "adelev@contoso.onmicrosoft.com" + name = "Adele Vance" } - Type = "required" + type = "required" } ) - TransactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" + transactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" } + # A UPN can also be used as -UserId. -New-MgUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params -``` -This example shows how to use the New-MgUserCalendarEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgUserCalendarEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +New-MgUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params +``` +This example shows how to use the New-MgUserCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create and enable an event as an online meeting + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does next month work for you?" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does next month work for you?" } - Start = @{ - DateTime = "2019-03-10T12:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2019-03-10T12:00:00" + timeZone = "Pacific Standard Time" } - End = @{ - DateTime = "2019-03-10T14:00:00" - TimeZone = "Pacific Standard Time" + end = @{ + dateTime = "2019-03-10T14:00:00" + timeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "adelev@contoso.onmicrosoft.com" - Name = "Adele Vance" + emailAddress = @{ + address = "adelev@contoso.onmicrosoft.com" + name = "Adele Vance" } - Type = "required" + type = "required" } ) - IsOnlineMeeting = $true - OnlineMeetingProvider = "teamsForBusiness" + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" } + # A UPN can also be used as -UserId. -New-MgUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params -``` -This example shows how to use the New-MgUserCalendarEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params +``` +This example shows how to use the New-MgUserCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/New-MgUserCalendarGroup.md b/src/Calendar/v1.0/examples/New-MgUserCalendarGroup.md index 59deb1bb319..fd5bf39513d 100644 --- a/src/Calendar/v1.0/examples/New-MgUserCalendarGroup.md +++ b/src/Calendar/v1.0/examples/New-MgUserCalendarGroup.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Name = "Personal events" + name = "Personal events" } + # A UPN can also be used as -UserId. -New-MgUserCalendarGroup -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserCalendarGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserCalendarGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/New-MgUserCalendarGroupCalendar.md b/src/Calendar/v1.0/examples/New-MgUserCalendarGroupCalendar.md index a86929c5c42..214c8d4acc7 100644 --- a/src/Calendar/v1.0/examples/New-MgUserCalendarGroupCalendar.md +++ b/src/Calendar/v1.0/examples/New-MgUserCalendarGroupCalendar.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserCalendarGroupCalendar Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Name = "Marketing calendar" + name = "Marketing calendar" } + # A UPN can also be used as -UserId. -New-MgUserCalendarGroupCalendar -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params -``` -This example shows how to use the New-MgUserCalendarGroupCalendar Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserCalendarGroupCalendar -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +``` +This example shows how to use the New-MgUserCalendarGroupCalendar Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/New-MgUserEvent.md b/src/Calendar/v1.0/examples/New-MgUserEvent.md index 7e24cd6a52a..c7e9fb9a2dc 100644 --- a/src/Calendar/v1.0/examples/New-MgUserEvent.md +++ b/src/Calendar/v1.0/examples/New-MgUserEvent.md @@ -1,191 +1,134 @@ -### Example 1: Using the New-MgUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Subject = "Plan summer company picnic" - Body = @{ - ContentType = "HTML" - Content = "Let's kick-start this event planning!" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does noon work for you?" } - Start = @{ - DateTime = "2017-08-30T11:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2017-04-15T12:00:00" + timeZone = "Pacific Standard Time" } - End = @{ - DateTime = "2017-08-30T12:00:00" - TimeZone = "Pacific Standard Time" + end = @{ + dateTime = "2017-04-15T14:00:00" + timeZone = "Pacific Standard Time" } - Attendees = @( - @{ - EmailAddress = @{ - Address = "DanaS@contoso.onmicrosoft.com" - Name = "Dana Swope" - } - Type = "Required" - } - @{ - EmailAddress = @{ - Address = "AlexW@contoso.onmicrosoft.com" - Name = "Alex Wilber" - } - Type = "Required" - } - ) - Location = @{ - DisplayName = "Conf Room 3; Fourth Coffee; Home Office" - LocationType = "Default" + location = @{ + displayName = "Harry's Bar" } - Locations = @( - @{ - DisplayName = "Conf Room 3" - } + attendees = @( @{ - DisplayName = "Fourth Coffee" - Address = @{ - Street = "4567 Main St" - City = "Redmond" - State = "WA" - CountryOrRegion = "US" - PostalCode = "32008" - } - Coordinates = @{ - Latitude = 47.672 - Longitude = -102.103 + emailAddress = @{ + address = "samanthab@contoso.onmicrosoft.com" + name = "Samantha Booth" } - } - @{ - DisplayName = "Home Office" + type = "required" } ) - AllowNewTimeProposals = $true + allowNewTimeProposals = $true + transactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" } + # A UPN can also be used as -UserId. -New-MgUserEvent -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +New-MgUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does noon work for you?" - } - Start = @{ - DateTime = "2017-04-15T12:00:00" - TimeZone = "Pacific Standard Time" - } - End = @{ - DateTime = "2017-04-15T14:00:00" - TimeZone = "Pacific Standard Time" - } - Location = @{ - DisplayName = "Harry's Bar" - } - Attendees = @( - @{ - EmailAddress = @{ - Address = "samanthab@contoso.onmicrosoft.com" - Name = "Samantha Booth" - } - Type = "required" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does noon time work for you?" + } + start = @{ + dateTime = "2017-09-04T12:00:00" + timeZone = "Pacific Standard Time" + } + end = @{ + dateTime = "2017-09-04T14:00:00" + timeZone = "Pacific Standard Time" + } + recurrence = @{ + pattern = @{ + type = "weekly" + interval = 1 + daysOfWeek = @( + "Monday" + ) + } + range = @{ + type = "endDate" + startDate = "2017-09-04" + endDate = "2017-12-31" } - ) - AllowNewTimeProposals = $true - TransactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" -} -# A UPN can also be used as -UserId. -New-MgUserEvent -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -$params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does noon work for you?" - } - Start = @{ - DateTime = "2017-04-15T12:00:00" - TimeZone = "Pacific Standard Time" - } - End = @{ - DateTime = "2017-04-15T14:00:00" - TimeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "samanthab@contoso.onmicrosoft.com" - Name = "Samantha Booth" + emailAddress = @{ + address = "AdeleV@contoso.onmicrosoft.com" + name = "Adele Vance" } - Type = "required" + type = "required" } ) - AllowNewTimeProposals = $true - IsOnlineMeeting = $true - OnlineMeetingProvider = "teamsForBusiness" + allowNewTimeProposals = $true } + # A UPN can also be used as -UserId. -New-MgUserEvent -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +New-MgUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Subject = "Let's go for lunch" - Body = @{ - ContentType = "HTML" - Content = "Does noon time work for you?" - } - Start = @{ - DateTime = "2017-09-04T12:00:00" - TimeZone = "Pacific Standard Time" + subject = "Let's go for lunch" + body = @{ + contentType = "HTML" + content = "Does noon work for you?" } - End = @{ - DateTime = "2017-09-04T14:00:00" - TimeZone = "Pacific Standard Time" + start = @{ + dateTime = "2017-04-15T12:00:00" + timeZone = "Pacific Standard Time" } - Recurrence = @{ - Pattern = @{ - Type = "weekly" - Interval = 1 - DaysOfWeek = @( - "Monday" - ) - } - Range = @{ - Type = "endDate" - StartDate = "2017-09-04" - EndDate = "2017-12-31" - } + end = @{ + dateTime = "2017-04-15T14:00:00" + timeZone = "Pacific Standard Time" } - Location = @{ - DisplayName = "Harry's Bar" + location = @{ + displayName = "Harry's Bar" } - Attendees = @( + attendees = @( @{ - EmailAddress = @{ - Address = "AdeleV@contoso.onmicrosoft.com" - Name = "Adele Vance" + emailAddress = @{ + address = "samanthab@contoso.onmicrosoft.com" + name = "Samantha Booth" } - Type = "required" + type = "required" } ) - AllowNewTimeProposals = $true + allowNewTimeProposals = $true + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" } + # A UPN can also be used as -UserId. -New-MgUserEvent -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/New-MgUserEventAttachment.md b/src/Calendar/v1.0/examples/New-MgUserEventAttachment.md index 0f1d8d5ddec..f5d70658dc6 100644 --- a/src/Calendar/v1.0/examples/New-MgUserEventAttachment.md +++ b/src/Calendar/v1.0/examples/New-MgUserEventAttachment.md @@ -1,44 +1,37 @@ -### Example 1: Using the New-MgUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ - "@odata.type" = "#microsoft.graph.fileAttachment" - Name = "menu.txt" - ContentBytes = "base64bWFjIGFuZCBjaGVlc2UgdG9kYXk=" + "@odata.type" = "microsoft.graph.fileAttachment" + name = "name-value" + contentType = "contentType-value" + isInline = $false + contentLocation = "contentLocation-value" + contentBytes = "base64-contentBytes-value" } + # A UPN can also be used as -UserId. -New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the New-MgUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -$params = @{ - "@odata.type" = "#microsoft.graph.itemAttachment" - Name = "Holiday event" - Item = @{ - "@odata.type" = "microsoft.graph.event" - Subject = "Discuss gifts for children" - } -} -# A UPN can also be used as -UserId. -New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the New-MgUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" - Name = "name-value" - Item = @{ + name = "name-value" + item = @{ "@odata.type" = "microsoft.graph.message" } } + # A UPN can also be used as -UserId. -New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the New-MgUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/New-MgUserEventInstanceAttachment.md b/src/Calendar/v1.0/examples/New-MgUserEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/New-MgUserEventInstanceAttachment.md +++ b/src/Calendar/v1.0/examples/New-MgUserEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Remove-MgGroupCalendarPermission.md b/src/Calendar/v1.0/examples/Remove-MgGroupCalendarPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Remove-MgGroupCalendarPermission.md +++ b/src/Calendar/v1.0/examples/Remove-MgGroupCalendarPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Remove-MgGroupEvent.md b/src/Calendar/v1.0/examples/Remove-MgGroupEvent.md index b69e6e26919..902a1184671 100644 --- a/src/Calendar/v1.0/examples/Remove-MgGroupEvent.md +++ b/src/Calendar/v1.0/examples/Remove-MgGroupEvent.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgGroupEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -Remove-MgGroupEvent -GroupId $groupId -EventId $eventId -``` -This example shows how to use the Remove-MgGroupEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +Get-MgGroupEvent -GroupId $groupId -EventId $eventId +``` +This example shows how to use the Remove-MgGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Remove-MgGroupEventAttachment.md b/src/Calendar/v1.0/examples/Remove-MgGroupEventAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Remove-MgGroupEventAttachment.md +++ b/src/Calendar/v1.0/examples/Remove-MgGroupEventAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Remove-MgGroupEventExtension.md b/src/Calendar/v1.0/examples/Remove-MgGroupEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Remove-MgGroupEventExtension.md +++ b/src/Calendar/v1.0/examples/Remove-MgGroupEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Remove-MgGroupEventInstanceAttachment.md b/src/Calendar/v1.0/examples/Remove-MgGroupEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Remove-MgGroupEventInstanceAttachment.md +++ b/src/Calendar/v1.0/examples/Remove-MgGroupEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Remove-MgGroupEventInstanceExtension.md b/src/Calendar/v1.0/examples/Remove-MgGroupEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Remove-MgGroupEventInstanceExtension.md +++ b/src/Calendar/v1.0/examples/Remove-MgGroupEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Remove-MgPlace.md b/src/Calendar/v1.0/examples/Remove-MgPlace.md index ffe4e5f0b45..3bc607a00fb 100644 --- a/src/Calendar/v1.0/examples/Remove-MgPlace.md +++ b/src/Calendar/v1.0/examples/Remove-MgPlace.md @@ -4,11 +4,11 @@ $params = @{ "@odata.type" = "microsoft.graph.room" - Nickname = "Conf Room" - Building = "1" - Label = "100" - Capacity = - IsWheelChairAccessible = $false + nickname = "Conf Room" + building = "1" + label = "100" + capacity = + isWheelChairAccessible = $false } Update-MgPlace -PlaceId $placeId -BodyParameter $params diff --git a/src/Calendar/v1.0/examples/Remove-MgUserCalendarGroup.md b/src/Calendar/v1.0/examples/Remove-MgUserCalendarGroup.md index 0a5a38ea9a2..7d12c8c6671 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserCalendarGroup.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserCalendarGroup.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +$params = @{ + name = "name-value" +} + # A UPN can also be used as -UserId. -Remove-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -``` -This example shows how to use the Remove-MgUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserCalendarGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Remove-MgUserCalendarPermission.md b/src/Calendar/v1.0/examples/Remove-MgUserCalendarPermission.md index a8dec818457..3b5e14b1759 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserCalendarPermission.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserCalendarPermission.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgUserCalendarPermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -Remove-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -``` -This example shows how to use the Remove-MgUserCalendarPermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +$params = @{ + role = "write" +} + +Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserCalendarPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Remove-MgUserEvent.md b/src/Calendar/v1.0/examples/Remove-MgUserEvent.md index 83f110d9576..c8a2e6e6ea0 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserEvent.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserEvent.md @@ -1,8 +1,28 @@ -### Example 1: Using the Remove-MgUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +$params = @{ + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + responseStatus = @{ + response = "" + time = [System.DateTime]::Parse("datetime-value") + } + recurrence = $null + reminderMinutesBeforeStart = 99 + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" + isReminderOn = $true + hideAttendees = $false + categories = @( + "Red category" + ) +} + # A UPN can also be used as -UserId. -Remove-MgUserEvent -UserId $userId -EventId $eventId -``` -This example shows how to use the Remove-MgUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Remove-MgUserEventAttachment.md b/src/Calendar/v1.0/examples/Remove-MgUserEventAttachment.md index d12deabc02e..7c4b53cd866 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserEventAttachment.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserEventAttachment.md @@ -1,8 +1,10 @@ -### Example 1: Using the Remove-MgUserEventAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + # A UPN can also be used as -UserId. -Remove-MgUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId -``` -This example shows how to use the Remove-MgUserEventAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId +``` +This example shows how to use the Remove-MgUserEventAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Remove-MgUserEventExtension.md b/src/Calendar/v1.0/examples/Remove-MgUserEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserEventExtension.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Remove-MgUserEventInstanceAttachment.md b/src/Calendar/v1.0/examples/Remove-MgUserEventInstanceAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserEventInstanceAttachment.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserEventInstanceAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Remove-MgUserEventInstanceExtension.md b/src/Calendar/v1.0/examples/Remove-MgUserEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Remove-MgUserEventInstanceExtension.md +++ b/src/Calendar/v1.0/examples/Remove-MgUserEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Update-MgGroupCalendarPermission.md b/src/Calendar/v1.0/examples/Update-MgGroupCalendarPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Update-MgGroupCalendarPermission.md +++ b/src/Calendar/v1.0/examples/Update-MgGroupCalendarPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Update-MgGroupEvent.md b/src/Calendar/v1.0/examples/Update-MgGroupEvent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Update-MgGroupEvent.md +++ b/src/Calendar/v1.0/examples/Update-MgGroupEvent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Update-MgGroupEventExtension.md b/src/Calendar/v1.0/examples/Update-MgGroupEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Update-MgGroupEventExtension.md +++ b/src/Calendar/v1.0/examples/Update-MgGroupEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Update-MgGroupEventInstanceExtension.md b/src/Calendar/v1.0/examples/Update-MgGroupEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Update-MgGroupEventInstanceExtension.md +++ b/src/Calendar/v1.0/examples/Update-MgGroupEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Update-MgPlace.md b/src/Calendar/v1.0/examples/Update-MgPlace.md index cb3f45cc1af..b079cacb455 100644 --- a/src/Calendar/v1.0/examples/Update-MgPlace.md +++ b/src/Calendar/v1.0/examples/Update-MgPlace.md @@ -1,41 +1,18 @@ -### Example 1: Using the Update-MgPlace Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ "@odata.type" = "microsoft.graph.room" - Nickname = "Conf Room" - Building = "1" - Label = "100" - Capacity = - IsWheelChairAccessible = $false + nickname = "Conf Room" + building = "1" + label = "100" + capacity = + isWheelChairAccessible = $false } -Update-MgPlace -PlaceId $placeId -BodyParameter $params -``` -This example shows how to use the Update-MgPlace Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgPlace Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar -$params = @{ - "@odata.type" = "microsoft.graph.roomList" - DisplayName = "Building 1" - Phone = "555-555-0100" - Address = @{ - Street = "4567 Main Street" - City = "Buffalo" - State = "NY" - PostalCode = "98052" - CountryOrRegion = "USA" - } - GeoCoordinates = @{ - Altitude = $null - Latitude = 47 - Longitude = -122 - Accuracy = $null - AltitudeAccuracy = $null - } -} -Update-MgPlace -PlaceId $placeId -BodyParameter $params -``` -This example shows how to use the Update-MgPlace Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPlace -PlaceId $placeId -BodyParameter $params +``` +This example shows how to use the Update-MgPlace Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Update-MgUserCalendarGroup.md b/src/Calendar/v1.0/examples/Update-MgUserCalendarGroup.md index b97af7a03ef..27537922be6 100644 --- a/src/Calendar/v1.0/examples/Update-MgUserCalendarGroup.md +++ b/src/Calendar/v1.0/examples/Update-MgUserCalendarGroup.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgUserCalendarGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Name = "name-value" + name = "name-value" } + # A UPN can also be used as -UserId. -Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params -``` -This example shows how to use the Update-MgUserCalendarGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params +``` +This example shows how to use the Update-MgUserCalendarGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Update-MgUserCalendarPermission.md b/src/Calendar/v1.0/examples/Update-MgUserCalendarPermission.md index c18b7480d51..9c7234563db 100644 --- a/src/Calendar/v1.0/examples/Update-MgUserCalendarPermission.md +++ b/src/Calendar/v1.0/examples/Update-MgUserCalendarPermission.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgUserCalendarPermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - Role = "write" + role = "write" } -Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params -``` -This example shows how to use the Update-MgUserCalendarPermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params +``` +This example shows how to use the Update-MgUserCalendarPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Update-MgUserEvent.md b/src/Calendar/v1.0/examples/Update-MgUserEvent.md index cdef5fa6cdd..a5d3e8ae0b8 100644 --- a/src/Calendar/v1.0/examples/Update-MgUserEvent.md +++ b/src/Calendar/v1.0/examples/Update-MgUserEvent.md @@ -1,25 +1,28 @@ -### Example 1: Using the Update-MgUserEvent Cmdlet -```powershell -Import-Module Microsoft.Graph.Calendar +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - OriginalStartTimeZone = "originalStartTimeZone-value" - OriginalEndTimeZone = "originalEndTimeZone-value" - ResponseStatus = @{ - Response = "" - Time = [System.DateTime]::Parse("datetime-value") + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + responseStatus = @{ + response = "" + time = [System.DateTime]::Parse("datetime-value") } - Recurrence = $null - ReminderMinutesBeforeStart = 99 - IsOnlineMeeting = $true - OnlineMeetingProvider = "teamsForBusiness" - IsReminderOn = $true - HideAttendees = $false - Categories = @( + recurrence = $null + reminderMinutesBeforeStart = 99 + isOnlineMeeting = $true + onlineMeetingProvider = "teamsForBusiness" + isReminderOn = $true + hideAttendees = $false + categories = @( "Red category" ) } + # A UPN can also be used as -UserId. -Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params -``` -This example shows how to use the Update-MgUserEvent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Update-MgUserEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Calendar/v1.0/examples/Update-MgUserEventExtension.md b/src/Calendar/v1.0/examples/Update-MgUserEventExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Update-MgUserEventExtension.md +++ b/src/Calendar/v1.0/examples/Update-MgUserEventExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Calendar/v1.0/examples/Update-MgUserEventInstanceExtension.md b/src/Calendar/v1.0/examples/Update-MgUserEventInstanceExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Calendar/v1.0/examples/Update-MgUserEventInstanceExtension.md +++ b/src/Calendar/v1.0/examples/Update-MgUserEventInstanceExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md index 8e62f8ad60e..58aa12a7e42 100644 --- a/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/Get-MgBetaSubscription.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.ChangeNotifications -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). -### Example 2: Using the Get-MgBetaSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.ChangeNotifications -Get-MgBetaSubscription -``` -This example shows how to use the Get-MgBetaSubscription Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.ChangeNotifications + +$params = @{ + expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") +} + +Update-MgBetaSubscription -SubscriptionId $subscriptionId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSubscription Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md index 42b112a75be..b05e7d3a86a 100644 --- a/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md @@ -1,15 +1,18 @@ -### Example 1: Using the New-MgBetaSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.ChangeNotifications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.ChangeNotifications + $params = @{ - ChangeType = "created" - NotificationUrl = "https://webhook.azurewebsites.net/api/send/myNotifyClient" - Resource = "me/mailFolders('Inbox')/messages" - ExpirationDateTime = [System.DateTime]::Parse("2016-11-20T18:23:45.9356913Z") - ClientState = "secretClientValue" - LatestSupportedTlsVersion = "v1_2" + changeType = "created" + notificationUrl = "https://webhook.azurewebsites.net/api/send/myNotifyClient" + resource = "me/mailFolders('Inbox')/messages" + expirationDateTime = [System.DateTime]::Parse("2016-11-20T18:23:45.9356913Z") + clientState = "secretClientValue" + latestSupportedTlsVersion = "v1_2" } -New-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-MgBetaBetaSubscription Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/ChangeNotifications/beta/examples/Remove-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/Remove-MgBetaSubscription.md index 388760f496f..660d22992a8 100644 --- a/src/ChangeNotifications/beta/examples/Remove-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/Remove-MgBetaSubscription.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.ChangeNotifications -Remove-MgBetaSubscription -SubscriptionId $subscriptionId -``` -This example shows how to use the Remove-MgBetaSubscription Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.ChangeNotifications + +$params = @{ + expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") +} + +Update-MgBetaSubscription -SubscriptionId $subscriptionId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaSubscription Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/ChangeNotifications/beta/examples/Update-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/Update-MgBetaSubscription.md index 78c16ca8057..0c48d9f2b94 100644 --- a/src/ChangeNotifications/beta/examples/Update-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/Update-MgBetaSubscription.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.ChangeNotifications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.ChangeNotifications + $params = @{ - ExpirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") + expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") } -Update-MgBetaSubscription -SubscriptionId $subscriptionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSubscription Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSubscription -SubscriptionId $subscriptionId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSubscription Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md b/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md index 1769d906f4e..76ddf1fb173 100644 --- a/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/Get-MgSubscription.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.ChangeNotifications -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). -### Example 2: Using the Get-MgSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.ChangeNotifications -Get-MgSubscription -``` -This example shows how to use the Get-MgSubscription Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.ChangeNotifications + +$params = @{ + expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") +} + +Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params +``` +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/New-MgSubscription.md b/src/ChangeNotifications/v1.0/examples/New-MgSubscription.md index 04a885a039d..46333632f97 100644 --- a/src/ChangeNotifications/v1.0/examples/New-MgSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/New-MgSubscription.md @@ -1,15 +1,18 @@ -### Example 1: Using the New-MgSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.ChangeNotifications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.ChangeNotifications + $params = @{ - ChangeType = "created" - NotificationUrl = "https://webhook.azurewebsites.net/api/send/myNotifyClient" - Resource = "me/mailFolders('Inbox')/messages" - ExpirationDateTime = [System.DateTime]::Parse("2016-11-20T18:23:45.9356913Z") - ClientState = "secretClientValue" - LatestSupportedTlsVersion = "v1_2" + changeType = "created" + notificationUrl = "https://webhook.azurewebsites.net/api/send/myNotifyClient" + resource = "me/mailFolders('Inbox')/messages" + expirationDateTime = [System.DateTime]::Parse("2016-11-20T18:23:45.9356913Z") + clientState = "secretClientValue" + latestSupportedTlsVersion = "v1_2" } -New-MgSubscription -BodyParameter $params -``` -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/ChangeNotifications/v1.0/examples/Remove-MgSubscription.md b/src/ChangeNotifications/v1.0/examples/Remove-MgSubscription.md index b3e85fc18fc..cc64212f137 100644 --- a/src/ChangeNotifications/v1.0/examples/Remove-MgSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/Remove-MgSubscription.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.ChangeNotifications -Remove-MgSubscription -SubscriptionId $subscriptionId -``` -This example shows how to use the Remove-MgSubscription Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.ChangeNotifications + +$params = @{ + expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") +} + +Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params +``` +This example shows how to use the Remove-MgSubscription Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/ChangeNotifications/v1.0/examples/Update-MgSubscription.md b/src/ChangeNotifications/v1.0/examples/Update-MgSubscription.md index 63f13de21ad..bb9c0ae8805 100644 --- a/src/ChangeNotifications/v1.0/examples/Update-MgSubscription.md +++ b/src/ChangeNotifications/v1.0/examples/Update-MgSubscription.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgSubscription Cmdlet -```powershell -Import-Module Microsoft.Graph.ChangeNotifications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.ChangeNotifications + $params = @{ - ExpirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") + expirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") } -Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params -``` -This example shows how to use the Update-MgSubscription Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params +``` +This example shows how to use the Update-MgSubscription Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCall.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCall.md index 67adf61f6a0..643d7872451 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCall.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -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: Using the Get-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -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 1: Getting a Peer-to-Peer call + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCall -CallId $callId +``` +This example shows how to use the Get-MgBetaBetaCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Getting a group call + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCall -CallId $callId +``` +This example shows how to use the Get-MgBetaBetaCommunicationCall 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 c2e78b619be..0b096c69f38 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallContentSharingSession.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaCommunicationCallContentSharingSession Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -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). -### Example 2: Using the Get-MgBetaCommunicationCallContentSharingSession Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -Get-MgBetaCommunicationCallContentSharingSession -CallId $callId -``` -This example shows how to use the Get-MgBetaCommunicationCallContentSharingSession Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallContentSharingSession -CallId $callId -ContentSharingSessionId $contentSharingSessionId +``` +This example shows how to use the Get-MgBetaBetaCommunicationCallContentSharingSession 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 50c84e24200..67702358de1 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallOperation.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaCommunicationCallOperation Cmdlet -```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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallOperation -CallId $callId -CommsOperationId $commsOperationId +``` +This example shows how to use the Get-MgBetaBetaCommunicationCallOperation 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 495ce3331f7..7cdc5325ac1 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallParticipant.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallParticipant.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -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). -### Example 2: Using the Get-MgBetaCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -Get-MgBetaCommunicationCallParticipant -CallId $callId -``` -This example shows how to use the Get-MgBetaCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallParticipant -CallId $callId -ParticipantId $participantId +``` +This example shows how to use the Get-MgBetaBetaCommunicationCallParticipant 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 3ec44791599..e035373b57c 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecord.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationCallRecord.md @@ -1,28 +1,18 @@ -### Example 1: Using the Get-MgBetaCommunicationCallRecord Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -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: Using the Get-MgBetaCommunicationCallRecord Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -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 3: Using the Get-MgBetaCommunicationCallRecord Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -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). -### Example 4: Using the Get-MgBetaCommunicationCallRecord Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -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 1: Get basic details + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallRecord -CallRecordId $callRecordId +``` +This example shows how to use the Get-MgBetaBetaCommunicationCallRecord Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get full details + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallRecord -CallRecordId $callRecordId -ExpandProperty "sessions(`$expand=segments)" +``` +This example shows how to use the Get-MgBetaBetaCommunicationCallRecord Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendanceReport.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendeeReport.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendeeReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationOnlineMeetingAttendeeReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresence.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresence.md index 41df101260f..7a0fd3c9299 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresence.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresence.md @@ -1,7 +1,28 @@ -### Example 1: Using the Get-MgBetaCommunicationPresence Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -Get-MgBetaCommunicationPresence -PresenceId $presenceId -``` -This example shows how to use the Get-MgBetaCommunicationPresence Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get your own presence information + +```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-MgBetaBetaCommunicationPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the presence information of another user + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaUserPresence -UserId $userId +``` +This example shows how to use the Get-MgBetaBetaCommunicationPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get the presence information of another user + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationPresence -PresenceId $presenceId +``` +This example shows how to use the Get-MgBetaBetaCommunicationPresence 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 7a1364d6781..ada7bde1707 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeeting.md @@ -1,47 +1,32 @@ -### Example 1: Retrieve an online meeting by videoTeleconferenceId +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -Get-MgBetaCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" -``` -This example shows how to use the Get-MgBetaUserOnlineMeeting Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Retrieve an online meeting by meeting ID - -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +$params = @{ + startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") + endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") + subject = "Patch Meeting Subject" +} # A UPN can also be used as -UserId. -Get-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -This example shows how to use the Get-MgBetaUserOnlineMeeting Cmdlet. +Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -### Example 3: Retrieve an online meeting by joinWebUrl - -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +$params = @{ + lobbyBypassSettings = @{ + isDialInBypassEnabled = $true + } +} # A UPN can also be used as -UserId. -Get-MgBetaUserOnlineMeeting -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-MgBetaUserOnlineMeeting 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.Beta.CloudCommunications - -# A UPN can also be used as -UserId. -Get-MgBetaUserOnlineMeetingAttendeeReport -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -This example shows how to use the Get-MgBetaUserOnlineMeeting Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserOnlineMeeting 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 0c74c2cc1ae..39d6743dd2e 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendanceReport.md @@ -1,16 +1,10 @@ -### Example 1: Using the Get-MgBetaUserOnlineMeetingAttendanceReport Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 1: Code snippet + +```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. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserOnlineMeetingAttendanceReport Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -# A UPN can also be used as -UserId. -Get-MgBetaUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -This example shows how to use the Get-MgBetaUserOnlineMeetingAttendanceReport Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgBetaUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId -ExpandProperty "attendanceRecords" +``` +This example shows how to use the Get-MgBetaBetaUserOnlineMeetingAttendanceReport 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 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserOnlineMeetingAttendeeReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md b/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md index 3291298448a..99b8ddd440b 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md @@ -1,15 +1,28 @@ -### Example 1: Using the Get-MgBetaUserPresence Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -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: Using the Get-MgBetaUserPresence Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 1: Get your own presence information + +```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). +Get-MgBetaUserPresence -UserId $userId +``` +This example shows how to use the Get-MgBetaBetaUserPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the presence information of another user + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaUserPresence -UserId $userId +``` +This example shows how to use the Get-MgBetaBetaUserPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get the presence information of another user + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationPresence -PresenceId $presenceId +``` +This example shows how to use the Get-MgBetaBetaUserPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCall.md b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCall.md index 7ec7f70a117..4f8ca7473ed 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCall.md @@ -1,493 +1,434 @@ -### Example 1: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 1: Create peer-to-peer VoIP call with service hosted media + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - Source = @{ - "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ - "@odata.type" = "#microsoft.graph.identitySet" - Application = @{ - "@odata.type" = "#microsoft.graph.identity" - DisplayName = "Calling Bot" - Id = "2891555a-92ff-42e6-80fa-6e1300c6b5c6" - } - } - Region = $null - LanguageId = $null - } - Targets = @( + callbackUri = "https://bot.contoso.com/callback" + targets = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "John" - Id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" + displayName = "John" + id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" } } } ) - RequestedModalities = @( + requestedModalities = @( "audio" ) - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - 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 2: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -$params = @{ - "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - Targets = @( - @{ - "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ - "@odata.type" = "#microsoft.graph.identitySet" - User = @{ - "@odata.type" = "#microsoft.graph.identity" - DisplayName = "John" - Id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" - } - } - } - ) - RequestedModalities = @( - "audio" - ) - CallOptions = @{ + callOptions = @{ "@odata.type" = "#microsoft.graph.outgoingCallOptions" - IsContentSharingNotificationEnabled = $true - } - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" - } -} -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: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -$params = @{ - "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - Source = @{ - "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ - "@odata.type" = "#microsoft.graph.identitySet" - ApplicationInstance = @{ - "@odata.type" = "#microsoft.graph.identity" - DisplayName = "Calling Bot" - Id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" - } - } - CountryCode = $null - EndpointType = $null - Region = $null - LanguageId = $null + isContentSharingNotificationEnabled = $true } - Targets = @( - @{ - "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ - "@odata.type" = "#microsoft.graph.identitySet" - Phone = @{ - "@odata.type" = "#microsoft.graph.identity" - Id = "+12345678901" - } - } - } - ) - RequestedModalities = @( - "audio" - ) - MediaConfig = @{ + mediaConfig = @{ "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" } - 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: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications + +New-MgBetaCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaCommunicationCall 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.Beta.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - Source = @{ + callbackUri = "https://bot.contoso.com/callback" + source = @{ "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - ApplicationInstance = @{ + application = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "Calling Bot" - Id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" + displayName = "Calling Bot" + id = "2891555a-92ff-42e6-80fa-6e1300c6b5c6" } } - CountryCode = $null - EndpointType = $null - Region = $null - LanguageId = $null + region = $null + languageId = $null } - Targets = @( + targets = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - Phone = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "+12345678901" + displayName = "John" + id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" } } } ) - RequestedModalities = @( + requestedModalities = @( "audio" ) - MediaConfig = @{ + mediaConfig = @{ "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - Blob = "" + blob = "<Media Session Configuration>" } - 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: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications + +New-MgBetaCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaCommunicationCall 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 + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - Direction = "outgoing" - Subject = "Create a group call with app hosted media" - CallbackUri = "https://bot.contoso.com/callback" - Source = @{ + direction = "outgoing" + subject = "Create a group call with service hosted media" + callbackUri = "https://bot.contoso.com/callback" + source = @{ "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - Application = @{ + application = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "TestBot" - Id = "dd3885da-f9ab-486b-bfae-85de3d445555" + displayName = "TestBot" + id = "dd3885da-f9ab-486b-bfae-85de3d445555" } } } - Targets = @( + targets = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "user1" - Id = "98da8a1a-1b87-452c-a713-65d3f10b5555" + displayName = "user1" + id = "98da8a1a-1b87-452c-a713-65d3f10b5555" } } } @{ - "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "user2" - Id = "bf5aae9a-d11d-47a8-93b1-782504c95555" + displayName = "user2" + id = "bf5aae9a-d11d-47a8-93b1-782504c95555" } } } ) - RequestedModalities = @( + requestedModalities = @( "audio" ) - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - Blob = "" - RemoveFromDefaultAudioGroup = $false + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + 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 6: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications + +New-MgBetaCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaCommunicationCall 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 + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - Direction = "outgoing" - Subject = "Create a group call with service hosted media" - CallbackUri = "https://bot.contoso.com/callback" - Source = @{ + direction = "outgoing" + subject = "Create a group call with application hosted media" + callbackUri = "https://bot.contoso.com/callback" + source = @{ "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - Application = @{ + application = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "TestBot" - Id = "dd3885da-f9ab-486b-bfae-85de3d445555" + displayName = "TestBot" + id = "dd3885da-f9ab-486b-bfae-85de3d445555" } } } - Targets = @( + targets = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "user1" - Id = "98da8a1a-1b87-452c-a713-65d3f10b5555" + displayName = "user1" + id = "98da8a1a-1b87-452c-a713-65d3f10b5555" } } } @{ - "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "user2" - Id = "bf5aae9a-d11d-47a8-93b1-782504c95555" + displayName = "user2" + id = "bf5aae9a-d11d-47a8-93b1-782504c95555" } } } ) - RequestedModalities = @( + requestedModalities = @( "audio" ) - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" - RemoveFromDefaultAudioGroup = $false + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + 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 7: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications + +New-MgBetaCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Join scheduled meeting with service hosted media + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - Source = @{ - "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ - "@odata.type" = "#microsoft.graph.identitySet" - Guest = @{ - "@odata.type" = "#microsoft.graph.identity" - DisplayName = "Guest User" - Id = "d7a3b999-17ac-4bca-9e77-e6a730d2ec2e" - } - } - } - RequestedModalities = @( + callbackUri = "https://bot.contoso.com/callback" + requestedModalities = @( "audio" ) - MediaConfig = @{ + mediaConfig = @{ "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" - PreFetchMedia = @( + preFetchMedia = @( ) } - ChatInfo = @{ + chatInfo = @{ "@odata.type" = "#microsoft.graph.chatInfo" - ThreadId = "19:cbee7c1c860e465f8258e3cebf7bee0d@thread.skype" - MessageId = "1533758867081" + threadId = "19:meeting_Win6Ydo4wsMijFjZS00ZGVjLTk5MGUtOTRjNWY2NmNkYTFm@thread.v2" + messageId = "0" } - MeetingInfo = @{ + meetingInfo = @{ "@odata.type" = "#microsoft.graph.organizerMeetingInfo" - Organizer = @{ + organizer = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" - TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" - DisplayName = "Bob" + id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" + displayName = "Bob" + tenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" } } - AllowConversationWithoutHost = $true + allowConversationWithoutHost = $true } + 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: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications + +New-MgBetaCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Join scheduled meeting with application hosted media + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - RequestedModalities = @( + direction = "outgoing" + callbackUri = "https://bot.contoso.com/callback" + requestedModalities = @( "audio" ) - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" - PreFetchMedia = @( - ) + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" } - ChatInfo = @{ + chatInfo = @{ "@odata.type" = "#microsoft.graph.chatInfo" - ThreadId = "19:cbee7c1c860e465f8258e3cebf7bee0d@thread.skype" - MessageId = "1533758867081" + threadId = "19:meeting_Win6Ydo4wsMijFjZS00ZGVjLTk5MGUtOTRjNWY2NmNkYTFm@thread.v2" + messageId = "0" } - MeetingInfo = @{ + meetingInfo = @{ "@odata.type" = "#microsoft.graph.organizerMeetingInfo" - Organizer = @{ + organizer = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" - TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" - DisplayName = "Bob" + id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" + tenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" + displayName = "Bob" } } - AllowConversationWithoutHost = $true + allowConversationWithoutHost = $true } + 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: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications + +New-MgBetaCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaCommunicationCall 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 + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - Direction = "outgoing" - CallbackUri = "https://bot.contoso.com/callback" - RequestedModalities = @( + callbackUri = "https://bot.contoso.com/callback" + requestedModalities = @( "audio" ) - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - Blob = "" - } - ChatInfo = @{ - "@odata.type" = "#microsoft.graph.chatInfo" - ThreadId = "19:meeting_Win6Ydo4wsMijFjZS00ZGVjLTk5MGUtOTRjNWY2NmNkYTFm@thread.v2" - MessageId = "0" + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + preFetchMedia = @( + ) } - MeetingInfo = @{ - "@odata.type" = "#microsoft.graph.organizerMeetingInfo" - Organizer = @{ - "@odata.type" = "#microsoft.graph.identitySet" - User = @{ - "@odata.type" = "#microsoft.graph.identity" - Id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" - TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" - DisplayName = "Bob" - } - } - AllowConversationWithoutHost = $true + meetingInfo = @{ + "@odata.type" = "#microsoft.graph.joinMeetingIdMeetingInfo" + joinMeetingId = "1234567" + passcode = "psw123" } - TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" + 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 10: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications + +New-MgBetaCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: Join a scheduled meeting with joinMeetingId + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - RequestedModalities = @( + callbackUri = "https://bot.contoso.com/callback" + requestedModalities = @( "audio" ) - MediaConfig = @{ + mediaConfig = @{ "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" - PreFetchMedia = @( + preFetchMedia = @( ) } - ChatInfo = @{ - "@odata.type" = "#microsoft.graph.chatInfo" - ThreadId = "19:meeting_Win6Ydo4wsMijFjZS00ZGVjLTk5MGUtOTRjNWY2NmNkYTFm@thread.v2" - MessageId = "0" + meetingInfo = @{ + "@odata.type" = "#microsoft.graph.joinMeetingIdMeetingInfo" + joinMeetingId = "1234567" + passcode = $null } - MeetingInfo = @{ - "@odata.type" = "#microsoft.graph.organizerMeetingInfo" - Organizer = @{ + tenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" +} + +New-MgBetaCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaCommunicationCall 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 + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +$params = @{ + "@odata.type" = "#microsoft.graph.call" + callbackUri = "https://bot.contoso.com/callback" + source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + applicationInstance = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" - TenantId = "9f386a15-f9cc-445b-8106-ac85e314a07b" - DisplayName = "Bob" + displayName = "Calling Bot" + id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" } } - AllowConversationWithoutHost = $true + countryCode = $null + endpointType = $null + region = $null + languageId = $null } - 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 11: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -$params = @{ - "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - RequestedModalities = @( + targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + phone = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "+12345678901" + } + } + } + ) + requestedModalities = @( "audio" ) - MediaConfig = @{ + mediaConfig = @{ "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" - PreFetchMedia = @( - ) - } - MeetingInfo = @{ - "@odata.type" = "#microsoft.graph.joinMeetingIdMeetingInfo" - JoinMeetingId = "1234567" - Passcode = "psw123" } - TenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" + 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: Using the New-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications + +New-MgBetaCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaCommunicationCall 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 + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - RequestedModalities = @( + callbackUri = "https://bot.contoso.com/callback" + source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + applicationInstance = @{ + "@odata.type" = "#microsoft.graph.identity" + displayName = "Calling Bot" + id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" + } + } + countryCode = $null + endpointType = $null + region = $null + languageId = $null + } + targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + phone = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "+12345678901" + } + } + } + ) + requestedModalities = @( "audio" ) - MediaConfig = @{ - "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" - PreFetchMedia = @( - ) - } - MeetingInfo = @{ - "@odata.type" = "#microsoft.graph.joinMeetingIdMeetingInfo" - JoinMeetingId = "1234567" - Passcode = $null + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + blob = "<Media Session Configuration>" } - TenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" + 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 shows how to use the New-MgBetaBetaCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallContentSharingSession.md b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallContentSharingSession.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallContentSharingSession.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallParticipant.md b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallParticipant.md index 1827e4262e7..902ddb1c592 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallParticipant.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallParticipant.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications - -Get-MgBetaCommunicationCallParticipant -CallId $callId -``` -This example shows how to use the New-MgBetaCommunicationCallParticipant Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +Get-MgBetaCommunicationCallParticipant -CallId $callId +``` +This example shows how to use the New-MgBetaBetaCommunicationCallParticipant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallRecordSession.md b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallRecordSession.md index 86c6ec8eff9..0603a4da157 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallRecordSession.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationCallRecordSession.md @@ -1,22 +1,18 @@ -### Example 1: Get session list +### Example 1: Get session list -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -Get-MgBetaCommunicationCallRecordSession -CallRecordId $callRecordId -``` -This example shows how to use the New-MgBetaCommunicationCallRecordSession Cmdlet. +Get-MgBetaCommunicationCallRecordSession -CallRecordId $callRecordId +``` +This example shows how to use the New-MgBetaBetaCommunicationCallRecordSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get session list with segments -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get session list with segments - -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications - -Get-MgBetaCommunicationCallRecordSession -CallRecordId $callRecordId -ExpandProperty "segments" -``` -This example shows how to use the New-MgBetaCommunicationCallRecordSession Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications +Get-MgBetaCommunicationCallRecordSession -CallRecordId $callRecordId -ExpandProperty "segments" +``` +This example shows how to use the New-MgBetaBetaCommunicationCallRecordSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeeting.md b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeeting.md index 45ad0792ddc..69715be8e17 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeeting.md @@ -1,47 +1,49 @@ -### Example 1: Retrieve an online meeting by videoTeleconferenceId +### Example 1: Retrieve an online meeting by videoTeleconferenceId -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications -Get-MgBetaCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" -``` -This example shows how to use the New-MgBetaCommunicationOnlineMeeting Cmdlet. +Get-MgBetaCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" +``` +This example shows how to use the New-MgBetaBetaCommunicationOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve an online meeting by meeting ID -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Retrieve an online meeting by meeting ID - -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Get-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -This example shows how to use the New-MgBetaCommunicationOnlineMeeting Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Retrieve an online meeting by joinWebUrl +Get-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId +``` +This example shows how to use the New-MgBetaBetaCommunicationOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Retrieve an online meeting by joinWebUrl -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications # A UPN can also be used as -UserId. -Get-MgBetaUserOnlineMeeting -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 New-MgBetaCommunicationOnlineMeeting Cmdlet. +Get-MgBetaUserOnlineMeeting -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 New-MgBetaBetaCommunicationOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Retrieve an online meeting by joinMeetingId -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.Beta.CloudCommunications +```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 New-MgBetaCommunicationOnlineMeeting Cmdlet. +Get-MgBetaUserOnlineMeeting -UserId $userId -Filter "joinMeetingIdSettings/joinMeetingId eq '1234567890'" +``` +This example shows how to use the New-MgBetaBetaCommunicationOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Fetch attendee report of a Teams live event -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```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 New-MgBetaBetaCommunicationOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeetingAttendanceReport.md b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeeting.md b/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeeting.md index e63f71c0b0b..4a231cc686d 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeeting.md @@ -1,13 +1,54 @@ -### Example 1: Using the New-MgBetaUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - StartDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") - EndDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") - Subject = "User Token Meeting" + startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") + endDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") + subject = "User Token Meeting" } + # A UPN can also be used as -UserId. -New-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-MgBetaBetaUserOnlineMeeting 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 + +$params = @{ + startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") + endDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") + subject = "User meeting" + joinMeetingIdSettings = @{ + isPasscodeRequired = $true + } +} + +# A UPN can also be used as -UserId. +New-MgBetaUserOnlineMeeting -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +$params = @{ + startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") + endDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") + subject = "User meeting in Microsoft Teams channel." + joinMeetingIdSettings = @{ + isPasscodeRequired = $false + } +} + +# A UPN can also be used as -UserId. +New-MgBetaUserOnlineMeeting -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord.md b/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord.md +++ b/src/CloudCommunications/beta/examples/New-MgBetaUserOnlineMeetingAttendanceReportAttendanceRecord.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCall.md b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCall.md index 313d969b72e..477e4f424f9 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCall.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCall.md @@ -1,7 +1,18 @@ -### Example 1: Using the Remove-MgBetaCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -Remove-MgBetaCommunicationCall -CallId $callId -``` -This example shows how to use the Remove-MgBetaCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Getting a Peer-to-Peer call + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCall -CallId $callId +``` +This example shows how to use the Remove-MgBetaBetaCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Getting a group call + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCall -CallId $callId +``` +This example shows how to use the Remove-MgBetaBetaCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallContentSharingSession.md b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallContentSharingSession.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallContentSharingSession.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallOperation.md b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallOperation.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallParticipant.md b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallParticipant.md index f3671a67ed2..682b68b7080 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallParticipant.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationCallParticipant.md @@ -1,21 +1,9 @@ -### Example 1: Using the Remove-MgBetaCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -Remove-MgBetaCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -``` -This example shows how to use the Remove-MgBetaCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgBetaCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -Remove-MgBetaCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -``` -This example shows how to use the Remove-MgBetaCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Remove-MgBetaCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications -Remove-MgBetaCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -``` -This example shows how to use the Remove-MgBetaCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationCallParticipant -CallId $callId -ParticipantId $participantId +``` +This example shows how to use the Remove-MgBetaBetaCommunicationCallParticipant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationOnlineMeetingAttendanceReport.md b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationPresence.md b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationPresence.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationPresence.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaCommunicationPresence.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeeting.md b/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeeting.md index 2c1a6e04271..b14fb7ed3e9 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeeting.md @@ -1,8 +1,32 @@ -### Example 1: Using the Remove-MgBetaUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +$params = @{ + startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") + endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") + subject = "Patch Meeting Subject" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -This example shows how to use the Remove-MgBetaUserOnlineMeeting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserOnlineMeeting 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 + +$params = @{ + lobbyBypassSettings = @{ + isDialInBypassEnabled = $true + } +} + +# A UPN can also be used as -UserId. +Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaUserOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Remove-MgBetaUserPresence.md b/src/CloudCommunications/beta/examples/Remove-MgBetaUserPresence.md index 2843cb477bd..e3d6ef4629b 100644 --- a/src/CloudCommunications/beta/examples/Remove-MgBetaUserPresence.md +++ b/src/CloudCommunications/beta/examples/Remove-MgBetaUserPresence.md @@ -1,34 +1,28 @@ -### Example 1: Get your own presence information +### Example 1: Get your own presence information -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +```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 Remove-MgBetaUserPresence Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get the presence information of another user - -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications - -Get-MgBetaUserPresence -UserId $userId -``` -This example shows how to use the Remove-MgBetaUserPresence Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the presence information of another user - -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications - -Get-MgBetaCommunicationPresence -PresenceId $presenceId -``` -This example shows how to use the Remove-MgBetaUserPresence Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserPresence -UserId $userId +``` +This example shows how to use the Remove-MgBetaBetaUserPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the presence information of another user + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaUserPresence -UserId $userId +``` +This example shows how to use the Remove-MgBetaBetaUserPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get the presence information of another user + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationPresence -PresenceId $presenceId +``` +This example shows how to use the Remove-MgBetaBetaUserPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Set-MgBetaCommunicationOnlineMeetingAttendeeReport.md b/src/CloudCommunications/beta/examples/Set-MgBetaCommunicationOnlineMeetingAttendeeReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Set-MgBetaCommunicationOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/beta/examples/Set-MgBetaCommunicationOnlineMeetingAttendeeReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Set-MgBetaUserOnlineMeetingAttendeeReport.md b/src/CloudCommunications/beta/examples/Set-MgBetaUserOnlineMeetingAttendeeReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Set-MgBetaUserOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/beta/examples/Set-MgBetaUserOnlineMeetingAttendeeReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallContentSharingSession.md b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallContentSharingSession.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallContentSharingSession.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallOperation.md b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallOperation.md +++ b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallParticipant.md b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallParticipant.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallParticipant.md +++ b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationCallParticipant.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationOnlineMeetingAttendanceReport.md b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationPresence.md b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationPresence.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationPresence.md +++ b/src/CloudCommunications/beta/examples/Update-MgBetaCommunicationPresence.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeeting.md b/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeeting.md index 4f8506b2960..413a309de5f 100644 --- a/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeeting.md +++ b/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeeting.md @@ -1,26 +1,32 @@ -### Example 1: Using the Update-MgBetaUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + $params = @{ - LobbyBypassSettings = @{ - IsDialInBypassEnabled = $true - } + startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") + endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") + subject = "Patch Meeting Subject" } + # A UPN can also be used as -UserId. -Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserOnlineMeeting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserOnlineMeeting 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 + $params = @{ - StartDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") - EndDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") - Subject = "Patch Meeting Subject" + lobbyBypassSettings = @{ + isDialInBypassEnabled = $true + } } + # A UPN can also be used as -UserId. -Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserOnlineMeeting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/beta/examples/Update-MgBetaUserOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/beta/examples/Update-MgBetaUserPresence.md b/src/CloudCommunications/beta/examples/Update-MgBetaUserPresence.md index 62614edfd7b..aff9797344a 100644 --- a/src/CloudCommunications/beta/examples/Update-MgBetaUserPresence.md +++ b/src/CloudCommunications/beta/examples/Update-MgBetaUserPresence.md @@ -1,34 +1,28 @@ -### Example 1: Get your own presence information +### Example 1: Get your own presence information -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications +```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 Update-MgBetaUserPresence Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get the presence information of another user - -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications - -Get-MgBetaUserPresence -UserId $userId -``` -This example shows how to use the Update-MgBetaUserPresence Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the presence information of another user - -```powershell -Import-Module Microsoft.Graph.Beta.CloudCommunications - -Get-MgBetaCommunicationPresence -PresenceId $presenceId -``` -This example shows how to use the Update-MgBetaUserPresence Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserPresence -UserId $userId +``` +This example shows how to use the Update-MgBetaBetaUserPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the presence information of another user + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaUserPresence -UserId $userId +``` +This example shows how to use the Update-MgBetaBetaUserPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get the presence information of another user + +```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications + +Get-MgBetaCommunicationPresence -PresenceId $presenceId +``` +This example shows how to use the Update-MgBetaBetaUserPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCall.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCall.md index a72fdeaa6d5..4397a1633b7 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCall.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -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: Using the Get-MgCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -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 1: Getting a Peer-to-Peer call + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +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 + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +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 a28f7bd2a6e..e37e08fd697 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallContentSharingSession.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgCommunicationCallContentSharingSession Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -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). -### Example 2: Using the Get-MgCommunicationCallContentSharingSession Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Get-MgCommunicationCallContentSharingSession -CallId $callId -``` -This example shows how to use the Get-MgCommunicationCallContentSharingSession Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +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 f64f840ca45..72cf3d5d5c8 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallOperation.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgCommunicationCallOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +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 72149e2e232..7a34144d45b 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallParticipant.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallParticipant.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -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). -### Example 2: Using the Get-MgCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Get-MgCommunicationCallParticipant -CallId $callId -``` -This example shows how to use the Get-MgCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +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 98881a1e09c..5b181e87818 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecord.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecord.md @@ -1,28 +1,18 @@ -### Example 1: Using the Get-MgCommunicationCallRecord Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Get-MgCommunicationCallRecord -CallRecordId $callRecordId -``` -This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgCommunicationCallRecord Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Get-MgCommunicationCallRecord -CallRecordId $callRecordId -``` -This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgCommunicationCallRecord Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Get-MgCommunicationCallRecord -CallRecordId $callRecordId -ExpandProperty "sessions(`$expand=segments)" -``` -This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgCommunicationCallRecord Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Get-MgCommunicationCallRecord -CallRecordId $callRecordId -``` -This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get basic details + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCallRecord -CallRecordId $callRecordId +``` +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get full details + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCallRecord -CallRecordId $callRecordId -ExpandProperty "sessions(`$expand=segments)" +``` +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendanceReport.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendeeReport.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendeeReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendeeReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresence.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresence.md index 556595a1c6e..a31ed27a903 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresence.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationPresence.md @@ -1,7 +1,28 @@ -### Example 1: Using the Get-MgCommunicationPresence Cmdlet -```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). +### 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-MgCommunicationPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### 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-MgCommunicationPresence Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: 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). + diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md index f3391370541..0965cb53ea0 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeeting.md @@ -1,16 +1,32 @@ -### Example 1: Using the Get-MgUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") + endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") + subject = "Patch Meeting Subject" +} + # A UPN can also be used as -UserId. -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. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +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 2: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + lobbyBypassSettings = @{ + isDialInBypassEnabled = $true + } +} + # 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). +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReport.md index 1007c598f27..aca302833e6 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendanceReport.md @@ -1,16 +1,10 @@ -### Example 1: Using the Get-MgUserOnlineMeetingAttendanceReport Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications +### Example 1: Code snippet + +```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). -### Example 2: Using the Get-MgUserOnlineMeetingAttendanceReport Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -# A UPN can also be used as -UserId. -Get-MgUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -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 -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). + diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md index 093355d11d5..d03ddff68df 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserOnlineMeetingAttendeeReport.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 5: Fetch attendee report of a Teams live event -{{ Add output here }} +```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). + +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -{{ Add description here }} +{{ Add description here }} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -{{ Add output here }} +{{ Add output here }} ``` -{{ Add description here }} - +{{ Add description here }} diff --git a/src/CloudCommunications/v1.0/examples/Get-MgUserPresence.md b/src/CloudCommunications/v1.0/examples/Get-MgUserPresence.md index f1e2247c590..6c79b67726c 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgUserPresence.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgUserPresence.md @@ -1,15 +1,28 @@ -### Example 1: Using the Get-MgUserPresence Cmdlet -```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). -### Example 2: Using the Get-MgUserPresence Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications +### 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). +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). + +### 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). + +### Example 3: 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-MgUserPresence 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 1a09ed853a1..d468a413852 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/New-MgCommunicationCall.md @@ -1,165 +1,434 @@ -### Example 1: Using the New-MgCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications +### Example 1: Create peer-to-peer VoIP call with service hosted media + +```powershell Import-Module Microsoft.Graph.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - Source = @{ + 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 + +$params = @{ + "@odata.type" = "#microsoft.graph.call" + callbackUri = "https://bot.contoso.com/callback" + source = @{ "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - Application = @{ + application = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "Calling Bot" - Id = "2891555a-92ff-42e6-80fa-6e1300c6b5c6" + displayName = "Calling Bot" + id = "2891555a-92ff-42e6-80fa-6e1300c6b5c6" } } - Region = $null - LanguageId = $null + region = $null + languageId = $null } - Targets = @( + targets = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "John" - Id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" + displayName = "John" + id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" } } } ) - RequestedModalities = @( + requestedModalities = @( "audio" ) - MediaConfig = @{ + mediaConfig = @{ "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - Blob = "" + blob = "<Media Session Configuration>" } } -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: Using the New-MgCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications + +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 + +```powershell Import-Module Microsoft.Graph.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - Targets = @( + direction = "outgoing" + subject = "Create a group call with service hosted media" + callbackUri = "https://bot.contoso.com/callback" + source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + application = @{ + "@odata.type" = "#microsoft.graph.identity" + displayName = "TestBot" + id = "dd3885da-f9ab-486b-bfae-85de3d445555" + } + } + } + targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + displayName = "user1" + id = "98da8a1a-1b87-452c-a713-65d3f10b5555" + } + } + } @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - User = @{ + user = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "John" - Id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" + displayName = "user2" + id = "bf5aae9a-d11d-47a8-93b1-782504c95555" } } } ) - RequestedModalities = @( + requestedModalities = @( "audio" ) - MediaConfig = @{ + mediaConfig = @{ "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + removeFromDefaultAudioGroup = $false + } +} + +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 + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + "@odata.type" = "#microsoft.graph.call" + direction = "outgoing" + subject = "Create a group call with application hosted media" + callbackUri = "https://bot.contoso.com/callback" + source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + application = @{ + "@odata.type" = "#microsoft.graph.identity" + displayName = "TestBot" + id = "dd3885da-f9ab-486b-bfae-85de3d445555" + } + } + } + targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + displayName = "user1" + id = "98da8a1a-1b87-452c-a713-65d3f10b5555" + } + } + } + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + displayName = "user2" + id = "bf5aae9a-d11d-47a8-93b1-782504c95555" + } + } + } + ) + requestedModalities = @( + "audio" + ) + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + removeFromDefaultAudioGroup = $false + } +} + +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 + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + "@odata.type" = "#microsoft.graph.call" + callbackUri = "https://bot.contoso.com/callback" + requestedModalities = @( + "audio" + ) + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + preFetchMedia = @( + ) + } + chatInfo = @{ + "@odata.type" = "#microsoft.graph.chatInfo" + threadId = "19:meeting_Win6Ydo4wsMijFjZS00ZGVjLTk5MGUtOTRjNWY2NmNkYTFm@thread.v2" + messageId = "0" + } + meetingInfo = @{ + "@odata.type" = "#microsoft.graph.organizerMeetingInfo" + organizer = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" + displayName = "Bob" + tenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" + } + } + allowConversationWithoutHost = $true + } + tenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" +} + +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Join scheduled meeting with application hosted media + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + "@odata.type" = "#microsoft.graph.call" + direction = "outgoing" + callbackUri = "https://bot.contoso.com/callback" + requestedModalities = @( + "audio" + ) + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + } + chatInfo = @{ + "@odata.type" = "#microsoft.graph.chatInfo" + threadId = "19:meeting_Win6Ydo4wsMijFjZS00ZGVjLTk5MGUtOTRjNWY2NmNkYTFm@thread.v2" + messageId = "0" + } + meetingInfo = @{ + "@odata.type" = "#microsoft.graph.organizerMeetingInfo" + organizer = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "5810cede-f3cc-42eb-b2c1-e9bd5d53ec96" + tenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" + displayName = "Bob" + } + } + allowConversationWithoutHost = $true + } + tenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" +} + +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: Join a scheduled meeting with joinMeetingId and passcode + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + "@odata.type" = "#microsoft.graph.call" + callbackUri = "https://bot.contoso.com/callback" + requestedModalities = @( + "audio" + ) + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + preFetchMedia = @( + ) + } + meetingInfo = @{ + "@odata.type" = "#microsoft.graph.joinMeetingIdMeetingInfo" + joinMeetingId = "1234567" + passcode = "psw123" + } + tenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" +} + +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: Join a scheduled meeting with joinMeetingId + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + "@odata.type" = "#microsoft.graph.call" + callbackUri = "https://bot.contoso.com/callback" + requestedModalities = @( + "audio" + ) + mediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + preFetchMedia = @( + ) + } + meetingInfo = @{ + "@odata.type" = "#microsoft.graph.joinMeetingIdMeetingInfo" + joinMeetingId = "1234567" + passcode = $null } + tenantId = "86dc81db-c112-4228-9222-63f3esaa1edb" } -New-MgCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications + +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 + +```powershell Import-Module Microsoft.Graph.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - Source = @{ + callbackUri = "https://bot.contoso.com/callback" + source = @{ "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - ApplicationInstance = @{ + applicationInstance = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "Calling Bot" - Id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" + displayName = "Calling Bot" + id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" } } - CountryCode = $null - EndpointType = $null - Region = $null - LanguageId = $null + countryCode = $null + endpointType = $null + region = $null + languageId = $null } - Targets = @( + targets = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - Phone = @{ + phone = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "+12345678901" + id = "+12345678901" } } } ) - RequestedModalities = @( + requestedModalities = @( "audio" ) - MediaConfig = @{ + mediaConfig = @{ "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" } - TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" + tenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" } -New-MgCommunicationCall -BodyParameter $params -``` -This example shows how to use the New-MgCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications + +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 + +```powershell Import-Module Microsoft.Graph.CloudCommunications + $params = @{ "@odata.type" = "#microsoft.graph.call" - CallbackUri = "https://bot.contoso.com/callback" - Source = @{ + callbackUri = "https://bot.contoso.com/callback" + source = @{ "@odata.type" = "#microsoft.graph.participantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - ApplicationInstance = @{ + applicationInstance = @{ "@odata.type" = "#microsoft.graph.identity" - DisplayName = "Calling Bot" - Id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" + displayName = "Calling Bot" + id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" } } - CountryCode = $null - EndpointType = $null - Region = $null - LanguageId = $null + countryCode = $null + endpointType = $null + region = $null + languageId = $null } - Targets = @( + targets = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" - Identity = @{ + identity = @{ "@odata.type" = "#microsoft.graph.identitySet" - Phone = @{ + phone = @{ "@odata.type" = "#microsoft.graph.identity" - Id = "+12345678901" + id = "+12345678901" } } } ) - RequestedModalities = @( + requestedModalities = @( "audio" ) - MediaConfig = @{ + mediaConfig = @{ "@odata.type" = "#microsoft.graph.appHostedMediaConfig" - Blob = "" + blob = "<Media Session Configuration>" } - TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/v1.0/examples/New-MgCommunicationCallContentSharingSession.md b/src/CloudCommunications/v1.0/examples/New-MgCommunicationCallContentSharingSession.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/v1.0/examples/New-MgCommunicationCallContentSharingSession.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeeting.md index 6459492a6fb..9d276448ea2 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeeting.md @@ -27,7 +27,17 @@ Get-MgUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.mi This example shows how to use the New-MgCommunicationOnlineMeeting 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 +### Example 4: 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 New-MgCommunicationOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Fetch attendee report of a Teams live event ```powershell Import-Module Microsoft.Graph.CloudCommunications diff --git a/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeetingAttendanceReport.md b/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md b/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md +++ b/src/CloudCommunications/v1.0/examples/New-MgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeeting.md index 5365de1e1e4..e6b2abd5721 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeeting.md @@ -1,13 +1,54 @@ -### Example 1: Using the New-MgUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - StartDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") - EndDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") - Subject = "User Token Meeting" + startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") + endDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") + subject = "User Token Meeting" } + # A UPN can also be used as -UserId. -New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params -``` -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") + endDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") + subject = "User meeting" + joinMeetingIdSettings = @{ + isPasscodeRequired = $true + } +} + +# 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 + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + startDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") + endDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") + subject = "User meeting in Microsoft Teams channel." + joinMeetingIdSettings = @{ + isPasscodeRequired = $false + } +} + +# 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). + diff --git a/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md b/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md +++ b/src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCall.md b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCall.md index ab885f07af7..e559e03040b 100644 --- a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCall.md +++ b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCall.md @@ -1,7 +1,18 @@ -### Example 1: Using the Remove-MgCommunicationCall Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Remove-MgCommunicationCall -CallId $callId -``` -This example shows how to use the Remove-MgCommunicationCall Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Getting a Peer-to-Peer call + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCall -CallId $callId +``` +This example shows how to use the Remove-MgCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Getting a group call + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCall -CallId $callId +``` +This example shows how to use the Remove-MgCommunicationCall Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallContentSharingSession.md b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallContentSharingSession.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallContentSharingSession.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallOperation.md b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallOperation.md +++ b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallParticipant.md b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallParticipant.md index 2e2307375d1..916d2143b0c 100644 --- a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallParticipant.md +++ b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationCallParticipant.md @@ -1,21 +1,9 @@ -### Example 1: Using the Remove-MgCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -``` -This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -``` -This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Remove-MgCommunicationCallParticipant Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications -Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -``` -This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId +``` +This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationOnlineMeetingAttendanceReport.md b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationPresence.md b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationPresence.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationPresence.md +++ b/src/CloudCommunications/v1.0/examples/Remove-MgCommunicationPresence.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeeting.md index 4bb2a06bfde..5e0cfbeb243 100644 --- a/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeeting.md @@ -1,8 +1,32 @@ -### Example 1: Using the Remove-MgUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") + endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") + subject = "Patch Meeting Subject" +} + # A UPN can also be used as -UserId. -Remove-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -``` -This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + +$params = @{ + lobbyBypassSettings = @{ + isDialInBypassEnabled = $true + } +} + +# A UPN can also be used as -UserId. +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/v1.0/examples/Remove-MgUserOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Set-MgCommunicationOnlineMeetingAttendeeReport.md b/src/CloudCommunications/v1.0/examples/Set-MgCommunicationOnlineMeetingAttendeeReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Set-MgCommunicationOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/v1.0/examples/Set-MgCommunicationOnlineMeetingAttendeeReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Set-MgUserOnlineMeetingAttendeeReport.md b/src/CloudCommunications/v1.0/examples/Set-MgUserOnlineMeetingAttendeeReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Set-MgUserOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/v1.0/examples/Set-MgUserOnlineMeetingAttendeeReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallContentSharingSession.md b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallContentSharingSession.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallContentSharingSession.md +++ b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallContentSharingSession.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallOperation.md b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallOperation.md +++ b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallParticipant.md b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallParticipant.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallParticipant.md +++ b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationCallParticipant.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationOnlineMeetingAttendanceReport.md b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationPresence.md b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationPresence.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Update-MgCommunicationPresence.md +++ b/src/CloudCommunications/v1.0/examples/Update-MgCommunicationPresence.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeeting.md b/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeeting.md index 364851416fc..d996e0ad92a 100644 --- a/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeeting.md @@ -1,26 +1,32 @@ -### Example 1: Using the Update-MgUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - LobbyBypassSettings = @{ - IsDialInBypassEnabled = $true - } + startDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") + endDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") + subject = "Patch Meeting Subject" } + # A UPN can also be used as -UserId. -Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params -``` -This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgUserOnlineMeeting Cmdlet -```powershell -Import-Module Microsoft.Graph.CloudCommunications +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.CloudCommunications + $params = @{ - StartDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") - EndDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") - Subject = "Patch Meeting Subject" + lobbyBypassSettings = @{ + isDialInBypassEnabled = $true + } } + # A UPN can also be used as -UserId. -Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params -``` -This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params +``` +This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeetingAttendanceReport.md index 093355d11d5..f6c6949389e 100644 --- a/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/v1.0/examples/Update-MgUserOnlineMeetingAttendanceReport.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CrossDeviceExperiences/beta/examples/Get-MgBetaUserActivity.md b/src/CrossDeviceExperiences/beta/examples/Get-MgBetaUserActivity.md index 093355d11d5..f6c6949389e 100644 --- a/src/CrossDeviceExperiences/beta/examples/Get-MgBetaUserActivity.md +++ b/src/CrossDeviceExperiences/beta/examples/Get-MgBetaUserActivity.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CrossDeviceExperiences/beta/examples/Remove-MgBetaUserActivity.md b/src/CrossDeviceExperiences/beta/examples/Remove-MgBetaUserActivity.md index f51a460d413..406c9b58fb4 100644 --- a/src/CrossDeviceExperiences/beta/examples/Remove-MgBetaUserActivity.md +++ b/src/CrossDeviceExperiences/beta/examples/Remove-MgBetaUserActivity.md @@ -1,8 +1,10 @@ -### Example 1: Using the Remove-MgBetaUserActivity Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.CrossDeviceExperiences +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.CrossDeviceExperiences + # A UPN can also be used as -UserId. -Remove-MgBetaUserActivity -UserId $userId -UserActivityId $userActivityId -``` -This example shows how to use the Remove-MgBetaUserActivity Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgBetaUserActivity -UserId $userId -UserActivityId $userActivityId +``` +This example shows how to use the Remove-MgBetaBetaUserActivity Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CrossDeviceExperiences/beta/examples/Update-MgBetaUserActivity.md b/src/CrossDeviceExperiences/beta/examples/Update-MgBetaUserActivity.md index 093355d11d5..f6c6949389e 100644 --- a/src/CrossDeviceExperiences/beta/examples/Update-MgBetaUserActivity.md +++ b/src/CrossDeviceExperiences/beta/examples/Update-MgBetaUserActivity.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md b/src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md index 093355d11d5..f6c6949389e 100644 --- a/src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md +++ b/src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/CrossDeviceExperiences/v1.0/examples/Remove-MgUserActivity.md b/src/CrossDeviceExperiences/v1.0/examples/Remove-MgUserActivity.md index 2668fe4af6e..26a0cb6f82f 100644 --- a/src/CrossDeviceExperiences/v1.0/examples/Remove-MgUserActivity.md +++ b/src/CrossDeviceExperiences/v1.0/examples/Remove-MgUserActivity.md @@ -1,8 +1,10 @@ -### Example 1: Using the Remove-MgUserActivity Cmdlet -```powershell -Import-Module Microsoft.Graph.CrossDeviceExperiences +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.CrossDeviceExperiences + # A UPN can also be used as -UserId. -Remove-MgUserActivity -UserId $userId -UserActivityId $userActivityId -``` -This example shows how to use the Remove-MgUserActivity Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgUserActivity -UserId $userId -UserActivityId $userActivityId +``` +This example shows how to use the Remove-MgUserActivity Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/CrossDeviceExperiences/v1.0/examples/Update-MgUserActivity.md b/src/CrossDeviceExperiences/v1.0/examples/Update-MgUserActivity.md index 093355d11d5..f6c6949389e 100644 --- a/src/CrossDeviceExperiences/v1.0/examples/Update-MgUserActivity.md +++ b/src/CrossDeviceExperiences/v1.0/examples/Update-MgUserActivity.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintConnector.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintConnector.md index c9097b90137..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintConnector.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintConnector.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaPrintConnector Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintConnector -PrintConnectorId $printConnectorId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPrintConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPrintConnector Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintConnector + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPrintConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintOperation.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintOperation.md index d2644dae2c3..6d9f8f1b975 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintOperation.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaPrintOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintOperation -PrintOperationId $printOperationId +``` +This example shows how to use the Get-MgBetaBetaPrintOperation 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 4fd6dd705f7..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinter.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinter.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaPrintPrinter Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintPrinter -PrinterId $printerId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPrintPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPrintPrinter Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintPrinter + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPrintPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterTaskTrigger.md index bda55a5726e..c85c57753dc 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintPrinterTaskTrigger.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaPrintPrinterTaskTrigger Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -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). -### Example 2: Using the Get-MgBetaPrintPrinterTaskTrigger Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintPrinterTaskTrigger -PrinterId $printerId -``` -This example shows how to use the Get-MgBetaPrintPrinterTaskTrigger Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId +``` +This example shows how to use the Get-MgBetaBetaPrintPrinterTaskTrigger 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 188eae24315..0c17e6fe4d8 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintService.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintService.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaPrintService Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -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). -### Example 2: Using the Get-MgBetaPrintService Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintService -``` -This example shows how to use the Get-MgBetaPrintService Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintService -PrintServiceId $printServiceId +``` +This example shows how to use the Get-MgBetaBetaPrintService 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 5bdd5b7a6d0..730b716a2db 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintServiceEndpoint.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaPrintServiceEndpoint Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintServiceEndpoint -PrintServiceId $printServiceId -``` -This example shows how to use the Get-MgBetaPrintServiceEndpoint Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPrintServiceEndpoint Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintServiceEndpoint -PrintServiceId $printServiceId -PrintServiceEndpointId $printServiceEndpointId +``` +This example shows how to use the Get-MgBetaBetaPrintServiceEndpoint 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 60a42bb9a8a..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShare.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintShare.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaPrintShare Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintShare -PrinterShareId $printerShareId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPrintShare Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPrintShare Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintShare + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPrintShare Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md index 9c827a79246..b9ab7dde778 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinition.md @@ -1,14 +1,16 @@ -### Example 1: Using the Get-MgBetaPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -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). -### Example 2: Using the Get-MgBetaPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintTaskDefinition -``` -This example shows how to use the Get-MgBetaPrintTaskDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +$params = @{ + displayName = "Test TaskDefinitionName" + createdBy = @{ + displayName = "Requesting App Display Name" + } +} + +Update-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPrintTaskDefinition 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 13e118df5d3..8bd47ae98e6 100644 --- a/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/beta/examples/Get-MgBetaPrintTaskDefinitionTask.md @@ -1,14 +1,16 @@ -### Example 1: Using the Get-MgBetaPrintTaskDefinitionTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Get-MgBetaPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -``` -This example shows how to use the Get-MgBetaPrintTaskDefinitionTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPrintTaskDefinitionTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +$params = @{ + status = @{ + state = "completed" + description = "completed" + } +} + +Update-MgBetaPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPrintTaskDefinitionTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintConnector.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintConnector.md index 178d3bad0e3..8dcd4032fde 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintConnector.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintConnector.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint - -Get-MgBetaPrintConnector -``` -This example shows how to use the New-MgBetaPrintConnector Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +Get-MgBetaPrintConnector +``` +This example shows how to use the New-MgBetaBetaPrintConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintPrinterTaskTrigger.md index 16acc058b01..1c410507933 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintPrinterTaskTrigger.md @@ -1,11 +1,14 @@ -### 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 New-MgBetaPrintPrinterTaskTrigger Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + event = "jobStarted" + "definition@odata.bind" = "https://graph.microsoft.com/v1.0/print/taskDefinitions/{taskDefinitionId}" +} +New-MgBetaPrintPrinterTaskTrigger -PrinterId $printerId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaPrintPrinterTaskTrigger Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintService.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintService.md index 30f7c4aec85..14e54e71e33 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintService.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintService.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint - -Get-MgBetaPrintService -``` -This example shows how to use the New-MgBetaPrintService Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +Get-MgBetaPrintService +``` +This example shows how to use the New-MgBetaBetaPrintService Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintServiceEndpoint.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintServiceEndpoint.md index 067f5083c88..820eff638bb 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintServiceEndpoint.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint - -Get-MgBetaPrintServiceEndpoint -PrintServiceId $printServiceId -``` -This example shows how to use the New-MgBetaPrintServiceEndpoint Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +Get-MgBetaPrintServiceEndpoint -PrintServiceId $printServiceId +``` +This example shows how to use the New-MgBetaBetaPrintServiceEndpoint 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 b9e6ab0dbdb..09aa7b46a5b 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShare.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShare.md @@ -1,11 +1,15 @@ -### Example 1: Using the New-MgBetaPrintShare Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + $params = @{ - Name = "name-value" - "Printer@odata.bind" = "https://graph.microsoft.com/beta/print/printers/{id}" + displayName = "ShareName" + allowAllUsers = $false + "printer@odata.bind" = "https://graph.microsoft.com/v1.0/print/printers/{printerId}" } -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-MgBetaBetaPrintShare Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedGroupByRef.md index 9457fe704a7..215231375d4 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedGroupByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaPrintShareAllowedGroupByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/groups/{id}" + "@odata.id" = "https://graph.microsoft.com/v1.0/groups/{groupId}" } -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-MgBetaBetaPrintShareAllowedGroupByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedUserByRef.md index 5978585c23a..ffad86583f9 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintShareAllowedUserByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaPrintShareAllowedUserByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/users/{id}" + "@odata.id" = "https://graph.microsoft.com/v1.0/users/{userId}" } -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-MgBetaBetaPrintShareAllowedUserByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinition.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinition.md index 2a78a2cdfc9..6c5f1fb712c 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinition.md @@ -1,13 +1,16 @@ -### Example 1: Using the New-MgBetaPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + $params = @{ - DisplayName = "Test TaskDefinitionName" - CreatedBy = @{ - DisplayName = "Requesting App Display Name" + displayName = "Test TaskDefinitionName" + createdBy = @{ + displayName = "Requesting App Display Name" } } -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-MgBetaBetaPrintTaskDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinitionTask.md index a995818465e..96d9d28820d 100644 --- a/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/beta/examples/New-MgBetaPrintTaskDefinitionTask.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint - -Get-MgBetaPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -``` -This example shows how to use the New-MgBetaPrintTaskDefinitionTask Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +Get-MgBetaPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId +``` +This example shows how to use the New-MgBetaBetaPrintTaskDefinitionTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintConnector.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintConnector.md index 0df45328e46..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintConnector.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintConnector.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaPrintConnector Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Remove-MgBetaPrintConnector -PrintConnectorId $printConnectorId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaPrintConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaPrintOperation.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintOperation.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintPrinter.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintPrinter.md index 02580718f8f..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintPrinter.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintPrinter.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaPrintPrinter Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Remove-MgBetaPrintPrinter -PrinterId $printerId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaPrintPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintPrinterTaskTrigger.md index 90cad335ed1..fa6159f3707 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintPrinterTaskTrigger.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaPrintPrinterTaskTrigger Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Remove-MgBetaPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId -``` -This example shows how to use the Remove-MgBetaPrintPrinterTaskTrigger Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Get-MgBetaPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId +``` +This example shows how to use the Remove-MgBetaBetaPrintPrinterTaskTrigger Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintService.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintService.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintService.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintService.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintServiceEndpoint.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintServiceEndpoint.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintServiceEndpoint.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShare.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShare.md index 980fc19bbd0..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShare.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShare.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaPrintShare Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Remove-MgBetaPrintShare -PrinterShareId $printerShareId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaPrintShare Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShareAllowedGroupByRef.md index f004aa0c27c..aa6ee6ea98c 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShareAllowedGroupByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaPrintShareAllowedGroupByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Remove-MgBetaPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -GroupId $groupId -``` -This example shows how to use the Remove-MgBetaPrintShareAllowedGroupByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +Remove-MgBetaPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -GroupId $groupId +``` +This example shows how to use the Remove-MgBetaBetaPrintShareAllowedGroupByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShareAllowedUserByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintShareAllowedUserByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinition.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinition.md index 3df78192d3e..c2589c51371 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinition.md @@ -1,7 +1,16 @@ -### Example 1: Using the Remove-MgBetaPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -Remove-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -``` -This example shows how to use the Remove-MgBetaPrintTaskDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + +$params = @{ + displayName = "Test TaskDefinitionName" + createdBy = @{ + displayName = "Requesting App Display Name" + } +} + +Update-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPrintTaskDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinitionTask.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/beta/examples/Remove-MgBetaPrintTaskDefinitionTask.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintConnector.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintConnector.md index b89da517bea..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintConnector.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintConnector.md @@ -1,18 +1,17 @@ -### Example 1: Using the Update-MgBetaPrintConnector Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -$params = @{ - DisplayName = "ConnectorName" - FullyQualifiedDomainName = "CONNECTOR-MACHINE" - OperatingSystem = "Microsoft Windows 10 Enterprise Insider Preview | 10.0.19555" - AppVersion = "0.19.7338.23496" - Location = @{ - Latitude = 1.1 - Longitude = 2.2 - AltitudeInMeters = 3 - } -} -Update-MgBetaPrintConnector -PrintConnectorId $printConnectorId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaPrintConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Update-MgBetaPrintOperation.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintOperation.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintPrinter.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintPrinter.md index 4d20326e5ee..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintPrinter.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintPrinter.md @@ -1,15 +1,17 @@ -### Example 1: Using the Update-MgBetaPrintPrinter Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -$params = @{ - Name = "PrinterName" - Location = @{ - Latitude = 1.1 - Longitude = 2.2 - AltitudeInMeters = 3 - } -} -Update-MgBetaPrintPrinter -PrinterId $printerId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaPrintPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Update-MgBetaPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintPrinterTaskTrigger.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintPrinterTaskTrigger.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintService.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintService.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintService.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintService.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintServiceEndpoint.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintServiceEndpoint.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintServiceEndpoint.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintShare.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintShare.md index 7a1bdfd8f00..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintShare.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintShare.md @@ -1,12 +1,17 @@ -### Example 1: Using the Update-MgBetaPrintShare Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint -$params = @{ - DisplayName = "ShareName" - AllowAllUsers = $true - "Printer@odata.bind" = "https://graph.microsoft.com/beta/print/printers/{id}" -} -Update-MgBetaPrintShare -PrinterShareId $printerShareId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaPrintShare Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Update-MgBetaPrintTaskDefinition.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinition.md index d8b186714a5..867daa2ef40 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinition.md @@ -1,13 +1,16 @@ -### Example 1: Using the Update-MgBetaPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.CloudPrint + $params = @{ - DisplayName = "Test TaskDefinitionName" - CreatedBy = @{ - DisplayName = "Requesting App Display Name" + displayName = "Test TaskDefinitionName" + createdBy = @{ + displayName = "Requesting App Display Name" } } -Update-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPrintTaskDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPrintTaskDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinitionTask.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/beta/examples/Update-MgBetaPrintTaskDefinitionTask.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md index 585b0396a4b..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintConnector.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgPrintConnector Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintConnector -PrintConnectorId $printConnectorId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPrintConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPrintConnector Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintConnector + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPrintConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintOperation.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintOperation.md index 3a9558682fa..ecbd12bcc6b 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintOperation.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgPrintOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +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 8c75ee416a0..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinter.md @@ -1,21 +1,17 @@ -### Example 1: Using the Get-MgPrintPrinter Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintPrinter -PrinterId $printerId -Property "id,displayName,capabilities" + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPrintPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPrintPrinter Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintPrinter -PrinterId $printerId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPrintPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgPrintPrinter Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintPrinter -``` -This example shows how to use the Get-MgPrintPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterTaskTrigger.md index 10a3c518a4c..5725d1c49c1 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintPrinterTaskTrigger.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgPrintPrinterTaskTrigger Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -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). -### Example 2: Using the Get-MgPrintPrinterTaskTrigger Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintPrinterTaskTrigger -PrinterId $printerId -``` -This example shows how to use the Get-MgPrintPrinterTaskTrigger Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +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 6ab750cf1e1..39df3998aaf 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintService.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintService.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgPrintService Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -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). -### Example 2: Using the Get-MgPrintService Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintService -``` -This example shows how to use the Get-MgPrintService Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +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 3440033e58e..e9a15f24fc8 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintServiceEndpoint.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgPrintServiceEndpoint Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -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). -### Example 2: Using the Get-MgPrintServiceEndpoint Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintServiceEndpoint -PrintServiceId $printServiceId -``` -This example shows how to use the Get-MgPrintServiceEndpoint Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +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 5f1b7f68a0c..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShare.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintShare.md @@ -1,21 +1,17 @@ -### Example 1: Using the Get-MgPrintShare Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintShare -PrinterShareId $printerShareId -Property "id,displayName,capabilities" + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPrintShare Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPrintShare Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintShare -PrinterShareId $printerShareId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPrintShare Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgPrintShare Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintShare -``` -This example shows how to use the Get-MgPrintShare Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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 cdab7a1e499..42077bb939e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinition.md @@ -1,14 +1,16 @@ -### Example 1: Using the Get-MgPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -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). -### Example 2: Using the Get-MgPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintTaskDefinition -``` -This example shows how to use the Get-MgPrintTaskDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +$params = @{ + displayName = "Test TaskDefinitionName" + createdBy = @{ + displayName = "Requesting App Display Name" + } +} + +Update-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +``` +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 7550825532f..fbf2af2b2d8 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/v1.0/examples/Get-MgPrintTaskDefinitionTask.md @@ -1,14 +1,16 @@ -### Example 1: Using the Get-MgPrintTaskDefinitionTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -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). -### Example 2: Using the Get-MgPrintTaskDefinitionTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Get-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -``` -This example shows how to use the Get-MgPrintTaskDefinitionTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +$params = @{ + status = @{ + state = "completed" + description = "completed" + } +} + +Update-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -BodyParameter $params +``` +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 c8a1db020d0..53922432fe1 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintPrinterTaskTrigger.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgPrintPrinterTaskTrigger Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + $params = @{ - Event = "jobStarted" - "Definition@odata.bind" = "https://graph.microsoft.com/v1.0/print/taskDefinitions/{taskDefinitionId}" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShare.md b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShare.md index 735d4c84036..f5f9494cd1b 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShare.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShare.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgPrintShare Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + $params = @{ - DisplayName = "ShareName" - AllowAllUsers = $false - "Printer@odata.bind" = "https://graph.microsoft.com/v1.0/print/printers/{printerId}" + displayName = "ShareName" + allowAllUsers = $false + "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 55b36ffa682..c7b371e0963 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedGroupByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgPrintShareAllowedGroupByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint +### Example 1: Code snippet + +```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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedUserByRef.md index ff05ec1a79d..fbc28eb48a9 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintShareAllowedUserByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgPrintShareAllowedUserByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint +### Example 1: Code snippet + +```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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintTaskDefinition.md index 5297b4e6239..32452510389 100644 --- a/src/Devices.CloudPrint/v1.0/examples/New-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/v1.0/examples/New-MgPrintTaskDefinition.md @@ -1,13 +1,16 @@ -### Example 1: Using the New-MgPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + $params = @{ - DisplayName = "Test TaskDefinitionName" - CreatedBy = @{ - DisplayName = "Requesting App Display Name" + displayName = "Test TaskDefinitionName" + createdBy = @{ + displayName = "Requesting App Display Name" } } -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintConnector.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintConnector.md index b6b03acbbd9..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintConnector.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintConnector.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgPrintConnector Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Remove-MgPrintConnector -PrintConnectorId $printConnectorId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgPrintConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgPrintOperation.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintOperation.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md index c88a5f00d66..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgPrintPrinter Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Remove-MgPrintPrinter -PrinterId $printerId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgPrintPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinterTaskTrigger.md index 7bf987720c8..9b163ad6cea 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinterTaskTrigger.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgPrintPrinterTaskTrigger Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Remove-MgPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId -``` -This example shows how to use the Remove-MgPrintPrinterTaskTrigger Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +Get-MgPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId +``` +This example shows how to use the Remove-MgPrintPrinterTaskTrigger Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintService.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintService.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintService.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintService.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintServiceEndpoint.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintServiceEndpoint.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintServiceEndpoint.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShare.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShare.md index 35927f171d2..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShare.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShare.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgPrintShare Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Remove-MgPrintShare -PrinterShareId $printerShareId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgPrintShare Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShareAllowedGroupByRef.md index 4065fc85784..a8e65f6719f 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShareAllowedGroupByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgPrintShareAllowedGroupByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Remove-MgPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -GroupId $groupId -``` -This example shows how to use the Remove-MgPrintShareAllowedGroupByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +Remove-MgPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -GroupId $groupId +``` +This example shows how to use the Remove-MgPrintShareAllowedGroupByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShareAllowedUserByRef.md index e1b5d0ca410..8de7c3bf18b 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShareAllowedUserByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgPrintShareAllowedUserByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Remove-MgPrintShareAllowedUserByRef -PrinterShareId $printerShareId -UserId $userId -``` -This example shows how to use the Remove-MgPrintShareAllowedUserByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +Remove-MgPrintShareAllowedUserByRef -PrinterShareId $printerShareId -UserId $userId +``` +This example shows how to use the Remove-MgPrintShareAllowedUserByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinition.md index 0e86aa99d4a..ce012b25b8c 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinition.md @@ -1,7 +1,16 @@ -### Example 1: Using the Remove-MgPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -Remove-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -``` -This example shows how to use the Remove-MgPrintTaskDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + +$params = @{ + displayName = "Test TaskDefinitionName" + createdBy = @{ + displayName = "Requesting App Display Name" + } +} + +Update-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +``` +This example shows how to use the Remove-MgPrintTaskDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinitionTask.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintTaskDefinitionTask.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintConnector.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintConnector.md index 3b0f9997821..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintConnector.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintConnector.md @@ -1,18 +1,17 @@ -### Example 1: Using the Update-MgPrintConnector Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -$params = @{ - DisplayName = "ConnectorName" - FullyQualifiedDomainName = "CONNECTOR-MACHINE" - OperatingSystem = "Microsoft Windows 10 Enterprise Insider Preview | 10.0.19555" - AppVersion = "0.19.7338.23496" - Location = @{ - Latitude = 1.1 - Longitude = 2.2 - AltitudeInMeters = 3 - } -} -Update-MgPrintConnector -PrintConnectorId $printConnectorId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgPrintConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Update-MgPrintOperation.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintOperation.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintPrinter.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintPrinter.md index eefb23ee35e..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintPrinter.md @@ -1,15 +1,17 @@ -### Example 1: Using the Update-MgPrintPrinter Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -$params = @{ - Name = "PrinterName" - Location = @{ - Latitude = 1.1 - Longitude = 2.2 - AltitudeInMeters = 3 - } -} -Update-MgPrintPrinter -PrinterId $printerId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgPrintPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Update-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintPrinterTaskTrigger.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintPrinterTaskTrigger.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintService.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintService.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintService.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintService.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintServiceEndpoint.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintServiceEndpoint.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintServiceEndpoint.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintShare.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintShare.md index 468a0d38650..f6c6949389e 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintShare.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintShare.md @@ -1,12 +1,17 @@ -### Example 1: Using the Update-MgPrintShare Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint -$params = @{ - DisplayName = "PrinterShare Name" - "Printer@odata.bind" = "https://graph.microsoft.com/v1.0/print/printers/{printerId}" - AllowAllUsers = $false -} -Update-MgPrintShare -PrinterShareId $printerShareId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgPrintShare Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Update-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinition.md index ee40fa3719f..73535c68164 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinition.md @@ -1,13 +1,16 @@ -### Example 1: Using the Update-MgPrintTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + $params = @{ - DisplayName = "Test TaskDefinitionName" - CreatedBy = @{ - DisplayName = "Requesting App Display Name" + displayName = "Test TaskDefinitionName" + createdBy = @{ + displayName = "Requesting App Display Name" } } -Update-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params -``` -This example shows how to use the Update-MgPrintTaskDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params +``` +This example shows how to use the Update-MgPrintTaskDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinitionTask.md index db64fdfaf5b..776de4721bb 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/v1.0/examples/Update-MgPrintTaskDefinitionTask.md @@ -1,13 +1,16 @@ -### Example 1: Using the Update-MgPrintTaskDefinitionTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint + $params = @{ - Status = @{ - State = "completed" - Description = "completed" + status = @{ + state = "completed" + description = "completed" } } -Update-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgPrintTaskDefinitionTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -BodyParameter $params +``` +This example shows how to use the Update-MgPrintTaskDefinitionTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementHealthOverview.md index 5b2cff7ffd5..4cef6987434 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementHealthOverview.md @@ -1,28 +1,18 @@ -### Example 1: Using the Get-MgBetaServiceAnnouncementHealthOverview Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -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: Using the Get-MgBetaServiceAnnouncementHealthOverview Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -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). -### Example 3: Using the Get-MgBetaServiceAnnouncementHealthOverview Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementHealthOverview -``` -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 4: Using the Get-MgBetaServiceAnnouncementHealthOverview Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementHealthOverview -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). +### Example 1: Get the properties of a serviceHealth object + +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId +``` +This example shows how to use the Get-MgBetaBetaServiceAnnouncementHealthOverview Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Include navigation property issues + +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId -ExpandProperty "issues" +``` +This example shows how to use the Get-MgBetaBetaServiceAnnouncementHealthOverview 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 de46efb8635..365734718a1 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementIssue.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaServiceAnnouncementIssue Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -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). -### Example 2: Using the Get-MgBetaServiceAnnouncementIssue Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementIssue -``` -This example shows how to use the Get-MgBetaServiceAnnouncementIssue Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementIssue -ServiceHealthIssueId $serviceHealthIssueId +``` +This example shows how to use the Get-MgBetaBetaServiceAnnouncementIssue 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 ed8cc704b9b..ddabaeed301 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessage.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaServiceAnnouncementMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -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). -### Example 2: Using the Get-MgBetaServiceAnnouncementMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementMessage -``` -This example shows how to use the Get-MgBetaServiceAnnouncementMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementMessage -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example shows how to use the Get-MgBetaBetaServiceAnnouncementMessage 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 3cc27d8695e..ea8360801e2 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachment.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgBetaServiceAnnouncementMessageAttachment Cmdlet -```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). -### Example 2: Using the Get-MgBetaServiceAnnouncementMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example shows how to use the Get-MgBetaServiceAnnouncementMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get an attachment message ID + +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId +``` +This example shows how to use the Get-MgBetaBetaServiceAnnouncementMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Return a file stream of an attachment content for a message + +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId +``` +This example shows how to use the Get-MgBetaBetaServiceAnnouncementMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachmentArchive.md b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachmentArchive.md index 2e51d174c27..7420bd295f5 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachmentArchive.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachmentArchive.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaServiceAnnouncementMessageAttachmentArchive Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaServiceAnnouncementMessageAttachmentArchive Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaServiceAnnouncementMessageAttachmentArchive Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example shows how to use the Get-MgBetaServiceAnnouncementMessageAttachmentArchive Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementMessage +``` +This example shows how to use the Get-MgBetaBetaServiceAnnouncementMessageAttachmentArchive Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachmentContent.md b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachmentContent.md index 62a8af43428..799aebe905f 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachmentContent.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Get-MgBetaServiceAnnouncementMessageAttachmentContent.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgBetaServiceAnnouncementMessageAttachmentContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -``` -This example shows how to use the Get-MgBetaServiceAnnouncementMessageAttachmentContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaServiceAnnouncementMessageAttachmentContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaServiceAnnouncementMessageAttachmentContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get all attachments of a message in a collection + +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example shows how to use the Get-MgBetaBetaServiceAnnouncementMessageAttachmentContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a zip file of all attachments in stream for a message + +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement + +Get-MgBetaServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example shows how to use the Get-MgBetaBetaServiceAnnouncementMessageAttachmentContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementHealthOverview.md index f98fc525fb1..60c78c38c00 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementHealthOverview.md @@ -1,22 +1,18 @@ -### Example 1: Get serviceHealth resources +### Example 1: Get serviceHealth resources -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementHealthOverview -``` -This example shows how to use the New-MgBetaServiceAnnouncementHealthOverview Cmdlet. +Get-MgBetaServiceAnnouncementHealthOverview +``` +This example shows how to use the New-MgBetaBetaServiceAnnouncementHealthOverview Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Include navigation property issues -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Include navigation property issues - -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement - -Get-MgBetaServiceAnnouncementHealthOverview -ExpandProperty "issues" -``` -This example shows how to use the New-MgBetaServiceAnnouncementHealthOverview Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +Get-MgBetaServiceAnnouncementHealthOverview -ExpandProperty "issues" +``` +This example shows how to use the New-MgBetaBetaServiceAnnouncementHealthOverview Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementIssue.md b/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementIssue.md index cb7cd55316c..2471bd949fe 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementIssue.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement - -Get-MgBetaServiceAnnouncementIssue -``` -This example shows how to use the New-MgBetaServiceAnnouncementIssue Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +Get-MgBetaServiceAnnouncementIssue +``` +This example shows how to use the New-MgBetaBetaServiceAnnouncementIssue Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementMessage.md index 0eefc8aed2e..da4683519ee 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementMessage.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement - -Get-MgBetaServiceAnnouncementMessage -``` -This example shows how to use the New-MgBetaServiceAnnouncementMessage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +Get-MgBetaServiceAnnouncementMessage +``` +This example shows how to use the New-MgBetaBetaServiceAnnouncementMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementMessageAttachment.md b/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementMessageAttachment.md index 80bd0212e20..3d5085addf4 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/New-MgBetaServiceAnnouncementMessageAttachment.md @@ -1,22 +1,18 @@ -### Example 1: Get all attachments of a message in a collection +### Example 1: Get all attachments of a message in a collection -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example shows how to use the New-MgBetaServiceAnnouncementMessageAttachment Cmdlet. +Get-MgBetaServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example shows how to use the New-MgBetaBetaServiceAnnouncementMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a zip file of all attachments in stream for a message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get a zip file of all attachments in stream for a message - -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement - -Get-MgBetaServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example shows how to use the New-MgBetaServiceAnnouncementMessageAttachment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +Get-MgBetaServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example shows how to use the New-MgBetaBetaServiceAnnouncementMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementHealthOverview.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementHealthOverview.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementIssue.md b/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementIssue.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementIssue.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementMessageAttachment.md b/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Remove-MgBetaServiceAnnouncementMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Set-MgBetaServiceAnnouncementMessageAttachmentArchive.md b/src/Devices.ServiceAnnouncement/beta/examples/Set-MgBetaServiceAnnouncementMessageAttachmentArchive.md index 7a32eee9ba7..2f512539a7e 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Set-MgBetaServiceAnnouncementMessageAttachmentArchive.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Set-MgBetaServiceAnnouncementMessageAttachmentArchive.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement - -Get-MgBetaServiceAnnouncementMessage -``` -This example shows how to use the Set-MgBetaServiceAnnouncementMessageAttachmentArchive Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +Get-MgBetaServiceAnnouncementMessage +``` +This example shows how to use the Set-MgBetaBetaServiceAnnouncementMessageAttachmentArchive Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Set-MgBetaServiceAnnouncementMessageAttachmentContent.md b/src/Devices.ServiceAnnouncement/beta/examples/Set-MgBetaServiceAnnouncementMessageAttachmentContent.md index f7db608c167..5031aeaffeb 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Set-MgBetaServiceAnnouncementMessageAttachmentContent.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Set-MgBetaServiceAnnouncementMessageAttachmentContent.md @@ -1,22 +1,18 @@ -### Example 1: Get all attachments of a message in a collection +### Example 1: Get all attachments of a message in a collection -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement -Get-MgBetaServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example shows how to use the Set-MgBetaServiceAnnouncementMessageAttachmentContent Cmdlet. +Get-MgBetaServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example shows how to use the Set-MgBetaBetaServiceAnnouncementMessageAttachmentContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a zip file of all attachments in stream for a message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get a zip file of all attachments in stream for a message - -```powershell -Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement - -Get-MgBetaServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example shows how to use the Set-MgBetaServiceAnnouncementMessageAttachmentContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Devices.ServiceAnnouncement +Get-MgBetaServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example shows how to use the Set-MgBetaBetaServiceAnnouncementMessageAttachmentContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementHealthOverview.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementHealthOverview.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementIssue.md b/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementIssue.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementIssue.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementMessageAttachment.md b/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/beta/examples/Update-MgBetaServiceAnnouncementMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementHealthOverview.md index aadf228bc08..aa7200ea9bc 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementHealthOverview.md @@ -1,28 +1,18 @@ -### Example 1: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -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: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -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). -### Example 3: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementHealthOverview -``` -This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementHealthOverview -ExpandProperty "issues" -``` -This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get the properties of a serviceHealth object + +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +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 + +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +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 f911fe6db29..be7e751ccfc 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementIssue.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgServiceAnnouncementIssue Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -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). -### Example 2: Using the Get-MgServiceAnnouncementIssue Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementIssue -``` -This example shows how to use the Get-MgServiceAnnouncementIssue Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +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 c739f4180ab..6e2f8fd3514 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessage.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgServiceAnnouncementMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -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). -### Example 2: Using the Get-MgServiceAnnouncementMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementMessage -``` -This example shows how to use the Get-MgServiceAnnouncementMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +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 e5ffddff277..082cd1f8adf 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachment.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgServiceAnnouncementMessageAttachment Cmdlet -```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). -### Example 2: Using the Get-MgServiceAnnouncementMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example shows how to use the Get-MgServiceAnnouncementMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 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). + +### Example 2: Return a file stream of an attachment content for a message + +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +Get-MgServiceAnnouncementMessageAttachmentContent -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). + diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachmentArchive.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachmentArchive.md index 4049021ca54..3ac5f966947 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachmentArchive.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachmentArchive.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId -``` -This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId -OutFile $outFileId -``` -This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +Get-MgServiceAnnouncementMessage +``` +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachmentContent.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachmentContent.md index 895e5ca8e5f..37acadcf778 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachmentContent.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Get-MgServiceAnnouncementMessageAttachmentContent.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -``` -This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Devices.ServiceAnnouncement -Get-MgServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -OutFile $outFileId -``` -This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get all attachments of a message in a collection + +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a zip file of all attachments in stream for a message + +```powershell Import-Module Microsoft.Graph.Devices.ServiceAnnouncement + +Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId +``` +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementHealthOverview.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementHealthOverview.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementIssue.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementIssue.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementIssue.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementMessageAttachment.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Remove-MgServiceAnnouncementMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementHealthOverview.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementHealthOverview.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementIssue.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementIssue.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementIssue.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementMessageAttachment.md b/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/v1.0/examples/Update-MgServiceAnnouncementMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObject.md b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObject.md index b20dba57f5d..f22bd7d3fc4 100644 --- a/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObject.md +++ b/src/DirectoryObjects/beta/examples/Get-MgBetaDirectoryObject.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaDirectoryObject Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.DirectoryObjects -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.DirectoryObjects + +Get-MgBetaDirectoryObject -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Get-MgBetaBetaDirectoryObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/DirectoryObjects/beta/examples/Remove-MgBetaDirectoryObject.md b/src/DirectoryObjects/beta/examples/Remove-MgBetaDirectoryObject.md index 528482406ef..89ee216b04c 100644 --- a/src/DirectoryObjects/beta/examples/Remove-MgBetaDirectoryObject.md +++ b/src/DirectoryObjects/beta/examples/Remove-MgBetaDirectoryObject.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaDirectoryObject Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.DirectoryObjects -Remove-MgBetaDirectoryObject -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaDirectoryObject Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.DirectoryObjects + +Get-MgBetaDirectoryObject -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaDirectoryObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/DirectoryObjects/beta/examples/Update-MgBetaDirectoryObject.md b/src/DirectoryObjects/beta/examples/Update-MgBetaDirectoryObject.md index f99677996a1..20b60dab80f 100644 --- a/src/DirectoryObjects/beta/examples/Update-MgBetaDirectoryObject.md +++ b/src/DirectoryObjects/beta/examples/Update-MgBetaDirectoryObject.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.DirectoryObjects - -Remove-MgBetaDirectoryObject -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Update-MgBetaDirectoryObject Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.DirectoryObjects +Get-MgBetaDirectoryObject -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Update-MgBetaBetaDirectoryObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObject.md b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObject.md index c78fa264d7b..96d728fa9b1 100644 --- a/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObject.md +++ b/src/DirectoryObjects/v1.0/examples/Get-MgDirectoryObject.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgDirectoryObject Cmdlet -```powershell -Import-Module Microsoft.Graph.DirectoryObjects -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.DirectoryObjects + +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/Remove-MgDirectoryObject.md b/src/DirectoryObjects/v1.0/examples/Remove-MgDirectoryObject.md index 225c5f869ba..d006696f4f1 100644 --- a/src/DirectoryObjects/v1.0/examples/Remove-MgDirectoryObject.md +++ b/src/DirectoryObjects/v1.0/examples/Remove-MgDirectoryObject.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgDirectoryObject Cmdlet -```powershell -Import-Module Microsoft.Graph.DirectoryObjects -Remove-MgDirectoryObject -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgDirectoryObject Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.DirectoryObjects + +Get-MgDirectoryObject -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgDirectoryObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/DirectoryObjects/v1.0/examples/Update-MgDirectoryObject.md b/src/DirectoryObjects/v1.0/examples/Update-MgDirectoryObject.md index cbd3baa84fe..f361d033aee 100644 --- a/src/DirectoryObjects/v1.0/examples/Update-MgDirectoryObject.md +++ b/src/DirectoryObjects/v1.0/examples/Update-MgDirectoryObject.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.DirectoryObjects -Remove-MgDirectoryObject -DirectoryObjectId $directoryObjectId +Get-MgDirectoryObject -DirectoryObjectId $directoryObjectId ``` This example shows how to use the Update-MgDirectoryObject Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/beta/examples/Get-MgBetaEducationClass.md b/src/Education/beta/examples/Get-MgBetaEducationClass.md index f8bd5bd868b..e9f98ba4699 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClass.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClass.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgBetaEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClass -``` -This example shows how to use the Get-MgBetaEducationClass Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + description = "History - World History 1" + displayName = "World History Level 1" +} + +Update-MgBetaEducationClass -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationClass Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignment.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignment.md index 034627d4032..cd835610d50 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignment.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignment.md @@ -1,28 +1,19 @@ -### Example 1: Using the Get-MgBetaEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -``` -This example shows how to use the Get-MgBetaEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -ExpandProperty "resources" -``` -This example shows how to use the Get-MgBetaEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + displayName = "Reading and review test 09.03 #5" + instructions = @{ + contentType = "text" + content = "Read chapter 5 and write your review" + } + dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") + addedStudentAction = "none" +} + +Update-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentCategory.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentCategory.md index ec192b24b50..e01926ee1b7 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentCategory.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentCategory.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaEducationClassAssignmentCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationClassAssignmentCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentDefault.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentDefault.md index db2b1096eb5..cc0caafb9b3 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentDefault.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentDefault.md @@ -1,7 +1,14 @@ -### Example 1: Using the Get-MgBetaEducationClassAssignmentDefault Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentDefault Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + addedStudentAction = "assignIfOpen" + notificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" +} + +Update-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentDefault Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentResource.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentResource.md index c8c82d9d23d..58f6ddb8401 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentResource.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentResource.md @@ -1,49 +1,54 @@ -### Example 1: Using the Get-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Get-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get an educationWordResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubric.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubric.md index d0197963f45..76dcdf2c038 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubric.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgBetaEducationClassAssignmentRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubricByRef.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubricByRef.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSetting.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSetting.md index 4f31379113d..b3a09627461 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSetting.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSetting.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgBetaEducationClassAssignmentSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + submissionAnimationDisabled = $true +} + +Update-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmission.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmission.md index ca53b9fd56c..1fa70233757 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmission.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmission.md @@ -1,42 +1,18 @@ -### Example 1: Using the Get-MgBetaEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get submission + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get submission with $expand options + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionOutcome.md index 837911e12a1..1d594668b4a 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionOutcome.md @@ -1,14 +1,47 @@ -### Example 1: Using the Get-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update a feedback outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a points outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationPointsOutcome" + points = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" + points = + } +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update a rubric outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + rubricQualityFeedback = @( + ) + rubricQualitySelectedLevels = @( + ) +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionResource.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionResource.md index 5aa14efc0f3..0ed995ac7f5 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmissionResource.md @@ -1,49 +1,54 @@ -### Example 1: Using the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Get-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get an educationWordResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentResource.md b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentResource.md index f634a7e2289..38ca5e251f2 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentResource.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentResource.md @@ -1,11 +1,54 @@ -### Example 1: Code snippet +### Example 1: Get an educationWordResource -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationMeAssignmentResource Cmdlet. +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationLinkResource -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubric.md b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubric.md index b0ff3fa541d..ce459b9bb44 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubric.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationMeAssignmentRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} +Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubricByRef.md b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubricByRef.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmission.md b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmission.md index 9997b75951b..7f351c5b815 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmission.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmission.md @@ -1,22 +1,18 @@ -### Example 1: Get submissions +### Example 1: Get submission -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationMeAssignmentSubmission Cmdlet. +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get submission with $expand options -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get submissions with $expand options - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" -``` -This example shows how to use the Get-MgBetaEducationMeAssignmentSubmission Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionOutcome.md index 574f35066b2..49b98ca7421 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionOutcome.md @@ -1,22 +1,47 @@ -### Example 1: Get all outcomes - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Get-MgBetaEducationMeAssignmentSubmissionOutcome Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get outcomes filtered by outcome type - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" -``` -This example shows how to use the Get-MgBetaEducationMeAssignmentSubmissionOutcome Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Update a feedback outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a points outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationPointsOutcome" + points = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" + points = + } +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update a rubric outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + rubricQualityFeedback = @( + ) + rubricQualitySelectedLevels = @( + ) +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionResource.md b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionResource.md index 3c679f43d97..642c35f0f1a 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionResource.md @@ -1,11 +1,54 @@ -### Example 1: Code snippet +### Example 1: Get an educationWordResource -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Get-MgBetaEducationMeAssignmentSubmissionResource Cmdlet. +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationFileResource -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeRubric.md b/src/Education/beta/examples/Get-MgBetaEducationMeRubric.md index 091aa6e35d5..0f37faff5fe 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeRubric.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -``` -This example shows how to use the Get-MgBetaEducationMeRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationMeRubric -``` -This example shows how to use the Get-MgBetaEducationMeRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + displayName = "Example Credit Rubric after display name patch" +} + +Update-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationMeRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeUser.md b/src/Education/beta/examples/Get-MgBetaEducationMeUser.md index b10b3f11650..c37f1e77584 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeUser.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeUser.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationMeUser -``` -This example shows how to use the Get-MgBetaEducationMeUser Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationMeUser +``` +This example shows how to use the Get-MgBetaBetaEducationMeUser Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationSchool.md b/src/Education/beta/examples/Get-MgBetaEducationSchool.md index 805745ffc10..1fe42301a84 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationSchool.md +++ b/src/Education/beta/examples/Get-MgBetaEducationSchool.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgBetaEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationSchool -EducationSchoolId $educationSchoolId -``` -This example shows how to use the Get-MgBetaEducationSchool Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationSchool -``` -This example shows how to use the Get-MgBetaEducationSchool Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + displayName = "Fabrikam Arts High School" + description = "Magnate school for the arts. Los Angeles School District" +} + +Update-MgBetaEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationSchool Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationSchoolAdministrativeUnit.md b/src/Education/beta/examples/Get-MgBetaEducationSchoolAdministrativeUnit.md index 8fa4730c36c..f6c6949389e 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationSchoolAdministrativeUnit.md +++ b/src/Education/beta/examples/Get-MgBetaEducationSchoolAdministrativeUnit.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgBetaEducationSchoolAdministrativeUnit Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationSchoolAdministrativeUnit -EducationSchoolId $educationSchoolId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaEducationSchoolAdministrativeUnit Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/beta/examples/Get-MgBetaEducationUser.md b/src/Education/beta/examples/Get-MgBetaEducationUser.md index e38c135f1b9..d45bed1279a 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUser.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUser.md @@ -1,14 +1,16 @@ -### Example 1: Using the Get-MgBetaEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationUser -``` -This example shows how to use the Get-MgBetaEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationUser -EducationUserId $educationUserId -``` -This example shows how to use the Get-MgBetaEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + displayName = "Rogelio Cazares" + givenName = "Rogelio" + middleName = "Fernando" + surname = "Cazares" +} + +Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationUser Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentResource.md b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentResource.md index c453ea3aadd..c1e923cf2eb 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentResource.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentResource.md @@ -1,11 +1,54 @@ -### Example 1: Code snippet +### Example 1: Get an educationWordResource -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationUserAssignmentResource Cmdlet. +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationLinkResource -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubric.md b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubric.md index 451e52ca5a0..f57d2149b20 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubric.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationUserAssignmentRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} +Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubricByRef.md b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubricByRef.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmission.md b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmission.md index 2d0b27a9b9d..e353cb7dc46 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmission.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmission.md @@ -1,22 +1,18 @@ -### Example 1: Get submissions +### Example 1: Get submission -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgBetaEducationUserAssignmentSubmission Cmdlet. +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get submission with $expand options -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get submissions with $expand options - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" -``` -This example shows how to use the Get-MgBetaEducationUserAssignmentSubmission Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionOutcome.md index 26b468fb2ab..72cdff4fd5a 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionOutcome.md @@ -1,22 +1,47 @@ -### Example 1: Get all outcomes - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Get-MgBetaEducationUserAssignmentSubmissionOutcome Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get outcomes filtered by outcome type - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" -``` -This example shows how to use the Get-MgBetaEducationUserAssignmentSubmissionOutcome Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Update a feedback outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a points outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationPointsOutcome" + points = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" + points = + } +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update a rubric outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + rubricQualityFeedback = @( + ) + rubricQualitySelectedLevels = @( + ) +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionResource.md b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionResource.md index 339055e9d14..5a0a55413bf 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserAssignmentSubmissionResource.md @@ -1,11 +1,54 @@ -### Example 1: Code snippet +### Example 1: Get an educationWordResource -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Get-MgBetaEducationUserAssignmentSubmissionResource Cmdlet. +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationFileResource -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgBetaBetaEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Get-MgBetaEducationUserRubric.md b/src/Education/beta/examples/Get-MgBetaEducationUserRubric.md index cafb2902cc5..ab7f9eb4774 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationUserRubric.md +++ b/src/Education/beta/examples/Get-MgBetaEducationUserRubric.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationMeRubric -``` -This example shows how to use the Get-MgBetaEducationUserRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "Example Credit Rubric after display name patch" +} +Update-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEducationUserRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClass.md b/src/Education/beta/examples/New-MgBetaEducationClass.md index dd5b7d5d5f8..378309f6131 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClass.md +++ b/src/Education/beta/examples/New-MgBetaEducationClass.md @@ -1,16 +1,28 @@ -### Example 1: Using the New-MgBetaEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - Description = "Health Level 1" - ClassCode = "Health 501" - DisplayName = "Health 1" - ExternalId = "11019" - ExternalName = "Health Level 1" - ExternalSource = "sis" - MailNickname = "fineartschool.net" + "@odata.type" = "#microsoft.graph.educationClass" + displayName = "String" + mailNickname = "String" + description = "String" + createdBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } + classCode = "String" + externalName = "String" + externalId = "String" + externalSource = "String" + externalSourceDetail = "String" + grade = "String" + term = @{ + "@odata.type" = "microsoft.graph.educationTerm" + } } -New-MgBetaEducationClass -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClass Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationClass -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClass Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassAssignment.md b/src/Education/beta/examples/New-MgBetaEducationClassAssignment.md index 698397940e0..8d2d7484bd6 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassAssignment.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassAssignment.md @@ -1,24 +1,27 @@ -### Example 1: Using the New-MgBetaEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DueDateTime = [System.DateTime]::Parse("2021-09-07T00:00:00Z") - DisplayName = "Reading test 09.03 #4" - Instructions = @{ - ContentType = "text" - Content = "Read chapter 4" + dueDateTime = [System.DateTime]::Parse("2022-09-16T00:00:00Z") + displayName = "Reading test 09.14" + instructions = @{ + contentType = "text" + content = "Read chapter 4" } - Grading = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentGradeType" - MaxPoints = + grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" + maxPoints = } - AssignTo = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentGradeType" + assignTo = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentClassRecipient" } - Status = "draft" - AllowStudentsToAddResourcesToSubmission = $true + status = "draft" + allowStudentsToAddResourcesToSubmission = $true } -New-MgBetaEducationClassAssignment -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationClassAssignment -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategory.md b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategory.md index 9c50fe97dc0..52b6f0e9d86 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategory.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategory.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -``` -This example shows how to use the New-MgBetaEducationClassAssignmentCategory Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "Quizzes" +} +New-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategoryByRef.md b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategoryByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategoryByRef.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentResource.md b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentResource.md index 740e03af89d..2c9e6edda17 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentResource.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentResource.md @@ -1,108 +1,129 @@ -### Example 1: Using the New-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Create an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - "@odata.type" = "microsoft.graph.educationExcelResource" - DisplayName = "Graph Doc pages.xlsx" - FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" + distributeForStudentWork = $false + resource = @{ + displayName = "Where the Wonders of Learning Never Cease | Wonderopolis" + link = "https://wonderopolis.org/" + thumbnailPreviewUrl = $null + "@odata.type" = "#microsoft.graph.educationLinkResource" } } -New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationWordResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - DisplayName = "article.pdf" - "@odata.type" = "#microsoft.graph.educationFileResource" + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Issues and PR in guthub.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" } } -New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - DisplayName = "Where the Wonders of Learning Never Cease | Wonderopolis" - Link = "https://wonderopolis.org/" - ThumbnailPreviewUrl = $null - "@odata.type" = "#microsoft.graph.educationLinkResource" + distributeForStudentWork = $false + resource = @{ + displayName = "article.pdf" + "@odata.type" = "#microsoft.graph.educationFileResource" } } -New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - "@odata.type" = "microsoft.graph.educationMediaResource" - DisplayName = "homework example.PNG" - FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationExcelResource" + displayName = "Graph Doc pages.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" } } -New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ + distributeForStudentWork = $false + resource = @{ "@odata.type" = "microsoft.graph.educationPowerPointResource" - DisplayName = "state diagram.pptx" - FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RN327OXRN6EVFE2Q5FRJZTN5EOJ" + displayName = "state diagram.pptx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RN327OXRN6EVFE2Q5FRJZTN5EOJ" } } -New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - DisplayName = "Template - My Story" - AppId = "6fbeb90c-3d55-4bd5-82c4-bfe824be4300" - AppIconWebUrl = "https://statics.teams.cdn.office.net/evergreen-assets/ThirdPartyApps/6fbeb90c-3d55-4bd5-82c4-bfe824be4300_largeImage.png?v=2.0.2" - TeamsEmbeddedContentUrl = "https://app.api.edu.buncee.com/player/C7B0866C9B7E485EAE21AE14DBC3FD08?embed=1&render_slide_panel=1" - WebUrl = "https://app.edu.buncee.com/buncee/C7B0866C9B7E485EAE21AE14DBC3FD08" - "@odata.type" = "#microsoft.graph.educationTeamsAppResource" + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationMediaResource" + displayName = "homework example.PNG" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" } } -New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the New-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: Create an educationTeamsAppResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - "@odata.type" = "microsoft.graph.educationWordResource" - DisplayName = "Issues and PR in guthub.docx" - FileUrl = "https://graph.microsoft.com/beta/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + distributeForStudentWork = $false + resource = @{ + displayName = "Template - My Story" + appId = "6fbeb90c-3d55-4bd5-82c4-bfe824be4300" + appIconWebUrl = "https://statics.teams.cdn.office.net/evergreen-assets/ThirdPartyApps/6fbeb90c-3d55-4bd5-82c4-bfe824be4300_largeImage.png?v=2.0.2" + teamsEmbeddedContentUrl = "https://app.api.edu.buncee.com/player/C7B0866C9B7E485EAE21AE14DBC3FD08?embed=1&render_slide_panel=1" + webUrl = "https://app.edu.buncee.com/buncee/C7B0866C9B7E485EAE21AE14DBC3FD08" + "@odata.type" = "#microsoft.graph.educationTeamsAppResource" } } -New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmission.md b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmission.md index ccfe8d448f7..8d5635ff956 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmission.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmission.md @@ -1,22 +1,18 @@ -### Example 1: Get submissions +### Example 1: Get submissions -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmission Cmdlet. +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get submissions with $expand options -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get submissions with $expand options - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmission Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionOutcome.md b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionOutcome.md index 1322c008e63..87ed3322c4d 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionOutcome.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ "@odata.type" = "#microsoft.graph.educationFeedbackResourceOutcome" - FeedbackResource = @{ + feedbackResource = @{ "@odata.type" = "#microsoft.graph.educationWordResource" - DisplayName = "Document1.docx" + displayName = "Document1.docx" } } -New-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionResource.md b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionResource.md index 85576595224..5db472df5c6 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionResource.md @@ -1,84 +1,102 @@ -### Example 1: Using the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Create an educationWordResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - Resource = @{ - "@odata.type" = "#microsoft.graph.educationExcelResource" - DisplayName = "userAgeGroup QueryParameter Test.xlsx" - FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Report.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" } } -New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - Resource = @{ - DisplayName = "_FTP_EDC-61424749-250820211136.pdf" - FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" - "@odata.type" = "#microsoft.graph.educationFileResource" + resource = @{ + displayName = "Wikipedia" + link = "https://en.wikipedia.org/wiki/Main_Page" + "@odata.type" = "#microsoft.graph.educationLinkResource" } } -New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - Resource = @{ - DisplayName = "Wikipedia" - Link = "https://en.wikipedia.org/wiki/Main_Page" - "@odata.type" = "#microsoft.graph.educationLinkResource" + resource = @{ + displayName = "_FTP_EDC-61424749-250820211136.pdf" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" + "@odata.type" = "#microsoft.graph.educationFileResource" } } -New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - Resource = @{ - DisplayName = "category.jpg" - FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" - "@odata.type" = "#microsoft.graph.educationMediaResource" + resource = @{ + "@odata.type" = "#microsoft.graph.educationExcelResource" + displayName = "userAgeGroup QueryParameter Test.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" } } -New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - Resource = @{ + resource = @{ "@odata.type" = "#microsoft.graph.educationPowerPointResource" - DisplayName = "state diagram.pptx" - FileUrl = "https://graph.microsoft.com/beta/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" + displayName = "state diagram.pptx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" } } -New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - Resource = @{ - "@odata.type" = "microsoft.graph.educationWordResource" - DisplayName = "Report.docx" - FileUrl = "https://graph.microsoft.com/beta/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + resource = @{ + displayName = "category.jpg" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" + "@odata.type" = "#microsoft.graph.educationMediaResource" } } -New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionSubmittedResource.md b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionSubmittedResource.md index c3cd4ae3905..00b43b8a0c5 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionSubmittedResource.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassAssignmentSubmissionSubmittedResource.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgBetaEducationClassAssignmentSubmissionSubmittedResource Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the New-MgBetaBetaEducationClassAssignmentSubmissionSubmittedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassMemberByRef.md b/src/Education/beta/examples/New-MgBetaEducationClassMemberByRef.md index 7c6a748b0bc..26d6b0a7d0b 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassMemberByRef.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassMemberByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaEducationClassMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/education/users/13015" + "@odata.id" = "https://graph.microsoft.com/v1.0/education/users/13015" } -New-MgBetaEducationClassMemberByRef -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationClassMemberByRef -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationClassTeacherByRef.md b/src/Education/beta/examples/New-MgBetaEducationClassTeacherByRef.md index e35be2ebe3e..846dfdc96d1 100644 --- a/src/Education/beta/examples/New-MgBetaEducationClassTeacherByRef.md +++ b/src/Education/beta/examples/New-MgBetaEducationClassTeacherByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaEducationClassTeacherByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/education/users/14011" + "@odata.id" = "https://graph.microsoft.com/v1.0/education/users/14011" } -New-MgBetaEducationClassTeacherByRef -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationClassTeacherByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationClassTeacherByRef -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationClassTeacherByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationMeAssignment.md b/src/Education/beta/examples/New-MgBetaEducationMeAssignment.md index e4c5fc09c5a..31588e77619 100644 --- a/src/Education/beta/examples/New-MgBetaEducationMeAssignment.md +++ b/src/Education/beta/examples/New-MgBetaEducationMeAssignment.md @@ -1,33 +1,27 @@ -### Example 1: Get the assignments of the logged in user +### Example 1: Get the assignments of the logged in user -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationMeAssignment -``` -This example shows how to use the New-MgBetaEducationMeAssignment Cmdlet. +Get-MgBetaEducationMeAssignment +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get assignments of a user -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education -### Example 2: Get assignments of a user +Get-MgBetaEducationUserAssignment -EducationUserId $educationUserId +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get user assignments with expand submissions -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationUserAssignment -EducationUserId $educationUserId -``` -This example shows how to use the New-MgBetaEducationMeAssignment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get user assignments with expand submissions - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationUserAssignment -EducationUserId $educationUserId -ExpandProperty "submissions" -``` -This example shows how to use the New-MgBetaEducationMeAssignment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationUserAssignment -EducationUserId $educationUserId -ExpandProperty "submissions" +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentCategory.md b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentCategory.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentCategory.md +++ b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentCategory.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentCategoryByRef.md b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentCategoryByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentCategoryByRef.md +++ b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentResource.md b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentResource.md index 799ba9176b5..7182d348fcc 100644 --- a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentResource.md +++ b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentResource.md @@ -1,11 +1,129 @@ -### Example 1: Code snippet +### Example 1: Create an educationLinkResource -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the New-MgBetaEducationMeAssignmentResource Cmdlet. +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "Where the Wonders of Learning Never Cease | Wonderopolis" + link = "https://wonderopolis.org/" + thumbnailPreviewUrl = $null + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationWordResource +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Issues and PR in guthub.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "article.pdf" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationExcelResource" + displayName = "Graph Doc pages.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$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" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationMediaResource" + displayName = "homework example.PNG" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: Create an educationTeamsAppResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "Template - My Story" + appId = "6fbeb90c-3d55-4bd5-82c4-bfe824be4300" + appIconWebUrl = "https://statics.teams.cdn.office.net/evergreen-assets/ThirdPartyApps/6fbeb90c-3d55-4bd5-82c4-bfe824be4300_largeImage.png?v=2.0.2" + teamsEmbeddedContentUrl = "https://app.api.edu.buncee.com/player/C7B0866C9B7E485EAE21AE14DBC3FD08?embed=1&render_slide_panel=1" + webUrl = "https://app.edu.buncee.com/buncee/C7B0866C9B7E485EAE21AE14DBC3FD08" + "@odata.type" = "#microsoft.graph.educationTeamsAppResource" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmission.md b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmission.md index 2874122b597..82aa8b6d31f 100644 --- a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmission.md +++ b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmission.md @@ -1,22 +1,18 @@ -### Example 1: Get submissions +### Example 1: Get submissions -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the New-MgBetaEducationMeAssignmentSubmission Cmdlet. +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get submissions with $expand options -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get submissions with $expand options - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" -``` -This example shows how to use the New-MgBetaEducationMeAssignmentSubmission Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionOutcome.md b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionOutcome.md index 9300f4d3a2a..a03c4611047 100644 --- a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionOutcome.md @@ -1,22 +1,17 @@ -### Example 1: Get all outcomes - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgBetaEducationMeAssignmentSubmissionOutcome Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get outcomes filtered by outcome type - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" -``` -This example shows how to use the New-MgBetaEducationMeAssignmentSubmissionOutcome Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackResourceOutcome" + feedbackResource = @{ + "@odata.type" = "#microsoft.graph.educationWordResource" + displayName = "Document1.docx" + } +} + +New-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionResource.md b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionResource.md index fafed544737..d3010560181 100644 --- a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionResource.md @@ -1,11 +1,102 @@ -### Example 1: Code snippet +### Example 1: Create an educationWordResource -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgBetaEducationMeAssignmentSubmissionResource Cmdlet. +$params = @{ + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Report.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationLinkResource +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + displayName = "Wikipedia" + link = "https://en.wikipedia.org/wiki/Main_Page" + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + displayName = "_FTP_EDC-61424749-250820211136.pdf" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + "@odata.type" = "#microsoft.graph.educationExcelResource" + displayName = "userAgeGroup QueryParameter Test.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + "@odata.type" = "#microsoft.graph.educationPowerPointResource" + displayName = "state diagram.pptx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + displayName = "category.jpg" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" + "@odata.type" = "#microsoft.graph.educationMediaResource" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionSubmittedResource.md b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionSubmittedResource.md index bc7a9cc75dd..b07545ffd37 100644 --- a/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionSubmittedResource.md +++ b/src/Education/beta/examples/New-MgBetaEducationMeAssignmentSubmissionSubmittedResource.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgBetaEducationMeAssignmentSubmissionSubmittedResource Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the New-MgBetaBetaEducationMeAssignmentSubmissionSubmittedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationMeRubric.md b/src/Education/beta/examples/New-MgBetaEducationMeRubric.md index 5a89b8f7fad..19801dc2e9a 100644 --- a/src/Education/beta/examples/New-MgBetaEducationMeRubric.md +++ b/src/Education/beta/examples/New-MgBetaEducationMeRubric.md @@ -1,157 +1,75 @@ -### Example 1: Using the New-MgBetaEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DisplayName = "Example Credit Rubric" - Description = @{ - Content = "This is an example of a credit rubric (no points)" - ContentType = "text" + displayName = "Example Credit Rubric" + description = @{ + content = "This is an example of a credit rubric (no points)" + contentType = "text" } - Levels = @( + levels = @( @{ - DisplayName = "Good" - Description = @{ - Content = "" - ContentType = "text" + displayName = "Good" + description = @{ + content = "" + contentType = "text" } } @{ - DisplayName = "Poor" - Description = @{ - Content = "" - ContentType = "text" + displayName = "Poor" + description = @{ + content = "" + contentType = "text" } } ) - Qualities = @( + qualities = @( @{ - Description = @{ - Content = "Argument" - ContentType = "text" + description = @{ + content = "Argument" + contentType = "text" } - Criteria = @( + criteria = @( @{ - Description = @{ - Content = "The essay's argument is persuasive." - ContentType = "text" + description = @{ + content = "The essay's argument is persuasive." + contentType = "text" } } @{ - Description = @{ - Content = "The essay's argument does not make sense." - ContentType = "text" + description = @{ + content = "The essay's argument does not make sense." + contentType = "text" } } ) } @{ - Description = @{ - Content = "Spelling and Grammar" - ContentType = "text" + description = @{ + content = "Spelling and Grammar" + contentType = "text" } - Criteria = @( + criteria = @( @{ - Description = @{ - Content = "The essay uses proper spelling and grammar with few or no errors." - ContentType = "text" + description = @{ + content = "The essay uses proper spelling and grammar with few or no errors." + contentType = "text" } } @{ - Description = @{ - Content = "The essay has numerous errors in spelling and/or grammar." - ContentType = "text" + description = @{ + content = "The essay has numerous errors in spelling and/or grammar." + contentType = "text" } } ) } ) } -New-MgBetaEducationMeRubric -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationMeRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -$params = @{ - DisplayName = "Example Points Rubric" - Description = @{ - Content = "This is an example of a rubric with points" - ContentType = "text" - } - Levels = @( - @{ - DisplayName = "Good" - Description = @{ - Content = "" - ContentType = "text" - } - Grading = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" - MaxPoints = - } - } - @{ - DisplayName = "Poor" - Description = @{ - Content = "" - ContentType = "text" - } - Grading = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" - MaxPoints = - } - } - ) - Qualities = @( - @{ - Description = @{ - Content = "Argument" - ContentType = "text" - } - Criteria = @( - @{ - Description = @{ - Content = "The essay's argument is persuasive." - ContentType = "text" - } - } - @{ - Description = @{ - Content = "The essay's argument does not make sense." - ContentType = "text" - } - } - ) - Weight = 50.0 - } - @{ - Description = @{ - Content = "Spelling and Grammar" - ContentType = "text" - } - Criteria = @( - @{ - Description = @{ - Content = "The essay uses proper spelling and grammar with few or no errors." - ContentType = "text" - } - } - @{ - Description = @{ - Content = "The essay has numerous errors in spelling and/or grammar." - ContentType = "text" - } - } - ) - Weight = 50.0 - } - ) - Grading = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" - } -} -New-MgBetaEducationMeRubric -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationMeRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationMeRubric -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationMeRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationSchool.md b/src/Education/beta/examples/New-MgBetaEducationSchool.md index 3241dd1a8c0..7344129ec4f 100644 --- a/src/Education/beta/examples/New-MgBetaEducationSchool.md +++ b/src/Education/beta/examples/New-MgBetaEducationSchool.md @@ -1,27 +1,32 @@ -### Example 1: Using the New-MgBetaEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DisplayName = "Fabrikam High School" - Description = "Magnate school for the arts. Los Angeles School District" - ExternalSource = "String" - PrincipalEmail = "AmyR@fabrikam.com" - PrincipalName = "Amy Roebuck" - ExternalPrincipalId = "14007" - HighestGrade = "12" - LowestGrade = "9" - SchoolNumber = "10002" - Address = @{ - City = "Los Angeles" - CountryOrRegion = "United States" - PostalCode = "98055" - State = "CA" - Street = "12345 Main St." + "@odata.type" = "#microsoft.graph.educationSchool" + displayName = "String" + description = "String" + externalSource = "String" + externalSourceDetail = "String" + principalEmail = "String" + principalName = "String" + externalPrincipalId = "String" + lowestGrade = "String" + highestGrade = "String" + schoolNumber = "String" + externalId = "String" + phone = "String" + fax = "String" + createdBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } + address = @{ + "@odata.type" = "microsoft.graph.physicalAddress" } - ExternalId = "10002" - Phone = "+1 (253) 555-0102" } -New-MgBetaEducationSchool -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationSchool Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationSchool -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationSchool Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationSchoolClassByRef.md b/src/Education/beta/examples/New-MgBetaEducationSchoolClassByRef.md index a6433df189b..570772d8c3d 100644 --- a/src/Education/beta/examples/New-MgBetaEducationSchoolClassByRef.md +++ b/src/Education/beta/examples/New-MgBetaEducationSchoolClassByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaEducationSchoolClassByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/education/classes/11006" + "@odata.id" = "https://graph.microsoft.com/v1.0/education/classes/11006" } -New-MgBetaEducationSchoolClassByRef -EducationSchoolId $educationSchoolId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationSchoolClassByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationSchoolClassByRef -EducationSchoolId $educationSchoolId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationSchoolClassByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationSchoolUserByRef.md b/src/Education/beta/examples/New-MgBetaEducationSchoolUserByRef.md index 76d6e0792a4..94b386fce5c 100644 --- a/src/Education/beta/examples/New-MgBetaEducationSchoolUserByRef.md +++ b/src/Education/beta/examples/New-MgBetaEducationSchoolUserByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaEducationSchoolUserByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/education/users/14008" + "@odata.id" = "https://graph.microsoft.com/v1.0/education/users/14008" } -New-MgBetaEducationSchoolUserByRef -EducationSchoolId $educationSchoolId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationSchoolUserByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationSchoolUserByRef -EducationSchoolId $educationSchoolId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationSchoolUserByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationUser.md b/src/Education/beta/examples/New-MgBetaEducationUser.md index bd0dfecd058..b177ff5c1ca 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUser.md +++ b/src/Education/beta/examples/New-MgBetaEducationUser.md @@ -1,37 +1,72 @@ -### Example 1: Using the New-MgBetaEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DisplayName = "Dion Matheson" - GivenName = "Dion" - MiddleName = $null - Surname = "Matheson" - Mail = "DionM@contoso.com" - MobilePhone = "+1 (253) 555-0101" - CreatedBy = @{ - User = @{ - DisplayName = "Susana Rocha" - Id = "14012" - } + "@odata.type" = "#microsoft.graph.educationUser" + primaryRole = "String" + middleName = "String" + externalSource = "String" + externalSourceDetail = "String" + residenceAddress = @{ + "@odata.type" = "microsoft.graph.physicalAddress" + } + mailingAddress = @{ + "@odata.type" = "microsoft.graph.physicalAddress" + } + student = @{ + "@odata.type" = "microsoft.graph.educationStudent" + } + teacher = @{ + "@odata.type" = "microsoft.graph.educationTeacher" } - ExternalSource = "sis" - MailingAddress = @{ - City = "Los Angeles" - CountryOrRegion = "United States" - PostalCode = "98055" - State = "CA" - Street = "12345 Main St." + createdBy = @{ + "@odata.type" = "microsoft.graph.identitySet" } - PrimaryRole = "student" - ResidenceAddress = @{ - City = "Los Angeles" - CountryOrRegion = "United States" - PostalCode = "98055" - State = "CA" - Street = "12345 Main St." + accountEnabled = "Boolean" + assignedLicenses = @( + @{ + "@odata.type" = "microsoft.graph.assignedLicense" + } + ) + assignedPlans = @( + @{ + "@odata.type" = "microsoft.graph.assignedPlan" + } + ) + businessPhones = @( + "String" + ) + department = "String" + displayName = "String" + givenName = "String" + mail = "String" + mailNickname = "String" + mobilePhone = "String" + passwordPolicies = "String" + passwordProfile = @{ + "@odata.type" = "microsoft.graph.passwordProfile" + } + officeLocation = "String" + preferredLanguage = "String" + provisionedPlans = @( + @{ + "@odata.type" = "microsoft.graph.provisionedPlan" + } + ) + refreshTokensValidFromDateTime = [System.DateTime]::Parse("String (timestamp)") + showInAddressList = "Boolean" + surname = "String" + usageLocation = "String" + userPrincipalName = "String" + userType = "String" + onPremisesInfo = @{ + "@odata.type" = "microsoft.graph.educationOnPremisesInfo" } } -New-MgBetaEducationUser -BodyParameter $params -``` -This example shows how to use the New-MgBetaEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEducationUser -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUser Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationUserAssignment.md b/src/Education/beta/examples/New-MgBetaEducationUserAssignment.md index 45dcbeb4391..a4f424e193c 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUserAssignment.md +++ b/src/Education/beta/examples/New-MgBetaEducationUserAssignment.md @@ -1,33 +1,27 @@ -### Example 1: Get the assignments of the logged in user +### Example 1: Get the assignments of the logged in user -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationMeAssignment -``` -This example shows how to use the New-MgBetaEducationUserAssignment Cmdlet. +Get-MgBetaEducationMeAssignment +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get assignments of a user -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education -### Example 2: Get assignments of a user +Get-MgBetaEducationUserAssignment -EducationUserId $educationUserId +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get user assignments with expand submissions -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationUserAssignment -EducationUserId $educationUserId -``` -This example shows how to use the New-MgBetaEducationUserAssignment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get user assignments with expand submissions - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationUserAssignment -EducationUserId $educationUserId -ExpandProperty "submissions" -``` -This example shows how to use the New-MgBetaEducationUserAssignment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationUserAssignment -EducationUserId $educationUserId -ExpandProperty "submissions" +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentCategory.md b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentCategory.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentCategory.md +++ b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentCategory.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentCategoryByRef.md b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentCategoryByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentCategoryByRef.md +++ b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentResource.md b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentResource.md index 956603ff7b3..9e98d1c6e04 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentResource.md +++ b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentResource.md @@ -1,11 +1,129 @@ -### Example 1: Code snippet +### Example 1: Create an educationLinkResource -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the New-MgBetaEducationUserAssignmentResource Cmdlet. +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "Where the Wonders of Learning Never Cease | Wonderopolis" + link = "https://wonderopolis.org/" + thumbnailPreviewUrl = $null + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationWordResource +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Issues and PR in guthub.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "article.pdf" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationExcelResource" + displayName = "Graph Doc pages.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$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" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationMediaResource" + displayName = "homework example.PNG" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: Create an educationTeamsAppResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "Template - My Story" + appId = "6fbeb90c-3d55-4bd5-82c4-bfe824be4300" + appIconWebUrl = "https://statics.teams.cdn.office.net/evergreen-assets/ThirdPartyApps/6fbeb90c-3d55-4bd5-82c4-bfe824be4300_largeImage.png?v=2.0.2" + teamsEmbeddedContentUrl = "https://app.api.edu.buncee.com/player/C7B0866C9B7E485EAE21AE14DBC3FD08?embed=1&render_slide_panel=1" + webUrl = "https://app.edu.buncee.com/buncee/C7B0866C9B7E485EAE21AE14DBC3FD08" + "@odata.type" = "#microsoft.graph.educationTeamsAppResource" + } +} + +New-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmission.md b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmission.md index 1363ad63612..efc40790f17 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmission.md +++ b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmission.md @@ -1,22 +1,18 @@ -### Example 1: Get submissions +### Example 1: Get submissions -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the New-MgBetaEducationUserAssignmentSubmission Cmdlet. +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get submissions with $expand options -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get submissions with $expand options - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" -``` -This example shows how to use the New-MgBetaEducationUserAssignmentSubmission Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionOutcome.md b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionOutcome.md index 71fe1ac3c7e..9053f731419 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionOutcome.md @@ -1,22 +1,17 @@ -### Example 1: Get all outcomes - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgBetaEducationUserAssignmentSubmissionOutcome Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get outcomes filtered by outcome type - -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" -``` -This example shows how to use the New-MgBetaEducationUserAssignmentSubmissionOutcome Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackResourceOutcome" + feedbackResource = @{ + "@odata.type" = "#microsoft.graph.educationWordResource" + displayName = "Document1.docx" + } +} + +New-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionResource.md b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionResource.md index 0593569a78c..9fcf8324d0e 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionResource.md @@ -1,11 +1,102 @@ -### Example 1: Code snippet +### Example 1: Create an educationWordResource -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgBetaEducationUserAssignmentSubmissionResource Cmdlet. +$params = @{ + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Report.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationLinkResource +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + displayName = "Wikipedia" + link = "https://en.wikipedia.org/wiki/Main_Page" + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + displayName = "_FTP_EDC-61424749-250820211136.pdf" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + "@odata.type" = "#microsoft.graph.educationExcelResource" + displayName = "userAgeGroup QueryParameter Test.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + "@odata.type" = "#microsoft.graph.educationPowerPointResource" + displayName = "state diagram.pptx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + resource = @{ + displayName = "category.jpg" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" + "@odata.type" = "#microsoft.graph.educationMediaResource" + } +} + +New-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionSubmittedResource.md b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionSubmittedResource.md index 6f64c7f12f4..3bac3035cc8 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionSubmittedResource.md +++ b/src/Education/beta/examples/New-MgBetaEducationUserAssignmentSubmissionSubmittedResource.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education - -Get-MgBetaEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgBetaEducationUserAssignmentSubmissionSubmittedResource Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Education +Get-MgBetaEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the New-MgBetaBetaEducationUserAssignmentSubmissionSubmittedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/New-MgBetaEducationUserRubric.md b/src/Education/beta/examples/New-MgBetaEducationUserRubric.md index 7f2fe28aba4..ed2498b1254 100644 --- a/src/Education/beta/examples/New-MgBetaEducationUserRubric.md +++ b/src/Education/beta/examples/New-MgBetaEducationUserRubric.md @@ -1,11 +1,75 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationMeRubric -``` -This example shows how to use the New-MgBetaEducationUserRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "Example Credit Rubric" + description = @{ + content = "This is an example of a credit rubric (no points)" + contentType = "text" + } + levels = @( + @{ + displayName = "Good" + description = @{ + content = "" + contentType = "text" + } + } + @{ + displayName = "Poor" + description = @{ + content = "" + contentType = "text" + } + } + ) + qualities = @( + @{ + description = @{ + content = "Argument" + contentType = "text" + } + criteria = @( + @{ + description = @{ + content = "The essay's argument is persuasive." + contentType = "text" + } + } + @{ + description = @{ + content = "The essay's argument does not make sense." + contentType = "text" + } + } + ) + } + @{ + description = @{ + content = "Spelling and Grammar" + contentType = "text" + } + criteria = @( + @{ + description = @{ + content = "The essay uses proper spelling and grammar with few or no errors." + contentType = "text" + } + } + @{ + description = @{ + content = "The essay has numerous errors in spelling and/or grammar." + contentType = "text" + } + } + ) + } + ) +} +New-MgBetaEducationMeRubric -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEducationUserRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClass.md b/src/Education/beta/examples/Remove-MgBetaEducationClass.md index 9128b98a59b..31341838a74 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClass.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClass.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgBetaEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationClass -EducationClassId $educationClassId -``` -This example shows how to use the Remove-MgBetaEducationClass Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + description = "History - World History 1" + displayName = "World History Level 1" +} + +Update-MgBetaEducationClass -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationClass Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignment.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignment.md index 0b3cd37ccda..fedd50ac64d 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignment.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignment.md @@ -1,7 +1,19 @@ -### Example 1: Using the Remove-MgBetaEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Remove-MgBetaEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + displayName = "Reading and review test 09.03 #5" + instructions = @{ + contentType = "text" + content = "Read chapter 5 and write your review" + } + dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") + addedStudentAction = "none" +} + +Update-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategory.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategory.md index 16d5519b8da..bee55e07e09 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategory.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategory.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaEducationClassAssignmentCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId -``` -This example shows how to use the Remove-MgBetaEducationClassAssignmentCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategoryByRef.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategoryByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategoryByRef.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentDefault.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentDefault.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentDefault.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentDefault.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentResource.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentResource.md index 107a8179d18..957baf46d55 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentResource.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentResource.md @@ -1,7 +1,54 @@ -### Example 1: Using the Remove-MgBetaEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Remove-MgBetaEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get an educationWordResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubric.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubric.md index 8efc40a84a7..fbd4afd9a18 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubric.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubric.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Remove-MgBetaEducationClassAssignmentRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} +Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubricByRef.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubricByRef.md index 2bc686656bb..69ffed9ec9a 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubricByRef.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentRubricByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaEducationClassAssignmentRubricByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Remove-MgBetaEducationClassAssignmentRubricByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentRubricByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSetting.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSetting.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSetting.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSetting.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmission.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmission.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionOutcome.md index 303e9629913..af0b7896654 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionOutcome.md @@ -1,7 +1,47 @@ -### Example 1: Using the Remove-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -``` -This example shows how to use the Remove-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update a feedback outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a points outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationPointsOutcome" + points = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" + points = + } +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update a rubric outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + rubricQualityFeedback = @( + ) + rubricQualitySelectedLevels = @( + ) +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionResource.md b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionResource.md index b95f4983351..7933010e3ee 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationClassAssignmentSubmissionResource.md @@ -1,7 +1,54 @@ -### Example 1: Using the Remove-MgBetaEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Remove-MgBetaEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get an educationWordResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionResource 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.Beta.Education + +Get-MgBetaEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Remove-MgBetaBetaEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentCategoryByRef.md b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentCategoryByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentCategoryByRef.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentResource.md b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentResource.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubric.md b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubric.md index 635f9669c9a..9c67f269277 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubric.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubric.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Remove-MgBetaEducationMeAssignmentRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} +Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationMeAssignmentRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubricByRef.md b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubricByRef.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmission.md b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmission.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmissionOutcome.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmissionOutcome.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmissionResource.md b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationMeRubric.md b/src/Education/beta/examples/Remove-MgBetaEducationMeRubric.md index 985c94dd8fb..4c3d8a515f3 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationMeRubric.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationMeRubric.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -``` -This example shows how to use the Remove-MgBetaEducationMeRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + displayName = "Example Credit Rubric after display name patch" +} + +Update-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationMeRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationSchool.md b/src/Education/beta/examples/Remove-MgBetaEducationSchool.md index d9163220a24..f543ef69f9a 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationSchool.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationSchool.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgBetaEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationSchool -EducationSchoolId $educationSchoolId -``` -This example shows how to use the Remove-MgBetaEducationSchool Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + displayName = "Fabrikam Arts High School" + description = "Magnate school for the arts. Los Angeles School District" +} + +Update-MgBetaEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationSchool Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUser.md b/src/Education/beta/examples/Remove-MgBetaEducationUser.md index c9b0a636832..6bf6822a1be 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUser.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUser.md @@ -1,7 +1,16 @@ -### Example 1: Using the Remove-MgBetaEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -Remove-MgBetaEducationUser -EducationUserId $educationUserId -``` -This example shows how to use the Remove-MgBetaEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + displayName = "Rogelio Cazares" + givenName = "Rogelio" + middleName = "Fernando" + surname = "Cazares" +} + +Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationUser Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentCategoryByRef.md b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentCategoryByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentCategoryByRef.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentResource.md b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentResource.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubric.md b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubric.md index db2a02052ec..056e58ed30c 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubric.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubric.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Remove-MgBetaEducationUserAssignmentRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} +Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEducationUserAssignmentRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubricByRef.md b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubricByRef.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmission.md b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmission.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmissionOutcome.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmissionOutcome.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmissionResource.md b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUserAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Remove-MgBetaEducationUserRubric.md b/src/Education/beta/examples/Remove-MgBetaEducationUserRubric.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Remove-MgBetaEducationUserRubric.md +++ b/src/Education/beta/examples/Remove-MgBetaEducationUserRubric.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Set-MgBetaEducationClassAssignmentRubricByRef.md b/src/Education/beta/examples/Set-MgBetaEducationClassAssignmentRubricByRef.md index 5e78a17ed3b..3850d0e240e 100644 --- a/src/Education/beta/examples/Set-MgBetaEducationClassAssignmentRubricByRef.md +++ b/src/Education/beta/examples/Set-MgBetaEducationClassAssignmentRubricByRef.md @@ -1,10 +1,9 @@ -### Example 1: Using the Set-MgBetaEducationClassAssignmentRubricByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/{id}" -} -Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the Set-MgBetaEducationClassAssignmentRubricByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Set-MgBetaBetaEducationClassAssignmentRubricByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Set-MgBetaEducationMeAssignmentRubricByRef.md b/src/Education/beta/examples/Set-MgBetaEducationMeAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Set-MgBetaEducationMeAssignmentRubricByRef.md +++ b/src/Education/beta/examples/Set-MgBetaEducationMeAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Set-MgBetaEducationUserAssignmentRubricByRef.md b/src/Education/beta/examples/Set-MgBetaEducationUserAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Set-MgBetaEducationUserAssignmentRubricByRef.md +++ b/src/Education/beta/examples/Set-MgBetaEducationUserAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationClass.md b/src/Education/beta/examples/Update-MgBetaEducationClass.md index d5dfe8e7734..73eafd42432 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClass.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClass.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - Description = "History - World History 1" - DisplayName = "World History Level 1" + description = "History - World History 1" + displayName = "World History Level 1" } -Update-MgBetaEducationClass -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationClass Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEducationClass -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationClass Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignment.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignment.md index 8bab91f1a84..a0495dfa6b9 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignment.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignment.md @@ -1,17 +1,19 @@ -### Example 1: Using the Update-MgBetaEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DisplayName = "Reading and review test 09.03 #5" - Instructions = @{ - ContentType = "text" - Content = "Read chapter 5 and write your review" + displayName = "Reading and review test 09.03 #5" + instructions = @{ + contentType = "text" + content = "Read chapter 5 and write your review" } - DueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") - AddedStudentAction = "none" - AddToCalendarAction = "studentsAndPublisher" + dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") + addedStudentAction = "none" } -Update-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationClassAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentCategory.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentCategory.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentCategory.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentCategory.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentDefault.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentDefault.md index 85457889db9..71208fbace6 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentDefault.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentDefault.md @@ -1,12 +1,14 @@ -### Example 1: Using the Update-MgBetaEducationClassAssignmentDefault Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - AddedStudentAction = "assignIfOpen" - AddToCalendarAction = "studentsAndTeamOwners" - NotificationChannelUrl = "https://graph.microsoft.com/beta/teams('id')/channels('id')" + addedStudentAction = "assignIfOpen" + notificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" } -Update-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationClassAssignmentDefault Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationClassAssignmentDefault Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentResource.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentResource.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentRubric.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentRubric.md index 96d61e70e32..0e6379cdc0e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentRubric.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentRubric.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Update-MgBetaEducationClassAssignmentRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} +Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationClassAssignmentRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md index 0af05444b60..3b11d784047 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaEducationClassAssignmentSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - SubmissionAnimationDisabled = $true + submissionAnimationDisabled = $true } -Update-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationClassAssignmentSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationClassAssignmentSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmission.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmission.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionOutcome.md index 828993a5b21..f65e428409a 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionOutcome.md @@ -1,38 +1,47 @@ -### Example 1: Using the Update-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Update a feedback outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" } -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - RubricQualityFeedback = @( - ) - RubricQualitySelectedLevels = @( - ) -} -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a points outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ "@odata.type" = "#microsoft.graph.educationPointsOutcome" - Points = @{ + points = @{ "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - Points = + points = } } -Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update a rubric outcome + +```powershell Import-Module Microsoft.Graph.Beta.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + rubricQualityFeedback = @( + ) + rubricQualitySelectedLevels = @( + ) +} + +Update-MgBetaEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionResource.md b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentResource.md b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentResource.md +++ b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentRubric.md b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentRubric.md index b822299dc5b..a419cad1569 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentRubric.md +++ b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentRubric.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Update-MgBetaEducationMeAssignmentRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} +Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationMeAssignmentRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmission.md b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmission.md +++ b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmissionOutcome.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmissionOutcome.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmissionResource.md b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/Update-MgBetaEducationMeAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationMeRubric.md b/src/Education/beta/examples/Update-MgBetaEducationMeRubric.md index 4eecb7d676b..e071ea32b41 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationMeRubric.md +++ b/src/Education/beta/examples/Update-MgBetaEducationMeRubric.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DisplayName = "Example Credit Rubric after display name patch" + displayName = "Example Credit Rubric after display name patch" } -Update-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationMeRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationMeRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationSchool.md b/src/Education/beta/examples/Update-MgBetaEducationSchool.md index 38a386e2f75..ed93a95b891 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationSchool.md +++ b/src/Education/beta/examples/Update-MgBetaEducationSchool.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - DisplayName = "Fabrikam Arts High School" - Description = "Magnate school for the arts. Los Angeles School District" + displayName = "Fabrikam Arts High School" + description = "Magnate school for the arts. Los Angeles School District" } -Update-MgBetaEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationSchool Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationSchool Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationUser.md b/src/Education/beta/examples/Update-MgBetaEducationUser.md index 95a4908e30a..b535b1e27c1 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUser.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUser.md @@ -1,51 +1,16 @@ -### Example 1: Using the Update-MgBetaEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Education + $params = @{ - RelatedContacts = @( - @{ - DisplayName = "Father Time" - EmailAddress = "father@time.com" - MobilePhone = "4251231234" - Relationship = "guardian" - AccessConsent = $true - } - @{ - DisplayName = "Mother Nature" - EmailAddress = "mother@nature.co.uk" - MobilePhone = "3251231234" - Relationship = "parent" - AccessConsent = $true - } - ) + displayName = "Rogelio Cazares" + givenName = "Rogelio" + middleName = "Fernando" + surname = "Cazares" } -Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -$params = @{ - DisplayName = "Rogelio Cazares" - GivenName = "Rogelio" - MiddleName = "Fernando" - Surname = "Cazares" -} -Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgBetaEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Education -$params = @{ - DisplayName = "Rogelio Cazares" - GivenName = "Rogelio" - MiddleName = "Fernando" - Surname = "Cazares" -} -Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationUser Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentResource.md b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentResource.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentRubric.md b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentRubric.md index d9660f997c6..614cb54928c 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentRubric.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentRubric.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Education +```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Update-MgBetaEducationUserAssignmentRubric Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} +Set-MgBetaEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEducationUserAssignmentRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmission.md b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmission.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmissionOutcome.md b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmissionOutcome.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmissionOutcome.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmissionResource.md b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmissionResource.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUserAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/beta/examples/Update-MgBetaEducationUserRubric.md b/src/Education/beta/examples/Update-MgBetaEducationUserRubric.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUserRubric.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUserRubric.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Get-MgEducationClass.md b/src/Education/v1.0/examples/Get-MgEducationClass.md index 80b63f9a931..b8a2469b62f 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClass.md +++ b/src/Education/v1.0/examples/Get-MgEducationClass.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -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). -### Example 2: Using the Get-MgEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClass -``` -This example shows how to use the Get-MgEducationClass Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + description = "History - World History 1" + displayName = "World History Level 1" +} + +Update-MgEducationClass -EducationClassId $educationClassId -BodyParameter $params +``` +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 49bdf72439e..d181f864db1 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md @@ -1,21 +1,19 @@ -### Example 1: Using the Get-MgEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignment -EducationClassId $educationClassId -``` -This example shows how to use the Get-MgEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignment -EducationClassId $educationClassId -ExpandProperty "resources" -``` -This example shows how to use the Get-MgEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + displayName = "Reading and review test 09.03 #5" + instructions = @{ + contentType = "text" + content = "Read chapter 5 and write your review" + } + dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") + addedStudentAction = "none" +} + +Update-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Get-MgEducationClassAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentCategory.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentCategory.md index 66f2d4b9eab..a89bc948057 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentCategory.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentCategory.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgEducationClassAssignmentCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -``` -This example shows how to use the Get-MgEducationClassAssignmentCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgEducationClassAssignmentCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +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 abe6aa4b78f..092b6ed05ff 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentDefault.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentDefault.md @@ -1,7 +1,14 @@ -### Example 1: Using the Get-MgEducationClassAssignmentDefault Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + addedStudentAction = "assignIfOpen" + notificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" +} + +Update-MgEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params +``` +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 1a917c81730..be3df9fc580 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentResource.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentResource.md @@ -1,49 +1,54 @@ -### Example 1: Using the Get-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Get-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get an educationWordResource + +```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 educationLinkResource + +```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 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 4: Get an educationPowerPointResource + +```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 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 6: 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 b991a476d2c..fc0f0ff022d 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubric.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgEducationClassAssignmentRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +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-MgEducationClassAssignmentRubricByRef.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSetting.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSetting.md index e315eabe738..271006083de 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSetting.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSetting.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgEducationClassAssignmentSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSetting -EducationClassId $educationClassId -``` -This example shows how to use the Get-MgEducationClassAssignmentSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + submissionAnimationDisabled = $true +} + +Update-MgEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Get-MgEducationClassAssignmentSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmission.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmission.md index 3388edc8863..98829acdf05 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmission.md @@ -1,28 +1,18 @@ -### Example 1: Using the Get-MgEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -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: Using the Get-MgEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgEducationClassAssignmentSubmission Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get submission + +```powershell Import-Module Microsoft.Graph.Education + +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 + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md index 109ba482a6c..322ff721d85 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,7 +1,47 @@ -### Example 1: Using the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -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 1: Update a feedback outcome + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +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: Update a points outcome + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationPointsOutcome" + points = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" + points = + } +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update a rubric outcome + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + rubricQualityFeedback = @( + ) + rubricQualitySelectedLevels = @( + ) +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +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 6c6a6c40d26..75a216a762b 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignmentSubmissionResource.md @@ -1,49 +1,54 @@ -### Example 1: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get an educationWordResource + +```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 2: Get an educationFileResource + +```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 3: Get an educationExcelResource + +```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-MgEducationMeAssignmentResource.md b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentResource.md index 4ac55f39680..8137363d2ac 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentResource.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentResource.md @@ -1,8 +1,53 @@ -### Example 1: Code snippet +### Example 1: Get an educationWordResource ```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-MgEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: 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-MgEducationMeAssignmentResource 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-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: 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-MgEducationMeAssignmentResource 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-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId ``` This example shows how to use the Get-MgEducationMeAssignmentResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubric.md b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubric.md index ca48ff2b4e0..3699712050c 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubric.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the Get-MgEducationMeAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubricByRef.md b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmission.md b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmission.md index 194c40d935d..52460cc97ef 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmission.md @@ -1,17 +1,17 @@ -### Example 1: Get submissions +### Example 1: Get submission ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` This example shows how to use the Get-MgEducationMeAssignmentSubmission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Get submissions with $expand options +### Example 2: Get submission with $expand options ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" ``` This example shows how to use the Get-MgEducationMeAssignmentSubmission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionOutcome.md index d6184ac1489..80935c0fd0e 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionOutcome.md @@ -1,17 +1,46 @@ -### Example 1: Get all outcomes +### Example 1: Update a feedback outcome ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgEducationMeAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a points outcome + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationPointsOutcome" + points = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" + points = + } +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params ``` This example shows how to use the Get-MgEducationMeAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Get outcomes filtered by outcome type +### Example 3: Update a rubric outcome ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + rubricQualityFeedback = @( + ) + rubricQualitySelectedLevels = @( + ) +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params ``` This example shows how to use the Get-MgEducationMeAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionResource.md b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionResource.md index ea34890780b..a6fe6277eb6 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeAssignmentSubmissionResource.md @@ -1,8 +1,53 @@ -### Example 1: Code snippet +### Example 1: Get an educationWordResource ```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-MgEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationMeAssignmentSubmissionResource 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-MgEducationMeAssignmentSubmissionResource 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-MgEducationMeAssignmentSubmissionResource 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-MgEducationMeAssignmentSubmissionResource 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 514fcbf769a..82dd147e075 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeRubric.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -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). -### Example 2: Using the Get-MgEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationMeRubric -``` -This example shows how to use the Get-MgEducationMeRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + displayName = "Example Credit Rubric after display name patch" +} + +Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +``` +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-MgEducationSchool.md b/src/Education/v1.0/examples/Get-MgEducationSchool.md index 14f7cd8885e..655dd885aa4 100644 --- a/src/Education/v1.0/examples/Get-MgEducationSchool.md +++ b/src/Education/v1.0/examples/Get-MgEducationSchool.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -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). -### Example 2: Using the Get-MgEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationSchool -``` -This example shows how to use the Get-MgEducationSchool Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + displayName = "Fabrikam Arts High School" + description = "Magnate school for the arts. Los Angeles School District" +} + +Update-MgEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +``` +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-MgEducationUser.md b/src/Education/v1.0/examples/Get-MgEducationUser.md index 6a325831ea2..03321a5aa07 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUser.md +++ b/src/Education/v1.0/examples/Get-MgEducationUser.md @@ -1,14 +1,16 @@ -### Example 1: Using the Get-MgEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -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). -### Example 2: Using the Get-MgEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Get-MgEducationUser -``` -This example shows how to use the Get-MgEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + displayName = "Rogelio Cazares" + givenName = "Rogelio" + middleName = "Fernando" + surname = "Cazares" +} + +Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params +``` +This example shows how to use the 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-MgEducationUserAssignmentResource.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentResource.md index 6da1b4860bc..391685d1f57 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentResource.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentResource.md @@ -1,8 +1,53 @@ -### Example 1: Code snippet +### Example 1: Get an educationWordResource ```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-MgEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: 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-MgEducationUserAssignmentResource 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-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: 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-MgEducationUserAssignmentResource 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-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId ``` This example shows how to use the Get-MgEducationUserAssignmentResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubric.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubric.md index d10029ac831..cbb465a941f 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubric.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the Get-MgEducationUserAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubricByRef.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmission.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmission.md index 60f959b8ea7..bdaa96dea10 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmission.md @@ -1,17 +1,17 @@ -### Example 1: Get submissions +### Example 1: Get submission ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` This example shows how to use the Get-MgEducationUserAssignmentSubmission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Get submissions with $expand options +### Example 2: Get submission with $expand options ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" ``` This example shows how to use the Get-MgEducationUserAssignmentSubmission Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionOutcome.md index 541a6f224fb..56b50d1d6cd 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionOutcome.md @@ -1,17 +1,46 @@ -### Example 1: Get all outcomes +### Example 1: Update a feedback outcome ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Get-MgEducationUserAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a points outcome + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationPointsOutcome" + points = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" + points = + } +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params ``` This example shows how to use the Get-MgEducationUserAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Get outcomes filtered by outcome type +### Example 3: Update a rubric outcome ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + rubricQualityFeedback = @( + ) + rubricQualitySelectedLevels = @( + ) +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params ``` This example shows how to use the Get-MgEducationUserAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionResource.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionResource.md index ea5b9b09295..6bd3999a969 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentSubmissionResource.md @@ -1,8 +1,53 @@ -### Example 1: Code snippet +### Example 1: Get an educationWordResource ```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-MgEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationUserAssignmentSubmissionResource 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-MgEducationUserAssignmentSubmissionResource 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-MgEducationUserAssignmentSubmissionResource 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-MgEducationUserAssignmentSubmissionResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Get-MgEducationUserRubric.md b/src/Education/v1.0/examples/Get-MgEducationUserRubric.md index 689e59164d8..9745671e09f 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserRubric.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserRubric.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationMeRubric +$params = @{ + displayName = "Example Credit Rubric after display name patch" +} + +Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params ``` This example shows how to use the Get-MgEducationUserRubric 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 22c2b03b98e..f58249ff1f9 100644 --- a/src/Education/v1.0/examples/New-MgEducationClass.md +++ b/src/Education/v1.0/examples/New-MgEducationClass.md @@ -1,25 +1,28 @@ -### Example 1: Using the New-MgEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ "@odata.type" = "#microsoft.graph.educationClass" - DisplayName = "String" - MailNickname = "String" - Description = "String" - CreatedBy = @{ + displayName = "String" + mailNickname = "String" + description = "String" + createdBy = @{ "@odata.type" = "microsoft.graph.identitySet" } - ClassCode = "String" - ExternalName = "String" - ExternalId = "String" - ExternalSource = "String" - ExternalSourceDetail = "String" - Grade = "String" - Term = @{ + classCode = "String" + externalName = "String" + externalId = "String" + externalSource = "String" + externalSourceDetail = "String" + grade = "String" + term = @{ "@odata.type" = "microsoft.graph.educationTerm" } } -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignment.md b/src/Education/v1.0/examples/New-MgEducationClassAssignment.md index 447949218e0..53637856c7a 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignment.md @@ -1,24 +1,27 @@ -### Example 1: Using the New-MgEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DueDateTime = [System.DateTime]::Parse("2021-09-07T00:00:00Z") - DisplayName = "Reading test 09.03 #4" - Instructions = @{ - ContentType = "text" - Content = "Read chapter 4" + dueDateTime = [System.DateTime]::Parse("2022-09-16T00:00:00Z") + displayName = "Reading test 09.14" + instructions = @{ + contentType = "text" + content = "Read chapter 4" } - Grading = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentGradeType" - MaxPoints = + grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" + maxPoints = } - AssignTo = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentGradeType" + assignTo = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentClassRecipient" } - Status = "draft" - AllowStudentsToAddResourcesToSubmission = $true + status = "draft" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategory.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategory.md index 85e8024228b..2acc7a7109d 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategory.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategory.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgEducationClassAssignmentCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DisplayName = "Quizzes" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategoryByRef.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategoryByRef.md index 3d43577232c..8444e379d28 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategoryByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentCategoryByRef.md @@ -1,20 +1,13 @@ -### Example 1: Using the New-MgEducationClassAssignmentCategoryByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```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). -### Example 2: Using the New-MgEducationClassAssignmentCategoryByRef Cmdlet -```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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentResource.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentResource.md index 8081fad140e..3391a6cf057 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentResource.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentResource.md @@ -1,90 +1,129 @@ -### Example 1: Using the New-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Create an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - "@odata.type" = "microsoft.graph.educationExcelResource" - DisplayName = "Graph Doc pages.xlsx" - FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" + distributeForStudentWork = $false + resource = @{ + displayName = "Where the Wonders of Learning Never Cease | Wonderopolis" + link = "https://wonderopolis.org/" + thumbnailPreviewUrl = $null + "@odata.type" = "#microsoft.graph.educationLinkResource" } } -New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - DisplayName = "article.pdf" - "@odata.type" = "#microsoft.graph.educationFileResource" + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Issues and PR in guthub.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" } } -New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - DisplayName = "Where the Wonders of Learning Never Cease | Wonderopolis" - Link = "https://wonderopolis.org/" - ThumbnailPreviewUrl = $null - "@odata.type" = "#microsoft.graph.educationLinkResource" + distributeForStudentWork = $false + resource = @{ + displayName = "article.pdf" + "@odata.type" = "#microsoft.graph.educationFileResource" } } -New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - "@odata.type" = "microsoft.graph.educationMediaResource" - DisplayName = "homework example.PNG" - FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationExcelResource" + displayName = "Graph Doc pages.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" } } -New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ + distributeForStudentWork = $false + resource = @{ "@odata.type" = "microsoft.graph.educationPowerPointResource" - DisplayName = "state diagram.pptx" - FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RN327OXRN6EVFE2Q5FRJZTN5EOJ" + displayName = "state diagram.pptx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RN327OXRN6EVFE2Q5FRJZTN5EOJ" } } -New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 Import-Module Microsoft.Graph.Education + $params = @{ - DistributeForStudentWork = $false - Resource = @{ - "@odata.type" = "microsoft.graph.educationWordResource" - DisplayName = "Issues and PR in guthub.docx" - FileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationMediaResource" + displayName = "homework example.PNG" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: Create an educationTeamsAppResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "Template - My Story" + appId = "6fbeb90c-3d55-4bd5-82c4-bfe824be4300" + appIconWebUrl = "https://statics.teams.cdn.office.net/evergreen-assets/ThirdPartyApps/6fbeb90c-3d55-4bd5-82c4-bfe824be4300_largeImage.png?v=2.0.2" + teamsEmbeddedContentUrl = "https://app.api.edu.buncee.com/player/C7B0866C9B7E485EAE21AE14DBC3FD08?embed=1&render_slide_panel=1" + webUrl = "https://app.edu.buncee.com/buncee/C7B0866C9B7E485EAE21AE14DBC3FD08" + "@odata.type" = "#microsoft.graph.educationTeamsAppResource" } } -New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionOutcome.md index 52192f61f38..93e14880ae2 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,17 +1,16 @@ -### Example 1: Get all outcomes +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgEducationClassAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get outcomes filtered by outcome type - -```powershell Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackResourceOutcome" + feedbackResource = @{ + "@odata.type" = "#microsoft.graph.educationWordResource" + displayName = "Document1.docx" + } +} -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" +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). diff --git a/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionResource.md b/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionResource.md index 6199539fbd4..cbb7556762c 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/New-MgEducationClassAssignmentSubmissionResource.md @@ -1,84 +1,102 @@ -### Example 1: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Create an educationWordResource + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - Resource = @{ - "@odata.type" = "#microsoft.graph.educationExcelResource" - DisplayName = "userAgeGroup QueryParameter Test.xlsx" - FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Report.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" } } -New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - Resource = @{ - DisplayName = "_FTP_EDC-61424749-250820211136.pdf" - FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" - "@odata.type" = "#microsoft.graph.educationFileResource" + resource = @{ + displayName = "Wikipedia" + link = "https://en.wikipedia.org/wiki/Main_Page" + "@odata.type" = "#microsoft.graph.educationLinkResource" } } -New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 Import-Module Microsoft.Graph.Education + $params = @{ - Resource = @{ - DisplayName = "Wikipedia" - Link = "https://en.wikipedia.org/wiki/Main_Page" - "@odata.type" = "#microsoft.graph.educationLinkResource" + resource = @{ + displayName = "_FTP_EDC-61424749-250820211136.pdf" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" + "@odata.type" = "#microsoft.graph.educationFileResource" } } -New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - Resource = @{ - DisplayName = "category.jpg" - FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" - "@odata.type" = "#microsoft.graph.educationMediaResource" + resource = @{ + "@odata.type" = "#microsoft.graph.educationExcelResource" + displayName = "userAgeGroup QueryParameter Test.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" } } -New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - Resource = @{ + resource = @{ "@odata.type" = "#microsoft.graph.educationPowerPointResource" - DisplayName = "state diagram.pptx" - FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" + displayName = "state diagram.pptx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" } } -New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +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 + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - Resource = @{ - "@odata.type" = "microsoft.graph.educationWordResource" - DisplayName = "Report.docx" - FileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + resource = @{ + displayName = "category.jpg" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" + "@odata.type" = "#microsoft.graph.educationMediaResource" } } -New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params -``` -This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationClassMemberByRef.md b/src/Education/v1.0/examples/New-MgEducationClassMemberByRef.md index 27c0411e27e..ebd8d19fd33 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassMemberByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationClassMemberByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgEducationClassMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationClassTeacherByRef.md b/src/Education/v1.0/examples/New-MgEducationClassTeacherByRef.md index 856e940b1dc..1aeabc807f1 100644 --- a/src/Education/v1.0/examples/New-MgEducationClassTeacherByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationClassTeacherByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgEducationClassTeacherByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategory.md b/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategory.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategory.md +++ b/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategory.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + 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 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategoryByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationMeAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/New-MgEducationMeAssignmentResource.md b/src/Education/v1.0/examples/New-MgEducationMeAssignmentResource.md index 32670c18340..cb920db4760 100644 --- a/src/Education/v1.0/examples/New-MgEducationMeAssignmentResource.md +++ b/src/Education/v1.0/examples/New-MgEducationMeAssignmentResource.md @@ -1,8 +1,128 @@ -### Example 1: Code snippet +### Example 1: Create an educationLinkResource ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "Where the Wonders of Learning Never Cease | Wonderopolis" + link = "https://wonderopolis.org/" + thumbnailPreviewUrl = $null + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationWordResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Issues and PR in guthub.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "article.pdf" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationExcelResource" + displayName = "Graph Doc pages.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Education + +$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" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationMediaResource" + displayName = "homework example.PNG" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: Create an educationTeamsAppResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "Template - My Story" + appId = "6fbeb90c-3d55-4bd5-82c4-bfe824be4300" + appIconWebUrl = "https://statics.teams.cdn.office.net/evergreen-assets/ThirdPartyApps/6fbeb90c-3d55-4bd5-82c4-bfe824be4300_largeImage.png?v=2.0.2" + teamsEmbeddedContentUrl = "https://app.api.edu.buncee.com/player/C7B0866C9B7E485EAE21AE14DBC3FD08?embed=1&render_slide_panel=1" + webUrl = "https://app.edu.buncee.com/buncee/C7B0866C9B7E485EAE21AE14DBC3FD08" + "@odata.type" = "#microsoft.graph.educationTeamsAppResource" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the New-MgEducationMeAssignmentResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/New-MgEducationMeAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/New-MgEducationMeAssignmentSubmissionOutcome.md index e756ac5a229..56fadf6c6da 100644 --- a/src/Education/v1.0/examples/New-MgEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/New-MgEducationMeAssignmentSubmissionOutcome.md @@ -1,17 +1,16 @@ -### Example 1: Get all outcomes +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgEducationMeAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get outcomes filtered by outcome type - -```powershell Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackResourceOutcome" + feedbackResource = @{ + "@odata.type" = "#microsoft.graph.educationWordResource" + displayName = "Document1.docx" + } +} -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" +New-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params ``` This example shows how to use the New-MgEducationMeAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/New-MgEducationMeAssignmentSubmissionResource.md b/src/Education/v1.0/examples/New-MgEducationMeAssignmentSubmissionResource.md index 1dc2afb36a7..a4d0d646e45 100644 --- a/src/Education/v1.0/examples/New-MgEducationMeAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/New-MgEducationMeAssignmentSubmissionResource.md @@ -1,8 +1,101 @@ -### Example 1: Code snippet +### Example 1: Create an educationWordResource ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +$params = @{ + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Report.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + displayName = "Wikipedia" + link = "https://en.wikipedia.org/wiki/Main_Page" + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + displayName = "_FTP_EDC-61424749-250820211136.pdf" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + "@odata.type" = "#microsoft.graph.educationExcelResource" + displayName = "userAgeGroup QueryParameter Test.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + "@odata.type" = "#microsoft.graph.educationPowerPointResource" + displayName = "state diagram.pptx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationMeAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + displayName = "category.jpg" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" + "@odata.type" = "#microsoft.graph.educationMediaResource" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params ``` This example shows how to use the New-MgEducationMeAssignmentSubmissionResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/New-MgEducationMeRubric.md b/src/Education/v1.0/examples/New-MgEducationMeRubric.md index e8b652d0380..bbbf4b0ba76 100644 --- a/src/Education/v1.0/examples/New-MgEducationMeRubric.md +++ b/src/Education/v1.0/examples/New-MgEducationMeRubric.md @@ -1,157 +1,75 @@ -### Example 1: Using the New-MgEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DisplayName = "Example Credit Rubric" - Description = @{ - Content = "This is an example of a credit rubric (no points)" - ContentType = "text" + displayName = "Example Credit Rubric" + description = @{ + content = "This is an example of a credit rubric (no points)" + contentType = "text" } - Levels = @( + levels = @( @{ - DisplayName = "Good" - Description = @{ - Content = "" - ContentType = "text" + displayName = "Good" + description = @{ + content = "" + contentType = "text" } } @{ - DisplayName = "Poor" - Description = @{ - Content = "" - ContentType = "text" + displayName = "Poor" + description = @{ + content = "" + contentType = "text" } } ) - Qualities = @( + qualities = @( @{ - Description = @{ - Content = "Argument" - ContentType = "text" + description = @{ + content = "Argument" + contentType = "text" } - Criteria = @( + criteria = @( @{ - Description = @{ - Content = "The essay's argument is persuasive." - ContentType = "text" + description = @{ + content = "The essay's argument is persuasive." + contentType = "text" } } @{ - Description = @{ - Content = "The essay's argument does not make sense." - ContentType = "text" + description = @{ + content = "The essay's argument does not make sense." + contentType = "text" } } ) } @{ - Description = @{ - Content = "Spelling and Grammar" - ContentType = "text" + description = @{ + content = "Spelling and Grammar" + contentType = "text" } - Criteria = @( + criteria = @( @{ - Description = @{ - Content = "The essay uses proper spelling and grammar with few or no errors." - ContentType = "text" + description = @{ + content = "The essay uses proper spelling and grammar with few or no errors." + contentType = "text" } } @{ - Description = @{ - Content = "The essay has numerous errors in spelling and/or grammar." - ContentType = "text" + description = @{ + content = "The essay has numerous errors in spelling and/or grammar." + contentType = "text" } } ) } ) } -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). -### Example 2: Using the New-MgEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -$params = @{ - DisplayName = "Example Points Rubric" - Description = @{ - Content = "This is an example of a rubric with points" - ContentType = "text" - } - Levels = @( - @{ - DisplayName = "Good" - Description = @{ - Content = "" - ContentType = "text" - } - Grading = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" - MaxPoints = - } - } - @{ - DisplayName = "Poor" - Description = @{ - Content = "" - ContentType = "text" - } - Grading = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" - MaxPoints = - } - } - ) - Qualities = @( - @{ - Description = @{ - Content = "Argument" - ContentType = "text" - } - Criteria = @( - @{ - Description = @{ - Content = "The essay's argument is persuasive." - ContentType = "text" - } - } - @{ - Description = @{ - Content = "The essay's argument does not make sense." - ContentType = "text" - } - } - ) - Weight = 50.0 - } - @{ - Description = @{ - Content = "Spelling and Grammar" - ContentType = "text" - } - Criteria = @( - @{ - Description = @{ - Content = "The essay uses proper spelling and grammar with few or no errors." - ContentType = "text" - } - } - @{ - Description = @{ - Content = "The essay has numerous errors in spelling and/or grammar." - ContentType = "text" - } - } - ) - Weight = 50.0 - } - ) - Grading = @{ - "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" - } -} -New-MgEducationMeRubric -BodyParameter $params -``` -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationSchool.md b/src/Education/v1.0/examples/New-MgEducationSchool.md index 5fda77b1ae1..e2773c96a2b 100644 --- a/src/Education/v1.0/examples/New-MgEducationSchool.md +++ b/src/Education/v1.0/examples/New-MgEducationSchool.md @@ -1,29 +1,32 @@ -### Example 1: Using the New-MgEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ "@odata.type" = "#microsoft.graph.educationSchool" - DisplayName = "String" - Description = "String" - ExternalSource = "String" - ExternalSourceDetail = "String" - PrincipalEmail = "String" - PrincipalName = "String" - ExternalPrincipalId = "String" - LowestGrade = "String" - HighestGrade = "String" - SchoolNumber = "String" - ExternalId = "String" - Phone = "String" - Fax = "String" - CreatedBy = @{ + displayName = "String" + description = "String" + externalSource = "String" + externalSourceDetail = "String" + principalEmail = "String" + principalName = "String" + externalPrincipalId = "String" + lowestGrade = "String" + highestGrade = "String" + schoolNumber = "String" + externalId = "String" + phone = "String" + fax = "String" + createdBy = @{ "@odata.type" = "microsoft.graph.identitySet" } - Address = @{ + address = @{ "@odata.type" = "microsoft.graph.physicalAddress" } } -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationSchoolClassByRef.md b/src/Education/v1.0/examples/New-MgEducationSchoolClassByRef.md index 68f5d4135c2..4f4d2925dae 100644 --- a/src/Education/v1.0/examples/New-MgEducationSchoolClassByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationSchoolClassByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgEducationSchoolClassByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/New-MgEducationSchoolUserByRef.md b/src/Education/v1.0/examples/New-MgEducationSchoolUserByRef.md index 26b824c9b0f..f1b482032ab 100644 --- a/src/Education/v1.0/examples/New-MgEducationSchoolUserByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationSchoolUserByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgEducationSchoolUserByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```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 f90c5febd5b..33b2b6cfb83 100644 --- a/src/Education/v1.0/examples/New-MgEducationUser.md +++ b/src/Education/v1.0/examples/New-MgEducationUser.md @@ -1,69 +1,72 @@ -### Example 1: Using the New-MgEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ "@odata.type" = "#microsoft.graph.educationUser" - PrimaryRole = "String" - MiddleName = "String" - ExternalSource = "String" - ExternalSourceDetail = "String" - ResidenceAddress = @{ + primaryRole = "String" + middleName = "String" + externalSource = "String" + externalSourceDetail = "String" + residenceAddress = @{ "@odata.type" = "microsoft.graph.physicalAddress" } - MailingAddress = @{ + mailingAddress = @{ "@odata.type" = "microsoft.graph.physicalAddress" } - Student = @{ + student = @{ "@odata.type" = "microsoft.graph.educationStudent" } - Teacher = @{ + teacher = @{ "@odata.type" = "microsoft.graph.educationTeacher" } - CreatedBy = @{ + createdBy = @{ "@odata.type" = "microsoft.graph.identitySet" } - AccountEnabled = "Boolean" - AssignedLicenses = @( + accountEnabled = "Boolean" + assignedLicenses = @( @{ "@odata.type" = "microsoft.graph.assignedLicense" } ) - AssignedPlans = @( + assignedPlans = @( @{ "@odata.type" = "microsoft.graph.assignedPlan" } ) - BusinessPhones = @( + businessPhones = @( "String" ) - Department = "String" - DisplayName = "String" - GivenName = "String" - Mail = "String" - MailNickname = "String" - MobilePhone = "String" - PasswordPolicies = "String" - PasswordProfile = @{ + department = "String" + displayName = "String" + givenName = "String" + mail = "String" + mailNickname = "String" + mobilePhone = "String" + passwordPolicies = "String" + passwordProfile = @{ "@odata.type" = "microsoft.graph.passwordProfile" } - OfficeLocation = "String" - PreferredLanguage = "String" - ProvisionedPlans = @( + officeLocation = "String" + preferredLanguage = "String" + provisionedPlans = @( @{ "@odata.type" = "microsoft.graph.provisionedPlan" } ) - RefreshTokensValidFromDateTime = [System.DateTime]::Parse("String (timestamp)") - ShowInAddressList = "Boolean" - Surname = "String" - UsageLocation = "String" - UserPrincipalName = "String" - UserType = "String" - OnPremisesInfo = @{ + refreshTokensValidFromDateTime = [System.DateTime]::Parse("String (timestamp)") + showInAddressList = "Boolean" + surname = "String" + usageLocation = "String" + userPrincipalName = "String" + userType = "String" + onPremisesInfo = @{ "@odata.type" = "microsoft.graph.educationOnPremisesInfo" } } -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 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategory.md +++ b/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategory.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + 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 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategoryByRef.md +++ b/src/Education/v1.0/examples/New-MgEducationUserAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/New-MgEducationUserAssignmentResource.md b/src/Education/v1.0/examples/New-MgEducationUserAssignmentResource.md index d71aca84983..d92c3d842bd 100644 --- a/src/Education/v1.0/examples/New-MgEducationUserAssignmentResource.md +++ b/src/Education/v1.0/examples/New-MgEducationUserAssignmentResource.md @@ -1,8 +1,128 @@ -### Example 1: Code snippet +### Example 1: Create an educationLinkResource ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "Where the Wonders of Learning Never Cease | Wonderopolis" + link = "https://wonderopolis.org/" + thumbnailPreviewUrl = $null + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationWordResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Issues and PR in guthub.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "article.pdf" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationExcelResource" + displayName = "Graph Doc pages.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Education + +$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" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + "@odata.type" = "microsoft.graph.educationMediaResource" + displayName = "homework example.PNG" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: Create an educationTeamsAppResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + distributeForStudentWork = $false + resource = @{ + displayName = "Template - My Story" + appId = "6fbeb90c-3d55-4bd5-82c4-bfe824be4300" + appIconWebUrl = "https://statics.teams.cdn.office.net/evergreen-assets/ThirdPartyApps/6fbeb90c-3d55-4bd5-82c4-bfe824be4300_largeImage.png?v=2.0.2" + teamsEmbeddedContentUrl = "https://app.api.edu.buncee.com/player/C7B0866C9B7E485EAE21AE14DBC3FD08?embed=1&render_slide_panel=1" + webUrl = "https://app.edu.buncee.com/buncee/C7B0866C9B7E485EAE21AE14DBC3FD08" + "@odata.type" = "#microsoft.graph.educationTeamsAppResource" + } +} + +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the New-MgEducationUserAssignmentResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/New-MgEducationUserAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/New-MgEducationUserAssignmentSubmissionOutcome.md index 037db41c376..f396de62505 100644 --- a/src/Education/v1.0/examples/New-MgEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/New-MgEducationUserAssignmentSubmissionOutcome.md @@ -1,17 +1,16 @@ -### Example 1: Get all outcomes +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -``` -This example shows how to use the New-MgEducationUserAssignmentSubmissionOutcome Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get outcomes filtered by outcome type - -```powershell Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackResourceOutcome" + feedbackResource = @{ + "@odata.type" = "#microsoft.graph.educationWordResource" + displayName = "Document1.docx" + } +} -Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -Filter "isof('microsoft.graph.educationFeedbackResourceOutcome')" +New-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params ``` This example shows how to use the New-MgEducationUserAssignmentSubmissionOutcome Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/New-MgEducationUserAssignmentSubmissionResource.md b/src/Education/v1.0/examples/New-MgEducationUserAssignmentSubmissionResource.md index d0d49f781e9..9b026ae438b 100644 --- a/src/Education/v1.0/examples/New-MgEducationUserAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/New-MgEducationUserAssignmentSubmissionResource.md @@ -1,8 +1,101 @@ -### Example 1: Code snippet +### Example 1: Create an educationWordResource ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +$params = @{ + resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + displayName = "Report.docx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + displayName = "Wikipedia" + link = "https://en.wikipedia.org/wiki/Main_Page" + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an educationFileResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + displayName = "_FTP_EDC-61424749-250820211136.pdf" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + "@odata.type" = "#microsoft.graph.educationExcelResource" + displayName = "userAgeGroup QueryParameter Test.xlsx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create an educationPowerPointResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + "@odata.type" = "#microsoft.graph.educationPowerPointResource" + displayName = "state diagram.pptx" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationUserAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Create an educationMediaResource + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + resource = @{ + displayName = "category.jpg" + fileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" + "@odata.type" = "#microsoft.graph.educationMediaResource" + } +} + +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params ``` This example shows how to use the New-MgEducationUserAssignmentSubmissionResource Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/New-MgEducationUserRubric.md b/src/Education/v1.0/examples/New-MgEducationUserRubric.md index 368ed43fa5f..316e3340041 100644 --- a/src/Education/v1.0/examples/New-MgEducationUserRubric.md +++ b/src/Education/v1.0/examples/New-MgEducationUserRubric.md @@ -2,7 +2,73 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationMeRubric +$params = @{ + displayName = "Example Credit Rubric" + description = @{ + content = "This is an example of a credit rubric (no points)" + contentType = "text" + } + levels = @( + @{ + displayName = "Good" + description = @{ + content = "" + contentType = "text" + } + } + @{ + displayName = "Poor" + description = @{ + content = "" + contentType = "text" + } + } + ) + qualities = @( + @{ + description = @{ + content = "Argument" + contentType = "text" + } + criteria = @( + @{ + description = @{ + content = "The essay's argument is persuasive." + contentType = "text" + } + } + @{ + description = @{ + content = "The essay's argument does not make sense." + contentType = "text" + } + } + ) + } + @{ + description = @{ + content = "Spelling and Grammar" + contentType = "text" + } + criteria = @( + @{ + description = @{ + content = "The essay uses proper spelling and grammar with few or no errors." + contentType = "text" + } + } + @{ + description = @{ + content = "The essay has numerous errors in spelling and/or grammar." + contentType = "text" + } + } + ) + } + ) +} + +New-MgEducationMeRubric -BodyParameter $params ``` This example shows how to use the New-MgEducationUserRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationClass.md b/src/Education/v1.0/examples/Remove-MgEducationClass.md index b96838cab33..f3d2e346352 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClass.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClass.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationClass -EducationClassId $educationClassId -``` -This example shows how to use the Remove-MgEducationClass Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + description = "History - World History 1" + displayName = "World History Level 1" +} + +Update-MgEducationClass -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Remove-MgEducationClass Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignment.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignment.md index c8b2fb842d2..4ee1771207a 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignment.md @@ -1,7 +1,19 @@ -### Example 1: Using the Remove-MgEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Remove-MgEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + displayName = "Reading and review test 09.03 #5" + instructions = @{ + contentType = "text" + content = "Read chapter 5 and write your review" + } + dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") + addedStudentAction = "none" +} + +Update-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Remove-MgEducationClassAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentCategory.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentCategory.md index c41b8ef9ccc..030c956c2b5 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentCategory.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentCategory.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgEducationClassAssignmentCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId -``` -This example shows how to use the Remove-MgEducationClassAssignmentCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId +``` +This example shows how to use the Remove-MgEducationClassAssignmentCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentCategoryByRef.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentCategoryByRef.md index 0f1753609db..cf6386c7243 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentCategoryByRef.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentCategoryByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgEducationClassAssignmentCategoryByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationClassAssignmentCategoryByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationCategoryId $educationCategoryId -``` -This example shows how to use the Remove-MgEducationClassAssignmentCategoryByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +Remove-MgEducationClassAssignmentCategoryByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationCategoryId $educationCategoryId +``` +This example shows how to use the Remove-MgEducationClassAssignmentCategoryByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentDefault.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentDefault.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentDefault.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentDefault.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentResource.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentResource.md index 41e2d166aeb..19583b9af92 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentResource.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentResource.md @@ -1,7 +1,54 @@ -### Example 1: Using the Remove-MgEducationClassAssignmentResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId -``` -This example shows how to use the Remove-MgEducationClassAssignmentResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get an educationWordResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationLinkResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgEducationClassAssignmentResource 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-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgEducationClassAssignmentResource 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-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Remove-MgEducationClassAssignmentResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubric.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubric.md index a5d69df1614..f9158fa28b4 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubric.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubric.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the Remove-MgEducationClassAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubricByRef.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubricByRef.md index d3f39ff4857..9304c985445 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentRubricByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgEducationClassAssignmentRubricByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Remove-MgEducationClassAssignmentRubricByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Remove-MgEducationClassAssignmentRubricByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSetting.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSetting.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSetting.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSetting.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmission.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionOutcome.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionResource.md b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionResource.md index df2337a43da..4f5da2dffc8 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Remove-MgEducationClassAssignmentSubmissionResource.md @@ -1,7 +1,54 @@ -### Example 1: Using the Remove-MgEducationClassAssignmentSubmissionResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId -``` -This example shows how to use the Remove-MgEducationClassAssignmentSubmissionResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get an educationWordResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Remove-MgEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get an educationFileResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Remove-MgEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get an educationExcelResource + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Remove-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 Remove-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 Remove-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 Remove-MgEducationClassAssignmentSubmissionResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentCategoryByRef.md b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentCategoryByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentCategoryByRef.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentResource.md b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentResource.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubric.md b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubric.md index 4b412da93ad..bae2161318f 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubric.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubric.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the Remove-MgEducationMeAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubricByRef.md b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmission.md b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmissionOutcome.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmissionOutcome.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmissionResource.md b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationMeRubric.md b/src/Education/v1.0/examples/Remove-MgEducationMeRubric.md index 24dade8fdb0..f5a75c47051 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationMeRubric.md +++ b/src/Education/v1.0/examples/Remove-MgEducationMeRubric.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationMeRubric -EducationRubricId $educationRubricId -``` -This example shows how to use the Remove-MgEducationMeRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + displayName = "Example Credit Rubric after display name patch" +} + +Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +``` +This example shows how to use the Remove-MgEducationMeRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationSchool.md b/src/Education/v1.0/examples/Remove-MgEducationSchool.md index 2f094bc798d..9e2d1499bdd 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationSchool.md +++ b/src/Education/v1.0/examples/Remove-MgEducationSchool.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationSchool -EducationSchoolId $educationSchoolId -``` -This example shows how to use the Remove-MgEducationSchool Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + displayName = "Fabrikam Arts High School" + description = "Magnate school for the arts. Los Angeles School District" +} + +Update-MgEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +``` +This example shows how to use the Remove-MgEducationSchool Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationUser.md b/src/Education/v1.0/examples/Remove-MgEducationUser.md index 4fa932e5fc0..aa9e4183937 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUser.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUser.md @@ -1,7 +1,16 @@ -### Example 1: Using the Remove-MgEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -Remove-MgEducationUser -EducationUserId $educationUserId -``` -This example shows how to use the Remove-MgEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + displayName = "Rogelio Cazares" + givenName = "Rogelio" + middleName = "Fernando" + surname = "Cazares" +} + +Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params +``` +This example shows how to use the Remove-MgEducationUser Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentCategoryByRef.md b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentCategoryByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentCategoryByRef.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentCategoryByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentResource.md b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentResource.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubric.md b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubric.md index f73b39bb011..3c972fd21fa 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubric.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubric.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the Remove-MgEducationUserAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubricByRef.md b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmission.md b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmissionOutcome.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmissionOutcome.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmissionResource.md b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUserAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Remove-MgEducationUserRubric.md b/src/Education/v1.0/examples/Remove-MgEducationUserRubric.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Remove-MgEducationUserRubric.md +++ b/src/Education/v1.0/examples/Remove-MgEducationUserRubric.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Set-MgEducationClassAssignmentRubricByRef.md b/src/Education/v1.0/examples/Set-MgEducationClassAssignmentRubricByRef.md index 4623a1050a6..b36bf907c91 100644 --- a/src/Education/v1.0/examples/Set-MgEducationClassAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Set-MgEducationClassAssignmentRubricByRef.md @@ -1,10 +1,9 @@ -### Example 1: Using the Set-MgEducationClassAssignmentRubricByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" -} -Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the Set-MgEducationClassAssignmentRubricByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Set-MgEducationClassAssignmentRubricByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Set-MgEducationMeAssignmentRubricByRef.md b/src/Education/v1.0/examples/Set-MgEducationMeAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Set-MgEducationMeAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Set-MgEducationMeAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Set-MgEducationUserAssignmentRubricByRef.md b/src/Education/v1.0/examples/Set-MgEducationUserAssignmentRubricByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Set-MgEducationUserAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Set-MgEducationUserAssignmentRubricByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationClass.md b/src/Education/v1.0/examples/Update-MgEducationClass.md index 7defc755f60..5d4f9a3f4ec 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClass.md +++ b/src/Education/v1.0/examples/Update-MgEducationClass.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgEducationClass Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - Description = "History - World History 1" - DisplayName = "World History Level 1" + description = "History - World History 1" + displayName = "World History Level 1" } -Update-MgEducationClass -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationClass Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEducationClass -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationClass Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignment.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignment.md index f6f0369a55e..3eb6f3dba9c 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignment.md @@ -1,16 +1,19 @@ -### Example 1: Using the Update-MgEducationClassAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DisplayName = "Reading and review test 09.03 #5" - Instructions = @{ - ContentType = "text" - Content = "Read chapter 5 and write your review" + displayName = "Reading and review test 09.03 #5" + instructions = @{ + contentType = "text" + content = "Read chapter 5 and write your review" } - DueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") - AddedStudentAction = "none" + dueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") + addedStudentAction = "none" } -Update-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationClassAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationClassAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentCategory.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentCategory.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentCategory.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentCategory.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentDefault.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentDefault.md index 1eae9476304..53a46c27eb7 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentDefault.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentDefault.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgEducationClassAssignmentDefault Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - AddedStudentAction = "assignIfOpen" - NotificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" + addedStudentAction = "assignIfOpen" + notificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" } -Update-MgEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationClassAssignmentDefault Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationClassAssignmentDefault Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentResource.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentResource.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentRubric.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentRubric.md index 77867f76637..53d25e5a933 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentRubric.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentRubric.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the Update-MgEducationClassAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSetting.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSetting.md index 7f42606bd35..c40d6bb3f31 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSetting.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSetting.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgEducationClassAssignmentSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - SubmissionAnimationDisabled = $true + submissionAnimationDisabled = $true } -Update-MgEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationClassAssignmentSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationClassAssignmentSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmission.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionOutcome.md index 2b0be5c9bcd..e378a709d9c 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,38 +1,47 @@ -### Example 1: Using the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Update a feedback outcome + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" } -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Education -$params = @{ - "@odata.type" = "#microsoft.graph.educationRubricOutcome" - RubricQualityFeedback = @( - ) - RubricQualitySelectedLevels = @( - ) -} -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet -```powershell -Import-Module Microsoft.Graph.Education + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a points outcome + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ "@odata.type" = "#microsoft.graph.educationPointsOutcome" - Points = @{ + points = @{ "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" - Points = + points = } } -Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update a rubric outcome + +```powershell Import-Module Microsoft.Graph.Education + +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + rubricQualityFeedback = @( + ) + rubricQualitySelectedLevels = @( + ) +} + +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionResource.md b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Update-MgEducationClassAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentResource.md b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentResource.md +++ b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentRubric.md b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentRubric.md index 8db3cb5a509..de533d08a0f 100644 --- a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentRubric.md +++ b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentRubric.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the Update-MgEducationMeAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmission.md b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmissionOutcome.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmissionOutcome.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmissionResource.md b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Update-MgEducationMeAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationMeRubric.md b/src/Education/v1.0/examples/Update-MgEducationMeRubric.md index 8142e8dc7bf..b0015661785 100644 --- a/src/Education/v1.0/examples/Update-MgEducationMeRubric.md +++ b/src/Education/v1.0/examples/Update-MgEducationMeRubric.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgEducationMeRubric Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DisplayName = "Example Credit Rubric after display name patch" + displayName = "Example Credit Rubric after display name patch" } -Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationMeRubric Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationMeRubric Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Update-MgEducationSchool.md b/src/Education/v1.0/examples/Update-MgEducationSchool.md index 47dfcc53182..8d43118d3ed 100644 --- a/src/Education/v1.0/examples/Update-MgEducationSchool.md +++ b/src/Education/v1.0/examples/Update-MgEducationSchool.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgEducationSchool Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DisplayName = "Fabrikam Arts High School" - Description = "Magnate school for the arts. Los Angeles School District" + displayName = "Fabrikam Arts High School" + description = "Magnate school for the arts. Los Angeles School District" } -Update-MgEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationSchool Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationSchool Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Update-MgEducationUser.md b/src/Education/v1.0/examples/Update-MgEducationUser.md index 9ef684e7738..548a6c25697 100644 --- a/src/Education/v1.0/examples/Update-MgEducationUser.md +++ b/src/Education/v1.0/examples/Update-MgEducationUser.md @@ -1,13 +1,16 @@ -### Example 1: Using the Update-MgEducationUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Education +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Education + $params = @{ - DisplayName = "Rogelio Cazares" - GivenName = "Rogelio" - MiddleName = "Fernando" - Surname = "Cazares" + displayName = "Rogelio Cazares" + givenName = "Rogelio" + middleName = "Fernando" + surname = "Cazares" } -Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params -``` -This example shows how to use the Update-MgEducationUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationUser Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentResource.md b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentResource.md +++ b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentRubric.md b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentRubric.md index 3ddeb731ea3..74f1f1ef7a8 100644 --- a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentRubric.md +++ b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentRubric.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Education -Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} + +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` This example shows how to use the Update-MgEducationUserAssignmentRubric Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmission.md b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmissionOutcome.md b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmissionOutcome.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmissionOutcome.md +++ b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmissionOutcome.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmissionResource.md b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmissionResource.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmissionResource.md +++ b/src/Education/v1.0/examples/Update-MgEducationUserAssignmentSubmissionResource.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Education/v1.0/examples/Update-MgEducationUserRubric.md b/src/Education/v1.0/examples/Update-MgEducationUserRubric.md index 093355d11d5..f6c6949389e 100644 --- a/src/Education/v1.0/examples/Update-MgEducationUserRubric.md +++ b/src/Education/v1.0/examples/Update-MgEducationUserRubric.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + 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 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveBundle.md +++ b/src/Files/beta/examples/Get-MgBetaDriveBundle.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveBundleContent.md b/src/Files/beta/examples/Get-MgBetaDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveBundleContent.md +++ b/src/Files/beta/examples/Get-MgBetaDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemChild.md b/src/Files/beta/examples/Get-MgBetaDriveItemChild.md index 5036386324f..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemChild.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemChild.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgBetaDriveItemChild Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Files -Get-MgBetaDriveItemChild -DriveId $driveId -DriveItemId $driveItemId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaDriveItemChild Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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-MgBetaDriveItemChildContent.md b/src/Files/beta/examples/Get-MgBetaDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemChildContent.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemListItemField.md b/src/Files/beta/examples/Get-MgBetaDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemListItemVersion.md b/src/Files/beta/examples/Get-MgBetaDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + 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 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemPermission.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemVersion.md b/src/Files/beta/examples/Get-MgBetaDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemVersionContent.md b/src/Files/beta/examples/Get-MgBetaDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemVersionContent.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveListContentTypeColumn.md b/src/Files/beta/examples/Get-MgBetaDriveListContentTypeColumn.md index 69c72a4065f..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/Get-MgBetaDriveListContentTypeColumn.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaDriveListContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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-MgBetaDriveListItem.md b/src/Files/beta/examples/Get-MgBetaDriveListItem.md index 17f62729ee8..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveListItem.md +++ b/src/Files/beta/examples/Get-MgBetaDriveListItem.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaDriveListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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-MgBetaDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveListItemField.md b/src/Files/beta/examples/Get-MgBetaDriveListItemField.md index 2a10e4b43a1..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaDriveListItemField.md @@ -1,16 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - Color = "Fuchsia" - Quantity = -} + PS C:\> {{ Add code here }} -Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaDriveListItemField Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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-MgBetaDriveListItemVersion.md b/src/Files/beta/examples/Get-MgBetaDriveListItemVersion.md index a3508e31f84..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveListItemVersion.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaDriveListItemVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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-MgBetaDriveRootChildContent.md b/src/Files/beta/examples/Get-MgBetaDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveRootChildContent.md +++ b/src/Files/beta/examples/Get-MgBetaDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveRootListItemField.md b/src/Files/beta/examples/Get-MgBetaDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveRootListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveRootListItemVersion.md b/src/Files/beta/examples/Get-MgBetaDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveRootListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveRootPermission.md b/src/Files/beta/examples/Get-MgBetaDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveRootPermission.md +++ b/src/Files/beta/examples/Get-MgBetaDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveRootVersion.md b/src/Files/beta/examples/Get-MgBetaDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveRootVersion.md +++ b/src/Files/beta/examples/Get-MgBetaDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaDriveRootVersionContent.md b/src/Files/beta/examples/Get-MgBetaDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveRootVersionContent.md +++ b/src/Files/beta/examples/Get-MgBetaDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveBundle.md b/src/Files/beta/examples/Get-MgBetaGroupDriveBundle.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveBundle.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveBundle.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveBundleContent.md b/src/Files/beta/examples/Get-MgBetaGroupDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveBundleContent.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveItemChildContent.md b/src/Files/beta/examples/Get-MgBetaGroupDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveItemChildContent.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemField.md b/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemVersion.md b/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveItemPermission.md b/src/Files/beta/examples/Get-MgBetaGroupDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveItemPermission.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveItemVersion.md b/src/Files/beta/examples/Get-MgBetaGroupDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveItemVersionContent.md b/src/Files/beta/examples/Get-MgBetaGroupDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveItemVersionContent.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveListContentTypeColumn.md b/src/Files/beta/examples/Get-MgBetaGroupDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveListItem.md b/src/Files/beta/examples/Get-MgBetaGroupDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveListItem.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaGroupDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveListItemField.md b/src/Files/beta/examples/Get-MgBetaGroupDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveListItemVersion.md b/src/Files/beta/examples/Get-MgBetaGroupDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveRootChildContent.md b/src/Files/beta/examples/Get-MgBetaGroupDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveRootChildContent.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemField.md b/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemVersion.md b/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveRootPermission.md b/src/Files/beta/examples/Get-MgBetaGroupDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveRootPermission.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveRootVersion.md b/src/Files/beta/examples/Get-MgBetaGroupDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveRootVersion.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveRootVersionContent.md b/src/Files/beta/examples/Get-MgBetaGroupDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaGroupDriveRootVersionContent.md +++ b/src/Files/beta/examples/Get-MgBetaGroupDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaShareDriveItem.md b/src/Files/beta/examples/Get-MgBetaShareDriveItem.md index 63c6543e963..7a37f27eee9 100644 --- a/src/Files/beta/examples/Get-MgBetaShareDriveItem.md +++ b/src/Files/beta/examples/Get-MgBetaShareDriveItem.md @@ -1,14 +1,27 @@ -### Example 1: Using the Get-MgBetaShareDriveItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Files -Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" -``` -This example shows how to use the Get-MgBetaShareDriveItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaShareDriveItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Files -Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -``` -This example shows how to use the Get-MgBetaShareDriveItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Get-MgBetaBetaShareDriveItem 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.Files + +Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Get-MgBetaBetaShareDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" +``` +This example shows how to use the Get-MgBetaBetaShareDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/beta/examples/Get-MgBetaShareDriveItemContent.md b/src/Files/beta/examples/Get-MgBetaShareDriveItemContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaShareDriveItemContent.md +++ b/src/Files/beta/examples/Get-MgBetaShareDriveItemContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaShareListContentTypeColumn.md b/src/Files/beta/examples/Get-MgBetaShareListContentTypeColumn.md index fd48c87cd29..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaShareListContentTypeColumn.md +++ b/src/Files/beta/examples/Get-MgBetaShareListContentTypeColumn.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaShareListContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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-MgBetaShareListItem.md b/src/Files/beta/examples/Get-MgBetaShareListItem.md index 8f874f22d05..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaShareListItem.md +++ b/src/Files/beta/examples/Get-MgBetaShareListItem.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaShareListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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-MgBetaShareListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaShareListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaShareListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaShareListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaShareListItemField.md b/src/Files/beta/examples/Get-MgBetaShareListItemField.md index 96bd5d7a7e8..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaShareListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaShareListItemField.md @@ -1,16 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - Color = "Fuchsia" - Quantity = -} + PS C:\> {{ Add code here }} -Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaShareListItemField Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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-MgBetaShareListItemVersion.md b/src/Files/beta/examples/Get-MgBetaShareListItemVersion.md index dc497ee8ae7..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaShareListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaShareListItemVersion.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaShareListItemVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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-MgBetaShareSharedDriveItemSharedDriveItem.md b/src/Files/beta/examples/Get-MgBetaShareSharedDriveItemSharedDriveItem.md index 9463cce83e5..3a4b36f1af1 100644 --- a/src/Files/beta/examples/Get-MgBetaShareSharedDriveItemSharedDriveItem.md +++ b/src/Files/beta/examples/Get-MgBetaShareSharedDriveItemSharedDriveItem.md @@ -1,7 +1,27 @@ -### Example 1: Using the Get-MgBetaShareSharedDriveItemSharedDriveItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Files -Get-MgBetaShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId -``` -This example shows how to use the Get-MgBetaShareSharedDriveItemSharedDriveItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Get-MgBetaBetaShareSharedDriveItemSharedDriveItem 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.Files + +Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Get-MgBetaBetaShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Files + +Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" +``` +This example shows how to use the Get-MgBetaBetaShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/beta/examples/Get-MgBetaUserDefaultDrive.md b/src/Files/beta/examples/Get-MgBetaUserDefaultDrive.md index 0a2f8f0d9ad..15be22be6e4 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDefaultDrive.md +++ b/src/Files/beta/examples/Get-MgBetaUserDefaultDrive.md @@ -1,15 +1,10 @@ -### Example 1: Using the Get-MgBetaUserDefaultDrive Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Files -Get-MgBetaUserDefaultDrive -UserId $userId -``` -This example shows how to use the Get-MgBetaUserDefaultDrive Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserDefaultDrive Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Files +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Files + # A UPN can also be used as -UserId. -Get-MgBetaUserDefaultDrive -UserId $userId -``` -This example shows how to use the Get-MgBetaUserDefaultDrive Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgBetaUserDefaultDrive -UserId $userId +``` +This example shows how to use the Get-MgBetaBetaUserDefaultDrive Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveBundle.md b/src/Files/beta/examples/Get-MgBetaUserDriveBundle.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveBundle.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveBundle.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveBundleContent.md b/src/Files/beta/examples/Get-MgBetaUserDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveBundleContent.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveItemChildContent.md b/src/Files/beta/examples/Get-MgBetaUserDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveItemChildContent.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemField.md b/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemVersion.md b/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveItemPermission.md b/src/Files/beta/examples/Get-MgBetaUserDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveItemPermission.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveItemVersion.md b/src/Files/beta/examples/Get-MgBetaUserDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveItemVersionContent.md b/src/Files/beta/examples/Get-MgBetaUserDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveItemVersionContent.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveListContentTypeColumn.md b/src/Files/beta/examples/Get-MgBetaUserDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveListItem.md b/src/Files/beta/examples/Get-MgBetaUserDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveListItem.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaUserDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveListItemField.md b/src/Files/beta/examples/Get-MgBetaUserDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveListItemVersion.md b/src/Files/beta/examples/Get-MgBetaUserDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveRootChildContent.md b/src/Files/beta/examples/Get-MgBetaUserDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveRootChildContent.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemField.md b/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemField.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemVersion.md b/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemVersion.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveRootPermission.md b/src/Files/beta/examples/Get-MgBetaUserDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveRootPermission.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveRootVersion.md b/src/Files/beta/examples/Get-MgBetaUserDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveRootVersion.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveRootVersionContent.md b/src/Files/beta/examples/Get-MgBetaUserDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Get-MgBetaUserDriveRootVersionContent.md +++ b/src/Files/beta/examples/Get-MgBetaUserDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveItemListItemVersion.md b/src/Files/beta/examples/New-MgBetaDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveItemListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveItemPermission.md b/src/Files/beta/examples/New-MgBetaDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveItemPermission.md +++ b/src/Files/beta/examples/New-MgBetaDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveItemThumbnail.md b/src/Files/beta/examples/New-MgBetaDriveItemThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveItemThumbnail.md +++ b/src/Files/beta/examples/New-MgBetaDriveItemThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveItemVersion.md b/src/Files/beta/examples/New-MgBetaDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveListColumn.md b/src/Files/beta/examples/New-MgBetaDriveListColumn.md index b36ed9087a9..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveListColumn.md +++ b/src/Files/beta/examples/New-MgBetaDriveListColumn.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListColumn -SiteId $siteId -ListId $listId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaDriveListColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaDriveListContentType.md b/src/Files/beta/examples/New-MgBetaDriveListContentType.md index 539173b01b9..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveListContentType.md +++ b/src/Files/beta/examples/New-MgBetaDriveListContentType.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListContentType -SiteId $siteId -ListId $listId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaDriveListContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaDriveListContentTypeColumn.md b/src/Files/beta/examples/New-MgBetaDriveListContentTypeColumn.md index adc8df47079..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/New-MgBetaDriveListContentTypeColumn.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaDriveListContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaDriveListItem.md b/src/Files/beta/examples/New-MgBetaDriveListItem.md index 3a5d0f48fde..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveListItem.md +++ b/src/Files/beta/examples/New-MgBetaDriveListItem.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" +{{ Add output here }} ``` -This example shows how to use the New-MgBetaDriveListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveListItemVersion.md b/src/Files/beta/examples/New-MgBetaDriveListItemVersion.md index 095e7548d7c..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaDriveListItemVersion.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaDriveListItemVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveRootListItemVersion.md b/src/Files/beta/examples/New-MgBetaDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveRootListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveRootPermission.md b/src/Files/beta/examples/New-MgBetaDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveRootPermission.md +++ b/src/Files/beta/examples/New-MgBetaDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveRootThumbnail.md b/src/Files/beta/examples/New-MgBetaDriveRootThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveRootThumbnail.md +++ b/src/Files/beta/examples/New-MgBetaDriveRootThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaDriveRootVersion.md b/src/Files/beta/examples/New-MgBetaDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaDriveRootVersion.md +++ b/src/Files/beta/examples/New-MgBetaDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaGroupDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveItemListItemVersion.md b/src/Files/beta/examples/New-MgBetaGroupDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveItemListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveItemPermission.md b/src/Files/beta/examples/New-MgBetaGroupDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveItemPermission.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveItemThumbnail.md b/src/Files/beta/examples/New-MgBetaGroupDriveItemThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveItemThumbnail.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveItemThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveItemVersion.md b/src/Files/beta/examples/New-MgBetaGroupDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveListContentType.md b/src/Files/beta/examples/New-MgBetaGroupDriveListContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveListContentType.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveListContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveListItem.md b/src/Files/beta/examples/New-MgBetaGroupDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveListItem.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaGroupDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveListItemVersion.md b/src/Files/beta/examples/New-MgBetaGroupDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaGroupDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveRootListItemVersion.md b/src/Files/beta/examples/New-MgBetaGroupDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveRootListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveRootPermission.md b/src/Files/beta/examples/New-MgBetaGroupDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveRootPermission.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveRootThumbnail.md b/src/Files/beta/examples/New-MgBetaGroupDriveRootThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveRootThumbnail.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveRootThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaGroupDriveRootVersion.md b/src/Files/beta/examples/New-MgBetaGroupDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaGroupDriveRootVersion.md +++ b/src/Files/beta/examples/New-MgBetaGroupDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaShareListColumn.md b/src/Files/beta/examples/New-MgBetaShareListColumn.md index ee0189ca192..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaShareListColumn.md +++ b/src/Files/beta/examples/New-MgBetaShareListColumn.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListColumn -SiteId $siteId -ListId $listId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaShareListColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaShareListContentType.md b/src/Files/beta/examples/New-MgBetaShareListContentType.md index 585f8abdc95..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaShareListContentType.md +++ b/src/Files/beta/examples/New-MgBetaShareListContentType.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListContentType -SiteId $siteId -ListId $listId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaShareListContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaShareListContentTypeColumn.md b/src/Files/beta/examples/New-MgBetaShareListContentTypeColumn.md index ad89eab60b6..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaShareListContentTypeColumn.md +++ b/src/Files/beta/examples/New-MgBetaShareListContentTypeColumn.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaShareListContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaShareListItem.md b/src/Files/beta/examples/New-MgBetaShareListItem.md index 1ca2406f25a..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaShareListItem.md +++ b/src/Files/beta/examples/New-MgBetaShareListItem.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" +{{ Add output here }} ``` -This example shows how to use the New-MgBetaShareListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaShareListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaShareListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaShareListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaShareListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaShareListItemVersion.md b/src/Files/beta/examples/New-MgBetaShareListItemVersion.md index c273c7e9da9..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaShareListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaShareListItemVersion.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaShareListItemVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaUserDrive.md b/src/Files/beta/examples/New-MgBetaUserDrive.md index 0f8027c7383..e575340cb79 100644 --- a/src/Files/beta/examples/New-MgBetaUserDrive.md +++ b/src/Files/beta/examples/New-MgBetaUserDrive.md @@ -1,45 +1,10 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Files - -Get-MgBetaGroupDrive -GroupId $groupId -``` -This example shows how to use the New-MgBetaUserDrive 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.Sites - -Get-MgBetaSiteDrive -SiteId $siteId -``` -This example shows how to use the New-MgBetaUserDrive Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Files - -Get-MgBetaUserDrive -UserId $userId -``` -This example shows how to use the New-MgBetaUserDrive Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Files +```powershell Import-Module Microsoft.Graph.Beta.Files # A UPN can also be used as -UserId. -Get-MgBetaUserDrive -UserId $userId -``` -This example shows how to use the New-MgBetaUserDrive Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserDrive -UserId $userId +``` +This example shows how to use the New-MgBetaBetaUserDrive Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/beta/examples/New-MgBetaUserDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveItemListItemVersion.md b/src/Files/beta/examples/New-MgBetaUserDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveItemListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveItemPermission.md b/src/Files/beta/examples/New-MgBetaUserDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveItemPermission.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveItemThumbnail.md b/src/Files/beta/examples/New-MgBetaUserDriveItemThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveItemThumbnail.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveItemThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveItemVersion.md b/src/Files/beta/examples/New-MgBetaUserDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveListContentType.md b/src/Files/beta/examples/New-MgBetaUserDriveListContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveListContentType.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveListContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveListItem.md b/src/Files/beta/examples/New-MgBetaUserDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveListItem.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaUserDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveListItemVersion.md b/src/Files/beta/examples/New-MgBetaUserDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/New-MgBetaUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveRootListItemVersion.md b/src/Files/beta/examples/New-MgBetaUserDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveRootListItemVersion.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveRootPermission.md b/src/Files/beta/examples/New-MgBetaUserDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveRootPermission.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveRootThumbnail.md b/src/Files/beta/examples/New-MgBetaUserDriveRootThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveRootThumbnail.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveRootThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/New-MgBetaUserDriveRootVersion.md b/src/Files/beta/examples/New-MgBetaUserDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/New-MgBetaUserDriveRootVersion.md +++ b/src/Files/beta/examples/New-MgBetaUserDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveItemListItemField.md b/src/Files/beta/examples/Remove-MgBetaDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveItemListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveItemListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveItemListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveItemPermission.md b/src/Files/beta/examples/Remove-MgBetaDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveItemPermission.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveItemVersion.md b/src/Files/beta/examples/Remove-MgBetaDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveListContentTypeColumn.md b/src/Files/beta/examples/Remove-MgBetaDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveListItem.md b/src/Files/beta/examples/Remove-MgBetaDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveListItem.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveListItemField.md b/src/Files/beta/examples/Remove-MgBetaDriveListItemField.md index 4f1df0aee2b..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveListItemField.md @@ -1,16 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - Color = "Fuchsia" - Quantity = -} + PS C:\> {{ Add code here }} -Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaDriveListItemField Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Remove-MgBetaDriveListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveRootListItemField.md b/src/Files/beta/examples/Remove-MgBetaDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveRootListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveRootListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveRootListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveRootPermission.md b/src/Files/beta/examples/Remove-MgBetaDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveRootPermission.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaDriveRootVersion.md b/src/Files/beta/examples/Remove-MgBetaDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaDriveRootVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemField.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemPermission.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemPermission.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemVersion.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveListContentTypeColumn.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveListItem.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveListItem.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemField.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemField.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootPermission.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootPermission.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootVersion.md b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaGroupDriveRootVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaGroupDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaShareListContentTypeColumn.md b/src/Files/beta/examples/Remove-MgBetaShareListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaShareListContentTypeColumn.md +++ b/src/Files/beta/examples/Remove-MgBetaShareListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaShareListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaShareListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaShareListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaShareListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaShareListItemField.md b/src/Files/beta/examples/Remove-MgBetaShareListItemField.md index 474579fbfb6..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaShareListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaShareListItemField.md @@ -1,16 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - Color = "Fuchsia" - Quantity = -} + PS C:\> {{ Add code here }} -Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaShareListItemField Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Remove-MgBetaShareListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaShareListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaShareListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaShareListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaShareSharedDriveItemSharedDriveItem.md b/src/Files/beta/examples/Remove-MgBetaShareSharedDriveItemSharedDriveItem.md index b25c09d24ef..6787962d4a4 100644 --- a/src/Files/beta/examples/Remove-MgBetaShareSharedDriveItemSharedDriveItem.md +++ b/src/Files/beta/examples/Remove-MgBetaShareSharedDriveItemSharedDriveItem.md @@ -1,33 +1,27 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Files +```powershell Import-Module Microsoft.Graph.Beta.Files -Get-MgBetaShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId -``` -This example shows how to use the Remove-MgBetaShareSharedDriveItemSharedDriveItem Cmdlet. +Get-MgBetaShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Remove-MgBetaBetaShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Files -### Example 2: Code snippet +Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Remove-MgBetaBetaShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Files - -Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -``` -This example shows how to use the Remove-MgBetaShareSharedDriveItemSharedDriveItem Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Files - -Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" -``` -This example shows how to use the Remove-MgBetaShareSharedDriveItemSharedDriveItem Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Files +Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" +``` +This example shows how to use the Remove-MgBetaBetaShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemField.md b/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveItemPermission.md b/src/Files/beta/examples/Remove-MgBetaUserDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveItemPermission.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveItemVersion.md b/src/Files/beta/examples/Remove-MgBetaUserDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveListContentTypeColumn.md b/src/Files/beta/examples/Remove-MgBetaUserDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveListItem.md b/src/Files/beta/examples/Remove-MgBetaUserDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveListItem.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaUserDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveListItemField.md b/src/Files/beta/examples/Remove-MgBetaUserDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaUserDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemField.md b/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemField.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemVersion.md b/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveRootPermission.md b/src/Files/beta/examples/Remove-MgBetaUserDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveRootPermission.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Remove-MgBetaUserDriveRootVersion.md b/src/Files/beta/examples/Remove-MgBetaUserDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Remove-MgBetaUserDriveRootVersion.md +++ b/src/Files/beta/examples/Remove-MgBetaUserDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaDriveBundleContent.md b/src/Files/beta/examples/Set-MgBetaDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaDriveBundleContent.md +++ b/src/Files/beta/examples/Set-MgBetaDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaDriveItemChildContent.md b/src/Files/beta/examples/Set-MgBetaDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaDriveItemChildContent.md +++ b/src/Files/beta/examples/Set-MgBetaDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaDriveItemVersionContent.md b/src/Files/beta/examples/Set-MgBetaDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaDriveItemVersionContent.md +++ b/src/Files/beta/examples/Set-MgBetaDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaDriveRootChildContent.md b/src/Files/beta/examples/Set-MgBetaDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaDriveRootChildContent.md +++ b/src/Files/beta/examples/Set-MgBetaDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaDriveRootVersionContent.md b/src/Files/beta/examples/Set-MgBetaDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaDriveRootVersionContent.md +++ b/src/Files/beta/examples/Set-MgBetaDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaGroupDriveBundleContent.md b/src/Files/beta/examples/Set-MgBetaGroupDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaGroupDriveBundleContent.md +++ b/src/Files/beta/examples/Set-MgBetaGroupDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaGroupDriveItemChildContent.md b/src/Files/beta/examples/Set-MgBetaGroupDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaGroupDriveItemChildContent.md +++ b/src/Files/beta/examples/Set-MgBetaGroupDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaGroupDriveItemVersionContent.md b/src/Files/beta/examples/Set-MgBetaGroupDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaGroupDriveItemVersionContent.md +++ b/src/Files/beta/examples/Set-MgBetaGroupDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaGroupDriveRootChildContent.md b/src/Files/beta/examples/Set-MgBetaGroupDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaGroupDriveRootChildContent.md +++ b/src/Files/beta/examples/Set-MgBetaGroupDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaGroupDriveRootVersionContent.md b/src/Files/beta/examples/Set-MgBetaGroupDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaGroupDriveRootVersionContent.md +++ b/src/Files/beta/examples/Set-MgBetaGroupDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaShareDriveItemContent.md b/src/Files/beta/examples/Set-MgBetaShareDriveItemContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaShareDriveItemContent.md +++ b/src/Files/beta/examples/Set-MgBetaShareDriveItemContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaUserDriveBundleContent.md b/src/Files/beta/examples/Set-MgBetaUserDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaUserDriveBundleContent.md +++ b/src/Files/beta/examples/Set-MgBetaUserDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaUserDriveItemChildContent.md b/src/Files/beta/examples/Set-MgBetaUserDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaUserDriveItemChildContent.md +++ b/src/Files/beta/examples/Set-MgBetaUserDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaUserDriveItemVersionContent.md b/src/Files/beta/examples/Set-MgBetaUserDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaUserDriveItemVersionContent.md +++ b/src/Files/beta/examples/Set-MgBetaUserDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaUserDriveRootChildContent.md b/src/Files/beta/examples/Set-MgBetaUserDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaUserDriveRootChildContent.md +++ b/src/Files/beta/examples/Set-MgBetaUserDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Set-MgBetaUserDriveRootVersionContent.md b/src/Files/beta/examples/Set-MgBetaUserDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Set-MgBetaUserDriveRootVersionContent.md +++ b/src/Files/beta/examples/Set-MgBetaUserDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveItemListItemField.md b/src/Files/beta/examples/Update-MgBetaDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveItemListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveItemListItemVersion.md b/src/Files/beta/examples/Update-MgBetaDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveItemListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveItemPermission.md b/src/Files/beta/examples/Update-MgBetaDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveItemPermission.md +++ b/src/Files/beta/examples/Update-MgBetaDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveItemVersion.md b/src/Files/beta/examples/Update-MgBetaDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveListContentTypeColumn.md b/src/Files/beta/examples/Update-MgBetaDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/Update-MgBetaDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveListItem.md b/src/Files/beta/examples/Update-MgBetaDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveListItem.md +++ b/src/Files/beta/examples/Update-MgBetaDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveListItemField.md b/src/Files/beta/examples/Update-MgBetaDriveListItemField.md index 11587547ae7..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaDriveListItemField.md @@ -1,16 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - Color = "Fuchsia" - Quantity = -} + PS C:\> {{ Add code here }} -Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaDriveListItemField Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Update-MgBetaDriveListItemVersion.md b/src/Files/beta/examples/Update-MgBetaDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveRootListItemField.md b/src/Files/beta/examples/Update-MgBetaDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveRootListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveRootListItemVersion.md b/src/Files/beta/examples/Update-MgBetaDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveRootListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveRootPermission.md b/src/Files/beta/examples/Update-MgBetaDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveRootPermission.md +++ b/src/Files/beta/examples/Update-MgBetaDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaDriveRootVersion.md b/src/Files/beta/examples/Update-MgBetaDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaDriveRootVersion.md +++ b/src/Files/beta/examples/Update-MgBetaDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemField.md b/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemVersion.md b/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveItemPermission.md b/src/Files/beta/examples/Update-MgBetaGroupDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveItemPermission.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveItemVersion.md b/src/Files/beta/examples/Update-MgBetaGroupDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveListContentTypeColumn.md b/src/Files/beta/examples/Update-MgBetaGroupDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveListItem.md b/src/Files/beta/examples/Update-MgBetaGroupDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveListItem.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaGroupDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveListItemField.md b/src/Files/beta/examples/Update-MgBetaGroupDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveListItemVersion.md b/src/Files/beta/examples/Update-MgBetaGroupDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemField.md b/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemVersion.md b/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveRootPermission.md b/src/Files/beta/examples/Update-MgBetaGroupDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveRootPermission.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaGroupDriveRootVersion.md b/src/Files/beta/examples/Update-MgBetaGroupDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaGroupDriveRootVersion.md +++ b/src/Files/beta/examples/Update-MgBetaGroupDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaShareListContentTypeColumn.md b/src/Files/beta/examples/Update-MgBetaShareListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaShareListContentTypeColumn.md +++ b/src/Files/beta/examples/Update-MgBetaShareListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaShareListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaShareListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaShareListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaShareListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaShareListItemField.md b/src/Files/beta/examples/Update-MgBetaShareListItemField.md index fc6635b483f..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaShareListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaShareListItemField.md @@ -1,16 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites - -$params = @{ - Color = "Fuchsia" - Quantity = -} + PS C:\> {{ Add code here }} -Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaShareListItemField Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Update-MgBetaShareListItemVersion.md b/src/Files/beta/examples/Update-MgBetaShareListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaShareListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaShareListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaShareSharedDriveItemSharedDriveItem.md b/src/Files/beta/examples/Update-MgBetaShareSharedDriveItemSharedDriveItem.md index 6b8dadfe380..c12cda779b5 100644 --- a/src/Files/beta/examples/Update-MgBetaShareSharedDriveItemSharedDriveItem.md +++ b/src/Files/beta/examples/Update-MgBetaShareSharedDriveItemSharedDriveItem.md @@ -1,33 +1,27 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Files +```powershell Import-Module Microsoft.Graph.Beta.Files -Get-MgBetaShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId -``` -This example shows how to use the Update-MgBetaShareSharedDriveItemSharedDriveItem Cmdlet. +Get-MgBetaShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Update-MgBetaBetaShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Files -### Example 2: Code snippet +Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Update-MgBetaBetaShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Files - -Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -``` -This example shows how to use the Update-MgBetaShareSharedDriveItemSharedDriveItem Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Files - -Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" -``` -This example shows how to use the Update-MgBetaShareSharedDriveItemSharedDriveItem Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Files +Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" +``` +This example shows how to use the Update-MgBetaBetaShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemField.md b/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemVersion.md b/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveItemPermission.md b/src/Files/beta/examples/Update-MgBetaUserDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveItemPermission.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveItemVersion.md b/src/Files/beta/examples/Update-MgBetaUserDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveListContentTypeColumn.md b/src/Files/beta/examples/Update-MgBetaUserDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveListContentTypeColumn.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveListItem.md b/src/Files/beta/examples/Update-MgBetaUserDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveListItem.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaUserDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveListItemField.md b/src/Files/beta/examples/Update-MgBetaUserDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveListItemVersion.md b/src/Files/beta/examples/Update-MgBetaUserDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemDocumentSetVersion.md b/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemDocumentSetVersion.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemField.md b/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemField.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemVersion.md b/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemVersion.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveRootPermission.md b/src/Files/beta/examples/Update-MgBetaUserDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveRootPermission.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/beta/examples/Update-MgBetaUserDriveRootVersion.md b/src/Files/beta/examples/Update-MgBetaUserDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/beta/examples/Update-MgBetaUserDriveRootVersion.md +++ b/src/Files/beta/examples/Update-MgBetaUserDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + 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 093355d11d5..1cacc4eb98f 100644 --- a/src/Files/v1.0/examples/Get-MgDriveBundle.md +++ b/src/Files/v1.0/examples/Get-MgDriveBundle.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Get a bundle -{{ Add output here }} +```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). + +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -{{ Add description here }} +{{ Add description here }} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -{{ Add output here }} +{{ Add output here }} ``` -{{ Add description here }} - +{{ Add description here }} diff --git a/src/Files/v1.0/examples/Get-MgDriveBundleContent.md b/src/Files/v1.0/examples/Get-MgDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveBundleContent.md +++ b/src/Files/v1.0/examples/Get-MgDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveItemChild.md b/src/Files/v1.0/examples/Get-MgDriveItemChild.md index a5cfd4c7166..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemChild.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemChild.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgDriveItemChild Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Files -Get-MgDriveItemChild -DriveId $driveId -DriveItemId $driveItemId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgDriveItemChild Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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-MgDriveItemChildContent.md b/src/Files/v1.0/examples/Get-MgDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemChildContent.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveItemListItemField.md b/src/Files/v1.0/examples/Get-MgDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemListItemField.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + 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 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + 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 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemPermission.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveItemVersion.md b/src/Files/v1.0/examples/Get-MgDriveItemVersion.md index 093355d11d5..02f80e4c8d1 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemVersion.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Get specified version of a file -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} +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 -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +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 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemVersionContent.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveListContentTypeColumn.md b/src/Files/v1.0/examples/Get-MgDriveListContentTypeColumn.md index 94d09b68448..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Get-MgDriveListContentTypeColumn.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the Get-MgDriveListContentTypeColumn Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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-MgDriveListItem.md b/src/Files/v1.0/examples/Get-MgDriveListItem.md index 7bd0efa6564..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveListItem.md +++ b/src/Files/v1.0/examples/Get-MgDriveListItem.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" -``` -This example shows how to use the Get-MgDriveListItem Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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-MgDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveListItemField.md b/src/Files/v1.0/examples/Get-MgDriveListItemField.md index 9f2d9052616..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveListItemField.md +++ b/src/Files/v1.0/examples/Get-MgDriveListItemField.md @@ -1,14 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -$params = @{ - Color = "Fuchsia" - Quantity = -} +{{ Add description here }} -Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Get-MgDriveListItemField Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### 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-MgDriveListItemVersion.md b/src/Files/v1.0/examples/Get-MgDriveListItemVersion.md index ff77ca674d4..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveListItemVersion.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the Get-MgDriveListItemVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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-MgDriveRootChildContent.md b/src/Files/v1.0/examples/Get-MgDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveRootChildContent.md +++ b/src/Files/v1.0/examples/Get-MgDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveRootListItemField.md b/src/Files/v1.0/examples/Get-MgDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveRootListItemField.md +++ b/src/Files/v1.0/examples/Get-MgDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveRootListItemVersion.md b/src/Files/v1.0/examples/Get-MgDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveRootPermission.md b/src/Files/v1.0/examples/Get-MgDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveRootPermission.md +++ b/src/Files/v1.0/examples/Get-MgDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveRootVersion.md b/src/Files/v1.0/examples/Get-MgDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveRootVersion.md +++ b/src/Files/v1.0/examples/Get-MgDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgDriveRootVersionContent.md b/src/Files/v1.0/examples/Get-MgDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgDriveRootVersionContent.md +++ b/src/Files/v1.0/examples/Get-MgDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveBundle.md b/src/Files/v1.0/examples/Get-MgGroupDriveBundle.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveBundle.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveBundle.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveBundleContent.md b/src/Files/v1.0/examples/Get-MgGroupDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveBundleContent.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveItemChildContent.md b/src/Files/v1.0/examples/Get-MgGroupDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveItemChildContent.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemField.md b/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemField.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemVersion.md b/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveItemPermission.md b/src/Files/v1.0/examples/Get-MgGroupDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveItemPermission.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveItemVersion.md b/src/Files/v1.0/examples/Get-MgGroupDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveItemVersionContent.md b/src/Files/v1.0/examples/Get-MgGroupDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveItemVersionContent.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveListContentTypeColumn.md b/src/Files/v1.0/examples/Get-MgGroupDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveListItem.md b/src/Files/v1.0/examples/Get-MgGroupDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveListItem.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgGroupDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveListItemField.md b/src/Files/v1.0/examples/Get-MgGroupDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveListItemField.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveListItemVersion.md b/src/Files/v1.0/examples/Get-MgGroupDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveRootChildContent.md b/src/Files/v1.0/examples/Get-MgGroupDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveRootChildContent.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemField.md b/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemField.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemVersion.md b/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveRootPermission.md b/src/Files/v1.0/examples/Get-MgGroupDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveRootPermission.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveRootVersion.md b/src/Files/v1.0/examples/Get-MgGroupDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveRootVersion.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgGroupDriveRootVersionContent.md b/src/Files/v1.0/examples/Get-MgGroupDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgGroupDriveRootVersionContent.md +++ b/src/Files/v1.0/examples/Get-MgGroupDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgShareDriveItem.md b/src/Files/v1.0/examples/Get-MgShareDriveItem.md index 2ed20e7b12d..9b10ca10900 100644 --- a/src/Files/v1.0/examples/Get-MgShareDriveItem.md +++ b/src/Files/v1.0/examples/Get-MgShareDriveItem.md @@ -1,14 +1,27 @@ -### Example 1: Using the Get-MgShareDriveItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Files -Get-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" -``` -This example shows how to use the Get-MgShareDriveItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgShareDriveItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Files -Get-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId -``` -This example shows how to use the Get-MgShareDriveItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Files + +Get-MgShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Get-MgShareDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Files + +Get-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Get-MgShareDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Files + +Get-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" +``` +This example shows how to use the Get-MgShareDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/v1.0/examples/Get-MgShareDriveItemContent.md b/src/Files/v1.0/examples/Get-MgShareDriveItemContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgShareDriveItemContent.md +++ b/src/Files/v1.0/examples/Get-MgShareDriveItemContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgShareListContentTypeColumn.md b/src/Files/v1.0/examples/Get-MgShareListContentTypeColumn.md index 5e6832ab321..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgShareListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Get-MgShareListContentTypeColumn.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the Get-MgShareListContentTypeColumn Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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-MgShareListItem.md b/src/Files/v1.0/examples/Get-MgShareListItem.md index 7fe2de06985..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgShareListItem.md +++ b/src/Files/v1.0/examples/Get-MgShareListItem.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" -``` -This example shows how to use the Get-MgShareListItem Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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-MgShareListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgShareListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgShareListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgShareListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgShareListItemField.md b/src/Files/v1.0/examples/Get-MgShareListItemField.md index ed47561dc2a..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgShareListItemField.md +++ b/src/Files/v1.0/examples/Get-MgShareListItemField.md @@ -1,14 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -$params = @{ - Color = "Fuchsia" - Quantity = -} +{{ Add description here }} -Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Get-MgShareListItemField Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### 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-MgShareListItemVersion.md b/src/Files/v1.0/examples/Get-MgShareListItemVersion.md index 5a861c2f275..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgShareListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgShareListItemVersion.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the Get-MgShareListItemVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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-MgShareSharedDriveItemSharedDriveItem.md b/src/Files/v1.0/examples/Get-MgShareSharedDriveItemSharedDriveItem.md index bf2eb45757a..a126fc8c3eb 100644 --- a/src/Files/v1.0/examples/Get-MgShareSharedDriveItemSharedDriveItem.md +++ b/src/Files/v1.0/examples/Get-MgShareSharedDriveItemSharedDriveItem.md @@ -1,7 +1,27 @@ -### Example 1: Using the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Files -Get-MgShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId -``` -This example shows how to use the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Files + +Get-MgShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Get-MgShareSharedDriveItemSharedDriveItem 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-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId +``` +This example shows how to use the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Files + +Get-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" +``` +This example shows how to use the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/v1.0/examples/Get-MgUserDefaultDrive.md b/src/Files/v1.0/examples/Get-MgUserDefaultDrive.md index 8a536b750af..99b415aff1c 100644 --- a/src/Files/v1.0/examples/Get-MgUserDefaultDrive.md +++ b/src/Files/v1.0/examples/Get-MgUserDefaultDrive.md @@ -1,15 +1,10 @@ -### Example 1: Using the Get-MgUserDefaultDrive Cmdlet -```powershell -Import-Module Microsoft.Graph.Files -Get-MgUserDefaultDrive -UserId $userId -``` -This example shows how to use the Get-MgUserDefaultDrive Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserDefaultDrive Cmdlet -```powershell -Import-Module Microsoft.Graph.Files +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Files + # A UPN can also be used as -UserId. -Get-MgUserDefaultDrive -UserId $userId -``` -This example shows how to use the Get-MgUserDefaultDrive Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgUserDefaultDrive -UserId $userId +``` +This example shows how to use the Get-MgUserDefaultDrive Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/v1.0/examples/Get-MgUserDriveBundle.md b/src/Files/v1.0/examples/Get-MgUserDriveBundle.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveBundle.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveBundle.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveBundleContent.md b/src/Files/v1.0/examples/Get-MgUserDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveBundleContent.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveItemChildContent.md b/src/Files/v1.0/examples/Get-MgUserDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveItemChildContent.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveItemListItemField.md b/src/Files/v1.0/examples/Get-MgUserDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveItemListItemField.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveItemListItemVersion.md b/src/Files/v1.0/examples/Get-MgUserDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveItemPermission.md b/src/Files/v1.0/examples/Get-MgUserDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveItemPermission.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveItemVersion.md b/src/Files/v1.0/examples/Get-MgUserDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveItemVersionContent.md b/src/Files/v1.0/examples/Get-MgUserDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveItemVersionContent.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveListContentTypeColumn.md b/src/Files/v1.0/examples/Get-MgUserDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveListItem.md b/src/Files/v1.0/examples/Get-MgUserDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveListItem.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgUserDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveListItemField.md b/src/Files/v1.0/examples/Get-MgUserDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveListItemField.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveListItemVersion.md b/src/Files/v1.0/examples/Get-MgUserDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveRootChildContent.md b/src/Files/v1.0/examples/Get-MgUserDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveRootChildContent.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Get-MgUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveRootListItemField.md b/src/Files/v1.0/examples/Get-MgUserDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveRootListItemField.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveRootListItemVersion.md b/src/Files/v1.0/examples/Get-MgUserDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveRootPermission.md b/src/Files/v1.0/examples/Get-MgUserDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveRootPermission.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveRootVersion.md b/src/Files/v1.0/examples/Get-MgUserDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveRootVersion.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Get-MgUserDriveRootVersionContent.md b/src/Files/v1.0/examples/Get-MgUserDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Get-MgUserDriveRootVersionContent.md +++ b/src/Files/v1.0/examples/Get-MgUserDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveItemListItemVersion.md b/src/Files/v1.0/examples/New-MgDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveItemPermission.md b/src/Files/v1.0/examples/New-MgDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveItemPermission.md +++ b/src/Files/v1.0/examples/New-MgDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveItemThumbnail.md b/src/Files/v1.0/examples/New-MgDriveItemThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveItemThumbnail.md +++ b/src/Files/v1.0/examples/New-MgDriveItemThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveItemVersion.md b/src/Files/v1.0/examples/New-MgDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveItemVersion.md +++ b/src/Files/v1.0/examples/New-MgDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveListColumn.md b/src/Files/v1.0/examples/New-MgDriveListColumn.md index 7bed65ca0a6..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveListColumn.md +++ b/src/Files/v1.0/examples/New-MgDriveListColumn.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListColumn -SiteId $siteId -ListId $listId -``` -This example shows how to use the New-MgDriveListColumn Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgDriveListContentType.md b/src/Files/v1.0/examples/New-MgDriveListContentType.md index fd89e76527e..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveListContentType.md +++ b/src/Files/v1.0/examples/New-MgDriveListContentType.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListContentType -SiteId $siteId -ListId $listId -``` -This example shows how to use the New-MgDriveListContentType Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgDriveListContentTypeColumn.md b/src/Files/v1.0/examples/New-MgDriveListContentTypeColumn.md index 3d4c9f65b56..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/New-MgDriveListContentTypeColumn.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the New-MgDriveListContentTypeColumn Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgDriveListItem.md b/src/Files/v1.0/examples/New-MgDriveListItem.md index b40d59ceb71..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveListItem.md +++ b/src/Files/v1.0/examples/New-MgDriveListItem.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" -``` -This example shows how to use the New-MgDriveListItem Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveListItemVersion.md b/src/Files/v1.0/examples/New-MgDriveListItemVersion.md index bfdebaa8281..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgDriveListItemVersion.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the New-MgDriveListItemVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveRootListItemVersion.md b/src/Files/v1.0/examples/New-MgDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveRootPermission.md b/src/Files/v1.0/examples/New-MgDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveRootPermission.md +++ b/src/Files/v1.0/examples/New-MgDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveRootThumbnail.md b/src/Files/v1.0/examples/New-MgDriveRootThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveRootThumbnail.md +++ b/src/Files/v1.0/examples/New-MgDriveRootThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgDriveRootVersion.md b/src/Files/v1.0/examples/New-MgDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgDriveRootVersion.md +++ b/src/Files/v1.0/examples/New-MgDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgGroupDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveItemListItemVersion.md b/src/Files/v1.0/examples/New-MgGroupDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveItemPermission.md b/src/Files/v1.0/examples/New-MgGroupDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveItemPermission.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveItemThumbnail.md b/src/Files/v1.0/examples/New-MgGroupDriveItemThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveItemThumbnail.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveItemThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveItemVersion.md b/src/Files/v1.0/examples/New-MgGroupDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveItemVersion.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveListContentType.md b/src/Files/v1.0/examples/New-MgGroupDriveListContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveListContentType.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveListContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveListItem.md b/src/Files/v1.0/examples/New-MgGroupDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveListItem.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgGroupDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveListItemVersion.md b/src/Files/v1.0/examples/New-MgGroupDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgGroupDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveRootListItemVersion.md b/src/Files/v1.0/examples/New-MgGroupDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveRootPermission.md b/src/Files/v1.0/examples/New-MgGroupDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveRootPermission.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveRootThumbnail.md b/src/Files/v1.0/examples/New-MgGroupDriveRootThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveRootThumbnail.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveRootThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgGroupDriveRootVersion.md b/src/Files/v1.0/examples/New-MgGroupDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgGroupDriveRootVersion.md +++ b/src/Files/v1.0/examples/New-MgGroupDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgShareListColumn.md b/src/Files/v1.0/examples/New-MgShareListColumn.md index b864af228e3..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgShareListColumn.md +++ b/src/Files/v1.0/examples/New-MgShareListColumn.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListColumn -SiteId $siteId -ListId $listId -``` -This example shows how to use the New-MgShareListColumn Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgShareListContentType.md b/src/Files/v1.0/examples/New-MgShareListContentType.md index 1f23902f572..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgShareListContentType.md +++ b/src/Files/v1.0/examples/New-MgShareListContentType.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListContentType -SiteId $siteId -ListId $listId -``` -This example shows how to use the New-MgShareListContentType Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgShareListContentTypeColumn.md b/src/Files/v1.0/examples/New-MgShareListContentTypeColumn.md index 49f84078562..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgShareListContentTypeColumn.md +++ b/src/Files/v1.0/examples/New-MgShareListContentTypeColumn.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the New-MgShareListContentTypeColumn Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgShareListItem.md b/src/Files/v1.0/examples/New-MgShareListItem.md index e76255d2399..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgShareListItem.md +++ b/src/Files/v1.0/examples/New-MgShareListItem.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" -``` -This example shows how to use the New-MgShareListItem Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgShareListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgShareListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgShareListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgShareListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgShareListItemVersion.md b/src/Files/v1.0/examples/New-MgShareListItemVersion.md index dcb4048518d..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgShareListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgShareListItemVersion.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the New-MgShareListItemVersion Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgUserDrive.md b/src/Files/v1.0/examples/New-MgUserDrive.md index a072f03d72f..d1f71ae2f4a 100644 --- a/src/Files/v1.0/examples/New-MgUserDrive.md +++ b/src/Files/v1.0/examples/New-MgUserDrive.md @@ -2,33 +2,6 @@ ```powershell Import-Module Microsoft.Graph.Files -Get-MgGroupDrive -GroupId $groupId -``` -This example shows how to use the New-MgUserDrive Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Code snippet - -```powershell Import-Module Microsoft.Graph.Sites - -Get-MgSiteDrive -SiteId $siteId -``` -This example shows how to use the New-MgUserDrive Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell Import-Module Microsoft.Graph.Files - -Get-MgUserDrive -UserId $userId -``` -This example shows how to use the New-MgUserDrive Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Code snippet - -```powershell Import-Module Microsoft.Graph.Files - # A UPN can also be used as -UserId. Get-MgUserDrive -UserId $userId ``` diff --git a/src/Files/v1.0/examples/New-MgUserDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgUserDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveItemListItemVersion.md b/src/Files/v1.0/examples/New-MgUserDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgUserDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveItemPermission.md b/src/Files/v1.0/examples/New-MgUserDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveItemPermission.md +++ b/src/Files/v1.0/examples/New-MgUserDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveItemThumbnail.md b/src/Files/v1.0/examples/New-MgUserDriveItemThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveItemThumbnail.md +++ b/src/Files/v1.0/examples/New-MgUserDriveItemThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveItemVersion.md b/src/Files/v1.0/examples/New-MgUserDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveItemVersion.md +++ b/src/Files/v1.0/examples/New-MgUserDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveListContentType.md b/src/Files/v1.0/examples/New-MgUserDriveListContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveListContentType.md +++ b/src/Files/v1.0/examples/New-MgUserDriveListContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveListItem.md b/src/Files/v1.0/examples/New-MgUserDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveListItem.md +++ b/src/Files/v1.0/examples/New-MgUserDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgUserDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgUserDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveListItemVersion.md b/src/Files/v1.0/examples/New-MgUserDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgUserDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/New-MgUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/New-MgUserDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveRootListItemVersion.md b/src/Files/v1.0/examples/New-MgUserDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/New-MgUserDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveRootPermission.md b/src/Files/v1.0/examples/New-MgUserDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveRootPermission.md +++ b/src/Files/v1.0/examples/New-MgUserDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveRootThumbnail.md b/src/Files/v1.0/examples/New-MgUserDriveRootThumbnail.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveRootThumbnail.md +++ b/src/Files/v1.0/examples/New-MgUserDriveRootThumbnail.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/New-MgUserDriveRootVersion.md b/src/Files/v1.0/examples/New-MgUserDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/New-MgUserDriveRootVersion.md +++ b/src/Files/v1.0/examples/New-MgUserDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveItemListItemField.md b/src/Files/v1.0/examples/Remove-MgDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveItemListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveItemListItemVersion.md b/src/Files/v1.0/examples/Remove-MgDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveItemPermission.md b/src/Files/v1.0/examples/Remove-MgDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveItemPermission.md +++ b/src/Files/v1.0/examples/Remove-MgDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveItemVersion.md b/src/Files/v1.0/examples/Remove-MgDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveListContentTypeColumn.md b/src/Files/v1.0/examples/Remove-MgDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Remove-MgDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveListItem.md b/src/Files/v1.0/examples/Remove-MgDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveListItem.md +++ b/src/Files/v1.0/examples/Remove-MgDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveListItemField.md b/src/Files/v1.0/examples/Remove-MgDriveListItemField.md index 433ed3e9847..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgDriveListItemField.md @@ -1,14 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -$params = @{ - Color = "Fuchsia" - Quantity = -} +{{ Add description here }} -Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Remove-MgDriveListItemField Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### 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/Remove-MgDriveListItemVersion.md b/src/Files/v1.0/examples/Remove-MgDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveRootListItemField.md b/src/Files/v1.0/examples/Remove-MgDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveRootListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveRootListItemVersion.md b/src/Files/v1.0/examples/Remove-MgDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveRootPermission.md b/src/Files/v1.0/examples/Remove-MgDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveRootPermission.md +++ b/src/Files/v1.0/examples/Remove-MgDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgDriveRootVersion.md b/src/Files/v1.0/examples/Remove-MgDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgDriveRootVersion.md +++ b/src/Files/v1.0/examples/Remove-MgDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemField.md b/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemVersion.md b/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveItemPermission.md b/src/Files/v1.0/examples/Remove-MgGroupDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveItemPermission.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveItemVersion.md b/src/Files/v1.0/examples/Remove-MgGroupDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveListContentTypeColumn.md b/src/Files/v1.0/examples/Remove-MgGroupDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveListItem.md b/src/Files/v1.0/examples/Remove-MgGroupDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveListItem.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgGroupDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveListItemField.md b/src/Files/v1.0/examples/Remove-MgGroupDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveListItemVersion.md b/src/Files/v1.0/examples/Remove-MgGroupDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemField.md b/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemVersion.md b/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveRootPermission.md b/src/Files/v1.0/examples/Remove-MgGroupDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveRootPermission.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgGroupDriveRootVersion.md b/src/Files/v1.0/examples/Remove-MgGroupDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgGroupDriveRootVersion.md +++ b/src/Files/v1.0/examples/Remove-MgGroupDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgShareListContentTypeColumn.md b/src/Files/v1.0/examples/Remove-MgShareListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgShareListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Remove-MgShareListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgShareListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgShareListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgShareListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgShareListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgShareListItemField.md b/src/Files/v1.0/examples/Remove-MgShareListItemField.md index f165d3e9e34..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgShareListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgShareListItemField.md @@ -1,14 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -$params = @{ - Color = "Fuchsia" - Quantity = -} +{{ Add description here }} -Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Remove-MgShareListItemField Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### 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/Remove-MgShareListItemVersion.md b/src/Files/v1.0/examples/Remove-MgShareListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgShareListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgShareListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemField.md b/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemVersion.md b/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveItemPermission.md b/src/Files/v1.0/examples/Remove-MgUserDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveItemPermission.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveItemVersion.md b/src/Files/v1.0/examples/Remove-MgUserDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveListContentTypeColumn.md b/src/Files/v1.0/examples/Remove-MgUserDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveListItem.md b/src/Files/v1.0/examples/Remove-MgUserDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveListItem.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgUserDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveListItemField.md b/src/Files/v1.0/examples/Remove-MgUserDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveListItemVersion.md b/src/Files/v1.0/examples/Remove-MgUserDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemField.md b/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemField.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemVersion.md b/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveRootPermission.md b/src/Files/v1.0/examples/Remove-MgUserDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveRootPermission.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Remove-MgUserDriveRootVersion.md b/src/Files/v1.0/examples/Remove-MgUserDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Remove-MgUserDriveRootVersion.md +++ b/src/Files/v1.0/examples/Remove-MgUserDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgDriveBundleContent.md b/src/Files/v1.0/examples/Set-MgDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgDriveBundleContent.md +++ b/src/Files/v1.0/examples/Set-MgDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgDriveItemChildContent.md b/src/Files/v1.0/examples/Set-MgDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgDriveItemChildContent.md +++ b/src/Files/v1.0/examples/Set-MgDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgDriveItemVersionContent.md b/src/Files/v1.0/examples/Set-MgDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgDriveItemVersionContent.md +++ b/src/Files/v1.0/examples/Set-MgDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgDriveRootChildContent.md b/src/Files/v1.0/examples/Set-MgDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgDriveRootChildContent.md +++ b/src/Files/v1.0/examples/Set-MgDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgDriveRootVersionContent.md b/src/Files/v1.0/examples/Set-MgDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgDriveRootVersionContent.md +++ b/src/Files/v1.0/examples/Set-MgDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgGroupDriveBundleContent.md b/src/Files/v1.0/examples/Set-MgGroupDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgGroupDriveBundleContent.md +++ b/src/Files/v1.0/examples/Set-MgGroupDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgGroupDriveItemChildContent.md b/src/Files/v1.0/examples/Set-MgGroupDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgGroupDriveItemChildContent.md +++ b/src/Files/v1.0/examples/Set-MgGroupDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgGroupDriveItemVersionContent.md b/src/Files/v1.0/examples/Set-MgGroupDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgGroupDriveItemVersionContent.md +++ b/src/Files/v1.0/examples/Set-MgGroupDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgGroupDriveRootChildContent.md b/src/Files/v1.0/examples/Set-MgGroupDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgGroupDriveRootChildContent.md +++ b/src/Files/v1.0/examples/Set-MgGroupDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgGroupDriveRootVersionContent.md b/src/Files/v1.0/examples/Set-MgGroupDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgGroupDriveRootVersionContent.md +++ b/src/Files/v1.0/examples/Set-MgGroupDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgShareDriveItemContent.md b/src/Files/v1.0/examples/Set-MgShareDriveItemContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgShareDriveItemContent.md +++ b/src/Files/v1.0/examples/Set-MgShareDriveItemContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgUserDriveBundleContent.md b/src/Files/v1.0/examples/Set-MgUserDriveBundleContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgUserDriveBundleContent.md +++ b/src/Files/v1.0/examples/Set-MgUserDriveBundleContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgUserDriveItemChildContent.md b/src/Files/v1.0/examples/Set-MgUserDriveItemChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgUserDriveItemChildContent.md +++ b/src/Files/v1.0/examples/Set-MgUserDriveItemChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgUserDriveItemVersionContent.md b/src/Files/v1.0/examples/Set-MgUserDriveItemVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgUserDriveItemVersionContent.md +++ b/src/Files/v1.0/examples/Set-MgUserDriveItemVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgUserDriveRootChildContent.md b/src/Files/v1.0/examples/Set-MgUserDriveRootChildContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgUserDriveRootChildContent.md +++ b/src/Files/v1.0/examples/Set-MgUserDriveRootChildContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Set-MgUserDriveRootVersionContent.md b/src/Files/v1.0/examples/Set-MgUserDriveRootVersionContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Set-MgUserDriveRootVersionContent.md +++ b/src/Files/v1.0/examples/Set-MgUserDriveRootVersionContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveItemListItemField.md b/src/Files/v1.0/examples/Update-MgDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveItemListItemField.md +++ b/src/Files/v1.0/examples/Update-MgDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveItemListItemVersion.md b/src/Files/v1.0/examples/Update-MgDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveItemPermission.md b/src/Files/v1.0/examples/Update-MgDriveItemPermission.md index 093355d11d5..8a88b384ccf 100644 --- a/src/Files/v1.0/examples/Update-MgDriveItemPermission.md +++ b/src/Files/v1.0/examples/Update-MgDriveItemPermission.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + roles = @( + "read" + ) +} +Update-MgDriveItemPermission -DriveId $driveId -DriveItemId $driveItemId -PermissionId $permissionId -BodyParameter $params +``` +This example shows how to use the Update-MgDriveItemPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Files/v1.0/examples/Update-MgDriveItemVersion.md b/src/Files/v1.0/examples/Update-MgDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveListContentTypeColumn.md b/src/Files/v1.0/examples/Update-MgDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Update-MgDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveListItem.md b/src/Files/v1.0/examples/Update-MgDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveListItem.md +++ b/src/Files/v1.0/examples/Update-MgDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveListItemField.md b/src/Files/v1.0/examples/Update-MgDriveListItemField.md index fa23f92af6d..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveListItemField.md +++ b/src/Files/v1.0/examples/Update-MgDriveListItemField.md @@ -1,14 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -$params = @{ - Color = "Fuchsia" - Quantity = -} +{{ Add description here }} -Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Update-MgDriveListItemField Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### 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/Update-MgDriveListItemVersion.md b/src/Files/v1.0/examples/Update-MgDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveRootListItemField.md b/src/Files/v1.0/examples/Update-MgDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveRootListItemField.md +++ b/src/Files/v1.0/examples/Update-MgDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveRootListItemVersion.md b/src/Files/v1.0/examples/Update-MgDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveRootPermission.md b/src/Files/v1.0/examples/Update-MgDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveRootPermission.md +++ b/src/Files/v1.0/examples/Update-MgDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgDriveRootVersion.md b/src/Files/v1.0/examples/Update-MgDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgDriveRootVersion.md +++ b/src/Files/v1.0/examples/Update-MgDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemField.md b/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemField.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemVersion.md b/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveItemPermission.md b/src/Files/v1.0/examples/Update-MgGroupDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveItemPermission.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveItemVersion.md b/src/Files/v1.0/examples/Update-MgGroupDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveListContentTypeColumn.md b/src/Files/v1.0/examples/Update-MgGroupDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveListItem.md b/src/Files/v1.0/examples/Update-MgGroupDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveListItem.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgGroupDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveListItemField.md b/src/Files/v1.0/examples/Update-MgGroupDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveListItemField.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveListItemVersion.md b/src/Files/v1.0/examples/Update-MgGroupDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemField.md b/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemField.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemVersion.md b/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveRootPermission.md b/src/Files/v1.0/examples/Update-MgGroupDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveRootPermission.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgGroupDriveRootVersion.md b/src/Files/v1.0/examples/Update-MgGroupDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgGroupDriveRootVersion.md +++ b/src/Files/v1.0/examples/Update-MgGroupDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgShareListContentTypeColumn.md b/src/Files/v1.0/examples/Update-MgShareListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgShareListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Update-MgShareListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgShareListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgShareListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgShareListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgShareListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgShareListItemField.md b/src/Files/v1.0/examples/Update-MgShareListItemField.md index 83c4655fbf2..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgShareListItemField.md +++ b/src/Files/v1.0/examples/Update-MgShareListItemField.md @@ -1,14 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -$params = @{ - Color = "Fuchsia" - Quantity = -} +{{ Add description here }} -Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Update-MgShareListItemField Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### 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/Update-MgShareListItemVersion.md b/src/Files/v1.0/examples/Update-MgShareListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgShareListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgShareListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveItemListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveItemListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveItemListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveItemListItemField.md b/src/Files/v1.0/examples/Update-MgUserDriveItemListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveItemListItemField.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveItemListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveItemListItemVersion.md b/src/Files/v1.0/examples/Update-MgUserDriveItemListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveItemListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveItemListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveItemPermission.md b/src/Files/v1.0/examples/Update-MgUserDriveItemPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveItemPermission.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveItemPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveItemVersion.md b/src/Files/v1.0/examples/Update-MgUserDriveItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveListContentTypeColumn.md b/src/Files/v1.0/examples/Update-MgUserDriveListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveListContentTypeColumn.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveListItem.md b/src/Files/v1.0/examples/Update-MgUserDriveListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveListItem.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgUserDriveListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveListItemField.md b/src/Files/v1.0/examples/Update-MgUserDriveListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveListItemField.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveListItemVersion.md b/src/Files/v1.0/examples/Update-MgUserDriveListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveRootListItemDocumentSetVersion.md b/src/Files/v1.0/examples/Update-MgUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveRootListItemDocumentSetVersion.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveRootListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveRootListItemField.md b/src/Files/v1.0/examples/Update-MgUserDriveRootListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveRootListItemField.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveRootListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveRootListItemVersion.md b/src/Files/v1.0/examples/Update-MgUserDriveRootListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveRootListItemVersion.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveRootListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveRootPermission.md b/src/Files/v1.0/examples/Update-MgUserDriveRootPermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveRootPermission.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveRootPermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Files/v1.0/examples/Update-MgUserDriveRootVersion.md b/src/Files/v1.0/examples/Update-MgUserDriveRootVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Files/v1.0/examples/Update-MgUserDriveRootVersion.md +++ b/src/Files/v1.0/examples/Update-MgUserDriveRootVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupConversation.md b/src/Groups/beta/examples/Get-MgBetaGroupConversation.md index 0ca484d263d..d76ed750317 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupConversation.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupConversation.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgBetaGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -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). -### Example 2: Using the Get-MgBetaGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Get-MgBetaGroupConversation -GroupId $groupId -``` -This example shows how to use the Get-MgBetaGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +Remove-MgBetaGroupConversation -GroupId $groupId -ConversationId $conversationId +``` +This example shows how to use the Get-MgBetaBetaGroupConversation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostExtension.md b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostExtension.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostInReplyToExtension.md b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostInReplyToExtension.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupConversationThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Get-MgBetaGroupLifecyclePolicy.md b/src/Groups/beta/examples/Get-MgBetaGroupLifecyclePolicy.md index 0ddc20ae6ba..0812855ad17 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupLifecyclePolicy.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupLifecyclePolicy.md @@ -1,14 +1,15 @@ -### Example 1: Using the Get-MgBetaGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Get-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -``` -This example shows how to use the Get-MgBetaGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Get-MgBetaGroupLifecyclePolicy -``` -This example shows how to use the Get-MgBetaGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +$params = @{ + groupLifetimeInDays = 180 + managedGroupTypes = "Selected" + alternateNotificationEmails = "admin@contoso.com" +} + +Update-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupLifecyclePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Get-MgBetaGroupPhoto.md b/src/Groups/beta/examples/Get-MgBetaGroupPhoto.md index ac95c864f4c..ced4bff8bdb 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupPhoto.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupPhoto.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaGroupPhoto Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Get-MgBetaGroupPhoto -GroupId $groupId -``` -This example shows how to use the Get-MgBetaGroupPhoto Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +Get-MgBetaGroupPhoto -GroupId $groupId +``` +This example shows how to use the Get-MgBetaBetaGroupPhoto Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Get-MgBetaGroupThread.md b/src/Groups/beta/examples/Get-MgBetaGroupThread.md index 87672146b68..2edb435c080 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupThread.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupThread.md @@ -1,21 +1,17 @@ -### Example 1: Using the Get-MgBetaGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Get-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -``` -This example shows how to use the Get-MgBetaGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Get-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -``` -This example shows how to use the Get-MgBetaGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Get-MgBetaGroupThread -GroupId $groupId -``` -This example shows how to use the Get-MgBetaGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +$params = @{ + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + iCalUId = "iCalUId-value" + reminderMinutesBeforeStart = + isReminderOn = $true +} + +Update-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Get-MgBetaGroupThreadPostExtension.md b/src/Groups/beta/examples/Get-MgBetaGroupThreadPostExtension.md index 525547deef0..bfb7d8d228c 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupThreadPostExtension.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupThreadPostExtension.md @@ -1,7 +1,22 @@ -### Example 1: Using the Get-MgBetaGroupThreadPostExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Get-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -``` -This example shows how to use the Get-MgBetaGroupThreadPostExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +$params = @{ + "@odata.type" = "Microsoft.OutlookServices.OpenTypeExtension" + extensionName = "Com.Contoso.Estimate" + companyName = "Contoso" + expirationDate = "2016-07-30T11:00:00.000Z" + DealValue = + topPicks = @( + "Employees only" + "Add spouse or guest" + "Add family" + ) +} + +Update-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Get-MgBetaGroupThreadPostInReplyToExtension.md b/src/Groups/beta/examples/Get-MgBetaGroupThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupThreadPostInReplyToExtension.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/New-MgBetaGroupAcceptedSenderByRef.md b/src/Groups/beta/examples/New-MgBetaGroupAcceptedSenderByRef.md index 3cb79648dcc..045ca36465d 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupAcceptedSenderByRef.md +++ b/src/Groups/beta/examples/New-MgBetaGroupAcceptedSenderByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaGroupAcceptedSenderByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/users/alexd@contoso.com" + "@odata.id" = "https://graph.microsoft.com/v1.0/users/alexd@contoso.com" } -New-MgBetaGroupAcceptedSenderByRef -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaGroupAcceptedSenderByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaGroupAcceptedSenderByRef -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupAcceptedSenderByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/New-MgBetaGroupConversation.md b/src/Groups/beta/examples/New-MgBetaGroupConversation.md index 47954e7ff82..f6c6949389e 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupConversation.md +++ b/src/Groups/beta/examples/New-MgBetaGroupConversation.md @@ -1,65 +1,17 @@ -### Example 1: Using the New-MgBetaGroupConversation Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - Topic = "New head count" - Threads = @( - @{ - Posts = @( - @{ - Body = @{ - ContentType = "html" - Content = "The confirmation will come by the end of the week." - } - NewParticipants = @( - @{ - EmailAddress = @{ - Name = "Adele Vance" - Address = "AdeleV@contoso.onmicrosoft.com" - } - } - ) - } - ) - } - ) -} -New-MgBetaGroupConversation -GroupId $groupId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaGroupConversation Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Groups -$params = @{ - Topic = "Does anyone have a second?" - Threads = @( - @{ - Posts = @( - @{ - Body = @{ - ContentType = "HTML" - Content = "This is urgent!" - } - Extensions = @( - @{ - "@odata.type" = "microsoft.graph.openTypeExtension" - ExtensionName = "Com.Contoso.Benefits" - CompanyName = "Contoso" - ExpirationDate = "2016-08-03T11:00:00.000Z" - TopPicks = @( - "Employees only" - "Add spouse or guest" - "Add family" - ) - } - ) - } - ) - } - ) -} -New-MgBetaGroupConversation -GroupId $groupId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Groups/beta/examples/New-MgBetaGroupConversationThread.md b/src/Groups/beta/examples/New-MgBetaGroupConversationThread.md index f9adc5f71d5..29195e0d024 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupConversationThread.md +++ b/src/Groups/beta/examples/New-MgBetaGroupConversationThread.md @@ -1,18 +1,21 @@ -### Example 1: Using the New-MgBetaGroupConversationThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - Topic = "Take your wellness days and rest" - Posts = @( + topic = "Take your wellness days and rest" + posts = @( @{ - Body = @{ - ContentType = "html" - Content = "Waiting for the summer holidays." + body = @{ + contentType = "html" + content = "Waiting for the summer holidays." } } ) } -New-MgBetaGroupConversationThread -GroupId $groupId -ConversationId $conversationId -BodyParameter $params -``` -This example shows how to use the New-MgBetaGroupConversationThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaGroupConversationThread -GroupId $groupId -ConversationId $conversationId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupConversationThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostAttachment.md b/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostAttachment.md index b4a2b711a9a..cb4a29b25a3 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostAttachment.md +++ b/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostAttachment.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### 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 New-MgBetaGroupConversationThreadPostAttachment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Groups +Get-MgBetaGroupThreadPostAttachment -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId +``` +This example shows how to use the New-MgBetaBetaGroupConversationThreadPostAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostInReplyToAttachment.md b/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostInReplyToAttachment.md index 2ae0fc486ea..8cdec1a6378 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostInReplyToAttachment.md +++ b/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostInReplyToAttachment.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### 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 New-MgBetaGroupConversationThreadPostInReplyToAttachment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Groups +Get-MgBetaGroupThreadPostAttachment -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId +``` +This example shows how to use the New-MgBetaBetaGroupConversationThreadPostInReplyToAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/New-MgBetaGroupLifecyclePolicy.md b/src/Groups/beta/examples/New-MgBetaGroupLifecyclePolicy.md index 920dc23e217..388d316ea41 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupLifecyclePolicy.md +++ b/src/Groups/beta/examples/New-MgBetaGroupLifecyclePolicy.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - GroupLifetimeInDays = 100 - ManagedGroupTypes = "Selected" - AlternateNotificationEmails = "admin@contoso.com" + groupLifetimeInDays = 100 + managedGroupTypes = "Selected" + alternateNotificationEmails = "admin@contoso.com" } -New-MgBetaGroupLifecyclePolicy -BodyParameter $params -``` -This example shows how to use the New-MgBetaGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaGroupLifecyclePolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupLifecyclePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/New-MgBetaGroupMemberByRef.md b/src/Groups/beta/examples/New-MgBetaGroupMemberByRef.md index 1f17f0a749a..9c7139ce060 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupMemberByRef.md +++ b/src/Groups/beta/examples/New-MgBetaGroupMemberByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaGroupMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/directoryObjects/{id}" + "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" } -New-MgBetaGroupMemberByRef -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaGroupMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaGroupMemberByRef -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/New-MgBetaGroupPermissionGrant.md b/src/Groups/beta/examples/New-MgBetaGroupPermissionGrant.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupPermissionGrant.md +++ b/src/Groups/beta/examples/New-MgBetaGroupPermissionGrant.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/New-MgBetaGroupRejectedSenderByRef.md b/src/Groups/beta/examples/New-MgBetaGroupRejectedSenderByRef.md index 7ff46ecc726..6d0dfbadcca 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupRejectedSenderByRef.md +++ b/src/Groups/beta/examples/New-MgBetaGroupRejectedSenderByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaGroupRejectedSenderByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/users/alexd@contoso.com" + "@odata.id" = "https://graph.microsoft.com/v1.0/users/alexd@contoso.com" } -New-MgBetaGroupRejectedSenderByRef -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaGroupRejectedSenderByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaGroupRejectedSenderByRef -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupRejectedSenderByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/New-MgBetaGroupSetting.md b/src/Groups/beta/examples/New-MgBetaGroupSetting.md index 754caa65989..9314c1c7d10 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupSetting.md +++ b/src/Groups/beta/examples/New-MgBetaGroupSetting.md @@ -1,16 +1,19 @@ -### Example 1: Using the New-MgBetaGroupSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - TemplateId = "08d542b9-071f-4e16-94b0-74abb372e3d9" - Values = @( + templateId = "08d542b9-071f-4e16-94b0-74abb372e3d9" + values = @( @{ - Name = "AllowToAddGuests" - Value = "false" + name = "AllowToAddGuests" + value = "false" } ) } -New-MgBetaGroupSetting -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaGroupSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaGroupSetting -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/New-MgBetaGroupThread.md b/src/Groups/beta/examples/New-MgBetaGroupThread.md index 304e71577b1..62f92e673dd 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupThread.md +++ b/src/Groups/beta/examples/New-MgBetaGroupThread.md @@ -1,26 +1,29 @@ -### Example 1: Using the New-MgBetaGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - Topic = "New Conversation Thread Topic" - Posts = @( + topic = "New Conversation Thread Topic" + posts = @( @{ - Body = @{ - ContentType = "html" - Content = "this is body content" + body = @{ + contentType = "html" + content = "this is body content" } - NewParticipants = @( + newParticipants = @( @{ - EmailAddress = @{ - Name = "Alex Darrow" - Address = "alexd@contoso.com" + emailAddress = @{ + name = "Alex Darrow" + address = "alexd@contoso.com" } } ) } ) } -New-MgBetaGroupThread -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaGroupThread -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/New-MgBetaGroupThreadPostAttachment.md b/src/Groups/beta/examples/New-MgBetaGroupThreadPostAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupThreadPostAttachment.md +++ b/src/Groups/beta/examples/New-MgBetaGroupThreadPostAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/New-MgBetaGroupThreadPostInReplyToAttachment.md b/src/Groups/beta/examples/New-MgBetaGroupThreadPostInReplyToAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupThreadPostInReplyToAttachment.md +++ b/src/Groups/beta/examples/New-MgBetaGroupThreadPostInReplyToAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupConversation.md b/src/Groups/beta/examples/Remove-MgBetaGroupConversation.md index 47b785e4cb5..1b31263dd24 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupConversation.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupConversation.md @@ -1,14 +1,9 @@ -### Example 1: Using the Remove-MgBetaGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Remove-MgBetaGroupConversation -GroupId $groupId -ConversationId $conversationId -``` -This example shows how to use the Remove-MgBetaGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgBetaGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Remove-MgBetaGroupConversation -GroupId $groupId -ConversationId $conversationId -``` -This example shows how to use the Remove-MgBetaGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +Remove-MgBetaGroupConversation -GroupId $groupId -ConversationId $conversationId +``` +This example shows how to use the Remove-MgBetaBetaGroupConversation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupConversationThreadPostExtension.md b/src/Groups/beta/examples/Remove-MgBetaGroupConversationThreadPostExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupConversationThreadPostExtension.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupConversationThreadPostExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupConversationThreadPostInReplyToExtension.md b/src/Groups/beta/examples/Remove-MgBetaGroupConversationThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupConversationThreadPostInReplyToExtension.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupConversationThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupLifecyclePolicy.md b/src/Groups/beta/examples/Remove-MgBetaGroupLifecyclePolicy.md index c8ba2d255f0..5529467d78e 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupLifecyclePolicy.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupLifecyclePolicy.md @@ -1,7 +1,15 @@ -### Example 1: Using the Remove-MgBetaGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Remove-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -``` -This example shows how to use the Remove-MgBetaGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +$params = @{ + groupLifetimeInDays = 180 + managedGroupTypes = "Selected" + alternateNotificationEmails = "admin@contoso.com" +} + +Update-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaGroupLifecyclePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupMemberByRef.md b/src/Groups/beta/examples/Remove-MgBetaGroupMemberByRef.md index f82ba488b21..88b00c6091e 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupMemberByRef.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupMemberByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaGroupMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Remove-MgBetaGroupMemberByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaGroupMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +Remove-MgBetaGroupMemberByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaGroupMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupOwnerByRef.md b/src/Groups/beta/examples/Remove-MgBetaGroupOwnerByRef.md index 7c68384feee..9d8edc9b7c5 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupOwnerByRef.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupOwnerByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaGroupOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Remove-MgBetaGroupOwnerByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaGroupOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +Remove-MgBetaGroupOwnerByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaGroupOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupThread.md b/src/Groups/beta/examples/Remove-MgBetaGroupThread.md index f75759548c7..164e8fe3e95 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupThread.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupThread.md @@ -1,14 +1,17 @@ -### Example 1: Using the Remove-MgBetaGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Remove-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -``` -This example shows how to use the Remove-MgBetaGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgBetaGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups -Remove-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -``` -This example shows how to use the Remove-MgBetaGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +$params = @{ + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + iCalUId = "iCalUId-value" + reminderMinutesBeforeStart = + isReminderOn = $true +} + +Update-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaGroupThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupThreadPostExtension.md b/src/Groups/beta/examples/Remove-MgBetaGroupThreadPostExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupThreadPostExtension.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupThreadPostExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Remove-MgBetaGroupThreadPostInReplyToExtension.md b/src/Groups/beta/examples/Remove-MgBetaGroupThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Remove-MgBetaGroupThreadPostInReplyToExtension.md +++ b/src/Groups/beta/examples/Remove-MgBetaGroupThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Update-MgBetaGroupConversationThreadPostExtension.md b/src/Groups/beta/examples/Update-MgBetaGroupConversationThreadPostExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Update-MgBetaGroupConversationThreadPostExtension.md +++ b/src/Groups/beta/examples/Update-MgBetaGroupConversationThreadPostExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Update-MgBetaGroupConversationThreadPostInReplyToExtension.md b/src/Groups/beta/examples/Update-MgBetaGroupConversationThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Update-MgBetaGroupConversationThreadPostInReplyToExtension.md +++ b/src/Groups/beta/examples/Update-MgBetaGroupConversationThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/beta/examples/Update-MgBetaGroupLifecyclePolicy.md b/src/Groups/beta/examples/Update-MgBetaGroupLifecyclePolicy.md index fdacc3ae837..783793ef092 100644 --- a/src/Groups/beta/examples/Update-MgBetaGroupLifecyclePolicy.md +++ b/src/Groups/beta/examples/Update-MgBetaGroupLifecyclePolicy.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgBetaGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - GroupLifetimeInDays = 180 - ManagedGroupTypes = "Selected" - AlternateNotificationEmails = "admin@contoso.com" + groupLifetimeInDays = 180 + managedGroupTypes = "Selected" + alternateNotificationEmails = "admin@contoso.com" } -Update-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaGroupLifecyclePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Update-MgBetaGroupThread.md b/src/Groups/beta/examples/Update-MgBetaGroupThread.md index 149e44b191a..e82c104f1a4 100644 --- a/src/Groups/beta/examples/Update-MgBetaGroupThread.md +++ b/src/Groups/beta/examples/Update-MgBetaGroupThread.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - OriginalStartTimeZone = "originalStartTimeZone-value" - OriginalEndTimeZone = "originalEndTimeZone-value" - Uid = "iCalUId-value" - ReminderMinutesBeforeStart = - IsReminderOn = $true + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + iCalUId = "iCalUId-value" + reminderMinutesBeforeStart = + isReminderOn = $true } -Update-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaGroupThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Update-MgBetaGroupThreadPostExtension.md b/src/Groups/beta/examples/Update-MgBetaGroupThreadPostExtension.md index fa5e35e26da..2fb0a353d51 100644 --- a/src/Groups/beta/examples/Update-MgBetaGroupThreadPostExtension.md +++ b/src/Groups/beta/examples/Update-MgBetaGroupThreadPostExtension.md @@ -1,19 +1,22 @@ -### Example 1: Using the Update-MgBetaGroupThreadPostExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + $params = @{ - "@odata.type" = "#microsoft.outlookServices.openTypeExtension" - ExtensionName = "Com.Contoso.Estimate" - CompanyName = "Contoso" - ExpirationDate = "2016-07-30T11:00:00.000Z" + "@odata.type" = "Microsoft.OutlookServices.OpenTypeExtension" + extensionName = "Com.Contoso.Estimate" + companyName = "Contoso" + expirationDate = "2016-07-30T11:00:00.000Z" DealValue = - TopPicks = @( + topPicks = @( "Employees only" "Add spouse or guest" "Add family" ) } -Update-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaGroupThreadPostExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/beta/examples/Update-MgBetaGroupThreadPostInReplyToExtension.md b/src/Groups/beta/examples/Update-MgBetaGroupThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/beta/examples/Update-MgBetaGroupThreadPostInReplyToExtension.md +++ b/src/Groups/beta/examples/Update-MgBetaGroupThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Get-MgGroupConversation.md b/src/Groups/v1.0/examples/Get-MgGroupConversation.md index a37e7fe7fc6..11ddbe5962b 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupConversation.md +++ b/src/Groups/v1.0/examples/Get-MgGroupConversation.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupConversation -GroupId $groupId -ConversationId $conversationId -``` -This example shows how to use the Get-MgGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupConversation -GroupId $groupId -``` -This example shows how to use the Get-MgGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupConversation -GroupId $groupId -ConversationId $conversationId -``` -This example shows how to use the Get-MgGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +Remove-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-MgGroupConversationThreadPostExtension.md b/src/Groups/v1.0/examples/Get-MgGroupConversationThreadPostExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupConversationThreadPostExtension.md +++ b/src/Groups/v1.0/examples/Get-MgGroupConversationThreadPostExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Get-MgGroupConversationThreadPostInReplyToExtension.md b/src/Groups/v1.0/examples/Get-MgGroupConversationThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupConversationThreadPostInReplyToExtension.md +++ b/src/Groups/v1.0/examples/Get-MgGroupConversationThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Get-MgGroupLifecyclePolicy.md b/src/Groups/v1.0/examples/Get-MgGroupLifecyclePolicy.md index 7f106a34079..7e15a7e8352 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupLifecyclePolicy.md +++ b/src/Groups/v1.0/examples/Get-MgGroupLifecyclePolicy.md @@ -1,14 +1,15 @@ -### Example 1: Using the Get-MgGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -``` -This example shows how to use the Get-MgGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupLifecyclePolicy -``` -This example shows how to use the Get-MgGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +$params = @{ + groupLifetimeInDays = 180 + managedGroupTypes = "Selected" + alternateNotificationEmails = "admin@contoso.com" +} + +Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupLifecyclePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Get-MgGroupPhoto.md b/src/Groups/v1.0/examples/Get-MgGroupPhoto.md index 2c1dee45862..82d42123905 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupPhoto.md +++ b/src/Groups/v1.0/examples/Get-MgGroupPhoto.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgGroupPhoto Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupPhoto -GroupId $groupId -``` -This example shows how to use the Get-MgGroupPhoto Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +Get-MgGroupPhoto -GroupId $groupId +``` +This example shows how to use the Get-MgGroupPhoto Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Get-MgGroupThread.md b/src/Groups/v1.0/examples/Get-MgGroupThread.md index d5e4f0650b4..41fb903ba2d 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupThread.md +++ b/src/Groups/v1.0/examples/Get-MgGroupThread.md @@ -1,21 +1,17 @@ -### Example 1: Using the Get-MgGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -``` -This example shows how to use the Get-MgGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -``` -This example shows how to use the Get-MgGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupThread -GroupId $groupId -``` -This example shows how to use the Get-MgGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +$params = @{ + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + iCalUId = "iCalUId-value" + reminderMinutesBeforeStart = + isReminderOn = $true +} + +Update-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Get-MgGroupThreadPostExtension.md b/src/Groups/v1.0/examples/Get-MgGroupThreadPostExtension.md index ad651224283..1c861e0f306 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupThreadPostExtension.md +++ b/src/Groups/v1.0/examples/Get-MgGroupThreadPostExtension.md @@ -1,7 +1,22 @@ -### Example 1: Using the Get-MgGroupThreadPostExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Get-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -``` -This example shows how to use the Get-MgGroupThreadPostExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +$params = @{ + "@odata.type" = "Microsoft.OutlookServices.OpenTypeExtension" + extensionName = "Com.Contoso.Estimate" + companyName = "Contoso" + expirationDate = "2016-07-30T11:00:00.000Z" + DealValue = + topPicks = @( + "Employees only" + "Add spouse or guest" + "Add family" + ) +} + +Update-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Get-MgGroupThreadPostInReplyToExtension.md b/src/Groups/v1.0/examples/Get-MgGroupThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupThreadPostInReplyToExtension.md +++ b/src/Groups/v1.0/examples/Get-MgGroupThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/New-MgGroupAcceptedSenderByRef.md b/src/Groups/v1.0/examples/New-MgGroupAcceptedSenderByRef.md index bda85828566..a902187b0ce 100644 --- a/src/Groups/v1.0/examples/New-MgGroupAcceptedSenderByRef.md +++ b/src/Groups/v1.0/examples/New-MgGroupAcceptedSenderByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgGroupAcceptedSenderByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/users/alexd@contoso.com" } -New-MgGroupAcceptedSenderByRef -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgGroupAcceptedSenderByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgGroupAcceptedSenderByRef -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgGroupAcceptedSenderByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/New-MgGroupConversation.md b/src/Groups/v1.0/examples/New-MgGroupConversation.md index 9f8c324e195..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/New-MgGroupConversation.md +++ b/src/Groups/v1.0/examples/New-MgGroupConversation.md @@ -1,30 +1,17 @@ -### Example 1: Using the New-MgGroupConversation Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Groups -$params = @{ - Topic = "Take your wellness days and rest" - Threads = @( - @{ - Posts = @( - @{ - Body = @{ - ContentType = "html" - Content = "Contoso cares about you: Rest and Recharge" - } - NewParticipants = @( - @{ - EmailAddress = @{ - Name = "Adele Vance" - Address = "AdeleV@contoso.onmicrosoft.com" - } - } - ) - } - ) - } - ) -} -New-MgGroupConversation -GroupId $groupId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgGroupConversationThread.md b/src/Groups/v1.0/examples/New-MgGroupConversationThread.md index aa13718af43..9ce8759f739 100644 --- a/src/Groups/v1.0/examples/New-MgGroupConversationThread.md +++ b/src/Groups/v1.0/examples/New-MgGroupConversationThread.md @@ -1,18 +1,21 @@ -### Example 1: Using the New-MgGroupConversationThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + $params = @{ - Topic = "Take your wellness days and rest" - Posts = @( + topic = "Take your wellness days and rest" + posts = @( @{ - Body = @{ - ContentType = "html" - Content = "Waiting for the summer holidays." + body = @{ + contentType = "html" + content = "Waiting for the summer holidays." } } ) } -New-MgGroupConversationThread -GroupId $groupId -ConversationId $conversationId -BodyParameter $params -``` -This example shows how to use the New-MgGroupConversationThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgGroupConversationThread -GroupId $groupId -ConversationId $conversationId -BodyParameter $params +``` +This example shows how to use the New-MgGroupConversationThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/New-MgGroupLifecyclePolicy.md b/src/Groups/v1.0/examples/New-MgGroupLifecyclePolicy.md index c8c8d6981bc..d946d74f518 100644 --- a/src/Groups/v1.0/examples/New-MgGroupLifecyclePolicy.md +++ b/src/Groups/v1.0/examples/New-MgGroupLifecyclePolicy.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + $params = @{ - GroupLifetimeInDays = 100 - ManagedGroupTypes = "Selected" - AlternateNotificationEmails = "admin@contoso.com" + groupLifetimeInDays = 100 + managedGroupTypes = "Selected" + alternateNotificationEmails = "admin@contoso.com" } -New-MgGroupLifecyclePolicy -BodyParameter $params -``` -This example shows how to use the New-MgGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgGroupLifecyclePolicy -BodyParameter $params +``` +This example shows how to use the New-MgGroupLifecyclePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/New-MgGroupMemberByRef.md b/src/Groups/v1.0/examples/New-MgGroupMemberByRef.md index 715e5f7ec7d..9e3f8d3e2af 100644 --- a/src/Groups/v1.0/examples/New-MgGroupMemberByRef.md +++ b/src/Groups/v1.0/examples/New-MgGroupMemberByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgGroupMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" } -New-MgGroupMemberByRef -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgGroupMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgGroupMemberByRef -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgGroupMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/New-MgGroupPermissionGrant.md b/src/Groups/v1.0/examples/New-MgGroupPermissionGrant.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/New-MgGroupPermissionGrant.md +++ b/src/Groups/v1.0/examples/New-MgGroupPermissionGrant.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/New-MgGroupRejectedSenderByRef.md b/src/Groups/v1.0/examples/New-MgGroupRejectedSenderByRef.md index c0bd8ddacd4..a4fdd4c9153 100644 --- a/src/Groups/v1.0/examples/New-MgGroupRejectedSenderByRef.md +++ b/src/Groups/v1.0/examples/New-MgGroupRejectedSenderByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgGroupRejectedSenderByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/users/alexd@contoso.com" } -New-MgGroupRejectedSenderByRef -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgGroupRejectedSenderByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgGroupRejectedSenderByRef -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgGroupRejectedSenderByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/New-MgGroupThread.md b/src/Groups/v1.0/examples/New-MgGroupThread.md index 9abf0569b6f..e7b8807028f 100644 --- a/src/Groups/v1.0/examples/New-MgGroupThread.md +++ b/src/Groups/v1.0/examples/New-MgGroupThread.md @@ -1,26 +1,29 @@ -### Example 1: Using the New-MgGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + $params = @{ - Topic = "New Conversation Thread Topic" - Posts = @( + topic = "New Conversation Thread Topic" + posts = @( @{ - Body = @{ - ContentType = "html" - Content = "this is body content" + body = @{ + contentType = "html" + content = "this is body content" } - NewParticipants = @( + newParticipants = @( @{ - EmailAddress = @{ - Name = "Alex Darrow" - Address = "alexd@contoso.com" + emailAddress = @{ + name = "Alex Darrow" + address = "alexd@contoso.com" } } ) } ) } -New-MgGroupThread -GroupId $groupId -BodyParameter $params -``` -This example shows how to use the New-MgGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgGroupThread -GroupId $groupId -BodyParameter $params +``` +This example shows how to use the New-MgGroupThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/New-MgGroupThreadPostAttachment.md b/src/Groups/v1.0/examples/New-MgGroupThreadPostAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/New-MgGroupThreadPostAttachment.md +++ b/src/Groups/v1.0/examples/New-MgGroupThreadPostAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/New-MgGroupThreadPostInReplyToAttachment.md b/src/Groups/v1.0/examples/New-MgGroupThreadPostInReplyToAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/New-MgGroupThreadPostInReplyToAttachment.md +++ b/src/Groups/v1.0/examples/New-MgGroupThreadPostInReplyToAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Remove-MgGroupConversation.md b/src/Groups/v1.0/examples/Remove-MgGroupConversation.md index 8cf3f2c1726..675905819ec 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupConversation.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupConversation.md @@ -1,14 +1,9 @@ -### Example 1: Using the Remove-MgGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Remove-MgGroupConversation -GroupId $groupId -ConversationId $conversationId -``` -This example shows how to use the Remove-MgGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgGroupConversation Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Remove-MgGroupConversation -GroupId $groupId -ConversationId $conversationId -``` -This example shows how to use the Remove-MgGroupConversation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +Remove-MgGroupConversation -GroupId $groupId -ConversationId $conversationId +``` +This example shows how to use the Remove-MgGroupConversation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Remove-MgGroupConversationThreadPostExtension.md b/src/Groups/v1.0/examples/Remove-MgGroupConversationThreadPostExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupConversationThreadPostExtension.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupConversationThreadPostExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Remove-MgGroupConversationThreadPostInReplyToExtension.md b/src/Groups/v1.0/examples/Remove-MgGroupConversationThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupConversationThreadPostInReplyToExtension.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupConversationThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Remove-MgGroupLifecyclePolicy.md b/src/Groups/v1.0/examples/Remove-MgGroupLifecyclePolicy.md index e35851c5eb5..032d9549d7c 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupLifecyclePolicy.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupLifecyclePolicy.md @@ -1,7 +1,15 @@ -### Example 1: Using the Remove-MgGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Remove-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -``` -This example shows how to use the Remove-MgGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +$params = @{ + groupLifetimeInDays = 180 + managedGroupTypes = "Selected" + alternateNotificationEmails = "admin@contoso.com" +} + +Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgGroupLifecyclePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Remove-MgGroupMemberByRef.md b/src/Groups/v1.0/examples/Remove-MgGroupMemberByRef.md index cdc572481d3..a7413fd7559 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupMemberByRef.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupMemberByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgGroupMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Remove-MgGroupMemberByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgGroupMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +Remove-MgGroupMemberByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgGroupMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Remove-MgGroupOwnerByRef.md b/src/Groups/v1.0/examples/Remove-MgGroupOwnerByRef.md index ae97b0608e7..e722335d6db 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupOwnerByRef.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupOwnerByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgGroupOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Remove-MgGroupOwnerByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgGroupOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +Remove-MgGroupOwnerByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgGroupOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Remove-MgGroupThread.md b/src/Groups/v1.0/examples/Remove-MgGroupThread.md index 3f81cb5b28e..4c26f6bea0a 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupThread.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupThread.md @@ -1,14 +1,17 @@ -### Example 1: Using the Remove-MgGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Remove-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -``` -This example shows how to use the Remove-MgGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups -Remove-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -``` -This example shows how to use the Remove-MgGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +$params = @{ + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + iCalUId = "iCalUId-value" + reminderMinutesBeforeStart = + isReminderOn = $true +} + +Update-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Remove-MgGroupThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Remove-MgGroupThreadPostExtension.md b/src/Groups/v1.0/examples/Remove-MgGroupThreadPostExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupThreadPostExtension.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupThreadPostExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Remove-MgGroupThreadPostInReplyToExtension.md b/src/Groups/v1.0/examples/Remove-MgGroupThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Remove-MgGroupThreadPostInReplyToExtension.md +++ b/src/Groups/v1.0/examples/Remove-MgGroupThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Update-MgGroupConversationThreadPostExtension.md b/src/Groups/v1.0/examples/Update-MgGroupConversationThreadPostExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Update-MgGroupConversationThreadPostExtension.md +++ b/src/Groups/v1.0/examples/Update-MgGroupConversationThreadPostExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Update-MgGroupConversationThreadPostInReplyToExtension.md b/src/Groups/v1.0/examples/Update-MgGroupConversationThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Update-MgGroupConversationThreadPostInReplyToExtension.md +++ b/src/Groups/v1.0/examples/Update-MgGroupConversationThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Groups/v1.0/examples/Update-MgGroupLifecyclePolicy.md b/src/Groups/v1.0/examples/Update-MgGroupLifecyclePolicy.md index 5c1306ba208..b8f012c1717 100644 --- a/src/Groups/v1.0/examples/Update-MgGroupLifecyclePolicy.md +++ b/src/Groups/v1.0/examples/Update-MgGroupLifecyclePolicy.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgGroupLifecyclePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + $params = @{ - GroupLifetimeInDays = 180 - ManagedGroupTypes = "Selected" - AlternateNotificationEmails = "admin@contoso.com" + groupLifetimeInDays = 180 + managedGroupTypes = "Selected" + alternateNotificationEmails = "admin@contoso.com" } -Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgGroupLifecyclePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgGroupLifecyclePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Update-MgGroupThread.md b/src/Groups/v1.0/examples/Update-MgGroupThread.md index 7fca17fa2f0..d5e1fa60055 100644 --- a/src/Groups/v1.0/examples/Update-MgGroupThread.md +++ b/src/Groups/v1.0/examples/Update-MgGroupThread.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgGroupThread Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + $params = @{ - OriginalStartTimeZone = "originalStartTimeZone-value" - OriginalEndTimeZone = "originalEndTimeZone-value" - ICalUId = "iCalUId-value" - ReminderMinutesBeforeStart = - IsReminderOn = $true + originalStartTimeZone = "originalStartTimeZone-value" + originalEndTimeZone = "originalEndTimeZone-value" + iCalUId = "iCalUId-value" + reminderMinutesBeforeStart = + isReminderOn = $true } -Update-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params -``` -This example shows how to use the Update-MgGroupThread Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Update-MgGroupThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Update-MgGroupThreadPostExtension.md b/src/Groups/v1.0/examples/Update-MgGroupThreadPostExtension.md index 165856050f1..a5f8ca3676c 100644 --- a/src/Groups/v1.0/examples/Update-MgGroupThreadPostExtension.md +++ b/src/Groups/v1.0/examples/Update-MgGroupThreadPostExtension.md @@ -1,19 +1,22 @@ -### Example 1: Using the Update-MgGroupThreadPostExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Groups +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + $params = @{ "@odata.type" = "Microsoft.OutlookServices.OpenTypeExtension" - ExtensionName = "Com.Contoso.Estimate" - CompanyName = "Contoso" - ExpirationDate = "2016-07-30T11:00:00.000Z" + extensionName = "Com.Contoso.Estimate" + companyName = "Contoso" + expirationDate = "2016-07-30T11:00:00.000Z" DealValue = - TopPicks = @( + topPicks = @( "Employees only" "Add spouse or guest" "Add family" ) } -Update-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params -``` -This example shows how to use the Update-MgGroupThreadPostExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params +``` +This example shows how to use the Update-MgGroupThreadPostExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Groups/v1.0/examples/Update-MgGroupThreadPostInReplyToExtension.md b/src/Groups/v1.0/examples/Update-MgGroupThreadPostInReplyToExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Groups/v1.0/examples/Update-MgGroupThreadPostInReplyToExtension.md +++ b/src/Groups/v1.0/examples/Update-MgGroupThreadPostInReplyToExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactManager.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactManager.md index 0107d5cdea3..d00b20054d0 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactManager.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContactManager.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaContactManager Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaContactManager -OrgContactId $orgContactId +``` +This example shows how to use the Get-MgBetaBetaContactManager Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContract.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContract.md index 42ba6e69395..acb8b575576 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContract.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContract.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaContract Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaContract -ContractId $contractId -``` -This example shows how to use the Get-MgBetaContract Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaContract Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaContract -``` -This example shows how to use the Get-MgBetaContract Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaContract -ContractId $contractId +``` +This example shows how to use the Get-MgBetaBetaContract Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDevice.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDevice.md index c76a79f7aa0..75cc1e8ee42 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDevice.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDevice.md @@ -1,42 +1,25 @@ -### Example 1: Using the Get-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDevice -DeviceId $deviceId -``` -This example shows how to use the Get-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDevice -DeviceId $deviceId -Property "id,extensionAttributes" -``` -This example shows how to use the Get-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDevice -Filter "extensionAttributes/extensionAttribute1 eq 'BYOD-Device'" -CountVariable CountVar -ConsistencyLevel eventual -``` -This example shows how to use the Get-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDevice -``` -This example shows how to use the Get-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDevice -Property "id,extensionAttributes" -``` -This example shows how to use the Get-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDevice -Filter "startswith(displayName, 'a')" -CountVariable CountVar -Top 1 -Sort "displayName" -ConsistencyLevel eventual -``` -This example shows how to use the Get-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update the accountEnabled property of a device + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + accountEnabled = $false +} + +Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Write extensionAttributes on a device + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ +} + +Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnit.md index 47ac85934bf..d02aab869c6 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnit.md @@ -1,11 +1,13 @@ -### 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-MgBetaDirectoryAdministrativeUnit -``` -This example shows how to use the Get-MgBetaDirectoryAdministrativeUnit Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "Greater Seattle District Technical Schools" +} +Update-MgBetaDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaDirectoryAdministrativeUnit Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md index 8f7fa3be4e0..ef5510b21ec 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -``` -This example shows how to use the Get-MgBetaDirectoryAdministrativeUnitScopedRoleMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId +``` +This example shows how to use the Get-MgBetaBetaDirectoryAdministrativeUnitScopedRoleMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryFederationConfiguration.md index e98da1109d6..9f1aac0bd61 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryFederationConfiguration.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaDirectoryFederationConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId -Filter "domains/any(x: x/id eq 'contoso.com')" -``` -This example shows how to use the Get-MgBetaDirectoryFederationConfiguration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaDirectoryFederationConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Get-MgBetaDirectoryFederationConfiguration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Get-MgBetaBetaDirectoryFederationConfiguration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRoleTemplate.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRoleTemplate.md index bcf1d4a0092..34b5ea175eb 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRoleTemplate.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaDirectoryRoleTemplate.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaDirectoryRoleTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId -``` -This example shows how to use the Get-MgBetaDirectoryRoleTemplate Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaDirectoryRoleTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDirectoryRoleTemplate -``` -This example shows how to use the Get-MgBetaDirectoryRoleTemplate Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId +``` +This example shows how to use the Get-MgBetaBetaDirectoryRoleTemplate Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganization.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganization.md index f37dac0e8f2..7ffc2ac7fee 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganization.md @@ -1,14 +1,28 @@ -### Example 1: Using the Get-MgBetaOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganization -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganization -``` -This example shows how to use the Get-MgBetaOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + marketingNotificationEmails = @( + "marketing@contoso.com" + ) + privacyProfile = @{ + contactEmail = "alice@contoso.com" + statementUrl = "https://contoso.com/privacyStatement" + } + securityComplianceNotificationMails = @( + "security@contoso.com" + ) + securityComplianceNotificationPhones = @( + "(123) 456-7890" + ) + technicalNotificationMails = @( + "tech@contoso.com" + ) +} + +Update-MgBetaOrganization -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md index 0ca5813aecf..e9a0e7bfd84 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md @@ -1,21 +1,14 @@ -### Example 1: Using the Get-MgBetaOrganizationBranding Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBranding Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaOrganizationBranding Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBranding Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaOrganizationBranding Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBranding Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + signInPageText = "Default" + usernameHintText = "DefaultHint" +} + +Update-MgBetaOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingBackgroundImage.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingBackgroundImage.md index 0a281410ccc..d22cd98bca7 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingBackgroundImage.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingBackgroundImage.md @@ -1,44 +1,36 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingBackgroundImage 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.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingBackgroundImage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingBackgroundImage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingBackgroundImage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingBackgroundImage 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.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingBackgroundImage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingBackgroundImage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingBackgroundImage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingBannerLogo.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingBannerLogo.md index 48c4e590460..f7ba3bb9708 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingBannerLogo.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingBannerLogo.md @@ -1,44 +1,36 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingBannerLogo 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.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingBannerLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingBannerLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingBannerLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingBannerLogo 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.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingBannerLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingBannerLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingBannerLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalization.md index c273e5ac34e..0b01cff794d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalization.md @@ -1,14 +1,28 @@ -### Example 1: Using the Get-MgBetaOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + backgroundColor = "#00000F" + signInPageText = "Welcome to Contoso France" +} + +Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingLocalization 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.DirectoryManagement + +$params = @{ + signInPageText = "Welcome to Contoso France." + usernameHintText = " " +} + +Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationBackgroundImage.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationBackgroundImage.md index 0e9fd71f8ce..2003cd836d7 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationBackgroundImage.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationBackgroundImage.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingLocalizationBackgroundImage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingLocalizationBackgroundImage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationBannerLogo.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationBannerLogo.md index 15466c0eb05..6705e5bacd2 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationBannerLogo.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationBannerLogo.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgBetaOrganizationBrandingLocalizationBannerLogo Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingLocalizationBannerLogo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaOrganizationBrandingLocalizationBannerLogo Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingLocalizationBannerLogo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaOrganizationBrandingLocalizationBannerLogo Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingLocalizationBannerLogo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingLocalizationBannerLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationSquareLogo.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationSquareLogo.md index dd654a43e65..48421539ec3 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationSquareLogo.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationSquareLogo.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingLocalizationSquareLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingLocalizationSquareLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingSquareLogo.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingSquareLogo.md index e2fc053109d..1438100dbed 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingSquareLogo.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingSquareLogo.md @@ -1,44 +1,36 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingSquareLogo 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.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingSquareLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingSquareLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Get-MgBetaOrganizationBrandingSquareLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingSquareLogo 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.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingSquareLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingSquareLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationBrandingSquareLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaContact.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaContact.md index c1b834cc893..cf7318297a2 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaContact.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaContact.md @@ -1,33 +1,27 @@ -### 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-MgBetaContact -``` -This example shows how to use the New-MgBetaContact Cmdlet. +Get-MgBetaContact +``` +This example shows how to use the New-MgBetaBetaContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -### Example 2: Code snippet +Get-MgBetaContact -Filter "startswith(displayName,'A')" -CountVariable CountVar -Top 1 -Sort "displayName" -ConsistencyLevel eventual +``` +This example shows how to use the New-MgBetaBetaContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaContact -Filter "startswith(displayName,'A')" -CountVariable CountVar -Top 1 -Sort "displayName" -ConsistencyLevel eventual -``` -This example shows how to use the New-MgBetaContact Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaContact -Search "displayName:wa" -CountVariable CountVar -ConsistencyLevel eventual -``` -This example shows how to use the New-MgBetaContact Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaContact -Search '"displayName:wa"' -CountVariable CountVar -ConsistencyLevel eventual +``` +This example shows how to use the New-MgBetaBetaContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaContract.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaContract.md index a912a9729fb..47ce0582b52 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaContract.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaContract.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaContract -``` -This example shows how to use the New-MgBetaContract Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaContract +``` +This example shows how to use the New-MgBetaBetaContract Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDevice.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDevice.md index cda38bc170f..c8879666b67 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDevice.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDevice.md @@ -1,21 +1,23 @@ -### Example 1: Using the New-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - AccountEnabled = $true - AlternativeSecurityIds = @( + accountEnabled = $false + alternativeSecurityIds = @( @{ - Type = 99 - IdentityProvider = "identityProvider-value" - Key = [System.Text.Encoding]::ASCII.GetBytes("base64Y3YxN2E1MWFlYw==") + type = 2 + key = [System.Text.Encoding]::ASCII.GetBytes("base64Y3YxN2E1MWFlYw==") } ) - ApproximateLastSignInDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") - DeviceId = "deviceId-value" - DeviceMetadata = "deviceMetadata-value" - DeviceVersion = 99 + deviceId = "4c299165-6e8f-4b45-a5ba-c5d250a707ff" + displayName = "Test device" + operatingSystem = "linux" + operatingSystemVersion = "1" } -New-MgBetaDevice -BodyParameter $params -``` -This example shows how to use the New-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaDevice -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDeviceRegisteredOwnerByRef.md index c8b5c56dea9..b92626bfe5e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDeviceRegisteredOwnerByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaDeviceRegisteredOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/directoryObjects/{id}" + "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" } -New-MgBetaDeviceRegisteredOwnerByRef -DeviceId $deviceId -BodyParameter $params -``` -This example shows how to use the New-MgBetaDeviceRegisteredOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaDeviceRegisteredOwnerByRef -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaDeviceRegisteredOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnit.md index ac9514d3859..0c06c546aad 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnit.md @@ -1,11 +1,15 @@ -### 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-MgBetaDirectoryAdministrativeUnit -``` -This example shows how to use the New-MgBetaDirectoryAdministrativeUnit Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "Seattle District Technical Schools" + description = "Seattle district technical schools administration" + visibility = "HiddenMembership" +} +New-MgBetaDirectoryAdministrativeUnit -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaDirectoryAdministrativeUnit Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnitMemberByRef.md index 9a5f3765dbb..85792b0e7d2 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnitMemberByRef.md @@ -1,22 +1,13 @@ -### Example 1: List member objects +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Get-MgBetaDirectoryAdministrativeUnitMember -AdministrativeUnitId $administrativeUnitId -``` -This example shows how to use the New-MgBetaDirectoryAdministrativeUnitMemberByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List member references - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -``` -This example shows how to use the New-MgBetaDirectoryAdministrativeUnitMemberByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/groups/{id}" +} +New-MgBetaDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaDirectoryAdministrativeUnitMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md index b159f3d3d63..f0215dbc80d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,11 +1,16 @@ -### 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-MgBetaDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -``` -This example shows how to use the New-MgBetaDirectoryAdministrativeUnitScopedRoleMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + roleId = "roleId-value" + roleMemberInfo = @{ + id = "id-value" + } +} +New-MgBetaDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaDirectoryAdministrativeUnitScopedRoleMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRole.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRole.md index 208ebf875ff..ccb031030fd 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRole.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRole.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaDirectoryRole Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - RoleTemplateId = "fe930be7-5e62-47db-91af-98c3a49a38b1" + roleTemplateId = "fe930be7-5e62-47db-91af-98c3a49a38b1" } -New-MgBetaDirectoryRole -BodyParameter $params -``` -This example shows how to use the New-MgBetaDirectoryRole Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaDirectoryRole -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaDirectoryRole Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRoleScopedMember.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRoleScopedMember.md index 9cd30563904..bb7db187ac1 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRoleScopedMember.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRoleScopedMember.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDirectoryRoleScopedMember -DirectoryRoleId $directoryRoleId -``` -This example shows how to use the New-MgBetaDirectoryRoleScopedMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaDirectoryRoleScopedMember -DirectoryRoleId $directoryRoleId +``` +This example shows how to use the New-MgBetaBetaDirectoryRoleScopedMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRoleTemplate.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRoleTemplate.md index dfae5b1b193..b4031b9ed11 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRoleTemplate.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDirectoryRoleTemplate.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDirectoryRoleTemplate -``` -This example shows how to use the New-MgBetaDirectoryRoleTemplate Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaDirectoryRoleTemplate +``` +This example shows how to use the New-MgBetaBetaDirectoryRoleTemplate Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomain.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomain.md index bfb949c0554..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomain.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomain.md @@ -1,10 +1,17 @@ -### Example 1: Using the New-MgBetaDomain Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -$params = @{ - Id = "contoso.com" -} -New-MgBetaDomain -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaDomain Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.DirectoryManagement/beta/examples/New-MgBetaDomainServiceConfigurationRecord.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomainServiceConfigurationRecord.md index 8904c6f44af..4f62a63747f 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomainServiceConfigurationRecord.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomainServiceConfigurationRecord.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDomainServiceConfigurationRecord -DomainId $domainId -``` -This example shows how to use the New-MgBetaDomainServiceConfigurationRecord Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaDomainServiceConfigurationRecord -DomainId $domainId +``` +This example shows how to use the New-MgBetaBetaDomainServiceConfigurationRecord Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomainVerificationDnsRecord.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomainVerificationDnsRecord.md index 52cd1eed843..d3e60398e0a 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomainVerificationDnsRecord.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaDomainVerificationDnsRecord.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDomainVerificationDnsRecord -DomainId $domainId -``` -This example shows how to use the New-MgBetaDomainVerificationDnsRecord Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaDomainVerificationDnsRecord -DomainId $domainId +``` +This example shows how to use the New-MgBetaBetaDomainVerificationDnsRecord Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaOrganization.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaOrganization.md index 5f1f30c0651..9f0cc4c7353 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaOrganization.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaOrganization.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganization -``` -This example shows how to use the New-MgBetaOrganization Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaOrganization +``` +This example shows how to use the New-MgBetaBetaOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaOrganizationBrandingLocalization.md index e38373c96a6..b2b3988cb50 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaOrganizationBrandingLocalization.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - BackgroundColor = "#00000F" - Id = "fr-FR" - SignInPageText = " " + backgroundColor = "#00000F" + id = "fr-FR" + signInPageText = " " } -New-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -BodyParameter $params -``` -This example shows how to use the New-MgBetaOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaSubscribedSku.md b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaSubscribedSku.md index a2cfdc4355b..f56a612c253 100644 --- a/src/Identity.DirectoryManagement/beta/examples/New-MgBetaSubscribedSku.md +++ b/src/Identity.DirectoryManagement/beta/examples/New-MgBetaSubscribedSku.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaSubscribedSku -``` -This example shows how to use the New-MgBetaSubscribedSku Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaSubscribedSku +``` +This example shows how to use the New-MgBetaBetaSubscribedSku Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaContact.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaContact.md index 4899af5effa..6b4a2dae7b9 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaContact.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaContact.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaContact -OrgContactId $orgContactId -``` -This example shows how to use the Remove-MgBetaContact Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaContact -OrgContactId $orgContactId +``` +This example shows how to use the Remove-MgBetaBetaContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaContract.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaContract.md index 505ed632392..ab653e5312a 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaContract.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaContract.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaContract -ContractId $contractId -``` -This example shows how to use the Remove-MgBetaContract Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaContract -ContractId $contractId +``` +This example shows how to use the Remove-MgBetaBetaContract Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDevice.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDevice.md index 023b2c53ef6..a40893f9702 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDevice.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDevice.md @@ -1,7 +1,25 @@ -### Example 1: Using the Remove-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Remove-MgBetaDevice -DeviceId $deviceId -``` -This example shows how to use the Remove-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update the accountEnabled property of a device + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + accountEnabled = $false +} + +Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Write extensionAttributes on a device + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ +} + +Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredOwnerByRef.md index 90ef6d5cafd..261fb6afe41 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDeviceRegisteredOwnerByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaDeviceRegisteredOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Remove-MgBetaDeviceRegisteredOwnerByRef -DeviceId $deviceId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaDeviceRegisteredOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDeviceRegisteredOwnerByRef -DeviceId $deviceId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaDeviceRegisteredOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnit.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnit.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnitMemberByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnitMemberByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryDeletedItem.md index cb5c4a192e8..88420451bc8 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryDeletedItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaDirectoryDeletedItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Remove-MgBetaDirectoryDeletedItem -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaDirectoryDeletedItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaDirectoryDeletedItem -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaDirectoryDeletedItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryFederationConfiguration.md index e111c0d7f46..f16cc8cb338 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryFederationConfiguration.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaDirectoryFederationConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Remove-MgBetaDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Remove-MgBetaDirectoryFederationConfiguration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Remove-MgBetaBetaDirectoryFederationConfiguration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRole.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRole.md index 6dd90fbbabe..b769ee5a48a 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRole.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRole.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDirectoryRole -DirectoryRoleId $directoryRoleId -``` -This example shows how to use the Remove-MgBetaDirectoryRole Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaDirectoryRole -DirectoryRoleId $directoryRoleId +``` +This example shows how to use the Remove-MgBetaBetaDirectoryRole Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleMemberByRef.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleMemberByRef.md index 77a731755a5..8ba8232d052 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleMemberByRef.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleMemberByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaDirectoryRoleMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Remove-MgBetaDirectoryRoleMemberByRef -DirectoryRoleId $directoryRoleId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaDirectoryRoleMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Remove-MgBetaDirectoryRoleMemberByRef -DirectoryRoleId $directoryRoleId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaDirectoryRoleMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleTemplate.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleTemplate.md index fe4ee01c6a2..a56a9b2be64 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleTemplate.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDirectoryRoleTemplate.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId -``` -This example shows how to use the Remove-MgBetaDirectoryRoleTemplate Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId +``` +This example shows how to use the Remove-MgBetaBetaDirectoryRoleTemplate Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDomain.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDomain.md index 1207b87b40d..567c82b25f6 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDomain.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaDomain.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaDomain Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Remove-MgBetaDomain -DomainId $domainId -``` -This example shows how to use the Remove-MgBetaDomain Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + isDefault = $true + supportedServices = @( + "Email" + "OfficeCommunicationsOnline" + ) +} + +Update-MgBetaDomain -DomainId $domainId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaDomain Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganization.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganization.md index 1fd6b2e8460..ae9edde7696 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganization.md @@ -1,30 +1,28 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement $params = @{ - MarketingNotificationEmails = @( + marketingNotificationEmails = @( "marketing@contoso.com" ) - PrivacyProfile = @{ - ContactEmail = "alice@contoso.com" - StatementUrl = "https://contoso.com/privacyStatement" + privacyProfile = @{ + contactEmail = "alice@contoso.com" + statementUrl = "https://contoso.com/privacyStatement" } - SecurityComplianceNotificationMails = @( + securityComplianceNotificationMails = @( "security@contoso.com" ) - SecurityComplianceNotificationPhones = @( + securityComplianceNotificationPhones = @( "(123) 456-7890" ) - TechnicalNotificationMails = @( + technicalNotificationMails = @( "tech@contoso.com" ) } -Update-MgBetaOrganization -OrganizationId $organizationId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaOrganization Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaOrganization -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md index a478cecfd87..cb446091a3e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBranding.md @@ -1,16 +1,14 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement $params = @{ - SignInPageText = "Default" - UsernameHintText = "DefaultHint" + signInPageText = "Default" + usernameHintText = "DefaultHint" } -Update-MgBetaOrganizationBranding -OrganizationId $organizationId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaOrganizationBranding Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBrandingLocalization.md index 3f2fbc52a0b..8d1f211f8cc 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaOrganizationBrandingLocalization.md @@ -1,7 +1,28 @@ -### Example 1: Using the Remove-MgBetaOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement -Remove-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Remove-MgBetaOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + backgroundColor = "#00000F" + signInPageText = "Welcome to Contoso France" +} + +Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaOrganizationBrandingLocalization 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.DirectoryManagement + +$params = @{ + signInPageText = "Welcome to Contoso France." + usernameHintText = " " +} + +Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaSubscribedSku.md b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaSubscribedSku.md index 2fef4e04a75..10c87d04efb 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaSubscribedSku.md +++ b/src/Identity.DirectoryManagement/beta/examples/Remove-MgBetaSubscribedSku.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaSubscribedSku -SubscribedSkuId $subscribedSkuId -``` -This example shows how to use the Remove-MgBetaSubscribedSku Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaSubscribedSku -SubscribedSkuId $subscribedSkuId +``` +This example shows how to use the Remove-MgBetaBetaSubscribedSku Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingBackgroundImage.md b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingBackgroundImage.md index 5fd63e65089..4dbcc8ceca9 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingBackgroundImage.md +++ b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingBackgroundImage.md @@ -1,44 +1,36 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingBackgroundImage 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.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingBackgroundImage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingBackgroundImage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingBackgroundImage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingBackgroundImage 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.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingBackgroundImage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingBackgroundImage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingBackgroundImage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingBannerLogo.md b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingBannerLogo.md index 84ef404ddb8..3b1363392c1 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingBannerLogo.md +++ b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingBannerLogo.md @@ -1,44 +1,36 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingBannerLogo 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.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingBannerLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingBannerLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingBannerLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingBannerLogo 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.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingBannerLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingBannerLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingBannerLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBackgroundImage.md b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBackgroundImage.md index e08bfeb34c3..405d5d67cae 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBackgroundImage.md +++ b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBackgroundImage.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingLocalizationBackgroundImage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingLocalizationBackgroundImage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBannerLogo.md b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBannerLogo.md index 64c9077b517..f447fa7b2b5 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBannerLogo.md +++ b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationBannerLogo.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingLocalizationBannerLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingLocalizationBannerLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationSquareLogo.md b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationSquareLogo.md index cd5475cb760..7d7e3145030 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationSquareLogo.md +++ b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingLocalizationSquareLogo.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingLocalizationSquareLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingLocalizationSquareLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingSquareLogo.md b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingSquareLogo.md index 74e39513fbe..98221a57288 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingSquareLogo.md +++ b/src/Identity.DirectoryManagement/beta/examples/Set-MgBetaOrganizationBrandingSquareLogo.md @@ -1,44 +1,36 @@ -### Example 1: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingSquareLogo 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.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingSquareLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingSquareLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Set-MgBetaOrganizationBrandingSquareLogo Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingSquareLogo 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.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingSquareLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingSquareLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId +``` +This example shows how to use the Set-MgBetaBetaOrganizationBrandingSquareLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaContact.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaContact.md index 1062d1afe5e..7c2288af595 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaContact.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaContact.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaContact -OrgContactId $orgContactId -``` -This example shows how to use the Update-MgBetaContact Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaContact -OrgContactId $orgContactId +``` +This example shows how to use the Update-MgBetaBetaContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaContract.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaContract.md index f25a74e0bf4..45c22dfb4f6 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaContract.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaContract.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaContract -ContractId $contractId -``` -This example shows how to use the Update-MgBetaContract Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaContract -ContractId $contractId +``` +This example shows how to use the Update-MgBetaBetaContract Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDevice.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDevice.md index 97fc09e64da..7fb51124315 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDevice.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDevice.md @@ -1,22 +1,25 @@ -### Example 1: Using the Update-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +### Example 1: Update the accountEnabled property of a device + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - ExtensionAttributes = @{ - ExtensionAttribute1 = "BYOD-Device" - } + accountEnabled = $false } -Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Write extensionAttributes on a device + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - AccountEnabled = $false } -Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryAdministrativeUnit.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryAdministrativeUnit.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryDeletedItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryDeletedItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryFederationConfiguration.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryFederationConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryRole.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryRole.md index 876641ab896..9cbb56d194f 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryRole.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryRole.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDirectoryRole -DirectoryRoleId $directoryRoleId -``` -This example shows how to use the Update-MgBetaDirectoryRole Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaDirectoryRole -DirectoryRoleId $directoryRoleId +``` +This example shows how to use the Update-MgBetaBetaDirectoryRole Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryRoleTemplate.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryRoleTemplate.md index aeea569fcb4..69ffc6dc22c 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryRoleTemplate.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectoryRoleTemplate.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId -``` -This example shows how to use the Update-MgBetaDirectoryRoleTemplate Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId +``` +This example shows how to use the Update-MgBetaBetaDirectoryRoleTemplate Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDomain.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDomain.md index d051230cc6a..797a091dafd 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDomain.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDomain.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaDomain Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - IsDefault = $true - SupportedServices = @( + isDefault = $true + supportedServices = @( "Email" "OfficeCommunicationsOnline" ) } -Update-MgBetaDomain -DomainId $domainId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaDomain Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaDomain -DomainId $domainId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaDomain Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganization.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganization.md index b4d87e12d83..40bb2d5abab 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganization.md @@ -1,25 +1,28 @@ -### Example 1: Using the Update-MgBetaOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - MarketingNotificationEmails = @( + marketingNotificationEmails = @( "marketing@contoso.com" ) - PrivacyProfile = @{ - ContactEmail = "alice@contoso.com" - StatementUrl = "https://contoso.com/privacyStatement" + privacyProfile = @{ + contactEmail = "alice@contoso.com" + statementUrl = "https://contoso.com/privacyStatement" } - SecurityComplianceNotificationMails = @( + securityComplianceNotificationMails = @( "security@contoso.com" ) - SecurityComplianceNotificationPhones = @( + securityComplianceNotificationPhones = @( "(123) 456-7890" ) - TechnicalNotificationMails = @( + technicalNotificationMails = @( "tech@contoso.com" ) } -Update-MgBetaOrganization -OrganizationId $organizationId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaOrganization -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBranding.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBranding.md index 8404f9b9af3..6315526b85e 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBranding.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaOrganizationBranding Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - SignInPageText = "Default" - UsernameHintText = "DefaultHint" + signInPageText = "Default" + usernameHintText = "DefaultHint" } -Update-MgBetaOrganizationBranding -OrganizationId $organizationId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaOrganizationBranding Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBrandingLocalization.md index 4f214450fb5..b32e68d15c6 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaOrganizationBrandingLocalization.md @@ -1,22 +1,28 @@ -### Example 1: Using the Update-MgBetaOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + $params = @{ - BackgroundColor = "#00000F" - SignInPageText = "Welcome to Contoso France" + backgroundColor = "#00000F" + signInPageText = "Welcome to Contoso France" } -Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaOrganizationBrandingLocalization 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.DirectoryManagement + $params = @{ - SignInPageText = "Welcome to Contoso France." - UsernameHintText = " " + signInPageText = "Welcome to Contoso France." + usernameHintText = " " } -Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaSubscribedSku.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaSubscribedSku.md index eeeb705256f..345b5524055 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaSubscribedSku.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaSubscribedSku.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement - -Get-MgBetaSubscribedSku -SubscribedSkuId $subscribedSkuId -``` -This example shows how to use the Update-MgBetaSubscribedSku Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement +Get-MgBetaSubscribedSku -SubscribedSkuId $subscribedSkuId +``` +This example shows how to use the Update-MgBetaBetaSubscribedSku 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 110f1c146c1..14b159b0683 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactManager.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContactManager.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgContactManager Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +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-MgContract.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContract.md index c2d402b792b..4422efae40f 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContract.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgContract.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgContract Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -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). -### Example 2: Using the Get-MgContract Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgContract -``` -This example shows how to use the Get-MgContract Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +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-MgDevice.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md index e838861d2a7..f8096f2993f 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDevice.md @@ -1,49 +1,25 @@ -### Example 1: Using the Get-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDevice -Search "displayName:Android" -CountVariable CountVar -ConsistencyLevel eventual -``` -This example shows how to use the Get-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDevice -DeviceId $deviceId -``` -This example shows how to use the Get-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDevice -DeviceId $deviceId -Property "id,extensionAttributes" -``` -This example shows how to use the Get-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDevice -Filter "extensionAttributes/extensionAttribute1 eq 'BYOD-Device'" -CountVariable CountVar -ConsistencyLevel eventual -``` -This example shows how to use the Get-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDevice -``` -This example shows how to use the Get-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDevice -Property "id,extensionAttributes" -``` -This example shows how to use the Get-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Get-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDevice -Filter "startswith(displayName, 'a')" -CountVariable CountVar -Top 1 -Sort "displayName" -ConsistencyLevel eventual -``` -This example shows how to use the Get-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update the accountEnabled property of a device + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + accountEnabled = $false +} + +Update-MgDevice -DeviceId $deviceId -BodyParameter $params +``` +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: Write extensionAttributes on a device + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ +} + +Update-MgDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Get-MgDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md index 259c8e98d12..d1f020cec34 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnit.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgDirectoryAdministrativeUnit Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -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). -### Example 2: Using the Get-MgDirectoryAdministrativeUnit Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDirectoryAdministrativeUnit -``` -This example shows how to use the Get-MgDirectoryAdministrativeUnit Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + displayName = "Greater Seattle District Technical Schools" +} + +Update-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +``` +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-MgDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md index e7006a3718e..019e12184a9 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -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). -### Example 2: Using the Get-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -``` -This example shows how to use the Get-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +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.DirectoryManagement/v1.0/examples/Get-MgDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryFederationConfiguration.md index 81a1bf6821d..6ae139b218e 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryFederationConfiguration.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgDirectoryFederationConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId -Filter "domains/any(x: x/id eq 'contoso.com')" -``` -This example shows how to use the Get-MgDirectoryFederationConfiguration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgDirectoryFederationConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Get-MgDirectoryFederationConfiguration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Remove-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Get-MgDirectoryFederationConfiguration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryRoleTemplate.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryRoleTemplate.md index e8e27e057f0..f5847871613 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryRoleTemplate.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryRoleTemplate.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgDirectoryRoleTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId -``` -This example shows how to use the Get-MgDirectoryRoleTemplate Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgDirectoryRoleTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgDirectoryRoleTemplate -``` -This example shows how to use the Get-MgDirectoryRoleTemplate Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId +``` +This example shows how to use the Get-MgDirectoryRoleTemplate Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganization.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganization.md index bf1a20a58cb..9e5a1cef480 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganization.md @@ -1,14 +1,28 @@ -### Example 1: Using the Get-MgOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganization -OrganizationId $organizationId -``` -This example shows how to use the Get-MgOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganization -``` -This example shows how to use the Get-MgOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + marketingNotificationEmails = @( + "marketing@contoso.com" + ) + privacyProfile = @{ + contactEmail = "alice@contoso.com" + statementUrl = "https://contoso.com/privacyStatement" + } + securityComplianceNotificationMails = @( + "security@contoso.com" + ) + securityComplianceNotificationPhones = @( + "(123) 456-7890" + ) + technicalNotificationMails = @( + "tech@contoso.com" + ) +} + +Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBranding.md index 9d542a4611e..9eb10d8cf84 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBranding.md @@ -1,21 +1,14 @@ -### Example 1: Using the Get-MgOrganizationBranding Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgOrganizationBranding Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgOrganizationBranding Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgOrganizationBranding Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgOrganizationBranding Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganizationBranding -OrganizationId $organizationId -``` -This example shows how to use the Get-MgOrganizationBranding Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + signInPageText = "Default" + usernameHintText = "DefaultHint" +} + +Update-MgOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalization.md index 0572ed0fe94..c11688143cd 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalization.md @@ -1,14 +1,28 @@ -### Example 1: Using the Get-MgOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId -``` -This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + backgroundColor = "#00000F" + signInPageText = "Welcome to Contoso France" +} + +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + signInPageText = "Welcome to Contoso France." + usernameHintText = " " +} + +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalizationBannerLogo.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalizationBannerLogo.md index 2add861809a..13e4365c79f 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalizationBannerLogo.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgOrganizationBrandingLocalizationBannerLogo.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -OutFile $outFileId -``` -This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId +``` +This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgContact.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgContact.md index 44d04424b5e..ac9ce6aa967 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgContact.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgContact.md @@ -20,7 +20,7 @@ This example shows how to use the New-MgContact Cmdlet. ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement -Get-MgContact -Search "displayName:wa" -CountVariable CountVar -ConsistencyLevel eventual +Get-MgContact -Search '"displayName:wa"' -CountVariable CountVar -ConsistencyLevel eventual ``` This example shows how to use the New-MgContact Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDevice.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDevice.md index 6cc559d78b2..00613937f80 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDevice.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDevice.md @@ -1,20 +1,23 @@ -### Example 1: Using the New-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - AccountEnabled = $false - AlternativeSecurityIds = @( + accountEnabled = $false + alternativeSecurityIds = @( @{ - Type = 2 - Key = [System.Text.Encoding]::ASCII.GetBytes("base64Y3YxN2E1MWFlYw==") + type = 2 + key = [System.Text.Encoding]::ASCII.GetBytes("base64Y3YxN2E1MWFlYw==") } ) - DeviceId = "4c299165-6e8f-4b45-a5ba-c5d250a707ff" - DisplayName = "Test device" - OperatingSystem = "linux" - OperatingSystemVersion = "1" + deviceId = "4c299165-6e8f-4b45-a5ba-c5d250a707ff" + displayName = "Test device" + operatingSystem = "linux" + operatingSystemVersion = "1" } -New-MgDevice -BodyParameter $params -``` -This example shows how to use the New-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgDevice -BodyParameter $params +``` +This example shows how to use the New-MgDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDeviceRegisteredOwnerByRef.md index 4da7bfd4586..1fd308866b7 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDeviceRegisteredOwnerByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgDeviceRegisteredOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" } -New-MgDeviceRegisteredOwnerByRef -DeviceId $deviceId -BodyParameter $params -``` -This example shows how to use the New-MgDeviceRegisteredOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgDeviceRegisteredOwnerByRef -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the New-MgDeviceRegisteredOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnit.md index c3b2ff8fa98..01ef47dba80 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnit.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgDirectoryAdministrativeUnit Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - DisplayName = "Seattle District Technical Schools" - Description = "Seattle district technical schools administration" - Visibility = "HiddenMembership" + displayName = "Seattle District Technical Schools" + description = "Seattle district technical schools administration" + visibility = "HiddenMembership" } -New-MgDirectoryAdministrativeUnit -BodyParameter $params -``` -This example shows how to use the New-MgDirectoryAdministrativeUnit Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgDirectoryAdministrativeUnit -BodyParameter $params +``` +This example shows how to use the New-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/New-MgDirectoryAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnitMemberByRef.md index 4c50c2ccc39..ae99e1c1b2b 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnitMemberByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgDirectoryAdministrativeUnitMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/groups/{id}" } -New-MgDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -BodyParameter $params -``` -This example shows how to use the New-MgDirectoryAdministrativeUnitMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +``` +This example shows how to use the New-MgDirectoryAdministrativeUnitMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnitScopedRoleMember.md index 5c8a9266800..2530c0bc96f 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,13 +1,16 @@ -### Example 1: Using the New-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - RoleId = "roleId-value" - RoleMemberInfo = @{ - Id = "id-value" + roleId = "roleId-value" + roleMemberInfo = @{ + id = "id-value" } } -New-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -BodyParameter $params -``` -This example shows how to use the New-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +``` +This example shows how to use the New-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryRole.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryRole.md index 14ef0502506..6dba2a400be 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryRole.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDirectoryRole.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgDirectoryRole Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - RoleTemplateId = "fe930be7-5e62-47db-91af-98c3a49a38b1" + roleTemplateId = "fe930be7-5e62-47db-91af-98c3a49a38b1" } -New-MgDirectoryRole -BodyParameter $params -``` -This example shows how to use the New-MgDirectoryRole Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgDirectoryRole -BodyParameter $params +``` +This example shows how to use the New-MgDirectoryRole Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDomain.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDomain.md index f88d172ca2d..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDomain.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDomain.md @@ -1,10 +1,17 @@ -### Example 1: Using the New-MgDomain Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -$params = @{ - Id = "contoso.com" -} -New-MgDomain -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgDomain Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.DirectoryManagement/v1.0/examples/New-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgOrganizationBrandingLocalization.md index c80e7735f90..f2be9f1c91d 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgOrganizationBrandingLocalization.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - BackgroundColor = "#00000F" - Id = "fr-FR" - SignInPageText = " " + backgroundColor = "#00000F" + id = "fr-FR" + signInPageText = " " } -New-MgOrganizationBrandingLocalization -OrganizationId $organizationId -BodyParameter $params -``` -This example shows how to use the New-MgOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgOrganizationBrandingLocalization -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the New-MgOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDevice.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDevice.md index f95ac3817a5..af6825a977b 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDevice.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDevice.md @@ -1,7 +1,25 @@ -### Example 1: Using the Remove-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgDevice -DeviceId $deviceId -``` -This example shows how to use the Remove-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update the accountEnabled property of a device + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + accountEnabled = $false +} + +Update-MgDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Remove-MgDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Write extensionAttributes on a device + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ +} + +Update-MgDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Remove-MgDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDeviceRegisteredOwnerByRef.md index e39709f5bd4..9a4213c2471 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDeviceRegisteredOwnerByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgDeviceRegisteredOwnerByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgDeviceRegisteredOwnerByRef -DeviceId $deviceId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgDeviceRegisteredOwnerByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Remove-MgDeviceRegisteredOwnerByRef -DeviceId $deviceId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgDeviceRegisteredOwnerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnit.md index f8cf0710b99..3642c08f1ae 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnit.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgDirectoryAdministrativeUnit Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -``` -This example shows how to use the Remove-MgDirectoryAdministrativeUnit Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + displayName = "Greater Seattle District Technical Schools" +} + +Update-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +``` +This example shows how to use the Remove-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/Remove-MgDirectoryAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnitMemberByRef.md index b2039e63475..02d1c5f9edc 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnitMemberByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgDirectoryAdministrativeUnitMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgDirectoryAdministrativeUnitMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Remove-MgDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgDirectoryAdministrativeUnitMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnitScopedRoleMember.md index a25463ac296..cc12340805a 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId -``` -This example shows how to use the Remove-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId +``` +This example shows how to use the Remove-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryDeletedItem.md index f78331b425b..b868c5b4fe3 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryDeletedItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgDirectoryDeletedItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgDirectoryDeletedItem -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgDirectoryDeletedItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgDirectoryDeletedItem -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgDirectoryDeletedItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryFederationConfiguration.md index c0f0946b4b6..620a28253d5 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryFederationConfiguration.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgDirectoryFederationConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Remove-MgDirectoryFederationConfiguration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Remove-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Remove-MgDirectoryFederationConfiguration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryRoleMemberByRef.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryRoleMemberByRef.md index 31685a3cad6..c52585c3276 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryRoleMemberByRef.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDirectoryRoleMemberByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgDirectoryRoleMemberByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgDirectoryRoleMemberByRef -DirectoryRoleId $directoryRoleId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgDirectoryRoleMemberByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Remove-MgDirectoryRoleMemberByRef -DirectoryRoleId $directoryRoleId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgDirectoryRoleMemberByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDomain.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDomain.md index 9a3adcac02e..1d3da9dd709 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDomain.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgDomain.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgDomain Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgDomain -DomainId $domainId -``` -This example shows how to use the Remove-MgDomain Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + isDefault = $true + supportedServices = @( + "Email" + "OfficeCommunicationsOnline" + ) +} + +Update-MgDomain -DomainId $domainId -BodyParameter $params +``` +This example shows how to use the Remove-MgDomain Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganization.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganization.md index 8e4c8307f64..d83f2afe816 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganization.md @@ -3,20 +3,20 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement $params = @{ - MarketingNotificationEmails = @( + marketingNotificationEmails = @( "marketing@contoso.com" ) - PrivacyProfile = @{ - ContactEmail = "alice@contoso.com" - StatementUrl = "https://contoso.com/privacyStatement" + privacyProfile = @{ + contactEmail = "alice@contoso.com" + statementUrl = "https://contoso.com/privacyStatement" } - SecurityComplianceNotificationMails = @( + securityComplianceNotificationMails = @( "security@contoso.com" ) - SecurityComplianceNotificationPhones = @( + securityComplianceNotificationPhones = @( "(123) 456-7890" ) - TechnicalNotificationMails = @( + technicalNotificationMails = @( "tech@contoso.com" ) } diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBranding.md index 836bb377b81..1ce7aa09524 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBranding.md @@ -3,8 +3,8 @@ ```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement $params = @{ - SignInPageText = "Default" - UsernameHintText = "DefaultHint" + signInPageText = "Default" + usernameHintText = "DefaultHint" } Update-MgOrganizationBranding -OrganizationId $organizationId -BodyParameter $params diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBrandingLocalization.md index 65e78f222c8..8dc47327d37 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Remove-MgOrganizationBrandingLocalization.md @@ -1,7 +1,28 @@ -### Example 1: Using the Remove-MgOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement -Remove-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -``` -This example shows how to use the Remove-MgOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + backgroundColor = "#00000F" + signInPageText = "Welcome to Contoso France" +} + +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Remove-MgOrganizationBrandingLocalization 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 + +$params = @{ + signInPageText = "Welcome to Contoso France." + usernameHintText = " " +} + +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Remove-MgOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md index 0cdd079c27d..f12d4d22d39 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDevice.md @@ -1,19 +1,25 @@ -### Example 1: Using the Update-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Update the accountEnabled property of a device + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ + accountEnabled = $false } -Update-MgDevice -DeviceId $deviceId -BodyParameter $params -``` -This example shows how to use the Update-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgDevice Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Update-MgDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Update-MgDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Write extensionAttributes on a device + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - AccountEnabled = $false } -Update-MgDevice -DeviceId $deviceId -BodyParameter $params -``` -This example shows how to use the Update-MgDevice Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgDevice -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the Update-MgDevice Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnit.md index 67d7f07d3eb..39b18966943 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnit.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgDirectoryAdministrativeUnit Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - DisplayName = "Greater Seattle District Technical Schools" + displayName = "Greater Seattle District Technical Schools" } -Update-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params -``` -This example shows how to use the Update-MgDirectoryAdministrativeUnit Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params +``` +This example shows how to use the Update-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/Update-MgDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnitScopedRoleMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryDeletedItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryDeletedItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryFederationConfiguration.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDirectoryFederationConfiguration.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDomain.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDomain.md index 1ff91394b8f..a3e682f52ca 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDomain.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgDomain.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgDomain Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - IsDefault = $true - SupportedServices = @( + isDefault = $true + supportedServices = @( "Email" "OfficeCommunicationsOnline" ) } -Update-MgDomain -DomainId $domainId -BodyParameter $params -``` -This example shows how to use the Update-MgDomain Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgDomain -DomainId $domainId -BodyParameter $params +``` +This example shows how to use the Update-MgDomain Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md index 5e266c3d37d..cc125809fc9 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md @@ -1,25 +1,28 @@ -### Example 1: Using the Update-MgOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - MarketingNotificationEmails = @( + marketingNotificationEmails = @( "marketing@contoso.com" ) - PrivacyProfile = @{ - ContactEmail = "alice@contoso.com" - StatementUrl = "https://contoso.com/privacyStatement" + privacyProfile = @{ + contactEmail = "alice@contoso.com" + statementUrl = "https://contoso.com/privacyStatement" } - SecurityComplianceNotificationMails = @( + securityComplianceNotificationMails = @( "security@contoso.com" ) - SecurityComplianceNotificationPhones = @( + securityComplianceNotificationPhones = @( "(123) 456-7890" ) - TechnicalNotificationMails = @( + technicalNotificationMails = @( "tech@contoso.com" ) } -Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params -``` -This example shows how to use the Update-MgOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Update-MgOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBranding.md index a52a4669fef..21ba99a080f 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBranding.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgOrganizationBranding Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - SignInPageText = "Default" - UsernameHintText = "DefaultHint" + signInPageText = "Default" + usernameHintText = "DefaultHint" } -Update-MgOrganizationBranding -OrganizationId $organizationId -BodyParameter $params -``` -This example shows how to use the Update-MgOrganizationBranding Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgOrganizationBranding -OrganizationId $organizationId -BodyParameter $params +``` +This example shows how to use the Update-MgOrganizationBranding Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBrandingLocalization.md index 9e02549df28..96b7bad2924 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganizationBrandingLocalization.md @@ -1,22 +1,28 @@ -### Example 1: Using the Update-MgOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - BackgroundColor = "#00000F" - SignInPageText = "Welcome to Contoso France" + backgroundColor = "#00000F" + signInPageText = "Welcome to Contoso France" } -Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params -``` -This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgOrganizationBrandingLocalization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement + $params = @{ - SignInPageText = "Welcome to Contoso France." - UsernameHintText = " " + signInPageText = "Welcome to Contoso France." + usernameHintText = " " } -Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params -``` -This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params +``` +This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md b/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md index 5dfe8e78c80..7cee214f52c 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance - -Get-MgBetaIdentityGovernanceTermOfUseAgreementFile -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). +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +Get-MgBetaIdentityGovernanceTermOfUseAgreementFile -AgreementId $agreementId +``` +This example shows how to use the Get-MgBetaBetaAgreementFile 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 7a953ec17e1..44191ab144b 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementConnectedOrganization.md @@ -1,14 +1,15 @@ -### Example 1: Using the Get-MgBetaEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -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). -### Example 2: Using the Get-MgBetaEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaEntitlementManagementConnectedOrganization -``` -This example shows how to use the Get-MgBetaEntitlementManagementConnectedOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +$params = @{ + displayName = "Connected organization new name" + description = "Connected organization new description" + state = "configured" +} + +Update-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaEntitlementManagementConnectedOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinition.md index 442d1ca8a93..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinition.md @@ -1,28 +1,17 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAccessReviewDefinition -Filter "contains(scope/microsoft.graph.accessReviewQueryScope/query, './members')" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAccessReviewDefinition -Top 100 -Skip 0 -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md index 87c3aa5b08b..1bf772276b8 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,21 +1,50 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -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). -### Example 2: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -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). -### Example 3: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet -```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. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +$params = @{ + scope = @{ + "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" + principalScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/v1.0/users" + queryType = "MicrosoftGraph" + } + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/v1.0/groups" + queryType = "MicrosoftGraph" + } + ) + resourceScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" + queryType = "MicrosoftGraph" + } + ) + } + reviewers = @( + @{ + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" + } + ) + fallbackReviewers = @( + @{ + query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + queryType = "MicrosoftGraph" + } + @{ + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" + } + ) +} + +Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstance 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 6ad52b14527..e3971e5d9e9 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,28 +1,18 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet -```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). -### Example 2: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet -```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). -### Example 3: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -ExpandProperty "insights" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -Top 100 -Skip 0 -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### 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-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: 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-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md index c49d1f83988..3be21bda120 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,21 +1,29 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -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). -### Example 2: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -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). -### Example 3: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +$params = @{ + "@odata.type" = "#microsoft.graph.accessReviewStage" + reviewers = @( + @{ + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" + } + ) + fallbackReviewers = @( + @{ + query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + queryType = "MicrosoftGraph" + } + @{ + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" + } + ) +} + +Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceStage 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 cde6b5412a6..61ead4a2031 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,21 +1,28 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```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). -### Example 2: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```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). -### Example 3: Using the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update a decision on an accessReviewInstance + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +$params = @{ + decision = "Approve" + justification = "This person is still on my team" +} + +Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a decision on an stage in a multi-stage access review + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +$params = @{ + decision = "Approve" + justification = "This person is still on my team" +} + +Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md index 74d2884ecd6..c8199e5fbe5 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -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). -### Example 2: Using the Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAccessReviewHistoryDefinition -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId +``` +This example shows how to use the Get-MgBetaBetaIdentityGovernanceAccessReviewHistoryDefinition 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 d6787a3cf57..7399b0d1fe6 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequest.md @@ -1,28 +1,9 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAppConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId -Filter "userConsentRequests/any(u:u/status eq 'InProgress')" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAppConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityGovernanceAppConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -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). -### Example 3: Using the Get-MgBetaIdentityGovernanceAppConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAppConsentRequest -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAppConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaIdentityGovernanceAppConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAppConsentRequest -Filter "userConsentRequests/any (u:u/status eq 'InProgress')" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAppConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId +``` +This example shows how to use the Get-MgBetaBetaIdentityGovernanceAppConsentRequest 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 547768f4331..1024a598f2b 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -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). -### Example 2: Using the Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId -Filter " (status eq 'Completed')" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId +``` +This example shows how to use the Get-MgBetaBetaIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md index 2308a9141bd..85460871d68 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackages/c0a74b4d-2694-4d5d-a964-1bee4ff0aaf2" + "@odata.id" = "https://graph.microsoft.com/v1.0/identityGovernance/entitlementManagement/accessPackages/c0a74b4d-2694-4d5d-a964-1bee4ff0aaf2" } -New-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef -AccessPackageId $accessPackageId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef -AccessPackageId $accessPackageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganization.md index 1afdb0bf315..72509e0620d 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganization.md @@ -1,19 +1,9 @@ -### Example 1: Using the New-MgBetaEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - DisplayName = "Connected organization name" - Description = "Connected organization description" - IdentitySources = @( - @{ - "@odata.type" = "#microsoft.graph.domainIdentitySource" - DomainName = "example.com" - DisplayName = "example.com" - } - ) - State = "proposed" -} -New-MgBetaEntitlementManagementConnectedOrganization -BodyParameter $params -``` -This example shows how to use the New-MgBetaEntitlementManagementConnectedOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaEntitlementManagementConnectedOrganization +``` +This example shows how to use the New-MgBetaBetaEntitlementManagementConnectedOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md index b4fd99ab5ad..b05e06561f2 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/users/{id}" + "@odata.id" = "https://graph.microsoft.com/v1.0/users/{id}" } -New-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md index d7ae72dee6a..ecfdb4f7f56 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - "@odata.id" = "https://graph.microsoft.com/beta/users/{id}" + "@odata.id" = "https://graph.microsoft.com/v1.0/users/{id}" } -New-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params -``` -This example shows how to use the New-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinition.md index f96f8572bb9..291d055be8e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinition.md @@ -1,282 +1,249 @@ -### Example 1: Using the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Create an access review on a group + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - DisplayName = "Review employee access to LinkedIn" - DescriptionForAdmins = "Review employee access to LinkedIn" - Scope = @{ + displayName = "Test create" + descriptionForAdmins = "New scheduled access review" + descriptionForReviewers = "If you have any questions, contact jerry@contoso.com" + scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" + queryType = "MicrosoftGraph" + } + reviewers = @( + @{ + query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" + queryType = "MicrosoftGraph" + } + ) + settings = @{ + mailNotificationsEnabled = $true + reminderNotificationsEnabled = $true + justificationRequiredOnApproval = $true + defaultDecisionEnabled = $false + defaultDecision = "None" + instanceDurationInDays = 1 + recommendationsEnabled = $true + recurrence = @{ + pattern = @{ + type = "weekly" + interval = 1 + } + range = @{ + type = "noEnd" + startDate = "2020-09-08T12:02:30.667Z" + } + } + } +} + +New-MgBetaIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityGovernanceAccessReviewDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an access review on all teams with inactive guest users + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +$params = @{ + displayName = "Review inactive guests on teams" + descriptionForAdmins = "Control guest user access to our teams." + descriptionForReviewers = "Information security is everyone's responsibility. Review our access policy for more." + instanceEnumerationScope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/groups?$filter=(groupTypes/any(c:c+eq+'Unified') and resourceProvisioningOptions/Any(x:x eq 'Team')')" + queryType = "MicrosoftGraph" + } + scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewInactiveUsersQueryScope" + query = "./members/microsoft.graph.user/?$filter=(userType eq 'Guest')" + queryType = "MicrosoftGraph" + inactiveDuration = "P30D" + } + reviewers = @( + @{ + query = "./owners" + queryType = "MicrosoftGraph" + } + ) + fallbackReviewers = @( + @{ + query = "/users/fc9a2c2b-1ddc-486d-a211-5fe8ca77fa1f" + queryType = "MicrosoftGraph" + } + ) + settings = @{ + mailNotificationsEnabled = $true + reminderNotificationsEnabled = $true + justificationRequiredOnApproval = $true + recommendationsEnabled = $true + instanceDurationInDays = 3 + recurrence = @{ + pattern = @{ + type = "absoluteMonthly" + dayOfMonth = 5 + interval = 3 + } + range = @{ + type = "noEnd" + startDate = "2020-05-04T00:00:00.000Z" + } + } + defaultDecisionEnabled = $true + defaultDecision = "Deny" + autoApplyDecisionsEnabled = $true + } +} + +New-MgBetaIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityGovernanceAccessReviewDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an access review of all users to an application + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +$params = @{ + displayName = "Review employee access to LinkedIn" + descriptionForAdmins = "Review employee access to LinkedIn" + scope = @{ "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" - PrincipalScopes = @( + principalScopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/users" - QueryType = "MicrosoftGraph" + query = "/users" + queryType = "MicrosoftGraph" } ) - ResourceScopes = @( + resourceScopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/servicePrincipals/bae11f90-7d5d-46ba-9f55-8112b59d92ae" - QueryType = "MicrosoftGraph" + query = "/servicePrincipals/bae11f90-7d5d-46ba-9f55-8112b59d92ae" + queryType = "MicrosoftGraph" } ) } - Reviewers = @( + reviewers = @( @{ - Query = "./manager" - QueryType = "MicrosoftGraph" - QueryRoot = "decisions" + query = "./manager" + queryType = "MicrosoftGraph" + queryRoot = "decisions" } ) - BackupReviewers = @( - @{ - Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" - QueryType = "MicrosoftGraph" - } + backupReviewers = @( ) - FallbackReviewers = @( + fallbackReviewers = @( @{ - Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" - QueryType = "MicrosoftGraph" + query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" + queryType = "MicrosoftGraph" } ) - Settings = @{ - MailNotificationsEnabled = $true - ReminderNotificationsEnabled = $true - JustificationRequiredOnApproval = $true - DefaultDecisionEnabled = $true - DefaultDecision = "Recommendation" - InstanceDurationInDays = 180 - AutoApplyDecisionsEnabled = $true - RecommendationsEnabled = $true - Recurrence = @{ - Pattern = @{ - Type = "absoluteMonthly" - Interval = 6 - DayOfMonth = 0 + settings = @{ + mailNotificationsEnabled = $true + reminderNotificationsEnabled = $true + justificationRequiredOnApproval = $true + defaultDecisionEnabled = $true + defaultDecision = "Recommendation" + instanceDurationInDays = 180 + autoApplyDecisionsEnabled = $true + recommendationsEnabled = $true + recurrence = @{ + pattern = @{ + type = "absoluteMonthly" + interval = 6 + dayOfMonth = 0 } - Range = @{ - Type = "numbered" - StartDate = "2021-05-05" - EndDate = "2022-05-05" + range = @{ + type = "numbered" + startDate = "2021-05-05" + endDate = "2022-05-05" } } } } -New-MgBetaIdentityGovernanceAccessReviewDefinition -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance + +New-MgBetaIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityGovernanceAccessReviewDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an access review on a group with multiple stages + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - DisplayName = "Group Multi-stage Access Review" - DescriptionForAdmins = "New scheduled access review" - DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" - Scope = @{ + displayName = "Group Multi-stage Access Review" + descriptionForAdmins = "New scheduled access review" + descriptionForReviewers = "If you have any questions, contact jerry@contoso.com" + scope = @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" - QueryType = "MicrosoftGraph" + query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" + queryType = "MicrosoftGraph" } - StageSettings = @( + stageSettings = @( @{ - StageId = "1" - DurationInDays = 2 - RecommendationsEnabled = $false - DecisionsThatWillMoveToNextStage = @( + stageId = "1" + durationInDays = 2 + recommendationsEnabled = $false + decisionsThatWillMoveToNextStage = @( "NotReviewed" "Approve" ) - Reviewers = @( + reviewers = @( @{ - Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" - QueryType = "MicrosoftGraph" + query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" + queryType = "MicrosoftGraph" } ) } @{ - StageId = "2" - DependsOn = @( + stageId = "2" + dependsOn = @( "1" ) - DurationInDays = 2 - RecommendationsEnabled = $true - Reviewers = @( + durationInDays = 2 + recommendationsEnabled = $true + reviewers = @( @{ - Query = "./manager" - QueryType = "MicrosoftGraph" - QueryRoot = "decisions" + query = "./manager" + queryType = "MicrosoftGraph" + queryRoot = "decisions" } ) - FallbackReviewers = @( + fallbackReviewers = @( @{ - Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" - QueryType = "MicrosoftGraph" + query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" + queryType = "MicrosoftGraph" } ) } ) - Settings = @{ - InstanceDurationInDays = 4 - Recurrence = @{ - Pattern = @{ - Type = "weekly" - Interval = 1 - } - Range = @{ - Type = "noEnd" - StartDate = "2020-09-08T12:02:30.667Z" - } - } - DecisionHistoriesForReviewersEnabled = $true - } -} -New-MgBetaIdentityGovernanceAccessReviewDefinition -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - DisplayName = "Review inactive guests on teams" - DescriptionForAdmins = "Control guest user access to our teams." - DescriptionForReviewers = "Information security is everyone's responsibility. Review our access policy for more." - InstanceEnumerationScope = @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/groups?$filter=(groupTypes/any(c:c+eq+'Unified') and resourceProvisioningOptions/Any(x:x eq 'Team')')" - QueryType = "MicrosoftGraph" - } - Scope = @{ - "@odata.type" = "#microsoft.graph.accessReviewInactiveUsersQueryScope" - Query = "./members/microsoft.graph.user/?$filter=(userType eq 'Guest')" - QueryType = "MicrosoftGraph" - InactiveDuration = "P30D" - } - Reviewers = @( - @{ - Query = "./owners" - QueryType = "MicrosoftGraph" - } - ) - FallbackReviewers = @( - @{ - Query = "/users/fc9a2c2b-1ddc-486d-a211-5fe8ca77fa1f" - QueryType = "MicrosoftGraph" - } - ) - Settings = @{ - MailNotificationsEnabled = $true - ReminderNotificationsEnabled = $true - JustificationRequiredOnApproval = $true - RecommendationsEnabled = $true - InstanceDurationInDays = 3 - Recurrence = @{ - Pattern = @{ - Type = "absoluteMonthly" - DayOfMonth = 5 - Interval = 3 - } - Range = @{ - Type = "noEnd" - StartDate = "2020-05-04T00:00:00.000Z" - } - } - DefaultDecisionEnabled = $true - DefaultDecision = "Deny" - AutoApplyDecisionsEnabled = $true - } -} -New-MgBetaIdentityGovernanceAccessReviewDefinition -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - DisplayName = "Test create" - DescriptionForAdmins = "New scheduled access review" - DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" - Scope = @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" - QueryType = "MicrosoftGraph" - } - Reviewers = @( - @{ - Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" - QueryType = "MicrosoftGraph" - } - ) - Settings = @{ - InstanceDurationInDays = 1 - Recurrence = @{ - Pattern = @{ - Type = "weekly" - Interval = 1 - } - Range = @{ - Type = "noEnd" - StartDate = "2020-09-08T12:02:30.667Z" - } - } - RecommendationInsightSettings = @( - @{ - "@odata.type" = "#microsoft.graph.userLastSignInRecommendationInsightSetting" - RecommendationLookBackDuration = "P30D" - SignInScope = "tenant" - } - @{ - "@odata.type" = "#microsoft.graph.groupPeerOutlierRecommendationInsightSettings" - } - ) - } -} -New-MgBetaIdentityGovernanceAccessReviewDefinition -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - DisplayName = "Test create" - DescriptionForAdmins = "New scheduled access review" - DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" - Scope = @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" - QueryType = "MicrosoftGraph" - } - Reviewers = @( - @{ - Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" - QueryType = "MicrosoftGraph" - } - ) - Settings = @{ - MailNotificationsEnabled = $true - ReminderNotificationsEnabled = $true - JustificationRequiredOnApproval = $true - DefaultDecisionEnabled = $false - DefaultDecision = "None" - InstanceDurationInDays = 1 - RecommendationsEnabled = $true - Recurrence = @{ - Pattern = @{ - Type = "weekly" - Interval = 1 + settings = @{ + mailNotificationsEnabled = $true + reminderNotificationsEnabled = $true + justificationRequiredOnApproval = $true + defaultDecisionEnabled = $false + defaultDecision = "None" + instanceDurationInDays = 4 + recurrence = @{ + pattern = @{ + type = "weekly" + interval = 1 } - Range = @{ - Type = "noEnd" - StartDate = "2020-09-08T12:02:30.667Z" + range = @{ + type = "noEnd" + startDate = "2020-09-08T12:02:30.667Z" } } + decisionHistoriesForReviewersEnabled = $true } } -New-MgBetaIdentityGovernanceAccessReviewDefinition -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityGovernanceAccessReviewDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md index 37343263e01..935daac3b1f 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,45 +1,36 @@ -### Example 1: Using the New-MgBetaIdentityGovernanceAccessReviewHistoryDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - DisplayName = "Last quarter's group reviews April 2021" - Decisions = @( + displayName = "Last quarter's group reviews April 2021" + decisions = @( "approve" "deny" "dontKnow" "notReviewed" "notNotified" ) - ScheduleSettings = @{ - ReportRange = "P1M" - Recurrence = @{ - Pattern = @{ - Type = "monthly" - Interval = 1 - } - Range = @{ - Type = "noEnd" - StartDate = "2018-08-03T21:02:30.667Z" - Count = - } - } - } - Scopes = @( + reviewHistoryPeriodStartDateTime = [System.DateTime]::Parse("2021-01-01T00:00:00Z") + reviewHistoryPeriodEndDateTime = [System.DateTime]::Parse("2021-04-30T23:59:59Z") + scopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - QueryType = "MicrosoftGraph" - Query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, 'accessPackageAssignments')" - QueryRoot = $null + queryType = "MicrosoftGraph" + query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, 'accessPackageAssignments')" + queryRoot = $null } @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - QueryType = "MicrosoftGraph" - Query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, '/groups')" - QueryRoot = $null + queryType = "MicrosoftGraph" + query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, '/groups')" + queryRoot = $null } ) } -New-MgBetaIdentityGovernanceAccessReviewHistoryDefinition -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaIdentityGovernanceAccessReviewHistoryDefinition -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewHistoryDefinitionInstance.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAppConsentRequest.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAppConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAppConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaAgreementFile.md b/src/Identity.Governance/beta/examples/Remove-MgBetaAgreementFile.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaAgreementFile.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaAgreementFile.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md index 3e64338e3ac..408046f4a40 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Remove-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef -AccessPackageId $accessPackageId -AccessPackageId1 $accessPackageId1 -``` -This example shows how to use the Remove-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Remove-MgBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef -AccessPackageId $accessPackageId -AccessPackageId1 $accessPackageId1 +``` +This example shows how to use the Remove-MgBetaBetaEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md index 4983b246d56..e9793e342cf 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Remove-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef -AccessPackageId $accessPackageId -GroupId $groupId -``` -This example shows how to use the Remove-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Remove-MgBetaEntitlementManagementAccessPackageIncompatibleGroupByRef -AccessPackageId $accessPackageId -GroupId $groupId +``` +This example shows how to use the Remove-MgBetaBetaEntitlementManagementAccessPackageIncompatibleGroupByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganization.md index 471d2d2c1c6..868dac16cdc 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganization.md @@ -1,7 +1,15 @@ -### Example 1: Using the Remove-MgBetaEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Remove-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -``` -This example shows how to use the Remove-MgBetaEntitlementManagementConnectedOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +$params = @{ + displayName = "Connected organization new name" + description = "Connected organization new description" + state = "configured" +} + +Update-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaEntitlementManagementConnectedOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md index caf3cee36af..a55c10163ac 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Remove-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Remove-MgBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md index 60103cb3abd..d2902bc4f70 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Remove-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Remove-MgBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinition.md index ca2d7be7c2b..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinition.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Remove-MgBetaIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAppConsentRequest.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAppConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAppConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaAgreementFile.md b/src/Identity.Governance/beta/examples/Update-MgBetaAgreementFile.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaAgreementFile.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaAgreementFile.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackage.md b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackage.md index de9d53ac8f8..ffe8bfc2497 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementAccessPackage.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaEntitlementManagementAccessPackage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - DisplayName = "Access Package New Name" + displayName = "Access Package New Name" } -Update-MgBetaEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEntitlementManagementAccessPackage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEntitlementManagementAccessPackage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementConnectedOrganization.md index 47b0efc9065..5df2a07ae25 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementConnectedOrganization.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgBetaEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - DisplayName = "Connected organization new name" - Description = "Connected organization new description" - State = "configured" + displayName = "Connected organization new name" + description = "Connected organization new description" + state = "configured" } -Update-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEntitlementManagementConnectedOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEntitlementManagementConnectedOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementSetting.md b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementSetting.md index 89fef58b21b..4fbd54d6083 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementSetting.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaEntitlementManagementSetting.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaEntitlementManagementSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - ExternalUserLifecycleAction = "None" + externalUserLifecycleAction = "None" } -Update-MgBetaEntitlementManagementSetting -BodyParameter $params -``` -This example shows how to use the Update-MgBetaEntitlementManagementSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaEntitlementManagementSetting -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaEntitlementManagementSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md index 5ebdcdc9a07..15394b0dcf3 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,47 +1,50 @@ -### Example 1: Using the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - Scope = @{ + scope = @{ "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" - PrincipalScopes = @( + principalScopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/v1.0/users" - QueryType = "MicrosoftGraph" + query = "/v1.0/users" + queryType = "MicrosoftGraph" } @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/v1.0/groups" - QueryType = "MicrosoftGraph" + query = "/v1.0/groups" + queryType = "MicrosoftGraph" } ) - ResourceScopes = @( + resourceScopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" - QueryType = "MicrosoftGraph" + query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" + queryType = "MicrosoftGraph" } ) } - Reviewers = @( + reviewers = @( @{ - Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - QueryType = "MicrosoftGraph" + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" } ) - FallbackReviewers = @( + fallbackReviewers = @( @{ - Query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - QueryType = "MicrosoftGraph" + query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + queryType = "MicrosoftGraph" } @{ - Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - QueryType = "MicrosoftGraph" + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" } ) } -Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 0ed72fd2d2c..966c7aaa76d 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,26 +1,29 @@ -### Example 1: Using the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ "@odata.type" = "#microsoft.graph.accessReviewStage" - Reviewers = @( + reviewers = @( @{ - Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - QueryType = "MicrosoftGraph" + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" } ) - FallbackReviewers = @( + fallbackReviewers = @( @{ - Query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - QueryType = "MicrosoftGraph" + query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + queryType = "MicrosoftGraph" } @{ - Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - QueryType = "MicrosoftGraph" + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" } ) } -Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index 7c2c3cfe3a5..ff02a5975cc 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,33 +1,28 @@ -### Example 1: Using the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Update a decision on an accessReviewInstance + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - Decision = "Approve" - Justification = "This person is still on my team" + decision = "Approve" + justification = "This person is still on my team" } -Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance + +Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a decision on an stage in a multi-stage access review + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - Decision = "Approve" - Justification = "This person is still on my team" + decision = "Approve" + justification = "This person is still on my team" } -Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -$params = @{ - Decision = "Approve" - Justification = "This person is still on my team" -} -Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAppConsentRequest.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAppConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAppConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md index 2c598ca7b98..f389086723a 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackage.md @@ -1,21 +1,13 @@ -### Example 1: Using the Get-MgEntitlementManagementAccessPackage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -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). -### Example 2: Using the Get-MgEntitlementManagementAccessPackage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -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). -### Example 3: Using the Get-MgEntitlementManagementAccessPackage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementAccessPackage -``` -This example shows how to use the Get-MgEntitlementManagementAccessPackage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "Access Package New Name" +} + +Update-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params +``` +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-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md index e2060b8a45e..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage -ApprovalId $approvalId -ApprovalStageId $approvalStageId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage -ApprovalId $approvalId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md index 43b0683798a..c1897ac787b 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgEntitlementManagementAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -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). -### Example 2: Using the Get-MgEntitlementManagementAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -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). -### Example 3: Using the Get-MgEntitlementManagementAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementAssignment -``` -This example shows how to use the Get-MgEntitlementManagementAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +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 63da8678912..817ea95ffc6 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentPolicy.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgEntitlementManagementAssignmentPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -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). -### Example 2: Using the Get-MgEntitlementManagementAssignmentPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementAssignmentPolicy -``` -This example shows how to use the Get-MgEntitlementManagementAssignmentPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +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 c0723aac771..096f1995a79 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgEntitlementManagementAssignmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -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). -### Example 2: Using the Get-MgEntitlementManagementAssignmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -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). -### Example 3: Using the Get-MgEntitlementManagementAssignmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementAssignmentRequest -``` -This example shows how to use the Get-MgEntitlementManagementAssignmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +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 15dca9a8afb..ef11d8ae061 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementCatalog.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgEntitlementManagementCatalog Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -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). -### Example 2: Using the Get-MgEntitlementManagementCatalog Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementCatalog -``` -This example shows how to use the Get-MgEntitlementManagementCatalog Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "Catalog One" +} + +Update-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params +``` +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.Governance/v1.0/examples/Get-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementConnectedOrganization.md index 10e9971e12e..0c086640a3e 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementConnectedOrganization.md @@ -1,14 +1,15 @@ -### Example 1: Using the Get-MgEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -``` -This example shows how to use the Get-MgEntitlementManagementConnectedOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementConnectedOrganization -``` -This example shows how to use the Get-MgEntitlementManagementConnectedOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "Connected organization new name" + description = "Connected organization new description" + state = "configured" +} + +Update-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the Get-MgEntitlementManagementConnectedOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSetting.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSetting.md index 0a604864430..5feab5dbeed 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSetting.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSetting.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgEntitlementManagementSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementSetting -``` -This example shows how to use the Get-MgEntitlementManagementSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + externalUserLifecycleAction = "None" +} + +Update-MgEntitlementManagementSetting -BodyParameter $params +``` +This example shows how to use the Get-MgEntitlementManagementSetting 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-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinition.md index c1c3a5bc264..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,28 +1,17 @@ -### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinition -Filter "contains(scope/microsoft.graph.accessReviewQueryScope/query, './members')" -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinition -Top 100 -Skip 0 -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 22c45c9e876..2515e29b701 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,21 +1,50 @@ -### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + scope = @{ + "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" + principalScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/v1.0/users" + queryType = "MicrosoftGraph" + } + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/v1.0/groups" + queryType = "MicrosoftGraph" + } + ) + resourceScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" + queryType = "MicrosoftGraph" + } + ) + } + reviewers = @( + @{ + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" + } + ) + fallbackReviewers = @( + @{ + query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + queryType = "MicrosoftGraph" + } + @{ + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" + } + ) +} + +Update-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 482c00a494f..e37d6ad8efd 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,21 +1,18 @@ -### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Retrieve a decision on an accessReviewInstance + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve a decision from a stage of a multi-stage access review + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 4764bacf290..6e0572a627d 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,21 +1,29 @@ -### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + "@odata.type" = "#microsoft.graph.accessReviewStage" + reviewers = @( + @{ + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" + } + ) + fallbackReviewers = @( + @{ + query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + queryType = "MicrosoftGraph" + } + @{ + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" + } + ) +} + +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index b1567ab4c77..f067d7a330b 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,21 +1,28 @@ -### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update a decision on an accessReviewInstance + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + decision = "Approve" + justification = "This person is still on my team" +} + +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a decision on an stage in a multi-stage access review + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + decision = "Approve" + justification = "This person is still on my team" +} + +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision 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-MgIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md index b34e64f97fe..bb8c665a030 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewHistoryDefinition -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAccessReviewHistoryDefinition -``` -This example shows how to use the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Get-MgIdentityGovernanceAccessReviewHistoryDefinition -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequest.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequest.md index 9d0900dc77f..dc932dfd27e 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequest.md @@ -1,28 +1,9 @@ -### Example 1: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId -Filter "userConsentRequests/any(u:u/status eq 'InProgress')" -``` -This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId -``` -This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAppConsentRequest -``` -This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAppConsentRequest -Filter "userConsentRequests/any (u:u/status eq 'InProgress')" -``` -This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Get-MgIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId +``` +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md index c8b8d1b5286..dc927203a0b 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId -``` -This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -``` -This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId -Filter " (status eq 'Completed')" -``` -This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId +``` +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md index 0efc2d732e7..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Identity.Governance +{{ Add output here }} +``` -Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage -ApprovalId $approvalId -``` -This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/New-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackage.md index 057b5f79783..7d375af6a08 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackage.md @@ -1,15 +1,18 @@ -### Example 1: Using the New-MgEntitlementManagementAccessPackage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - DisplayName = "sales reps" - Description = "outside sales representatives" - IsHidden = $false - Catalog = @{ - Id = "66584aae-98bb-48cc-9458-7bee5d2a6577" + displayName = "sales reps" + description = "outside sales representatives" + isHidden = $false + catalog = @{ + id = "66584aae-98bb-48cc-9458-7bee5d2a6577" } } -New-MgEntitlementManagementAccessPackage -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementAccessPackage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgEntitlementManagementAccessPackage -BodyParameter $params +``` +This example shows how to use the New-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/New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md index a6e32765933..617f981e150 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementAccessPackageIncompatibleAccessPackage -AccessPackageId $accessPackageId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/identityGovernance/entitlementManagement/accessPackages/c0a74b4d-2694-4d5d-a964-1bee4ff0aaf2" +} + +New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef -AccessPackageId $accessPackageId -BodyParameter $params ``` This example shows how to use the New-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md index 9b50e928077..bd39e9522df 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Identity.Governance -Get-MgEntitlementManagementAccessPackageIncompatibleGroup -AccessPackageId $accessPackageId +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/groups/c0a74b4d-2694-4d5d-a964-1bee4ff0aaf2" +} + +New-MgEntitlementManagementAccessPackageIncompatibleGroupByRef -AccessPackageId $accessPackageId -BodyParameter $params ``` This example shows how to use the New-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/New-MgEntitlementManagementAssignmentPolicy.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentPolicy.md index b6b95e1321b..50d82b40f06 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentPolicy.md @@ -1,159 +1,294 @@ -### Example 1: Using the New-MgEntitlementManagementAssignmentPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - DisplayName = "policy for external access requests" - Description = "policy for users from connected organizations to request access, with two stages of approval." - AllowedTargetScope = "allConfiguredConnectedOrganizationUsers" - SpecificAllowedTargets = @( + displayName = "New Policy" + description = "policy for assignment" + allowedTargetScope = "notSpecified" + specificAllowedTargets = @( ) - Expiration = @{ - Type = "noExpiration" + expiration = @{ + endDateTime = $null + duration = $null + type = "noExpiration" } - RequestorSettings = @{ - EnableTargetsToSelfAddAccess = $true - EnableTargetsToSelfUpdateAccess = $true - EnableTargetsToSelfRemoveAccess = $true - AllowCustomAssignmentSchedule = $false - EnableOnBehalfRequestorsToAddAccess = $false - EnableOnBehalfRequestorsToUpdateAccess = $false - EnableOnBehalfRequestorsToRemoveAccess = $false - OnBehalfRequestors = @( + requestorSettings = @{ + enableTargetsToSelfAddAccess = $false + enableTargetsToSelfUpdateAccess = $false + enableTargetsToSelfRemoveAccess = $false + allowCustomAssignmentSchedule = $true + enableOnBehalfRequestorsToAddAccess = $false + enableOnBehalfRequestorsToUpdateAccess = $false + enableOnBehalfRequestorsToRemoveAccess = $false + onBehalfRequestors = @( ) } - RequestApprovalSettings = @{ - IsApprovalRequiredForAdd = $true - IsApprovalRequiredForUpdate = $false - Stages = @( + requestApprovalSettings = @{ + isApprovalRequiredForAdd = $false + isApprovalRequiredForUpdate = $false + stages = @( + ) + } + accessPackage = @{ + id = "a2e1ca1e-4e56-47d2-9daa-e2ba8d12a82b" + } +} + +New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentPolicy 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.Governance + +$params = @{ + displayName = "policy for external access requests" + description = "policy for users from connected organizations to request access, with two stages of approval." + allowedTargetScope = "allConfiguredConnectedOrganizationUsers" + specificAllowedTargets = @( + ) + expiration = @{ + type = "noExpiration" + } + requestorSettings = @{ + enableTargetsToSelfAddAccess = $true + enableTargetsToSelfUpdateAccess = $true + enableTargetsToSelfRemoveAccess = $true + allowCustomAssignmentSchedule = $false + enableOnBehalfRequestorsToAddAccess = $false + enableOnBehalfRequestorsToUpdateAccess = $false + enableOnBehalfRequestorsToRemoveAccess = $false + onBehalfRequestors = @( + ) + } + requestApprovalSettings = @{ + isApprovalRequiredForAdd = $true + isApprovalRequiredForUpdate = $false + stages = @( @{ - DurationBeforeAutomaticDenial = "P14D" - IsApproverJustificationRequired = $false - IsEscalationEnabled = $false - DurationBeforeEscalation = "PT0S" - PrimaryApprovers = @( + durationBeforeAutomaticDenial = "P14D" + isApproverJustificationRequired = $false + isEscalationEnabled = $false + durationBeforeEscalation = "PT0S" + primaryApprovers = @( @{ "@odata.type" = "#microsoft.graph.internalSponsors" } ) - FallbackPrimaryApprovers = @( + fallbackPrimaryApprovers = @( @{ "@odata.type" = "#microsoft.graph.singleUser" - UserId = "7deff43e-1f17-44ef-9e5f-d516b0ba11d4" + userId = "7deff43e-1f17-44ef-9e5f-d516b0ba11d4" } @{ "@odata.type" = "#microsoft.graph.groupMembers" - GroupId = "1623f912-5e86-41c2-af47-39dd67582b66" + groupId = "1623f912-5e86-41c2-af47-39dd67582b66" } ) - EscalationApprovers = @( + escalationApprovers = @( ) - FallbackEscalationApprovers = @( + fallbackEscalationApprovers = @( ) } @{ - DurationBeforeAutomaticDenial = "P14D" - IsApproverJustificationRequired = $false - IsEscalationEnabled = $false - DurationBeforeEscalation = "PT0S" - PrimaryApprovers = @( + durationBeforeAutomaticDenial = "P14D" + isApproverJustificationRequired = $false + isEscalationEnabled = $false + durationBeforeEscalation = "PT0S" + primaryApprovers = @( ) - FallbackPrimaryApprovers = @( + fallbackPrimaryApprovers = @( @{ "@odata.type" = "#microsoft.graph.singleUser" - UserId = "46184453-e63b-4f20-86c2-c557ed5d5df9" + userId = "46184453-e63b-4f20-86c2-c557ed5d5df9" } @{ "@odata.type" = "#microsoft.graph.groupMembers" - GroupId = "1623f912-5e86-41c2-af47-39dd67582b66" + groupId = "1623f912-5e86-41c2-af47-39dd67582b66" } ) - EscalationApprovers = @( + escalationApprovers = @( ) - FallbackEscalationApprovers = @( + fallbackEscalationApprovers = @( ) } ) } - ReviewSettings = @{ - IsEnabled = $true - ExpirationBehavior = "keepAccess" - IsRecommendationEnabled = $true - IsReviewerJustificationRequired = $true - IsSelfReview = $false - Schedule = @{ - StartDateTime = [System.DateTime]::Parse("2022-07-02T06:59:59.998Z") - Expiration = @{ - Duration = "P14D" - Type = "afterDuration" + reviewSettings = @{ + isEnabled = $true + expirationBehavior = "keepAccess" + isRecommendationEnabled = $true + isReviewerJustificationRequired = $true + isSelfReview = $false + schedule = @{ + startDateTime = [System.DateTime]::Parse("2022-07-02T06:59:59.998Z") + expiration = @{ + duration = "P14D" + type = "afterDuration" } - Recurrence = @{ - Pattern = @{ - Type = "absoluteMonthly" - Interval = 3 - Month = 0 - DayOfMonth = 0 - DaysOfWeek = @( + recurrence = @{ + pattern = @{ + type = "absoluteMonthly" + interval = 3 + month = 0 + dayOfMonth = 0 + daysOfWeek = @( ) } - Range = @{ - Type = "noEnd" - NumberOfOccurrences = 0 + range = @{ + type = "noEnd" + numberOfOccurrences = 0 } } } - PrimaryReviewers = @( + primaryReviewers = @( @{ "@odata.type" = "#microsoft.graph.groupMembers" - GroupId = "1623f912-5e86-41c2-af47-39dd67582b66" + groupId = "1623f912-5e86-41c2-af47-39dd67582b66" } ) - FallbackReviewers = @( + fallbackReviewers = @( ) } - AccessPackage = @{ - Id = "a2e1ca1e-4e56-47d2-9daa-e2ba8d12a82b" + accessPackage = @{ + id = "a2e1ca1e-4e56-47d2-9daa-e2ba8d12a82b" } } -New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementAssignmentPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgEntitlementManagementAssignmentPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance + +New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentPolicy 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.Governance + $params = @{ - DisplayName = "New Policy" - Description = "policy for assignment" - AllowedTargetScope = "notSpecified" - SpecificAllowedTargets = @( + displayName = "Sales department users" + description = "All users from sales department" + allowedTargetScope = "specificDirectoryUsers" + specificAllowedTargets = @( + @{ + "@odata.type" = "#microsoft.graph.attributeRuleMembers" + description = "Membership rule for all users from sales department" + membershipRule = "(user.department -eq "Sales")" + } ) - Expiration = @{ - EndDateTime = $null - Duration = $null - Type = "noExpiration" + automaticRequestSettings = @{ + requestAccessForAllowedTargets = $true } - RequestorSettings = @{ - EnableTargetsToSelfAddAccess = $false - EnableTargetsToSelfUpdateAccess = $false - EnableTargetsToSelfRemoveAccess = $false - AllowCustomAssignmentSchedule = $true - EnableOnBehalfRequestorsToAddAccess = $false - EnableOnBehalfRequestorsToUpdateAccess = $false - EnableOnBehalfRequestorsToRemoveAccess = $false - OnBehalfRequestors = @( - ) + accessPackage = @{ + id = "8a36831e-1527-4b2b-aff2-81259a8d8e76" + } +} + +New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentPolicy 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.Governance + +$params = @{ + displayName = "A Policy With Questions" + description = "" + allowedTargetScope = "allMemberUsers" + expiration = @{ + type = "noExpiration" + } + requestorSettings = @{ + enableTargetsToSelfAddAccess = "true" + enableTargetsToSelfUpdateAccess = "true" + enableTargetsToSelfRemoveAccess = "true" } - RequestApprovalSettings = @{ - IsApprovalRequiredForAdd = $false - IsApprovalRequiredForUpdate = $false - Stages = @( + requestApprovalSettings = @{ + isApprovalRequiredForAdd = "true" + isApprovalRequiredForUpdate = "true" + stages = @( + @{ + durationBeforeAutomaticDenial = "P7D" + isApproverJustificationRequired = "false" + isEscalationEnabled = "false" + fallbackPrimaryApprovers = @( + ) + escalationApprovers = @( + ) + fallbackEscalationApprovers = @( + ) + primaryApprovers = @( + @{ + "@odata.type" = "#microsoft.graph.singleUser" + userId = "08a551cb-575a-4343-b914-f6e42798bd20" + } + ) + } ) } - AccessPackage = @{ - Id = "a2e1ca1e-4e56-47d2-9daa-e2ba8d12a82b" + questions = @( + @{ + "@odata.type" = "#microsoft.graph.accessPackageMultipleChoiceQuestion" + sequence = "1" + isRequired = "true" + isAnswerEditable = "true" + text = "What country are you working from?" + isMultipleSelectionAllowed = "false" + choices = @( + @{ + "@odata.type" = "microsoft.graph.accessPackageAnswerChoice" + actualValue = "KE" + text = "Kenya" + } + @{ + "@odata.type" = "microsoft.graph.accessPackageAnswerChoice" + actualValue = "US" + text = "United States" + } + @{ + "@odata.type" = "microsoft.graph.accessPackageAnswerChoice" + actualValue = "GY" + text = "Guyana" + } + @{ + "@odata.type" = "microsoft.graph.accessPackageAnswerChoice" + actualValue = "BD" + text = "Bangladesh" + } + @{ + "@odata.type" = "microsoft.graph.accessPackageAnswerChoice" + actualValue = "JP" + text = "Japan" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.accessPackageTextInputQuestion" + sequence = "2" + isRequired = "true" + isAnswerEditable = "true" + text = "What do you do for work?" + localizations = @( + @{ + languageCode = "fr-CA" + text = "Que fais-tu comme travail?" + } + ) + isSingleLineQuestion = "false" + regexPattern = "[a-zA-Z]+[a-zA-Z\s]*" + } + ) + accessPackage = @{ + id = "977c7ff4-ef8f-4910-9d31-49048ddf3120" } } -New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementAssignmentPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params +``` +This example shows how to use the New-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/New-MgEntitlementManagementAssignmentRequest.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentRequest.md index dd3451a81d6..ea25673da50 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentRequest.md @@ -1,69 +1,106 @@ -### Example 1: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - RequestType = "AdminAdd" - Assignment = @{ - TargetId = "46184453-e63b-4f20-86c2-c557ed5d5df9" - AssignmentPolicyId = "2264bf65-76ba-417b-a27d-54d291f0cbc8" - AccessPackageId = "a914b616-e04e-476b-aa37-91038f0b165b" + requestType = "adminRemove" + assignment = @{ + id = "a6bb6942-3ae1-4259-9908-0133aaee9377" } } -New-MgEntitlementManagementAssignmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance + +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentRequest 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.Governance + $params = @{ - RequestType = "AdminAdd" - Assignment = @{ - TargetId = "46184453-e63b-4f20-86c2-c557ed5d5df9" - AssignmentPolicyId = "2264bf65-76ba-417b-a27d-54d291f0cbc8" - AccessPackageId = "a914b616-e04e-476b-aa37-91038f0b165b" + requestType = "userAdd" + assignment = @{ + accessPackageId = "d7be3253-b9c6-4fab-adef-30d30de8da2b" } } -New-MgEntitlementManagementAssignmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance + +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentRequest 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.Governance + $params = @{ - RequestType = "AdminRemove" - Assignment = @{ - Id = "a6bb6942-3ae1-4259-9908-0133aaee9377" + "@odata.type" = "#microsoft.graph.accessPackageAssignmentRequest" + requestType = "userAdd" + answers = @( + @{ + "@odata.type" = "#microsoft.graph.accessPackageAnswerString" + displayValue = "This is the answer to a multiple choice question" + value = "MultipleChoiceAnswerValue" + answeredQuestion = @{ + "@odata.type" = "#microsoft.graph.accessPackageMultipleChoiceQuestion" + id = "8fe745e7-80b2-490d-bd22-4e708c77288c" + } + } + @{ + "@odata.type" = "#microsoft.graph.accessPackageAnswerString" + value = "This is my answer to a text input question." + displayValue = "This is my answer." + answeredQuestion = @{ + "@odata.type" = "#microsoft.graph.accessPackageTextInputQuestion" + id = "7aaa18c9-8e4f-440f-bd5a-3a7ce312cbe6" + } + } + ) + assignment = @{ + accessPackageId = "977c7ff4-ef8f-4910-9d31-49048ddf3120" } } -New-MgEntitlementManagementAssignmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance + +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentRequest 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.Governance + $params = @{ - RequestType = "userAdd" - Assignment = @{ - AccessPackageId = "d7be3253-b9c6-4fab-adef-30d30de8da2b" + "@odata.type" = "#microsoft.graph.accessPackageAssignmentRequest" + id = "7a6ab703-0780-4b37-8445-81f679b2d75c" + requestType = "adminUpdate" + answers = @( + @{ + "@odata.type" = "#microsoft.graph.accessPackageAnswerString" + value = "UpdatedAnswerValue" + answeredQuestion = @{ + "@odata.type" = "#microsoft.graph.accessPackageMultipleChoiceQuestion" + id = "8fe745e7-80b2-490d-bd22-4e708c77288c" + } + } + @{ + "@odata.type" = "#microsoft.graph.accessPackageAnswerString" + value = "My updated answer." + displayValue = "This is my updated answer to the question." + answeredQuestion = @{ + "@odata.type" = "#microsoft.graph.accessPackageTextInputQuestion" + id = "7aaa18c9-8e4f-440f-bd5a-3a7ce312cbe6" + } + } + ) + assignment = @{ + id = "44c741c1-2cf4-40db-83b6-e0112f8e5a83" } } -New-MgEntitlementManagementAssignmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - RequestType = "userAdd" - Assignment = @{ - AccessPackageId = "d7be3253-b9c6-4fab-adef-30d30de8da2b" - } -} -New-MgEntitlementManagementAssignmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params +``` +This example shows how to use the New-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/New-MgEntitlementManagementCatalog.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementCatalog.md index 9c1b9228cfe..4f4806a96cf 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementCatalog.md @@ -1,13 +1,16 @@ -### Example 1: Using the New-MgEntitlementManagementCatalog Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - DisplayName = "sales" - Description = "for employees working with sales and outside sales partners" - State = "published" - IsExternallyVisible = $true + displayName = "sales" + description = "for employees working with sales and outside sales partners" + state = "published" + isExternallyVisible = $true } -New-MgEntitlementManagementCatalog -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementCatalog Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgEntitlementManagementCatalog -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementCatalog Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganization.md index 6615b36b19b..e32d8ac57ef 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganization.md @@ -1,19 +1,9 @@ -### Example 1: Using the New-MgEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - DisplayName = "Connected organization name" - Description = "Connected organization description" - IdentitySources = @( - @{ - "@odata.type" = "#microsoft.graph.domainIdentitySource" - DomainName = "example.com" - DisplayName = "example.com" - } - ) - State = "proposed" -} -New-MgEntitlementManagementConnectedOrganization -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementConnectedOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementConnectedOrganization +``` +This example shows how to use the New-MgEntitlementManagementConnectedOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md index 59042e6ddde..961ceaddb50 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/users/{id}" } -New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md index d6524b48b42..6c36e58cb9d 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/users/{id}" } -New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params -``` -This example shows how to use the New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceAccessReviewDefinition.md index 23590d2c53c..5fc2a3df3ae 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,237 +1,249 @@ -### Example 1: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Create an access review on a group + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - DisplayName = "Review employee access to LinkedIn" - DescriptionForAdmins = "Review employee access to LinkedIn" - Scope = @{ + displayName = "Test create" + descriptionForAdmins = "New scheduled access review" + descriptionForReviewers = "If you have any questions, contact jerry@contoso.com" + scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" + queryType = "MicrosoftGraph" + } + reviewers = @( + @{ + query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" + queryType = "MicrosoftGraph" + } + ) + settings = @{ + mailNotificationsEnabled = $true + reminderNotificationsEnabled = $true + justificationRequiredOnApproval = $true + defaultDecisionEnabled = $false + defaultDecision = "None" + instanceDurationInDays = 1 + recommendationsEnabled = $true + recurrence = @{ + pattern = @{ + type = "weekly" + interval = 1 + } + range = @{ + type = "noEnd" + startDate = "2020-09-08T12:02:30.667Z" + } + } + } +} + +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an access review on all teams with inactive guest users + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "Review inactive guests on teams" + descriptionForAdmins = "Control guest user access to our teams." + descriptionForReviewers = "Information security is everyone's responsibility. Review our access policy for more." + instanceEnumerationScope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + query = "/groups?$filter=(groupTypes/any(c:c+eq+'Unified') and resourceProvisioningOptions/Any(x:x eq 'Team')')" + queryType = "MicrosoftGraph" + } + scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewInactiveUsersQueryScope" + query = "./members/microsoft.graph.user/?$filter=(userType eq 'Guest')" + queryType = "MicrosoftGraph" + inactiveDuration = "P30D" + } + reviewers = @( + @{ + query = "./owners" + queryType = "MicrosoftGraph" + } + ) + fallbackReviewers = @( + @{ + query = "/users/fc9a2c2b-1ddc-486d-a211-5fe8ca77fa1f" + queryType = "MicrosoftGraph" + } + ) + settings = @{ + mailNotificationsEnabled = $true + reminderNotificationsEnabled = $true + justificationRequiredOnApproval = $true + recommendationsEnabled = $true + instanceDurationInDays = 3 + recurrence = @{ + pattern = @{ + type = "absoluteMonthly" + dayOfMonth = 5 + interval = 3 + } + range = @{ + type = "noEnd" + startDate = "2020-05-04T00:00:00.000Z" + } + } + defaultDecisionEnabled = $true + defaultDecision = "Deny" + autoApplyDecisionsEnabled = $true + } +} + +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create an access review of all users to an application + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "Review employee access to LinkedIn" + descriptionForAdmins = "Review employee access to LinkedIn" + scope = @{ "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" - PrincipalScopes = @( + principalScopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/users" - QueryType = "MicrosoftGraph" + query = "/users" + queryType = "MicrosoftGraph" } ) - ResourceScopes = @( + resourceScopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/servicePrincipals/bae11f90-7d5d-46ba-9f55-8112b59d92ae" - QueryType = "MicrosoftGraph" + query = "/servicePrincipals/bae11f90-7d5d-46ba-9f55-8112b59d92ae" + queryType = "MicrosoftGraph" } ) } - Reviewers = @( + reviewers = @( @{ - Query = "./manager" - QueryType = "MicrosoftGraph" - QueryRoot = "decisions" + query = "./manager" + queryType = "MicrosoftGraph" + queryRoot = "decisions" } ) - BackupReviewers = @( + backupReviewers = @( ) - FallbackReviewers = @( + fallbackReviewers = @( @{ - Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" - QueryType = "MicrosoftGraph" + query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" + queryType = "MicrosoftGraph" } ) - Settings = @{ - MailNotificationsEnabled = $true - ReminderNotificationsEnabled = $true - JustificationRequiredOnApproval = $true - DefaultDecisionEnabled = $true - DefaultDecision = "Recommendation" - InstanceDurationInDays = 180 - AutoApplyDecisionsEnabled = $true - RecommendationsEnabled = $true - Recurrence = @{ - Pattern = @{ - Type = "absoluteMonthly" - Interval = 6 - DayOfMonth = 0 + settings = @{ + mailNotificationsEnabled = $true + reminderNotificationsEnabled = $true + justificationRequiredOnApproval = $true + defaultDecisionEnabled = $true + defaultDecision = "Recommendation" + instanceDurationInDays = 180 + autoApplyDecisionsEnabled = $true + recommendationsEnabled = $true + recurrence = @{ + pattern = @{ + type = "absoluteMonthly" + interval = 6 + dayOfMonth = 0 } - Range = @{ - Type = "numbered" - StartDate = "2021-05-05" - EndDate = "2022-05-05" + range = @{ + type = "numbered" + startDate = "2021-05-05" + endDate = "2022-05-05" } } } } -New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params -``` -This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance + +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an access review on a group with multiple stages + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - DisplayName = "Group Multi-stage Access Review" - DescriptionForAdmins = "New scheduled access review" - DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" - Scope = @{ + displayName = "Group Multi-stage Access Review" + descriptionForAdmins = "New scheduled access review" + descriptionForReviewers = "If you have any questions, contact jerry@contoso.com" + scope = @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" - QueryType = "MicrosoftGraph" + query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" + queryType = "MicrosoftGraph" } - StageSettings = @( + stageSettings = @( @{ - StageId = "1" - DurationInDays = 2 - RecommendationsEnabled = $false - DecisionsThatWillMoveToNextStage = @( + stageId = "1" + durationInDays = 2 + recommendationsEnabled = $false + decisionsThatWillMoveToNextStage = @( "NotReviewed" "Approve" ) - Reviewers = @( + reviewers = @( @{ - Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" - QueryType = "MicrosoftGraph" + query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" + queryType = "MicrosoftGraph" } ) } @{ - StageId = "2" - DependsOn = @( + stageId = "2" + dependsOn = @( "1" ) - DurationInDays = 2 - RecommendationsEnabled = $true - Reviewers = @( + durationInDays = 2 + recommendationsEnabled = $true + reviewers = @( @{ - Query = "./manager" - QueryType = "MicrosoftGraph" - QueryRoot = "decisions" + query = "./manager" + queryType = "MicrosoftGraph" + queryRoot = "decisions" } ) - FallbackReviewers = @( + fallbackReviewers = @( @{ - Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" - QueryType = "MicrosoftGraph" + query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" + queryType = "MicrosoftGraph" } ) } ) - Settings = @{ - MailNotificationsEnabled = $true - ReminderNotificationsEnabled = $true - JustificationRequiredOnApproval = $true - DefaultDecisionEnabled = $false - DefaultDecision = "None" - InstanceDurationInDays = 4 - Recurrence = @{ - Pattern = @{ - Type = "weekly" - Interval = 1 - } - Range = @{ - Type = "noEnd" - StartDate = "2020-09-08T12:02:30.667Z" - } - } - DecisionHistoriesForReviewersEnabled = $true - } -} -New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params -``` -This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - DisplayName = "Review inactive guests on teams" - DescriptionForAdmins = "Control guest user access to our teams." - DescriptionForReviewers = "Information security is everyone's responsibility. Review our access policy for more." - InstanceEnumerationScope = @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/groups?$filter=(groupTypes/any(c:c+eq+'Unified') and resourceProvisioningOptions/Any(x:x eq 'Team')')" - QueryType = "MicrosoftGraph" - } - Scope = @{ - "@odata.type" = "#microsoft.graph.accessReviewInactiveUsersQueryScope" - Query = "./members/microsoft.graph.user/?$filter=(userType eq 'Guest')" - QueryType = "MicrosoftGraph" - InactiveDuration = "P30D" - } - Reviewers = @( - @{ - Query = "./owners" - QueryType = "MicrosoftGraph" - } - ) - FallbackReviewers = @( - @{ - Query = "/users/fc9a2c2b-1ddc-486d-a211-5fe8ca77fa1f" - QueryType = "MicrosoftGraph" - } - ) - Settings = @{ - MailNotificationsEnabled = $true - ReminderNotificationsEnabled = $true - JustificationRequiredOnApproval = $true - RecommendationsEnabled = $true - InstanceDurationInDays = 3 - Recurrence = @{ - Pattern = @{ - Type = "absoluteMonthly" - DayOfMonth = 5 - Interval = 3 - } - Range = @{ - Type = "noEnd" - StartDate = "2020-05-04T00:00:00.000Z" - } - } - DefaultDecisionEnabled = $true - DefaultDecision = "Deny" - AutoApplyDecisionsEnabled = $true - } -} -New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params -``` -This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - DisplayName = "Test create" - DescriptionForAdmins = "New scheduled access review" - DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" - Scope = @{ - "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" - QueryType = "MicrosoftGraph" - } - Reviewers = @( - @{ - Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" - QueryType = "MicrosoftGraph" - } - ) - Settings = @{ - MailNotificationsEnabled = $true - ReminderNotificationsEnabled = $true - JustificationRequiredOnApproval = $true - DefaultDecisionEnabled = $false - DefaultDecision = "None" - InstanceDurationInDays = 1 - RecommendationsEnabled = $true - Recurrence = @{ - Pattern = @{ - Type = "weekly" - Interval = 1 + settings = @{ + mailNotificationsEnabled = $true + reminderNotificationsEnabled = $true + justificationRequiredOnApproval = $true + defaultDecisionEnabled = $false + defaultDecision = "None" + instanceDurationInDays = 4 + recurrence = @{ + pattern = @{ + type = "weekly" + interval = 1 } - Range = @{ - Type = "noEnd" - StartDate = "2020-09-08T12:02:30.667Z" + range = @{ + type = "noEnd" + startDate = "2020-09-08T12:02:30.667Z" } } + decisionHistoriesForReviewersEnabled = $true } } -New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params -``` -This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md index 6b8e7b80cd2..88325865947 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,45 +1,36 @@ -### Example 1: Using the New-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - DisplayName = "Last quarter's group reviews April 2021" - Decisions = @( + displayName = "Last quarter's group reviews April 2021" + decisions = @( "approve" "deny" "dontKnow" "notReviewed" "notNotified" ) - ScheduleSettings = @{ - ReportRange = "P1M" - Recurrence = @{ - Pattern = @{ - Type = "monthly" - Interval = 1 - } - Range = @{ - Type = "noEnd" - StartDate = "2018-08-03T21:02:30.667Z" - Count = - } - } - } - Scopes = @( + reviewHistoryPeriodStartDateTime = [System.DateTime]::Parse("2021-01-01T00:00:00Z") + reviewHistoryPeriodEndDateTime = [System.DateTime]::Parse("2021-04-30T23:59:59Z") + scopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - QueryType = "MicrosoftGraph" - Query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, 'accessPackageAssignments')" - QueryRoot = $null + queryType = "MicrosoftGraph" + query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, 'accessPackageAssignments')" + queryRoot = $null } @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - QueryType = "MicrosoftGraph" - Query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, '/groups')" - QueryRoot = $null + queryType = "MicrosoftGraph" + query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, '/groups')" + queryRoot = $null } ) } -New-MgIdentityGovernanceAccessReviewHistoryDefinition -BodyParameter $params -``` -This example shows how to use the New-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgIdentityGovernanceAccessReviewHistoryDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackage.md index 42fb5c27863..875305637a8 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackage.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgEntitlementManagementAccessPackage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Remove-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -``` -This example shows how to use the Remove-MgEntitlementManagementAccessPackage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "Access Package New Name" +} + +Update-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params +``` +This example shows how to use the Remove-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/Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md index 093355d11d5..8a122398716 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef -AccessPackageId $accessPackageId -AccessPackageId1 $accessPackageId1 +``` +This example shows how to use the Remove-MgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md index 093355d11d5..13578b6f34e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef -AccessPackageId $accessPackageId -GroupId $groupId +``` +This example shows how to use the Remove-MgEntitlementManagementAccessPackageIncompatibleGroupByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignment.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignment.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignmentPolicy.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignmentPolicy.md index 2562cccae98..eeb7312729a 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignmentPolicy.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgEntitlementManagementAssignmentPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Remove-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId -``` -This example shows how to use the Remove-MgEntitlementManagementAssignmentPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId +``` +This example shows how to use the Remove-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/Remove-MgEntitlementManagementAssignmentRequest.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignmentRequest.md index ca01cdfc165..f8a21590c0c 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementAssignmentRequest.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgEntitlementManagementAssignmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Remove-MgEntitlementManagementAssignmentRequest -AccessPackageAssignmentRequestId $accessPackageAssignmentRequestId -``` -This example shows how to use the Remove-MgEntitlementManagementAssignmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAssignmentRequest -AccessPackageAssignmentRequestId $accessPackageAssignmentRequestId +``` +This example shows how to use the Remove-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/Remove-MgEntitlementManagementCatalog.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementCatalog.md index f615ed0a665..a0d9819bb3a 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementCatalog.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgEntitlementManagementCatalog Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Remove-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -``` -This example shows how to use the Remove-MgEntitlementManagementCatalog Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "Catalog One" +} + +Update-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params +``` +This example shows how to use the Remove-MgEntitlementManagementCatalog Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganization.md index feca4fdd7af..43748936b58 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganization.md @@ -1,7 +1,15 @@ -### Example 1: Using the Remove-MgEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Remove-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -``` -This example shows how to use the Remove-MgEntitlementManagementConnectedOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "Connected organization new name" + description = "Connected organization new description" + state = "configured" +} + +Update-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the Remove-MgEntitlementManagementConnectedOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md index b42d7c7f4d3..990dfe2ac8f 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md index 33e8ec27a51..fb0cc161b1b 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinition.md index 6cbaec7fc58..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgIdentityGovernanceAccessReviewDefinition Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.Governance -Remove-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgIdentityGovernanceAccessReviewDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewHistoryDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequest.md b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Set-MgEntitlementManagementAssignmentPolicy.md b/src/Identity.Governance/v1.0/examples/Set-MgEntitlementManagementAssignmentPolicy.md index e68a41864c1..d4e9c42b7c8 100644 --- a/src/Identity.Governance/v1.0/examples/Set-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/v1.0/examples/Set-MgEntitlementManagementAssignmentPolicy.md @@ -1,62 +1,9 @@ -### Example 1: Using the Set-MgEntitlementManagementAssignmentPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - Id = "87e1c7f7-c7f7-87e1-f7c7-e187f7c7e187" - DisplayName = "All Users" - Description = "All users can request for access to the directory." - AllowedTargetScope = "allDirectoryUsers" - AutomaticRequestSettings = $null - SpecificAllowedTargets = @( - ) - Expiration = @{ - Type = "noExpiration" - } - RequestorSettings = @{ - EnableTargetsToSelfAddAccess = $true - EnableTargetsToSelfUpdateAccess = $false - EnableTargetsToSelfRemoveAccess = $true - AllowCustomAssignmentSchedule = $false - EnableOnBehalfRequestorsToAddAccess = $false - EnableOnBehalfRequestorsToUpdateAccess = $false - EnableOnBehalfRequestorsToRemoveAccess = $false - OnBehalfRequestors = @( - ) - } - RequestApprovalSettings = @{ - IsApprovalRequiredForAdd = $true - IsApprovalRequiredForUpdate = $false - Stages = @( - @{ - DurationBeforeAutomaticDenial = "P2D" - IsApproverJustificationRequired = $false - IsEscalationEnabled = $false - DurationBeforeEscalation = "PT0S" - PrimaryApprovers = @( - @{ - "@odata.type" = "#microsoft.graph.requestorManager" - ManagerLevel = - } - ) - FallbackPrimaryApprovers = @( - @{ - "@odata.type" = "#microsoft.graph.singleUser" - UserId = "e6bf4d7d-6824-4dd0-809d-5bf42d4817c2" - Description = "user" - } - ) - EscalationApprovers = @( - ) - FallbackEscalationApprovers = @( - ) - } - ) - } - AccessPackage = @{ - Id = "49d2c59b-0a81-463d-a8ec-ddad3935d8a0" - } -} -Set-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId -BodyParameter $params -``` -This example shows how to use the Set-MgEntitlementManagementAssignmentPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + +Get-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId +``` +This example shows how to use the Set-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/Update-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackage.md index dde105e5dba..4e71db888dd 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementAccessPackage.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgEntitlementManagementAccessPackage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - DisplayName = "Access Package New Name" + displayName = "Access Package New Name" } -Update-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params -``` -This example shows how to use the Update-MgEntitlementManagementAccessPackage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params +``` +This example shows how to use the Update-MgEntitlementManagementAccessPackage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementCatalog.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementCatalog.md index acf610fb403..dbe24b72da7 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementCatalog.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgEntitlementManagementCatalog Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - DisplayName = "Catalog One" + displayName = "Catalog One" } -Update-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params -``` -This example shows how to use the Update-MgEntitlementManagementCatalog Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params +``` +This example shows how to use the Update-MgEntitlementManagementCatalog Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementConnectedOrganization.md index 3ece92d710d..96506c167c1 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementConnectedOrganization.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgEntitlementManagementConnectedOrganization Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - DisplayName = "Connected organization new name" - Description = "Connected organization new description" - State = "configured" + displayName = "Connected organization new name" + description = "Connected organization new description" + state = "configured" } -Update-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params -``` -This example shows how to use the Update-MgEntitlementManagementConnectedOrganization Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params +``` +This example shows how to use the Update-MgEntitlementManagementConnectedOrganization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSetting.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSetting.md index ad9d0ca1b55..d31dd7b7155 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSetting.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSetting.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgEntitlementManagementSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - ExternalUserLifecycleAction = "None" + externalUserLifecycleAction = "None" } -Update-MgEntitlementManagementSetting -BodyParameter $params -``` -This example shows how to use the Update-MgEntitlementManagementSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgEntitlementManagementSetting -BodyParameter $params +``` +This example shows how to use the Update-MgEntitlementManagementSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 418a6ea2988..f502ec22f5b 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,47 +1,50 @@ -### Example 1: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - Scope = @{ + scope = @{ "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" - PrincipalScopes = @( + principalScopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/v1.0/users" - QueryType = "MicrosoftGraph" + query = "/v1.0/users" + queryType = "MicrosoftGraph" } @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/v1.0/groups" - QueryType = "MicrosoftGraph" + query = "/v1.0/groups" + queryType = "MicrosoftGraph" } ) - ResourceScopes = @( + resourceScopes = @( @{ "@odata.type" = "#microsoft.graph.accessReviewQueryScope" - Query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" - QueryType = "MicrosoftGraph" + query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" + queryType = "MicrosoftGraph" } ) } - Reviewers = @( + reviewers = @( @{ - Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - QueryType = "MicrosoftGraph" + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" } ) - FallbackReviewers = @( + fallbackReviewers = @( @{ - Query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - QueryType = "MicrosoftGraph" + query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + queryType = "MicrosoftGraph" } @{ - Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - QueryType = "MicrosoftGraph" + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" } ) } -Update-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index c8074176ebd..30e5dc7d07a 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,26 +1,29 @@ -### Example 1: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ "@odata.type" = "#microsoft.graph.accessReviewStage" - Reviewers = @( + reviewers = @( @{ - Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - QueryType = "MicrosoftGraph" + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" } ) - FallbackReviewers = @( + fallbackReviewers = @( @{ - Query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" - QueryType = "MicrosoftGraph" + query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + queryType = "MicrosoftGraph" } @{ - Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" - QueryType = "MicrosoftGraph" + query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + queryType = "MicrosoftGraph" } ) } -Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index b4985a58038..c34be3d6f78 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,33 +1,28 @@ -### Example 1: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance +### Example 1: Update a decision on an accessReviewInstance + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - Decision = "Approve" - Justification = "This person is still on my team" + decision = "Approve" + justification = "This person is still on my team" } -Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance + +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a decision on an stage in a multi-stage access review + +```powershell Import-Module Microsoft.Graph.Identity.Governance + $params = @{ - Decision = "Approve" - Justification = "This person is still on my team" + decision = "Approve" + justification = "This person is still on my team" } -Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.Governance -$params = @{ - Decision = "Approve" - Justification = "This person is still on my team" -} -Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewHistoryDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequest.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaDataPolicyOperation.md b/src/Identity.SignIns/beta/examples/Get-MgBetaDataPolicyOperation.md index 94f4fc60387..2249a9d6650 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaDataPolicyOperation.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaDataPolicyOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaDataPolicyOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId -``` -This example shows how to use the Get-MgBetaDataPolicyOperation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId +``` +This example shows how to use the Get-MgBetaBetaDataPolicyOperation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityApiConnector.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityApiConnector.md index 112d742da05..f275b92468a 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityApiConnector.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityApiConnector.md @@ -1,14 +1,36 @@ -### Example 1: Using the Get-MgBetaIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -``` -This example shows how to use the Get-MgBetaIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityApiConnector -``` -This example shows how to use the Get-MgBetaIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Changing display name, targetUrl, and username & password used for basic authentication + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + displayName = "New Test API" + targetUrl = "https://otherapi.com/api/endpoint" + authenticationConfiguration = @{ + "@odata.type" = "microsoft.graph.basicAuthentication" + username = "<NEW_USERNAME>" + password = "<NEW_PASSWORD>" + } +} + +Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Changing API connector to use client certificate authentication + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + authenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + password = "secret" + } +} + +Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlow.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlow.md index f3c2fdcf2c0..876d73ec5f3 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlow.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgBetaIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -This example shows how to use the Get-MgBetaIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityB2XUserFlow -ExpandProperty "identityProviders" -``` -This example shows how to use the Get-MgBetaIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityB2XUserFlow -``` -This example shows how to use the Get-MgBetaIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId +``` +This example shows how to use the Get-MgBetaBetaIdentityB2XUserFlow Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowIdentityProvider.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowIdentityProvider.md index 900a7fd0e18..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowIdentityProvider.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowIdentityProvider.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgBetaIdentityB2XUserFlowIdentityProvider Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityB2XUserFlowIdentityProvider -B2xIdentityUserFlowId $b2xIdentityUserFlowId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaIdentityB2XUserFlowIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowLanguage.md index a449cae75e2..80244fe01f3 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowLanguage.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaIdentityB2XUserFlowLanguage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -This example shows how to use the Get-MgBetaIdentityB2XUserFlowLanguage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId +``` +This example shows how to use the Get-MgBetaBetaIdentityB2XUserFlowLanguage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowLanguageOverridePageContent.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowLanguageOverridePageContent.md index bb8d34d01ac..ef4a5c34c2a 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowLanguageOverridePageContent.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowLanguageOverridePageContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -``` -This example shows how to use the Get-MgBetaIdentityB2XUserFlowLanguageOverridePageContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId +``` +This example shows how to use the Get-MgBetaBetaIdentityB2XUserFlowLanguageOverridePageContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md index a12583d7459..a2ed3d133d3 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -This example shows how to use the Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -ExpandProperty "userAttribute" -``` -This example shows how to use the Get-MgBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + userInputType = "textBox" +} + +Update-MgBetaIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityConditionalAccessTemplate.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityConditionalAccessTemplate.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityConditionalAccessTemplate.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityConditionalAccessTemplate.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md index 8d447276eea..a42832c4b92 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md @@ -1,70 +1,28 @@ -### Example 1: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -IdentityProviderId $identityProviderId -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -IdentityProviderId $identityProviderId -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 8: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 9: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 10: Using the Get-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Get-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + clientSecret = "1111111111111" +} + +Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + displayName = "Apple" +} + +Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityUserFlowAttribute.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityUserFlowAttribute.md index 7ed3e85b2d9..d761255017c 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityUserFlowAttribute.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -``` -This example shows how to use the Get-MgBetaIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaIdentityUserFlowAttribute -``` -This example shows how to use the Get-MgBetaIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + description = "Your new hobby" +} + +Update-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaIdentityUserFlowAttribute Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaInformationProtectionBitlockerRecoveryKey.md b/src/Identity.SignIns/beta/examples/Get-MgBetaInformationProtectionBitlockerRecoveryKey.md index 79241da5278..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaInformationProtectionBitlockerRecoveryKey.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaInformationProtectionBitlockerRecoveryKey.md @@ -1,28 +1,17 @@ -### Example 1: Using the Get-MgBetaInformationProtectionBitlockerRecoveryKey Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionBitlockerRecoveryKey + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaInformationProtectionBitlockerRecoveryKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaInformationProtectionBitlockerRecoveryKey Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionBitlockerRecoveryKey -Filter "deviceId eq '1ab40ab2-32a8-4b00-b6b5-ba724e407de9'" + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaInformationProtectionBitlockerRecoveryKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaInformationProtectionBitlockerRecoveryKey Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $bitlockerRecoveryKeyId -``` -This example shows how to use the Get-MgBetaInformationProtectionBitlockerRecoveryKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaInformationProtectionBitlockerRecoveryKey Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $bitlockerRecoveryKeyId -Property "key" -``` -This example shows how to use the Get-MgBetaInformationProtectionBitlockerRecoveryKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/beta/examples/Get-MgBetaInformationProtectionThreatAssessmentRequest.md index 7defb428cd1..30677a2b546 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaInformationProtectionThreatAssessmentRequest.md @@ -1,42 +1,45 @@ -### Example 1: Using the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -``` -This example shows how to use the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -``` -This example shows how to use the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -``` -This example shows how to use the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -ExpandProperty "results" -``` -This example shows how to use the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionThreatAssessmentRequest -``` -This example shows how to use the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -``` -This example shows how to use the Get-MgBetaInformationProtectionThreatAssessmentRequest 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.Beta.Identity.SignIns + +Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId +``` +This example shows how to use the Get-MgBetaBetaInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the properties of an email file assessment request + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId +``` +This example shows how to use the Get-MgBetaBetaInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get the properties of a file assessment request + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId +``` +This example shows how to use the Get-MgBetaBetaInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Get the properties of an url assessment request + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId +``` +This example shows how to use the Get-MgBetaBetaInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Expand threat assessment results for a request + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -ExpandProperty "results" +``` +This example shows how to use the Get-MgBetaBetaInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaOauth2PermissionGrant.md b/src/Identity.SignIns/beta/examples/Get-MgBetaOauth2PermissionGrant.md index 9e141079e14..f435734cf7b 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaOauth2PermissionGrant.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaOauth2PermissionGrant.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -``` -This example shows how to use the Get-MgBetaOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaOauth2PermissionGrant -``` -This example shows how to use the Get-MgBetaOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + scope = "User.ReadBasic.All Group.ReadWrite.All" +} + +Update-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaOauth2PermissionGrant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaOrganizationCertificateBasedAuthConfiguration.md b/src/Identity.SignIns/beta/examples/Get-MgBetaOrganizationCertificateBasedAuthConfiguration.md index 7eba4a12736..f5f2332a4e6 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaOrganizationCertificateBasedAuthConfiguration.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaOrganizationCertificateBasedAuthConfiguration.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaOrganizationCertificateBasedAuthConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId -CertificateBasedAuthConfigurationId $certificateBasedAuthConfigurationId -``` -This example shows how to use the Get-MgBetaOrganizationCertificateBasedAuthConfiguration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaOrganizationCertificateBasedAuthConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId -``` -This example shows how to use the Get-MgBetaOrganizationCertificateBasedAuthConfiguration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId -CertificateBasedAuthConfigurationId $certificateBasedAuthConfigurationId +``` +This example shows how to use the Get-MgBetaBetaOrganizationCertificateBasedAuthConfiguration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyActivityBasedTimeoutPolicy.md index b790b599b7e..ca9fa02a17e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyActivityBasedTimeoutPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyActivityBasedTimeoutPolicy -``` -This example shows how to use the Get-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -``` -This example shows how to use the Get-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + definition = @( + "definition-value" + ) + displayName = "displayName-value" + isOrganizationDefault = $true +} + +Update-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyActivityBasedTimeoutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAdminConsentRequestPolicy.md index 84776232cf4..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAdminConsentRequestPolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgBetaPolicyAdminConsentRequestPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyAdminConsentRequestPolicy + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPolicyAdminConsentRequestPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/beta/examples/Get-MgBetaPolicyAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAppManagementPolicy.md index bb1a05fdedc..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAppManagementPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaPolicyAppManagementPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyAppManagementPolicy -AppManagementPolicyId $appManagementPolicyId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPolicyAppManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyAppManagementPolicy Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyAppManagementPolicy + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPolicyAppManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationFlowPolicy.md index 44c61b04b7f..3b3acdc2ef6 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationFlowPolicy.md @@ -1,7 +1,15 @@ -### Example 1: Using the Get-MgBetaPolicyAuthenticationFlowPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyAuthenticationFlowPolicy -``` -This example shows how to use the Get-MgBetaPolicyAuthenticationFlowPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + selfServiceSignUp = @{ + isEnabled = $true + } +} + +Update-MgBetaPolicyAuthenticationFlowPolicy -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyAuthenticationFlowPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationMethodPolicy.md index ab4035a1cb7..dcb5e0876b3 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationMethodPolicy.md @@ -1,7 +1,27 @@ -### Example 1: Using the Get-MgBetaPolicyAuthenticationMethodPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyAuthenticationMethodPolicy -``` -This example shows how to use the Get-MgBetaPolicyAuthenticationMethodPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + registrationEnforcement = @{ + authenticationMethodsRegistrationCampaign = @{ + snoozeDurationInDays = 1 + state = "enabled" + excludeTargets = @( + ) + includeTargets = @( + @{ + id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" + targetType = "group" + targetedAuthenticationMethod = "microsoftAuthenticator" + } + ) + } + } +} + +Update-MgBetaPolicyAuthenticationMethodPolicy -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyAuthenticationMethodPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationStrengthPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationStrengthPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAuthenticationStrengthPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyClaimMappingPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyClaimMappingPolicy.md index f4e5196225a..85dbda2a7c5 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyClaimMappingPolicy.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyClaimMappingPolicy -``` -This example shows how to use the Get-MgBetaPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -``` -This example shows how to use the Get-MgBetaPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + displayName = "UpdateClaimsPolicy" +} + +Update-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyClaimMappingPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicy.md index bcb5a7c03f6..903e77a9d64 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicy.md @@ -1,7 +1,15 @@ -### Example 1: Using the Get-MgBetaPolicyCrossTenantAccessPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyCrossTenantAccessPolicy -``` -This example shows how to use the Get-MgBetaPolicyCrossTenantAccessPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + allowedCloudEndpoints = @( + "microsoftonline.us" + ) +} + +Update-MgBetaPolicyCrossTenantAccessPolicy -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyCrossTenantAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefault.md index 688693d7464..ecbb37cbe1a 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefault.md @@ -1,7 +1,32 @@ -### Example 1: Using the Get-MgBetaPolicyCrossTenantAccessPolicyDefault Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyCrossTenantAccessPolicyDefault -``` -This example shows how to use the Get-MgBetaPolicyCrossTenantAccessPolicyDefault Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + b2bCollaborationOutbound = @{ + usersAndGroups = @{ + accessType = "blocked" + targets = @( + @{ + target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" + targetType = "group" + } + ) + } + applications = @{ + accessType = "blocked" + targets = @( + @{ + target = "AllApplications" + targetType = "application" + } + ) + } + } +} + +Update-MgBetaPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyCrossTenantAccessPolicyDefault Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md index 7d607cc9333..5b670098181 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md @@ -1,14 +1,33 @@ -### Example 1: Using the Get-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -``` -This example shows how to use the Get-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyCrossTenantAccessPolicyPartner -``` -This example shows how to use the Get-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Configure inbound trust settings + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + inboundTrust = @{ + isMfaAccepted = $true + isCompliantDeviceAccepted = $true + isHybridAzureADJoinedDeviceAccepted = $true + } +} + +Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Configure automaticUserConsent settings + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + automaticUserConsentSettings = @{ + inboundAllowed = $true + outboundAllowed = $true + } +} + +Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyDefaultAppManagementPolicy.md index 946daa16336..3154002cc42 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyDefaultAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyDefaultAppManagementPolicy.md @@ -1,7 +1,49 @@ -### Example 1: Using the Get-MgBetaPolicyDefaultAppManagementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyDefaultAppManagementPolicy -``` -This example shows how to use the Get-MgBetaPolicyDefaultAppManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + isEnabled = $true + applicationRestrictions = @{ + passwordCredentials = @( + @{ + restrictionType = "passwordAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") + } + @{ + restrictionType = "passwordLifetime" + maxLifetime = "P4DT12H30M5S" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2017-01-01T10:37:00Z") + } + @{ + restrictionType = "symmetricKeyAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") + } + @{ + restrictionType = "customPasswordAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + } + @{ + restrictionType = "symmetricKeyLifetime" + maxLifetime = "P40D" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + } + ) + keyCredentials = @( + @{ + restrictionType = "asymmetricKeyLifetime" + maxLifetime = "P30D" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + } + ) + } +} + +Update-MgBetaPolicyDefaultAppManagementPolicy -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyDefaultAppManagementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyFeatureRolloutPolicy.md index 7f7aa2b135e..cf28a4329aa 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyFeatureRolloutPolicy.md @@ -1,21 +1,16 @@ -### Example 1: Using the Get-MgBetaPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyFeatureRolloutPolicy -``` -This example shows how to use the Get-MgBetaPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" -``` -This example shows how to use the Get-MgBetaPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -``` -This example shows how to use the Get-MgBetaPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + displayName = "PasswordHashSync Rollout Policy" + description = "PasswordHashSync Rollout Policy" + isEnabled = $true + isAppliedToOrganization = $false +} + +Update-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyHomeRealmDiscoveryPolicy.md index 0c2274fbac9..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyHomeRealmDiscoveryPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyHomeRealmDiscoveryPolicy + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md index 977a1ac28b8..bc7b84b5edf 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -``` -This example shows how to use the Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + isEnabled = $false +} + +Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicy.md index 8e75be20d64..d6616cd0eb3 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicy.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgBetaPolicyRoleManagementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -``` -This example shows how to use the Get-MgBetaPolicyRoleManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyRoleManagementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole'" -``` -This example shows how to use the Get-MgBetaPolicyRoleManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Retrieve the details of a role management policy + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId +``` +This example shows how to use the Get-MgBetaBetaPolicyRoleManagementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve the details of a role management policy and expand the relationships + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -ExpandProperty "effectiveRules,rules" +``` +This example shows how to use the Get-MgBetaBetaPolicyRoleManagementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyAssignment.md index 2aceece3c4d..c8e91d2127e 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyAssignment.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgBetaPolicyRoleManagementPolicyAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId -``` -This example shows how to use the Get-MgBetaPolicyRoleManagementPolicyAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyRoleManagementPolicyAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'Directory'" -``` -This example shows how to use the Get-MgBetaPolicyRoleManagementPolicyAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Retrieve a role management policy assignment + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId +``` +This example shows how to use the Get-MgBetaBetaPolicyRoleManagementPolicyAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve a role management policy assignment and expand the policy and its associated rules + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId -ExpandProperty "policy(`$expand=rules)" +``` +This example shows how to use the Get-MgBetaBetaPolicyRoleManagementPolicyAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md index fe1c173e05f..519089de0d8 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md @@ -1,21 +1,28 @@ -### Example 1: Using the Get-MgBetaPolicyRoleManagementPolicyRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -``` -This example shows how to use the Get-MgBetaPolicyRoleManagementPolicyRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyRoleManagementPolicyRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaPolicyRoleManagementPolicyRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaPolicyRoleManagementPolicyRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -``` -This example shows how to use the Get-MgBetaPolicyRoleManagementPolicyRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" + id = "Expiration_EndUser_Assignment" + isExpirationRequired = $true + maximumDuration = "PT1H45M" + target = @{ + "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" + caller = "EndUser" + operations = @( + "All" + ) + level = "Assignment" + inheritableSettings = @( + ) + enforcedSettings = @( + ) + } +} + +Update-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyRoleManagementPolicyRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenIssuancePolicy.md index e38846cf5af..ce5d94db331 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenIssuancePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -``` -This example shows how to use the Get-MgBetaPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyTokenIssuancePolicy -``` -This example shows how to use the Get-MgBetaPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + definition = @( + "definition-value" + ) + displayName = "displayName-value" + isOrganizationDefault = $true +} + +Update-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyTokenIssuancePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenLifetimePolicy.md index 6589b8e872a..46ef5d6cc5f 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyTokenLifetimePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyTokenLifetimePolicy -``` -This example shows how to use the Get-MgBetaPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -``` -This example shows how to use the Get-MgBetaPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + definition = @( + "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" + ) + displayName = "Contoso token lifetime policy" + isOrganizationDefault = $true +} + +Update-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPolicyTokenLifetimePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaRiskyServicePrincipal.md b/src/Identity.SignIns/beta/examples/Get-MgBetaRiskyServicePrincipal.md index 441d3955637..779a69118a3 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaRiskyServicePrincipal.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaRiskyServicePrincipal.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaRiskyServicePrincipal Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaRiskyServicePrincipal -RiskyServicePrincipalId $riskyServicePrincipalId -``` -This example shows how to use the Get-MgBetaRiskyServicePrincipal Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaRiskyServicePrincipal Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaRiskyServicePrincipal -``` -This example shows how to use the Get-MgBetaRiskyServicePrincipal Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaRiskyServicePrincipal -RiskyServicePrincipalId $riskyServicePrincipalId +``` +This example shows how to use the Get-MgBetaBetaRiskyServicePrincipal Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaServicePrincipalRiskDetection.md b/src/Identity.SignIns/beta/examples/Get-MgBetaServicePrincipalRiskDetection.md index f286f457e99..f0b5e793982 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaServicePrincipalRiskDetection.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaServicePrincipalRiskDetection.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgBetaServicePrincipalRiskDetection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaServicePrincipalRiskDetection -ServicePrincipalRiskDetectionId $servicePrincipalRiskDetectionId -``` -This example shows how to use the Get-MgBetaServicePrincipalRiskDetection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaServicePrincipalRiskDetection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaServicePrincipalRiskDetection -Filter "riskEventType eq 'investigationsThreatIntelligence' or riskLevel eq 'medium'" -``` -This example shows how to use the Get-MgBetaServicePrincipalRiskDetection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaServicePrincipalRiskDetection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaServicePrincipalRiskDetection -``` -This example shows how to use the Get-MgBetaServicePrincipalRiskDetection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example: Get a specific risk detection object + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaServicePrincipalRiskDetection -ServicePrincipalRiskDetectionId $servicePrincipalRiskDetectionId +``` +This example shows how to use the Get-MgBetaBetaServicePrincipalRiskDetection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationEmailMethod.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationEmailMethod.md index 113458044d8..be5394eef23 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationEmailMethod.md @@ -1,16 +1,13 @@ -### Example 1: Using the Get-MgBetaUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -``` -This example shows how to use the Get-MgBetaUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationEmailMethod -UserId $userId -``` -This example shows how to use the Get-MgBetaUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + emailAddress = "kim@contoso.com" +} + +Update-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserAuthenticationEmailMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationFido2Method.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationFido2Method.md index ae95e906aed..ae883bc767f 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationFido2Method.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationFido2Method.md @@ -1,16 +1,9 @@ -### Example 1: Using the Get-MgBetaUserAuthenticationFido2Method Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId -``` -This example shows how to use the Get-MgBetaUserAuthenticationFido2Method Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserAuthenticationFido2Method Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationFido2Method -UserId $userId -``` -This example shows how to use the Get-MgBetaUserAuthenticationFido2Method Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId +``` +This example shows how to use the Get-MgBetaBetaUserAuthenticationFido2Method Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod.md index 2c71a29e027..d9ca743ec09 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -``` -This example shows how to use the Get-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId +``` +This example shows how to use the Get-MgBetaBetaUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationOperation.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationOperation.md index cfa8a136a25..425b2a9bc31 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationOperation.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaUserAuthenticationOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaUserAuthenticationOperation -UserId $userId -LongRunningOperationId $longRunningOperationId -``` -This example shows how to use the Get-MgBetaUserAuthenticationOperation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaUserAuthenticationOperation -UserId $userId -LongRunningOperationId $longRunningOperationId +``` +This example shows how to use the Get-MgBetaBetaUserAuthenticationOperation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPasswordMethod.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPasswordMethod.md index 574281e0243..dda5daff14b 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPasswordMethod.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPasswordMethod.md @@ -1,16 +1,10 @@ -### Example 1: Using the Get-MgBetaUserAuthenticationPasswordMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + # A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationPasswordMethod -UserId $userId -PasswordAuthenticationMethodId $passwordAuthenticationMethodId -``` -This example shows how to use the Get-MgBetaUserAuthenticationPasswordMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserAuthenticationPasswordMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationPasswordMethod -UserId $userId -``` -This example shows how to use the Get-MgBetaUserAuthenticationPasswordMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgBetaUserAuthenticationPasswordMethod -UserId $userId -PasswordAuthenticationMethodId $passwordAuthenticationMethodId +``` +This example shows how to use the Get-MgBetaBetaUserAuthenticationPasswordMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPhoneMethod.md index 0c9bcf7bfaf..3ba9c371e13 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationPhoneMethod.md @@ -1,16 +1,15 @@ -### Example 1: Using the Get-MgBetaUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + phoneNumber = "+1 2065555554" + phoneType = "mobile" +} + # A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -``` -This example shows how to use the Get-MgBetaUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationPhoneMethod -UserId $userId -``` -This example shows how to use the Get-MgBetaUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserAuthenticationPhoneMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationSoftwareOathMethod.md index 702706967c8..d63f6fe4650 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationSoftwareOathMethod.md @@ -1,16 +1,9 @@ -### Example 1: Using the Get-MgBetaUserAuthenticationSoftwareOathMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId -``` -This example shows how to use the Get-MgBetaUserAuthenticationSoftwareOathMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserAuthenticationSoftwareOathMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgBetaUserAuthenticationSoftwareOathMethod -UserId $userId -``` -This example shows how to use the Get-MgBetaUserAuthenticationSoftwareOathMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId +``` +This example shows how to use the Get-MgBetaBetaUserAuthenticationSoftwareOathMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationTemporaryAccessPassMethod.md index 2f5506b043b..55cfbc9640c 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaUserAuthenticationTemporaryAccessPassMethod.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId -``` -This example shows how to use the Get-MgBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaUserAuthenticationTemporaryAccessPassMethod -UserId $userId -``` -This example shows how to use the Get-MgBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId +``` +This example shows how to use the Get-MgBetaBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityApiConnector.md b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityApiConnector.md index 4a29acaf1dc..e5f1734ecb1 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityApiConnector.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityApiConnector.md @@ -1,48 +1,38 @@ -### Example 1: Using the New-MgBetaIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Create an API connector with basic authentication + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - DisplayName = "Test API" - TargetUrl = "https://someapi.com/api" - AuthenticationConfiguration = @{ + displayName = "Test API" + targetUrl = "https://someapi.com/api" + authenticationConfiguration = @{ "@odata.type" = "#microsoft.graph.basicAuthentication" - Username = "" - Password = "" + username = "MyUsername" + password = "MyPassword" } } -New-MgBetaIdentityApiConnector -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns + +New-MgBetaIdentityApiConnector -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an API connector with client certificate authentication + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - DisplayName = "Test API" - TargetUrl = "https://someotherapi.com/api" - AuthenticationConfiguration = @{ + displayName = "Test API" + targetUrl = "https://someotherapi.com/api" + authenticationConfiguration = @{ "@odata.type" = "#microsoft.graph.pkcs12Certificate" - Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - Password = "" + pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + password = "CertificatePassword" } } -New-MgBetaIdentityApiConnector -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - DisplayName = "Test API" - TargetUrl = "https://someotherapi.com/api" - AuthenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - Password = "" - } -} -New-MgBetaIdentityApiConnector -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaIdentityApiConnector -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlow.md b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlow.md index 619b1b18208..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlow.md @@ -1,51 +1,17 @@ -### Example 1: Using the New-MgBetaIdentityB2XUserFlow Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - Id = "UserFlowWithAPIConnector" - UserFlowType = "signUpOrSignIn" - UserFlowTypeVersion = 1 - ApiConnectorConfiguration = @{ - PostFederationSignup = @{ - "@odata.id" = "{apiConnectorId}" - } - PostAttributeCollection = @{ - "@odata.id" = "{apiConnectorId}" - } - } -} -New-MgBetaIdentityB2XUserFlow -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaIdentityB2XUserFlow Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - Id = "Partner" - UserFlowType = "signUpOrSignIn" - UserFlowTypeVersion = 1 - IdentityProviders = @( - @{ - Id = "Facebook-OAuth" - Type = "Facebook" - Name = "Facebook" - } - ) -} -New-MgBetaIdentityB2XUserFlow -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - Id = "Partner" - UserFlowType = "signUpOrSignIn" - UserFlowTypeVersion = 1 -} -New-MgBetaIdentityB2XUserFlow -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowLanguage.md index 3c5833f28be..39ee3d7c680 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowLanguage.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -This example shows how to use the New-MgBetaIdentityB2XUserFlowLanguage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId +``` +This example shows how to use the New-MgBetaBetaIdentityB2XUserFlowLanguage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowLanguageOverridePage.md b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowLanguageOverridePage.md index 19acb1a4868..e76f646967f 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowLanguageOverridePage.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowLanguageOverridePage.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -``` -This example shows how to use the New-MgBetaIdentityB2XUserFlowLanguageOverridePage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId +``` +This example shows how to use the New-MgBetaBetaIdentityB2XUserFlowLanguageOverridePage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md index 102afd1f8ef..81624e1f9cd 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,18 +1,21 @@ -### Example 1: Using the New-MgBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - IsOptional = $false - RequiresVerification = $false - UserInputType = "TextBox" - DisplayName = "Shoe size" - UserAttributeValues = @( + isOptional = $false + requiresVerification = $false + userInputType = "TextBox" + displayName = "Shoe size" + userAttributeValues = @( ) - UserAttribute = @{ - Id = "extension_guid_shoeSize" + userAttribute = @{ + id = "extension_guid_shoeSize" } } -New-MgBetaIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityB2XUserFlowUserAttributeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityConditionalAccessAuthenticationContextClassReference.md b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityConditionalAccessAuthenticationContextClassReference.md index 476f041a228..eb60e79aaaf 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityConditionalAccessAuthenticationContextClassReference.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityConditionalAccessAuthenticationContextClassReference.md @@ -1,13 +1,9 @@ -### Example 1: Using the New-MgBetaIdentityConditionalAccessAuthenticationContextClassReference Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - Id = "c1" - DisplayName = "Contoso medium" - Description = "Medium protection level defined for Contoso policy" - IsAvailable = $true -} -New-MgBetaIdentityConditionalAccessAuthenticationContextClassReference -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaIdentityConditionalAccessAuthenticationContextClassReference +``` +This example shows how to use the New-MgBetaBetaIdentityConditionalAccessAuthenticationContextClassReference Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityConditionalAccessPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityConditionalAccessPolicy.md index 3a4c326719f..2459fb98752 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityConditionalAccessPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityConditionalAccessPolicy.md @@ -1,95 +1,225 @@ -### Example 1: Require MFA to access Exchange Online outside of trusted locations - -```powershell -Connect-MgBetaGraph -Scopes 'Policy.ReadWrite.ConditionalAccess' +### Example 1: Require MFA to access Exchange Online outside of trusted locations +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ - DisplayName = "Access to EXO requires MFA" - State = "enabled" - Conditions = @{ - ClientAppTypes = @( - "mobileAppsAndDesktopClients" - "browser" - ) - Applications = @{ - IncludeApplications = @( - "b457cbac-03cb-4b15-9eef-79f24f8d3247" - ) - } - Users = @{ - IncludeGroups = @( - "f39e2655-3fae-43ad-94e2-c2b593cfc473" - ) - } - Locations = @{ - IncludeLocations = @( - "All" - ) - ExcludeLocations = @( - "AllTrusted" - ) - } - } - GrantControls = @{ - Operator = "OR" - BuiltInControls = @( - "mfa" - ) - } + displayName = "Access to EXO requires MFA" + state = "enabled" + conditions = @{ + clientAppTypes = @( + "mobileAppsAndDesktopClients" + "browser" + ) + applications = @{ + includeApplications = @( + "00000002-0000-0ff1-ce00-000000000000" + ) + } + users = @{ + includeGroups = @( + "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" + ) + } + locations = @{ + includeLocations = @( + "All" + ) + excludeLocations = @( + "AllTrusted" + ) + } + } + grantControls = @{ + operator = "OR" + builtInControls = @( + "mfa" + ) + } } -New-MgBetaIdentityConditionalAccessPolicy -BodyParameter $params +New-MgBetaIdentityConditionalAccessPolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityConditionalAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Block access to Exchange Online from non-trusted regions -Id CreatedDateTime Description DisplayName ModifiedDateTime State --- --------------- ----------- ----------- ---------------- ----- -1c9afd06-3f59-464e-a6d9-193d99764a01 7/29/2022 9:46:18 AM Access to EXO requires MFA enabled -``` +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -This example shows a request to require multi-factor authentication for access to Exchange Online from modern authentication clients outside of trusted locations for a particular group. +$params = @{ + displayName = "Block access to EXO non-trusted regions." + state = "enabled" + conditions = @{ + clientAppTypes = @( + "all" + ) + applications = @{ + includeApplications = @( + "00000002-0000-0ff1-ce00-000000000000" + ) + } + users = @{ + includeGroups = @( + "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" + ) + } + locations = @{ + includeLocations = @( + "198ad66e-87b3-4157-85a3-8a7b51794ee9" + ) + } + } + grantControls = @{ + operator = "OR" + builtInControls = @( + "block" + ) + } +} -### Example 2: Block access to Exchange Online from non-trusted regions +New-MgBetaIdentityConditionalAccessPolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityConditionalAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Use all conditions and controls -```powershell -Connect-MgBetaGraph -Scopes 'Policy.ReadWrite.ConditionalAccess' +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ - DisplayName = "Block access to EXO non-trusted regions." - State = "enabled" - Conditions = @{ - ClientAppTypes = @( - "all" - ) - Applications = @{ - IncludeApplications = @( - "b457cbac-03cb-4b15-9eef-79f24f8d3247" - ) - } - Users = @{ - IncludeGroups = @( - "f39e2655-3fae-43ad-94e2-c2b593cfc473" - ) - } - Locations = @{ - IncludeLocations = @( - "0824dbaf-6277-4db0-8112-b29fd356f2c4" - ) - } - } - GrantControls = @{ - Operator = "OR" - BuiltInControls = @( - "block" - ) - } - } + displayName = "Demo app for documentation" + state = "disabled" + conditions = @{ + signInRiskLevels = @( + "high" + "medium" + ) + clientAppTypes = @( + "mobileAppsAndDesktopClients" + "exchangeActiveSync" + "other" + ) + applications = @{ + includeApplications = @( + "All" + ) + excludeApplications = @( + "499b84ac-1321-427f-aa17-267ca6975798" + "00000007-0000-0000-c000-000000000000" + "de8bc8b5-d9f9-48b1-a8ad-b748da725064" + "00000012-0000-0000-c000-000000000000" + "797f4846-ba00-4fd7-ba43-dac1f8f63013" + "05a65629-4c1b-48c1-a78b-804c4abdd4af" + "7df0a125-d3be-4c96-aa54-591f83ff541c" + ) + includeUserActions = @( + ) + } + users = @{ + includeUsers = @( + "a702a13d-a437-4a07-8a7e-8c052de62dfd" + ) + excludeUsers = @( + "124c5b6a-ffa5-483a-9b88-04c3fce5574a" + "GuestsOrExternalUsers" + ) + includeGroups = @( + ) + excludeGroups = @( + ) + includeRoles = @( + "9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" + "cf1c38e5-3621-4004-a7cb-879624dced7c" + "c4e39bd9-1100-46d3-8c65-fb160da0071f" + ) + excludeRoles = @( + "b0f54661-2d74-4c50-afa3-1ec803f12efe" + ) + } + platforms = @{ + includePlatforms = @( + "all" + ) + excludePlatforms = @( + "iOS" + "windowsPhone" + ) + } + locations = @{ + includeLocations = @( + "AllTrusted" + ) + excludeLocations = @( + "00000000-0000-0000-0000-000000000000" + "d2136c9c-b049-47ae-b9cf-316e04ef7198" + ) + } + } + grantControls = @{ + operator = "OR" + builtInControls = @( + "mfa" + "compliantDevice" + "domainJoinedDevice" + "approvedApplication" + "compliantApplication" + ) + customAuthenticationFactors = @( + ) + termsOfUse = @( + "ce580154-086a-40fd-91df-8a60abac81a0" + "7f29d675-caff-43e1-8a53-1b8516ed2075" + ) + } + sessionControls = @{ + applicationEnforcedRestrictions = $null + persistentBrowser = $null + cloudAppSecurity = @{ + cloudAppSecurityType = "blockDownloads" + isEnabled = $true + } + signInFrequency = @{ + value = 4 + type = "hours" + isEnabled = $true + } + } +} -New-MgBetaIdentityConditionalAccessPolicy -BodyParameter $params +New-MgBetaIdentityConditionalAccessPolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityConditionalAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Require MFA to Exchange Online from non-compliant devices -Id CreatedDateTime Description DisplayName ModifiedDateTime State --- --------------- ----------- ----------- ---------------- ----- -61c7530f-5c1d-44b2-a972-4ae658b7a9ac 7/29/2022 10:03:30 AM Block access to EXO non-trusted regions. enabled +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -``` +$params = @{ + displayName = "Require MFA to EXO from non-compliant devices." + state = "enabled" + conditions = @{ + applications = @{ + includeApplications = @( + "00000002-0000-0ff1-ce00-000000000000" + ) + } + users = @{ + includeGroups = @( + "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" + ) + } + } + grantControls = @{ + operator = "OR" + builtInControls = @( + "mfa" + ) + } +} -This example shows a request to block access to Exchange Online from non-trusted/unknown regions. This example assumes that the named location `0824dbaf-6277-4db0-8112-b29fd356f2c4` corresponds to a list of non-trusted/unknown regions. +New-MgBetaIdentityConditionalAccessPolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityConditionalAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityProvider.md b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityProvider.md index e0b0893a483..fcd1208d8cd 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityProvider.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityProvider.md @@ -1,80 +1,35 @@ -### Example 1: Using the New-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Create a specific social identity provider (Azure AD and Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - "@odata.type" = "microsoft.graph.appleManagedIdentityProvider" - DisplayName = "Sign in with Apple" - DeveloperId = "UBF8T346G9" - ServiceId = "com.microsoft.rts.b2c.test.client" - KeyId = "99P6D879C4" - CertificateData = "******" -} -New-MgBetaIdentityProvider -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "microsoft.graph.identityProvider" - Name = "Login with Amazon" - Type = "Amazon" - ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" - ClientSecret = "000000000000" -} -New-MgBetaIdentityProvider -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "microsoft.graph.openIdConnectIdentityProvider" - DisplayName = "Login with the Contoso identity provider" - ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" - ClientSecret = "12345" - DomainHint = "mycustomoidc" - MetadataUrl = "https://mycustomoidc.com/.well-known/openid-configuration" - ResponseMode = "form_post" - ResponseType = "code" - Scope = "openid" -} -New-MgBetaIdentityProvider -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "microsoft.graph.openIdConnectProvider" - Name = "Login with the Contoso identity provider" - Type = "OpenIDConnect" - ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" - ClientSecret = "12345" - DomainHint = "mycustomoidc" - MetadataUrl = "https://mycustomoidc.com/.well-known/openid-configuration" - ResponseMode = "form_post" - ResponseType = "code" - Scope = "openid" + "@odata.type" = "microsoft.graph.socialIdentityProvider" + displayName = "Login with Amazon" + identityProviderType = "Amazon" + clientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" + clientSecret = "000000000000" } -New-MgBetaIdentityProvider -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns + +New-MgBetaIdentityProvider -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieves Apple identity provider (only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - "@odata.type" = "microsoft.graph.socialIdentityProvider" - DisplayName = "Login with Amazon" - IdentityProviderType = "Amazon" - ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" - ClientSecret = "000000000000" + "@odata.type" = "microsoft.graph.appleManagedIdentityProvider" + displayName = "Sign in with Apple" + developerId = "UBF8T346G9" + serviceId = "com.microsoft.rts.b2c.test.client" + keyId = "99P6D879C4" + certificateData = "******" } -New-MgBetaIdentityProvider -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaIdentityProvider -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityUserFlowAttribute.md b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityUserFlowAttribute.md index bf7077e18bc..bd9b1df0822 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaIdentityUserFlowAttribute.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - DisplayName = "Hobby" - Description = "Your hobby" - DataType = "string" + displayName = "Hobby" + description = "Your hobby" + dataType = "string" } -New-MgBetaIdentityUserFlowAttribute -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaIdentityUserFlowAttribute -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaIdentityUserFlowAttribute Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/beta/examples/New-MgBetaInformationProtectionThreatAssessmentRequest.md index 6afb8e9d659..3fe27d0ea2c 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaInformationProtectionThreatAssessmentRequest.md @@ -1,55 +1,67 @@ -### Example 1: Using the New-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Create a mail assessment request + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - "@odata.type" = "#microsoft.graph.emailFileAssessmentRequest" - RecipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" - ExpectedAssessment = "block" - Category = "malware" - ContentData = "UmVjZWl2ZWQ6IGZyb20gTVcyUFIwME1CMDMxNC5uYW1wcmQwMC....." + "@odata.type" = "#microsoft.graph.mailAssessmentRequest" + recipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + expectedAssessment = "block" + category = "spam" + messageUri = "https://graph.microsoft.com/v1.0/users/c52ce8db-3e4b-4181-93c4-7d6b6bffaf60/messages/AAMkADU3MWUxOTU0LWNlOTEt=" } -New-MgBetaInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns + +New-MgBetaInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an email assessment request + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - "@odata.type" = "#microsoft.graph.fileAssessmentRequest" - ExpectedAssessment = "block" - Category = "malware" - FileName = "test.txt" - ContentData = "VGhpcyBpcyBhIHRlc3QgZmlsZQ==" + "@odata.type" = "#microsoft.graph.emailFileAssessmentRequest" + recipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + expectedAssessment = "block" + category = "malware" + contentData = "UmVjZWl2ZWQ6IGZyb20gTVcyUFIwME1CMDMxNC5uYW1wcmQwMC....." } -New-MgBetaInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns + +New-MgBetaInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create a file assessment request + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - "@odata.type" = "#microsoft.graph.mailAssessmentRequest" - RecipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" - ExpectedAssessment = "block" - Category = "spam" - MessageUri = "https://graph.microsoft.com/beta/users/c52ce8db-3e4b-4181-93c4-7d6b6bffaf60/messages/AAMkADU3MWUxOTU0LWNlOTEt=" + "@odata.type" = "#microsoft.graph.fileAssessmentRequest" + expectedAssessment = "block" + category = "malware" + fileName = "test.txt" + contentData = "VGhpcyBpcyBhIHRlc3QgZmlsZQ==" } -New-MgBetaInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns + +New-MgBetaInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an url assessment request + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ "@odata.type" = "#microsoft.graph.urlAssessmentRequest" - Url = "http://test.com" - ExpectedAssessment = "block" - Category = "phishing" + url = "http://test.com" + expectedAssessment = "block" + category = "phishing" } -New-MgBetaInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgBetaInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaInvitation.md b/src/Identity.SignIns/beta/examples/New-MgBetaInvitation.md index f7c128cc865..f9a1244073f 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaInvitation.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaInvitation.md @@ -1,16 +1,14 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ - InvitedUserEmailAddress = "admin@fabrikam.com" - InviteRedirectUrl = "https://myapp.contoso.com" + invitedUserEmailAddress = "admin@fabrikam.com" + inviteRedirectUrl = "https://myapp.contoso.com" } -New-MgBetaInvitation -BodyParameter $params -``` -This example shows how to use the New-MgBetaInvitation Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaInvitation -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaInvitation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaOauth2PermissionGrant.md b/src/Identity.SignIns/beta/examples/New-MgBetaOauth2PermissionGrant.md index 4cae734e63e..7c211f960c4 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaOauth2PermissionGrant.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaOauth2PermissionGrant.md @@ -1,15 +1,16 @@ -### Example 1: Using the New-MgBetaOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - ClientId = "ef969797-201d-4f6b-960c-e9ed5f31dab5" - ConsentType = "AllPrincipals" - ResourceId = "943603e4-e787-4fe9-93d1-e30f749aae39" - Scope = "DelegatedPermissionGrant.ReadWrite.All" - StartTime = [System.DateTime]::Parse("2022-03-17T00:00:00Z") - ExpiryTime = [System.DateTime]::Parse("2023-03-17T00:00:00Z") + clientId = "ef969797-201d-4f6b-960c-e9ed5f31dab5" + consentType = "AllPrincipals" + resourceId = "943603e4-e787-4fe9-93d1-e30f749aae39" + scope = "DelegatedPermissionGrant.ReadWrite.All" } -New-MgBetaOauth2PermissionGrant -BodyParameter $params -``` -This example shows how to use the New-MgBetaOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaOauth2PermissionGrant -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaOauth2PermissionGrant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyActivityBasedTimeoutPolicy.md index 281d2ccfe5f..1f0b65b52c4 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyActivityBasedTimeoutPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "definition-value" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "displayName-value" + isOrganizationDefault = $true } -New-MgBetaPolicyActivityBasedTimeoutPolicy -BodyParameter $params -``` -This example shows how to use the New-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaPolicyActivityBasedTimeoutPolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaPolicyActivityBasedTimeoutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyClaimMappingPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyClaimMappingPolicy.md index 3a3e1aa428b..754da452c40 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyClaimMappingPolicy.md @@ -1,13 +1,16 @@ -### Example 1: Using the New-MgBetaPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "{"ClaimsMappingPolicy":{"Version":1,"IncludeBasicClaimSet":"true","ClaimsSchema": [{"Source":"user","ID":"userprincipalname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"},{"Source":"user","ID":"givenname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"},{"Source":"user","ID":"displayname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},{"Source":"user","ID":"surname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"},{"Source":"user","ID":"userprincipalname","SamlClaimType":"username"}],"ClaimsTransformation":[{"ID":"CreateTermsOfService","TransformationMethod":"CreateStringClaim","InputParameters": [{"ID":"value","DataType":"string", "Value":"sandbox"}],"OutputClaims":[{"ClaimTypeReferenceId":"TOS","TransformationClaimType":"createdClaim"}]}]}}" ) - DisplayName = "Test1234" + displayName = "Test1234" } -New-MgBetaPolicyClaimMappingPolicy -BodyParameter $params -``` -This example shows how to use the New-MgBetaPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaPolicyClaimMappingPolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaPolicyClaimMappingPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyPartner.md index dc7ce9bceb7..5a33a0161d9 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyPartner.md @@ -1,32 +1,35 @@ -### Example 1: Using the New-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - TenantId = "3d0f5dec-5d3d-455c-8016-e2af1ae4d31a" - B2bDirectConnectOutbound = @{ - UsersAndGroups = @{ - AccessType = "blocked" - Targets = @( + tenantId = "3d0f5dec-5d3d-455c-8016-e2af1ae4d31a" + b2bDirectConnectOutbound = @{ + usersAndGroups = @{ + accessType = "blocked" + targets = @( @{ - Target = "6f546279-4da5-4b53-a095-09ea0cef9971" - TargetType = "group" + target = "6f546279-4da5-4b53-a095-09ea0cef9971" + targetType = "group" } ) } } - B2bDirectConnectInbound = @{ - Applications = @{ - AccessType = "allowed" - Targets = @( + b2bDirectConnectInbound = @{ + applications = @{ + accessType = "allowed" + targets = @( @{ - Target = "Office365" - TargetType = "application" + target = "Office365" + targetType = "application" } ) } } } -New-MgBetaPolicyCrossTenantAccessPolicyPartner -BodyParameter $params -``` -This example shows how to use the New-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaPolicyCrossTenantAccessPolicyPartner -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicy.md index aac53d1bbee..6d99866b9d0 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - DisplayName = "PassthroughAuthentication rollout policy" - Description = "PassthroughAuthentication rollout policy" - Feature = "passthroughAuthentication" - IsEnabled = $true - IsAppliedToOrganization = $false + displayName = "PassthroughAuthentication rollout policy" + description = "PassthroughAuthentication rollout policy" + feature = "passthroughAuthentication" + isEnabled = $true + isAppliedToOrganization = $false } -New-MgBetaPolicyFeatureRolloutPolicy -BodyParameter $params -``` -This example shows how to use the New-MgBetaPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaPolicyFeatureRolloutPolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicyApplyTo.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicyApplyTo.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicyApplyTo.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicyApplyTo.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicyApplyToByRef.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicyApplyToByRef.md index 4592d852134..13fbdcb6889 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicyApplyToByRef.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyFeatureRolloutPolicyApplyToByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaPolicyFeatureRolloutPolicyApplyToByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - "@odata.id" = " https://graph.microsoft.com/beta/directoryObjects/2441b489-4f12-4882-b039-8f6006bd66da" + "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/2441b489-4f12-4882-b039-8f6006bd66da" } -New-MgBetaPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params -``` -This example shows how to use the New-MgBetaPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyHomeRealmDiscoveryPolicy.md index 5aa5ae1b094..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyHomeRealmDiscoveryPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - Definition = @( - "definition-value" - ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true -} -New-MgBetaPolicyHomeRealmDiscoveryPolicy -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicy.md index 72b5b0717e3..995f8ebb755 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicy.md @@ -1,22 +1,18 @@ -### Example 1: Retrieve the role management policies that apply to Azure AD roles +### Example 1: Retrieve the role management policies that apply to Azure AD roles -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole'" -``` -This example shows how to use the New-MgBetaPolicyRoleManagementPolicy Cmdlet. +Get-MgBetaPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole'" +``` +This example shows how to use the New-MgBetaBetaPolicyRoleManagementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve the role management policies that apply to the directory and expand the associated rules -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Retrieve the role management policies that apply to the directory and expand the associated rules - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'Directory'" -ExpandProperty "rules" -``` -This example shows how to use the New-MgBetaPolicyRoleManagementPolicy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'Directory'" -ExpandProperty "rules" +``` +This example shows how to use the New-MgBetaBetaPolicyRoleManagementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicyAssignment.md index 55e08d02b2d..3a40d8966c6 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicyAssignment.md @@ -1,22 +1,18 @@ -### Example 1: Retrieve the role management policy assignments +### Example 1: Retrieve the role management policy assignments -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'Directory'" -``` -This example shows how to use the New-MgBetaPolicyRoleManagementPolicyAssignment Cmdlet. +Get-MgBetaPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'Directory'" +``` +This example shows how to use the New-MgBetaBetaPolicyRoleManagementPolicyAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve the role management policy assignments for an Azure AD role and expand the policy and its associated rules -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Retrieve the role management policy assignments for an Azure AD role and expand the policy and its associated rules - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole' and roleDefinitionId eq '62e90394-69f5-4237-9190-012177145e10'" -ExpandProperty "policy(`$expand=rules)" -``` -This example shows how to use the New-MgBetaPolicyRoleManagementPolicyAssignment Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole' and roleDefinitionId eq '62e90394-69f5-4237-9190-012177145e10'" -ExpandProperty "policy(`$expand=rules)" +``` +This example shows how to use the New-MgBetaBetaPolicyRoleManagementPolicyAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicyRule.md index b9a8058322c..c3caee63779 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyRoleManagementPolicyRule.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -``` -This example shows how to use the New-MgBetaPolicyRoleManagementPolicyRule Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId +``` +This example shows how to use the New-MgBetaBetaPolicyRoleManagementPolicyRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyTokenIssuancePolicy.md index a624df39a68..63c67673103 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyTokenIssuancePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "definition-value" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "displayName-value" + isOrganizationDefault = $true } -New-MgBetaPolicyTokenIssuancePolicy -BodyParameter $params -``` -This example shows how to use the New-MgBetaPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaPolicyTokenIssuancePolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaPolicyTokenIssuancePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyTokenLifetimePolicy.md index 77e2afabc32..be53265950a 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyTokenLifetimePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - Definition = @( - "definition-value" + definition = @( + "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"8:00:00"}}" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "Contoso token lifetime policy" + isOrganizationDefault = $true } -New-MgBetaPolicyTokenLifetimePolicy -BodyParameter $params -``` -This example shows how to use the New-MgBetaPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaPolicyTokenLifetimePolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaPolicyTokenLifetimePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaRiskDetection.md b/src/Identity.SignIns/beta/examples/New-MgBetaRiskDetection.md index 2830dc2e4d0..9441e52db57 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaRiskDetection.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaRiskDetection.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaRiskDetection -``` -This example shows how to use the New-MgBetaRiskDetection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaRiskDetection +``` +This example shows how to use the New-MgBetaBetaRiskDetection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaRiskyServicePrincipal.md b/src/Identity.SignIns/beta/examples/New-MgBetaRiskyServicePrincipal.md index 1e98a469752..baf33d83872 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaRiskyServicePrincipal.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaRiskyServicePrincipal.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaRiskyServicePrincipal -``` -This example shows how to use the New-MgBetaRiskyServicePrincipal Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaRiskyServicePrincipal +``` +This example shows how to use the New-MgBetaBetaRiskyServicePrincipal Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaRiskyServicePrincipalHistory.md b/src/Identity.SignIns/beta/examples/New-MgBetaRiskyServicePrincipalHistory.md index a8dfe351006..c1514c0ea05 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaRiskyServicePrincipalHistory.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaRiskyServicePrincipalHistory.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaRiskyServicePrincipalHistory -RiskyServicePrincipalId $riskyServicePrincipalId -``` -This example shows how to use the New-MgBetaRiskyServicePrincipalHistory Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaRiskyServicePrincipalHistory -RiskyServicePrincipalId $riskyServicePrincipalId +``` +This example shows how to use the New-MgBetaBetaRiskyServicePrincipalHistory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaRiskyUser.md b/src/Identity.SignIns/beta/examples/New-MgBetaRiskyUser.md index 1dc6cac2683..cf0a69a9232 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaRiskyUser.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaRiskyUser.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaRiskyUser -``` -This example shows how to use the New-MgBetaRiskyUser Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaRiskyUser +``` +This example shows how to use the New-MgBetaBetaRiskyUser Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaRiskyUserHistory.md b/src/Identity.SignIns/beta/examples/New-MgBetaRiskyUserHistory.md index fbf92ffbad6..f4c52ef23ba 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaRiskyUserHistory.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaRiskyUserHistory.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaRiskyUserHistory -RiskyUserId $riskyUserId -``` -This example shows how to use the New-MgBetaRiskyUserHistory Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaRiskyUserHistory -RiskyUserId $riskyUserId +``` +This example shows how to use the New-MgBetaBetaRiskyUserHistory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaServicePrincipalRiskDetection.md b/src/Identity.SignIns/beta/examples/New-MgBetaServicePrincipalRiskDetection.md index 3382857e0fe..0e10bac134e 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaServicePrincipalRiskDetection.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaServicePrincipalRiskDetection.md @@ -1,22 +1,18 @@ -### Example 1: List risk detections +### Example 1: List risk detections -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaServicePrincipalRiskDetection -``` -This example shows how to use the New-MgBetaServicePrincipalRiskDetection Cmdlet. +Get-MgBetaServicePrincipalRiskDetection +``` +This example shows how to use the New-MgBetaBetaServicePrincipalRiskDetection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List risk detections and filter the results -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List risk detections and filter the results - -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaServicePrincipalRiskDetection -Filter "riskEventType eq 'investigationsThreatIntelligence' or riskLevel eq 'medium'" -``` -This example shows how to use the New-MgBetaServicePrincipalRiskDetection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaServicePrincipalRiskDetection -Filter "riskEventType eq 'investigationsThreatIntelligence' or riskLevel eq 'medium'" +``` +This example shows how to use the New-MgBetaBetaServicePrincipalRiskDetection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationEmailMethod.md b/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationEmailMethod.md index 9c693fcf97f..e7d340ec477 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationEmailMethod.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - EmailAddress = "kim@contoso.com" + emailAddress = "kim@contoso.com" } -New-MgBetaUserAuthenticationEmailMethod -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaUserAuthenticationEmailMethod -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserAuthenticationEmailMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationPhoneMethod.md index 3caa072d8ef..412f06f7922 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationPhoneMethod.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - PhoneNumber = "+1 2065555555" - PhoneType = "mobile" + phoneNumber = "+1 2065555555" + phoneType = "mobile" } + # A UPN can also be used as -UserId. -New-MgBetaUserAuthenticationPhoneMethod -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserAuthenticationPhoneMethod -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserAuthenticationPhoneMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationTemporaryAccessPassMethod.md index 2976b0ec814..af468da107b 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaUserAuthenticationTemporaryAccessPassMethod.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - StartDateTime = [System.DateTime]::Parse("2022-06-05T00:00:00.000Z") - LifetimeInMinutes = 60 - IsUsableOnce = $false + startDateTime = [System.DateTime]::Parse("2022-06-05T00:00:00.000Z") + lifetimeInMinutes = 60 + isUsableOnce = $false } -New-MgBetaUserAuthenticationTemporaryAccessPassMethod -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaUserAuthenticationTemporaryAccessPassMethod -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaDataPolicyOperation.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaDataPolicyOperation.md index 3108d8bd6e6..519b0102c2a 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaDataPolicyOperation.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaDataPolicyOperation.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId -``` -This example shows how to use the Remove-MgBetaDataPolicyOperation Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId +``` +This example shows how to use the Remove-MgBetaBetaDataPolicyOperation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md index 5dac5f67f79..eda57c0f079 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md @@ -1,7 +1,36 @@ -### Example 1: Using the Remove-MgBetaIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -``` -This example shows how to use the Remove-MgBetaIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Changing display name, targetUrl, and username & password used for basic authentication + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + displayName = "New Test API" + targetUrl = "https://otherapi.com/api/endpoint" + authenticationConfiguration = @{ + "@odata.type" = "microsoft.graph.basicAuthentication" + username = "<NEW_USERNAME>" + password = "<NEW_PASSWORD>" + } +} + +Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Changing API connector to use client certificate authentication + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + authenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + password = "secret" + } +} + +Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlow.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlow.md index 23b29a5145b..c19c97ea3d5 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlow.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -This example shows how to use the Remove-MgBetaIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId +``` +This example shows how to use the Remove-MgBetaBetaIdentityB2XUserFlow Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlowLanguage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlowLanguage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityProvider.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityProvider.md index 2ff5a3e8231..2031ccb7124 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityProvider.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityProvider.md @@ -1,14 +1,28 @@ -### Example 1: Using the Remove-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Remove-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Remove-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + clientSecret = "1111111111111" +} + +Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + displayName = "Apple" +} + +Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityUserFlowAttribute.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityUserFlowAttribute.md index 47fdb406009..e5ed88b14b6 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityUserFlowAttribute.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -``` -This example shows how to use the Remove-MgBetaIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + description = "Your new hobby" +} + +Update-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaIdentityUserFlowAttribute Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaInformationProtectionThreatAssessmentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaInformationProtectionThreatAssessmentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaOauth2PermissionGrant.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaOauth2PermissionGrant.md index 2f687ba6dbc..18772c5922c 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaOauth2PermissionGrant.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaOauth2PermissionGrant.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -``` -This example shows how to use the Remove-MgBetaOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + scope = "User.ReadBasic.All Group.ReadWrite.All" +} + +Update-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaOauth2PermissionGrant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyActivityBasedTimeoutPolicy.md index fe6ce0a08cb..93a03921b93 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyActivityBasedTimeoutPolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -``` -This example shows how to use the Remove-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + definition = @( + "definition-value" + ) + displayName = "displayName-value" + isOrganizationDefault = $true +} + +Update-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyActivityBasedTimeoutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAdminConsentRequestPolicy.md index d961b30f95f..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAdminConsentRequestPolicy.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns + PS C:\> {{ Add code here }} -Get-MgBetaPolicyAdminConsentRequestPolicy +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaPolicyAdminConsentRequestPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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.SignIns/beta/examples/Remove-MgBetaPolicyAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAppManagementPolicy.md index 45290d16605..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAppManagementPolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaPolicyAppManagementPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaPolicyAppManagementPolicy -AppManagementPolicyId $appManagementPolicyId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaPolicyAppManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationFlowPolicy.md index 0ae511bfcd7..bc092523d3c 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationFlowPolicy.md @@ -1,17 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ - SelfServiceSignUp = @{ - IsEnabled = $true + selfServiceSignUp = @{ + isEnabled = $true } } -Update-MgBetaPolicyAuthenticationFlowPolicy -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaPolicyAuthenticationFlowPolicy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPolicyAuthenticationFlowPolicy -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyAuthenticationFlowPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationMethodPolicy.md index 4d1a999b901..d7e5b532dff 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationMethodPolicy.md @@ -1,39 +1,27 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ - "@odata.context" = "https://graph.microsoft.com/v1.0/$metadata#authenticationMethodsPolicy" - RegistrationEnforcement = @{ - AuthenticationMethodsRegistrationCampaign = @{ - SnoozeDurationInDays = 1 - State = "enabled" - ExcludeTargets = @( + registrationEnforcement = @{ + authenticationMethodsRegistrationCampaign = @{ + snoozeDurationInDays = 1 + state = "enabled" + excludeTargets = @( ) - IncludeTargets = @( + includeTargets = @( @{ - Id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - TargetType = "group" - TargetedAuthenticationMethod = "microsoftAuthenticator" + id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" + targetType = "group" + targetedAuthenticationMethod = "microsoftAuthenticator" } ) } } - AuthenticationMethodConfigurations = @( - @{ - "@odata.type" = "#microsoft.graph.fido2AuthenticationMethodConfiguration" - Id = "Fido2" - State = "disabled" - IsSelfServiceRegistrationAllowed = $false - IsAttestationEnforced = $false - } - ) } -Update-MgBetaPolicyAuthenticationMethodPolicy -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaPolicyAuthenticationMethodPolicy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPolicyAuthenticationMethodPolicy -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyAuthenticationMethodPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationStrengthPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationStrengthPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyAuthenticationStrengthPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyClaimMappingPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyClaimMappingPolicy.md index a6df88755f8..8c87395b264 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyClaimMappingPolicy.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -``` -This example shows how to use the Remove-MgBetaPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + displayName = "UpdateClaimsPolicy" +} + +Update-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyClaimMappingPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicy.md index 84397840cf8..6af892d650e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicy.md @@ -1,15 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ - DisplayName = "CrossTenantAccessPolicy" + allowedCloudEndpoints = @( + "microsoftonline.us" + ) } -Update-MgBetaPolicyCrossTenantAccessPolicy -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaPolicyCrossTenantAccessPolicy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPolicyCrossTenantAccessPolicy -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyCrossTenantAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyDefault.md index 13aa4facc62..350e2532d1e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyDefault.md @@ -1,34 +1,32 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ - B2bCollaborationOutbound = @{ - UsersAndGroups = @{ - AccessType = "blocked" - Targets = @( + b2bCollaborationOutbound = @{ + usersAndGroups = @{ + accessType = "blocked" + targets = @( @{ - Target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - TargetType = "group" + target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" + targetType = "group" } ) } - Applications = @{ - AccessType = "blocked" - Targets = @( + applications = @{ + accessType = "blocked" + targets = @( @{ - Target = "AllApplications" - TargetType = "application" + target = "AllApplications" + targetType = "application" } ) } } } -Update-MgBetaPolicyCrossTenantAccessPolicyDefault -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaPolicyCrossTenantAccessPolicyDefault Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyCrossTenantAccessPolicyDefault Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyPartner.md index 27458f77358..894e59b44ca 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyCrossTenantAccessPolicyPartner.md @@ -1,7 +1,33 @@ -### Example 1: Using the Remove-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -``` -This example shows how to use the Remove-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Configure inbound trust settings + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + inboundTrust = @{ + isMfaAccepted = $true + isCompliantDeviceAccepted = $true + isHybridAzureADJoinedDeviceAccepted = $true + } +} + +Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Configure automaticUserConsent settings + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + automaticUserConsentSettings = @{ + inboundAllowed = $true + outboundAllowed = $true + } +} + +Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyDefaultAppManagementPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyDefaultAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyDefaultAppManagementPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicy.md index 384720b44c2..e8b2b6da76a 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicy.md @@ -1,7 +1,16 @@ -### Example 1: Using the Remove-MgBetaPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -``` -This example shows how to use the Remove-MgBetaPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + displayName = "PasswordHashSync Rollout Policy" + description = "PasswordHashSync Rollout Policy" + isEnabled = $true + isAppliedToOrganization = $false +} + +Update-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicyApplyToByRef.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicyApplyToByRef.md index 5ee1983ff72..0fa5b5ce215 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicyApplyToByRef.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyFeatureRolloutPolicyApplyToByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaPolicyFeatureRolloutPolicyApplyToByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgBetaPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgBetaBetaPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyHomeRealmDiscoveryPolicy.md index d8350c43c87..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyHomeRealmDiscoveryPolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/beta/examples/Remove-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md index 65aaa5c4927..ddb19410ea1 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,15 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ - IsEnabled = $false + isEnabled = $false } -Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicyAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicyAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicyRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyRoleManagementPolicyRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenIssuancePolicy.md index a105ee20808..af8e5598086 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenIssuancePolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -``` -This example shows how to use the Remove-MgBetaPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + definition = @( + "definition-value" + ) + displayName = "displayName-value" + isOrganizationDefault = $true +} + +Update-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyTokenIssuancePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenLifetimePolicy.md index b556cd08f88..f79b06dad82 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyTokenLifetimePolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -``` -This example shows how to use the Remove-MgBetaPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + definition = @( + "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" + ) + displayName = "Contoso token lifetime policy" + isOrganizationDefault = $true +} + +Update-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPolicyTokenLifetimePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskDetection.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskDetection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskDetection.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskDetection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskyServicePrincipal.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskyServicePrincipal.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskyServicePrincipal.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskyServicePrincipal.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskyUser.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskyUser.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskyUser.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaRiskyUser.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaServicePrincipalRiskDetection.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaServicePrincipalRiskDetection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaServicePrincipalRiskDetection.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaServicePrincipalRiskDetection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationEmailMethod.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationEmailMethod.md index 6b7b801c4c2..1ded548d8a2 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationEmailMethod.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -``` -This example shows how to use the Remove-MgBetaUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + emailAddress = "kim@contoso.com" +} + +Update-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserAuthenticationEmailMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationFido2Method.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationFido2Method.md index 54ae615476d..271252c6793 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationFido2Method.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationFido2Method.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaUserAuthenticationFido2Method Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId -``` -This example shows how to use the Remove-MgBetaUserAuthenticationFido2Method Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId +``` +This example shows how to use the Remove-MgBetaBetaUserAuthenticationFido2Method Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod.md index 3e53a30da2b..42395d03049 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId -``` -This example shows how to use the Remove-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId +``` +This example shows how to use the Remove-MgBetaBetaUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationOperation.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationOperation.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationPhoneMethod.md index d93c07832c9..f589f3026c9 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationPhoneMethod.md @@ -1,8 +1,15 @@ -### Example 1: Using the Remove-MgBetaUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + phoneNumber = "+1 2065555554" + phoneType = "mobile" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -``` -This example shows how to use the Remove-MgBetaUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserAuthenticationPhoneMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationSoftwareOathMethod.md index 9d0d05d3ce6..cf90c7e3d67 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationSoftwareOathMethod.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaUserAuthenticationSoftwareOathMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId -``` -This example shows how to use the Remove-MgBetaUserAuthenticationSoftwareOathMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId +``` +This example shows how to use the Remove-MgBetaBetaUserAuthenticationSoftwareOathMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationTemporaryAccessPassMethod.md index 270fb246483..287dca10792 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationTemporaryAccessPassMethod.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -Remove-MgBetaUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId -``` -This example shows how to use the Remove-MgBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId +``` +This example shows how to use the Remove-MgBetaBetaUserAuthenticationTemporaryAccessPassMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Set-MgBetaIdentityB2XUserFlowLanguageOverridePageContent.md b/src/Identity.SignIns/beta/examples/Set-MgBetaIdentityB2XUserFlowLanguageOverridePageContent.md index ed6aad860ac..c0269d181ac 100644 --- a/src/Identity.SignIns/beta/examples/Set-MgBetaIdentityB2XUserFlowLanguageOverridePageContent.md +++ b/src/Identity.SignIns/beta/examples/Set-MgBetaIdentityB2XUserFlowLanguageOverridePageContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -``` -This example shows how to use the Set-MgBetaIdentityB2XUserFlowLanguageOverridePageContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId +``` +This example shows how to use the Set-MgBetaBetaIdentityB2XUserFlowLanguageOverridePageContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaDataPolicyOperation.md b/src/Identity.SignIns/beta/examples/Update-MgBetaDataPolicyOperation.md index e5d1125d0b7..50d7c501f56 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaDataPolicyOperation.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaDataPolicyOperation.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId -``` -This example shows how to use the Update-MgBetaDataPolicyOperation Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId +``` +This example shows how to use the Update-MgBetaBetaDataPolicyOperation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityApiConnector.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityApiConnector.md index e9c10dbda7b..8d79830e0c0 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityApiConnector.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityApiConnector.md @@ -1,44 +1,36 @@ -### Example 1: Using the Update-MgBetaIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Changing display name, targetUrl, and username & password used for basic authentication + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - DisplayName = "New Test API" - TargetUrl = "https://otherapi.com/api/endpoint" - AuthenticationConfiguration = @{ + displayName = "New Test API" + targetUrl = "https://otherapi.com/api/endpoint" + authenticationConfiguration = @{ "@odata.type" = "microsoft.graph.basicAuthentication" - Username = "" - Password = "" + username = "<NEW_USERNAME>" + password = "<NEW_PASSWORD>" } } -Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Changing API connector to use client certificate authentication + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - AuthenticationConfiguration = @{ + authenticationConfiguration = @{ "@odata.type" = "#microsoft.graph.pkcs12Certificate" - Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - Password = "secret" + pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + password = "secret" } } -Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgBetaIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - AuthenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - Password = "secret" - } -} -Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlow.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlow.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlow.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlowLanguage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlowLanguage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityProvider.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityProvider.md index ee2670da145..19e4ebc7414 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityProvider.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityProvider.md @@ -1,54 +1,28 @@ -### Example 1: Using the Update-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ "@odata.type" = "#microsoft.graph.socialIdentityProvider" - DisplayName = "Apple" + clientSecret = "1111111111111" } -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - ClientSecret = "1111111111111" -} -Update-MgBetaIdentityProvider -IdentityProviderId $identityProviderId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - ResponseType = "id_token" -} -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Update-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - "@odata.type" = "#microsoft.graph.socialIdentityProvider" - ResponseType = "id_token" -} -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Update-MgBetaIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ "@odata.type" = "#microsoft.graph.socialIdentityProvider" - ClientSecret = "1111111111111" + displayName = "Apple" } -Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityUserFlowAttribute.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityUserFlowAttribute.md index 8affbc4556e..1b422ceb8c1 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityUserFlowAttribute.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - Description = "Your new hobby" + description = "Your new hobby" } -Update-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaIdentityUserFlowAttribute Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/beta/examples/Update-MgBetaInformationProtectionThreatAssessmentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaInformationProtectionThreatAssessmentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaOauth2PermissionGrant.md b/src/Identity.SignIns/beta/examples/Update-MgBetaOauth2PermissionGrant.md index 9ea69e69aae..3d9a6e65d27 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaOauth2PermissionGrant.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaOauth2PermissionGrant.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - Scope = "User.ReadBasic.All Group.ReadWrite.All" + scope = "User.ReadBasic.All Group.ReadWrite.All" } -Update-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaOauth2PermissionGrant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyActivityBasedTimeoutPolicy.md index 16447c3676d..2f9a9a3c54e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyActivityBasedTimeoutPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "definition-value" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "displayName-value" + isOrganizationDefault = $true } -Update-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyActivityBasedTimeoutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAdminConsentRequestPolicy.md index 4b30aba50b1..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAdminConsentRequestPolicy.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns + PS C:\> {{ Add code here }} -Get-MgBetaPolicyAdminConsentRequestPolicy +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaPolicyAdminConsentRequestPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationFlowPolicy.md index 33ae3f60d70..fee70b07f35 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationFlowPolicy.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgBetaPolicyAuthenticationFlowPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - SelfServiceSignUp = @{ - IsEnabled = $true + selfServiceSignUp = @{ + isEnabled = $true } } -Update-MgBetaPolicyAuthenticationFlowPolicy -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyAuthenticationFlowPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyAuthenticationFlowPolicy -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyAuthenticationFlowPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationMethodPolicy.md index 169d8a3b447..fe232b5b162 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationMethodPolicy.md @@ -1,24 +1,27 @@ -### Example 1: Using the Update-MgBetaPolicyAuthenticationMethodPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - RegistrationEnforcement = @{ - AuthenticationMethodsRegistrationCampaign = @{ - SnoozeDurationInDays = 1 - State = "enabled" - ExcludeTargets = @( + registrationEnforcement = @{ + authenticationMethodsRegistrationCampaign = @{ + snoozeDurationInDays = 1 + state = "enabled" + excludeTargets = @( ) - IncludeTargets = @( + includeTargets = @( @{ - Id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - TargetType = "group" - TargetedAuthenticationMethod = "microsoftAuthenticator" + id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" + targetType = "group" + targetedAuthenticationMethod = "microsoftAuthenticator" } ) } } } -Update-MgBetaPolicyAuthenticationMethodPolicy -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyAuthenticationMethodPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyAuthenticationMethodPolicy -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyAuthenticationMethodPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationStrengthPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationStrengthPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationStrengthPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyClaimMappingPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyClaimMappingPolicy.md index 12fa4dc4909..0839642f8d6 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyClaimMappingPolicy.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - DisplayName = "UpdateClaimsPolicy" + displayName = "UpdateClaimsPolicy" } -Update-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyClaimMappingPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicy.md index 644e4312c2b..78e65b6a342 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicy.md @@ -1,13 +1,15 @@ -### Example 1: Using the Update-MgBetaPolicyCrossTenantAccessPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - AllowedCloudEndpoints = @( + allowedCloudEndpoints = @( "microsoftonline.us" - "partner.microsoftonline.cn" ) } -Update-MgBetaPolicyCrossTenantAccessPolicy -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyCrossTenantAccessPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyCrossTenantAccessPolicy -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyCrossTenantAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyDefault.md index 2326c361dfc..d0f2fef9f62 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyDefault.md @@ -1,29 +1,32 @@ -### Example 1: Using the Update-MgBetaPolicyCrossTenantAccessPolicyDefault Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - B2bCollaborationOutbound = @{ - UsersAndGroups = @{ - AccessType = "blocked" - Targets = @( + b2bCollaborationOutbound = @{ + usersAndGroups = @{ + accessType = "blocked" + targets = @( @{ - Target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - TargetType = "group" + target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" + targetType = "group" } ) } - Applications = @{ - AccessType = "blocked" - Targets = @( + applications = @{ + accessType = "blocked" + targets = @( @{ - Target = "AllApplications" - TargetType = "application" + target = "AllApplications" + targetType = "application" } ) } } } -Update-MgBetaPolicyCrossTenantAccessPolicyDefault -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyCrossTenantAccessPolicyDefault Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyCrossTenantAccessPolicyDefault Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyPartner.md index b0033761efc..0747b075b56 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyCrossTenantAccessPolicyPartner.md @@ -1,14 +1,33 @@ -### Example 1: Using the Update-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Configure inbound trust settings + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - InboundTrust = @{ - IsMfaAccepted = $true - IsCompliantDeviceAccepted = $true - IsHybridAzureADJoinedDeviceAccepted = $true + inboundTrust = @{ + isMfaAccepted = $true + isCompliantDeviceAccepted = $true + isHybridAzureADJoinedDeviceAccepted = $true } } -Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Configure automaticUserConsent settings + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + automaticUserConsentSettings = @{ + inboundAllowed = $true + outboundAllowed = $true + } +} + +Update-MgBetaPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md index 0491870f7e5..fa7dd914fa6 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md @@ -1,46 +1,49 @@ -### Example 1: Using the Update-MgBetaPolicyDefaultAppManagementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - IsEnabled = $true - ApplicationRestrictions = @{ - PasswordCredentials = @( + isEnabled = $true + applicationRestrictions = @{ + passwordCredentials = @( @{ - RestrictionType = "passwordAddition" - MaxLifetime = $null - RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") + restrictionType = "passwordAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") } @{ - RestrictionType = "passwordLifetime" - MaxLifetime = "P4DT12H30M5S" - RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2017-01-01T10:37:00Z") + restrictionType = "passwordLifetime" + maxLifetime = "P4DT12H30M5S" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2017-01-01T10:37:00Z") } @{ - RestrictionType = "symmetricKeyAddition" - MaxLifetime = $null - RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") + restrictionType = "symmetricKeyAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2021-01-01T10:37:00Z") } @{ - RestrictionType = "customPasswordAddition" - MaxLifetime = $null - RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + restrictionType = "customPasswordAddition" + maxLifetime = $null + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") } @{ - RestrictionType = "symmetricKeyLifetime" - MaxLifetime = "P40D" - RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + restrictionType = "symmetricKeyLifetime" + maxLifetime = "P40D" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") } ) - KeyCredentials = @( + keyCredentials = @( @{ - RestrictionType = "asymmetricKeyLifetime" - MaxLifetime = "P30D" - RestrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") + restrictionType = "asymmetricKeyLifetime" + maxLifetime = "P30D" + restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2015-01-01T10:37:00Z") } ) } } -Update-MgBetaPolicyDefaultAppManagementPolicy -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyDefaultAppManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyDefaultAppManagementPolicy -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyDefaultAppManagementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyFeatureRolloutPolicy.md index b20ce41ff3a..b7cf4afb8e0 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyFeatureRolloutPolicy.md @@ -1,13 +1,16 @@ -### Example 1: Using the Update-MgBetaPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - DisplayName = "PasswordHashSync Rollout Policy" - Description = "PasswordHashSync Rollout Policy" - IsEnabled = $true - IsAppliedToOrganization = $false + displayName = "PasswordHashSync Rollout Policy" + description = "PasswordHashSync Rollout Policy" + isEnabled = $true + isAppliedToOrganization = $false } -Update-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyHomeRealmDiscoveryPolicy.md index 14f86d84e5d..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyHomeRealmDiscoveryPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns -$params = @{ - Definition = @( - "definition-value" - ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true -} -Update-MgBetaPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/beta/examples/Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md index 785f306fd3c..8a262705fa0 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - IsEnabled = $false + isEnabled = $false } -Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyRule.md index 9a646bc2685..ab26aa07391 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyRoleManagementPolicyRule.md @@ -1,25 +1,28 @@ -### Example 1: Using the Update-MgBetaPolicyRoleManagementPolicyRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" - Id = "Expiration_EndUser_Assignment" - IsExpirationRequired = $true - MaximumDuration = "PT1H45M" - Target = @{ + id = "Expiration_EndUser_Assignment" + isExpirationRequired = $true + maximumDuration = "PT1H45M" + target = @{ "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" - Caller = "EndUser" - Operations = @( + caller = "EndUser" + operations = @( "All" ) - Level = "Assignment" - InheritableSettings = @( + level = "Assignment" + inheritableSettings = @( ) - EnforcedSettings = @( + enforcedSettings = @( ) } } -Update-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyRoleManagementPolicyRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyRoleManagementPolicyRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenIssuancePolicy.md index 4723fe2512a..f8e9c3bb436 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenIssuancePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "definition-value" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "displayName-value" + isOrganizationDefault = $true } -Update-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyTokenIssuancePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenLifetimePolicy.md index dba643282ca..ab18fa30a00 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyTokenLifetimePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - Definition = @( - "definition-value" + definition = @( + "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "Contoso token lifetime policy" + isOrganizationDefault = $true } -Update-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPolicyTokenLifetimePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaRiskDetection.md b/src/Identity.SignIns/beta/examples/Update-MgBetaRiskDetection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaRiskDetection.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaRiskDetection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaRiskyServicePrincipal.md b/src/Identity.SignIns/beta/examples/Update-MgBetaRiskyServicePrincipal.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaRiskyServicePrincipal.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaRiskyServicePrincipal.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaRiskyUser.md b/src/Identity.SignIns/beta/examples/Update-MgBetaRiskyUser.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaRiskyUser.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaRiskyUser.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaServicePrincipalRiskDetection.md b/src/Identity.SignIns/beta/examples/Update-MgBetaServicePrincipalRiskDetection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaServicePrincipalRiskDetection.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaServicePrincipalRiskDetection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationEmailMethod.md b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationEmailMethod.md index c163a6ffe1b..8e70190f2c3 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationEmailMethod.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - EmailAddress = "kim@contoso.com" + emailAddress = "kim@contoso.com" } -Update-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserAuthenticationEmailMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationOperation.md b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationOperation.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationPhoneMethod.md index 17881037cba..679955afae5 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaUserAuthenticationPhoneMethod.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgBetaUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns + $params = @{ - PhoneNumber = "+1 2065555554" - PhoneType = "mobile" + phoneNumber = "+1 2065555554" + phoneType = "mobile" } + # A UPN can also be used as -UserId. -Update-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserAuthenticationPhoneMethod 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 af06a44cfe9..f0a41356992 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgDataPolicyOperation.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgDataPolicyOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgDataPolicyOperation Cmdlet -```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). +### Example 1: Code snippet + +```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). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md index 471582843c2..29da738d8a0 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityApiConnector.md @@ -1,14 +1,36 @@ -### Example 1: Using the Get-MgIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). -### Example 2: Using the Get-MgIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityApiConnector -``` -This example shows how to use the Get-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Changing display name, targetUrl, and username & password used for basic authentication + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + displayName = "New Test API" + targetUrl = "https://otherapi.com/api/endpoint" + authenticationConfiguration = @{ + "@odata.type" = "microsoft.graph.basicAuthentication" + username = "<NEW_USERNAME>" + password = "<NEW_PASSWORD>" + } +} + +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Get-MgIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Changing API connector to use client certificate authentication + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + authenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + password = "secret" + } +} + +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the 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 f080a277fb2..1d45185b647 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlow.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). -### Example 2: Using the Get-MgIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityB2XUserFlow -ExpandProperty "identityProviders" -``` -This example shows how to use the Get-MgIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityB2XUserFlow -``` -This example shows how to use the Get-MgIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +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 4f2ad8123cc..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowIdentityProvider.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgIdentityB2XUserFlowIdentityProvider Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityB2XUserFlowIdentityProvider -B2xIdentityUserFlowId $b2xIdentityUserFlowId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgIdentityB2XUserFlowIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguage.md index 79d1e1e8e9d..0e62b346e5d 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowLanguage.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgIdentityB2XUserFlowLanguage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -This example shows how to use the Get-MgIdentityB2XUserFlowLanguage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityB2XUserFlowLanguage Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +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-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md index 3b32c80bb11..4d00e6254ed 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,28 +1,13 @@ -### Example 1: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -This example shows how to use the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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 3: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -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). -### Example 4: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + userInputType = "textBox" +} + +Update-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params +``` +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-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityProvider.md index 01b5b539c20..184bbe47b1f 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityProvider.md @@ -1,56 +1,28 @@ -### Example 1: Using the Get-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Get-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Get-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityProvider -IdentityProviderId $identityProviderId -``` -This example shows how to use the Get-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityProvider -``` -This example shows how to use the Get-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityProvider -``` -This example shows how to use the Get-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityProvider -OutFile $outFileId -``` -This example shows how to use the Get-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Get-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Get-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 8: Using the Get-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityProvider -``` -This example shows how to use the Get-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + clientSecret = "1111111111111" +} + +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + displayName = "Apple" +} + +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +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 559459b4d9a..95fdd392e50 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgIdentityUserFlowAttribute.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). -### Example 2: Using the Get-MgIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgIdentityUserFlowAttribute -``` -This example shows how to use the Get-MgIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + description = "Your new hobby" +} + +Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +``` +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-MgInformationProtectionBitlockerRecoveryKey.md b/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionBitlockerRecoveryKey.md index 3625ef23dfe..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionBitlockerRecoveryKey.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionBitlockerRecoveryKey.md @@ -1,28 +1,17 @@ -### Example 1: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $bitlockerRecoveryKeyId -Property "key" + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $bitlockerRecoveryKeyId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionBitlockerRecoveryKey -Filter "deviceId eq '1ab40ab2-32a8-4b00-b6b5-ba724e407de9'" -``` -This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionBitlockerRecoveryKey -``` -This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md index 28ea7eda368..d72e9aed74b 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md @@ -1,42 +1,45 @@ -### Example 1: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -``` -This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -``` -This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -``` -This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -ExpandProperty "results" -``` -This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionThreatAssessmentRequest -``` -This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -``` -This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get the properties of a mail assessment request + +```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: Get the properties of an email file assessment request + +```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: Get the properties of a file assessment request + +```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: Get the properties of an url assessment request + +```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 5: Expand threat assessment results for a request + +```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). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md b/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md index 6886116e856..d8d38983b01 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgOauth2PermissionGrant.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). -### Example 2: Using the Get-MgOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgOauth2PermissionGrant -``` -This example shows how to use the Get-MgOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + scope = "User.ReadBasic.All Group.ReadWrite.All" +} + +Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +``` +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 62dba8d8694..f3d70217eb3 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgOrganizationCertificateBasedAuthConfiguration.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgOrganizationCertificateBasedAuthConfiguration.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). -### Example 2: Using the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId -``` -This example shows how to use the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-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 c81eb394fd0..f3096c36b0b 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyActivityBasedTimeoutPolicy -``` -This example shows how to use the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + definition = @( + "definition-value" + ) + displayName = "displayName-value" + isOrganizationDefault = $true +} + +Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +``` +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 ee06d4621b7..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAdminConsentRequestPolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgPolicyAdminConsentRequestPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyAdminConsentRequestPolicy + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPolicyAdminConsentRequestPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md index a13c86a1e80..f02a43e9017 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationFlowPolicy.md @@ -1,7 +1,15 @@ -### Example 1: Using the Get-MgPolicyAuthenticationFlowPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + selfServiceSignUp = @{ + isEnabled = $true + } +} + +Update-MgPolicyAuthenticationFlowPolicy -BodyParameter $params +``` +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 75477a41d29..573a0047d09 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyAuthenticationMethodPolicy.md @@ -1,7 +1,27 @@ -### Example 1: Using the Get-MgPolicyAuthenticationMethodPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + registrationEnforcement = @{ + authenticationMethodsRegistrationCampaign = @{ + snoozeDurationInDays = 1 + state = "enabled" + excludeTargets = @( + ) + includeTargets = @( + @{ + id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" + targetType = "group" + targetedAuthenticationMethod = "microsoftAuthenticator" + } + ) + } + } +} + +Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params +``` +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-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md index c08a9fbb2da..43f80fd0c5e 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyClaimMappingPolicy.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyClaimMappingPolicy -``` -This example shows how to use the Get-MgPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + displayName = "UpdateClaimsPolicy" +} + +Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +``` +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 1652fc09ccd..82600429314 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicy.md @@ -1,7 +1,15 @@ -### Example 1: Using the Get-MgPolicyCrossTenantAccessPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + allowedCloudEndpoints = @( + "microsoftonline.us" + ) +} + +Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params +``` +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 7ae532c239b..23d8329e0d0 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyDefault.md @@ -1,7 +1,32 @@ -### Example 1: Using the Get-MgPolicyCrossTenantAccessPolicyDefault Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + b2bCollaborationOutbound = @{ + usersAndGroups = @{ + accessType = "blocked" + targets = @( + @{ + target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" + targetType = "group" + } + ) + } + applications = @{ + accessType = "blocked" + targets = @( + @{ + target = "AllApplications" + targetType = "application" + } + ) + } + } +} + +Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +``` +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 33ae6aa3f98..661fe04c0f2 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,14 +1,33 @@ -### Example 1: Using the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). -### Example 2: Using the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyCrossTenantAccessPolicyPartner -``` -This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Configure inbound trust settings + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + inboundTrust = @{ + isMfaAccepted = $true + isCompliantDeviceAccepted = $true + isHybridAzureADJoinedDeviceAccepted = $true + } +} + +Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Configure automaticUserConsent settings + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + automaticUserConsentSettings = @{ + inboundAllowed = $true + outboundAllowed = $true + } +} + +Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +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 409f7518584..a4198b7a32b 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyFeatureRolloutPolicy.md @@ -1,21 +1,16 @@ -### Example 1: Using the Get-MgPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyFeatureRolloutPolicy -``` -This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -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). -### Example 3: Using the Get-MgPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -``` -This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + displayName = "PasswordHashSync Rollout Policy" + description = "PasswordHashSync Rollout Policy" + isEnabled = $true + isAppliedToOrganization = $false +} + +Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md index f111110a7fd..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyHomeRealmDiscoveryPolicy + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index d99fd54d041..4d27d5a3898 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy -``` -This example shows how to use the Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + isEnabled = $false +} + +Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +``` +This example shows how to use the Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md index d35fb00f8eb..a1c46ed9416 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md @@ -1,28 +1,18 @@ -### Example 1: Using the Get-MgPolicyRoleManagementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -ExpandProperty "effectiveRules,rules" -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPolicyRoleManagementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgPolicyRoleManagementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'Directory'" -ExpandProperty "rules" -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgPolicyRoleManagementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole'" -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Retrieve the details of a role management policy + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve the details of a role management policy and expand the relationships + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -ExpandProperty "effectiveRules,rules" +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyAssignment.md index 2c119732c9e..d10fd3f4aae 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyAssignment.md @@ -1,28 +1,18 @@ -### Example 1: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId -ExpandProperty "policy(`$expand=rules)" -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole' and roleDefinitionId eq '62e90394-69f5-4237-9190-012177145e10'" -ExpandProperty "policy(`$expand=rules)" -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'Directory'" -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Retrieve a role management policy assignment + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieve a role management policy assignment and expand the policy and its associated rules + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId -ExpandProperty "policy(`$expand=rules)" +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md index 74a8a80cffd..83e0a1a12f7 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicyRule.md @@ -1,14 +1,28 @@ -### Example 1: Using the Get-MgPolicyRoleManagementPolicyRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicyRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPolicyRoleManagementPolicyRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -``` -This example shows how to use the Get-MgPolicyRoleManagementPolicyRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" + id = "Expiration_EndUser_Assignment" + isExpirationRequired = $true + maximumDuration = "PT1H45M" + target = @{ + "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" + caller = "EndUser" + operations = @( + "All" + ) + level = "Assignment" + inheritableSettings = @( + ) + enforcedSettings = @( + ) + } +} + +Update-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicyRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md index db347e52326..4c9547b61e0 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenIssuancePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -``` -This example shows how to use the Get-MgPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyTokenIssuancePolicy -``` -This example shows how to use the Get-MgPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + definition = @( + "definition-value" + ) + displayName = "displayName-value" + isOrganizationDefault = $true +} + +Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgPolicyTokenIssuancePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md index b0732911a74..e7d673d5c0a 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyTokenLifetimePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyTokenLifetimePolicy -``` -This example shows how to use the Get-MgPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -``` -This example shows how to use the Get-MgPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + definition = @( + "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" + ) + displayName = "Contoso token lifetime policy" + isOrganizationDefault = $true +} + +Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +``` +This example shows how to use the Get-MgPolicyTokenLifetimePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgRiskDetection.md b/src/Identity.SignIns/v1.0/examples/Get-MgRiskDetection.md index c02e2543740..841b0b1e43d 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgRiskDetection.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgRiskDetection.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgRiskDetection Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgRiskDetection -RiskDetectionId $riskDetectionId -``` -This example shows how to use the Get-MgRiskDetection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgRiskDetection Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgRiskDetection -``` -This example shows how to use the Get-MgRiskDetection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgRiskDetection -RiskDetectionId $riskDetectionId +``` +This example shows how to use the Get-MgRiskDetection 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-MgRiskyUser.md b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUser.md index e5e581c00d7..3281fbea2f3 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUser.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgRiskyUser.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgRiskyUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgRiskyUser -RiskyUserId $riskyUserId -``` -This example shows how to use the Get-MgRiskyUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgRiskyUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgRiskyUser -``` -This example shows how to use the Get-MgRiskyUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgRiskyUser -RiskyUserId $riskyUserId +``` +This example shows how to use the Get-MgRiskyUser 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-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationEmailMethod.md index c6ce2c9abbe..87696743c08 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationEmailMethod.md @@ -1,16 +1,13 @@ -### Example 1: Using the Get-MgUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -``` -This example shows how to use the Get-MgUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgUserAuthenticationEmailMethod -UserId $userId -``` -This example shows how to use the Get-MgUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + emailAddress = "kim@contoso.com" +} + +Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationEmailMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationFido2Method.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationFido2Method.md index 03c43f7beb5..c222d4ed1b8 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationFido2Method.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationFido2Method.md @@ -1,8 +1,9 @@ -### Example 1: Using the Get-MgUserAuthenticationFido2Method Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId -``` -This example shows how to use the Get-MgUserAuthenticationFido2Method Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId +``` +This example shows how to use the Get-MgUserAuthenticationFido2Method Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md index decbc7b38a5..c39acbd67b4 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -``` -This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId +``` +This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationOperation.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationOperation.md index be39c89e922..2e8736c80a0 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationOperation.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgUserAuthenticationOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgUserAuthenticationOperation -UserId $userId -LongRunningOperationId $longRunningOperationId -``` -This example shows how to use the Get-MgUserAuthenticationOperation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgUserAuthenticationOperation -UserId $userId -LongRunningOperationId $longRunningOperationId +``` +This example shows how to use the Get-MgUserAuthenticationOperation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPasswordMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPasswordMethod.md index cefc8bfa00f..716e2cf2264 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPasswordMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPasswordMethod.md @@ -1,16 +1,10 @@ -### Example 1: Using the Get-MgUserAuthenticationPasswordMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + # A UPN can also be used as -UserId. -Get-MgUserAuthenticationPasswordMethod -UserId $userId -PasswordAuthenticationMethodId $passwordAuthenticationMethodId -``` -This example shows how to use the Get-MgUserAuthenticationPasswordMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserAuthenticationPasswordMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgUserAuthenticationPasswordMethod -UserId $userId -``` -This example shows how to use the Get-MgUserAuthenticationPasswordMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgUserAuthenticationPasswordMethod -UserId $userId -PasswordAuthenticationMethodId $passwordAuthenticationMethodId +``` +This example shows how to use the Get-MgUserAuthenticationPasswordMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPhoneMethod.md index 2bc9fa82043..5cbc745cb3a 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationPhoneMethod.md @@ -1,16 +1,15 @@ -### Example 1: Using the Get-MgUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + phoneNumber = "+1 2065555554" + phoneType = "mobile" +} + # A UPN can also be used as -UserId. -Get-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -``` -This example shows how to use the Get-MgUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgUserAuthenticationPhoneMethod -UserId $userId -``` -This example shows how to use the Get-MgUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationPhoneMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationSoftwareOathMethod.md index bd08915fec1..377f8c69c8a 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationSoftwareOathMethod.md @@ -1,16 +1,9 @@ -### Example 1: Using the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId -``` -This example shows how to use the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -# A UPN can also be used as -UserId. -Get-MgUserAuthenticationSoftwareOathMethod -UserId $userId -``` -This example shows how to use the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId +``` +This example shows how to use the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationTemporaryAccessPassMethod.md index 7ffe8feb4e0..f5ce3482b10 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId -``` -This example shows how to use the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -``` -This example shows how to use the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId +``` +This example shows how to use the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityApiConnector.md index 5fc7a59036d..bc288fe1509 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityApiConnector.md @@ -1,48 +1,38 @@ -### Example 1: Using the New-MgIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Create an API connector with basic authentication + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - DisplayName = "Test API" - TargetUrl = "https://someapi.com/api" - AuthenticationConfiguration = @{ + displayName = "Test API" + targetUrl = "https://someapi.com/api" + authenticationConfiguration = @{ "@odata.type" = "#microsoft.graph.basicAuthentication" - Username = "MyUsername" - Password = "MyPassword" + username = "MyUsername" + password = "MyPassword" } } -New-MgIdentityApiConnector -BodyParameter $params -``` -This example shows how to use the New-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns + +New-MgIdentityApiConnector -BodyParameter $params +``` +This example shows how to use the New-MgIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an API connector with client certificate authentication + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - DisplayName = "Test API" - TargetUrl = "https://someotherapi.com/api" - AuthenticationConfiguration = @{ + displayName = "Test API" + targetUrl = "https://someotherapi.com/api" + authenticationConfiguration = @{ "@odata.type" = "#microsoft.graph.pkcs12Certificate" - Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - Password = "CertificatePassword" + pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + password = "CertificatePassword" } } -New-MgIdentityApiConnector -BodyParameter $params -``` -This example shows how to use the New-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - DisplayName = "Test API" - TargetUrl = "https://someotherapi.com/api" - AuthenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - Password = "CertificatePassword" - } -} -New-MgIdentityApiConnector -BodyParameter $params -``` -This example shows how to use the New-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgIdentityApiConnector -BodyParameter $params +``` +This example shows how to use the New-MgIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlow.md index 512cd6e7c15..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlow.md @@ -1,51 +1,17 @@ -### Example 1: Using the New-MgIdentityB2XUserFlow Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - Id = "UserFlowWithAPIConnector" - UserFlowType = "signUpOrSignIn" - UserFlowTypeVersion = 1 - ApiConnectorConfiguration = @{ - PostFederationSignup = @{ - "@odata.id" = "https://graph.microsoft.com/v1/identity/apiConnectors/{id}" - } - PostAttributeCollection = @{ - "@odata.id" = "https://graph.microsoft.com/v1/identity/apiConnectors/{id}" - } - } -} -New-MgIdentityB2XUserFlow -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgIdentityB2XUserFlow Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - Id = "Partner" - UserFlowType = "signUpOrSignIn" - UserFlowTypeVersion = 1 - IdentityProviders = @( - @{ - Id = "Facebook-OAuth" - Type = "Facebook" - Name = "Facebook" - } - ) -} -New-MgIdentityB2XUserFlow -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - Id = "Partner" - UserFlowType = "signUpOrSignIn" - UserFlowTypeVersion = 1 -} -New-MgIdentityB2XUserFlow -BodyParameter $params -``` -This example shows how to use the New-MgIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlowUserAttributeAssignment.md index aca99cdf086..d76ed443396 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,18 +1,21 @@ -### Example 1: Using the New-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - IsOptional = $false - RequiresVerification = $false - UserInputType = "TextBox" - DisplayName = "Shoe size" - UserAttributeValues = @( + isOptional = $false + requiresVerification = $false + userInputType = "TextBox" + displayName = "Shoe size" + userAttributeValues = @( ) - UserAttribute = @{ - Id = "extension_guid_shoeSize" + userAttribute = @{ + id = "extension_guid_shoeSize" } } -New-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -BodyParameter $params -``` -This example shows how to use the New-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -BodyParameter $params +``` +This example shows how to use the New-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessAuthenticationContextClassReference.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessAuthenticationContextClassReference.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessAuthenticationContextClassReference.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessAuthenticationContextClassReference.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessPolicy.md index 411321c83ed..5c307480e82 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityConditionalAccessPolicy.md @@ -1,95 +1,225 @@ -### Example 1: Require MFA to access Exchange Online outside of trusted locations - -```powershell -Connect-MgGraph -Scopes 'Policy.ReadWrite.ConditionalAccess' +### Example 1: Require MFA to access Exchange Online outside of trusted locations +```powershell Import-Module Microsoft.Graph.Identity.SignIns $params = @{ - DisplayName = "Access to EXO requires MFA" - State = "enabled" - Conditions = @{ - ClientAppTypes = @( - "mobileAppsAndDesktopClients" - "browser" - ) - Applications = @{ - IncludeApplications = @( - "b457cbac-03cb-4b15-9eef-79f24f8d3247" - ) - } - Users = @{ - IncludeGroups = @( - "f39e2655-3fae-43ad-94e2-c2b593cfc473" - ) - } - Locations = @{ - IncludeLocations = @( - "All" - ) - ExcludeLocations = @( - "AllTrusted" - ) - } - } - GrantControls = @{ - Operator = "OR" - BuiltInControls = @( - "mfa" - ) - } + displayName = "Access to EXO requires MFA" + state = "enabled" + conditions = @{ + clientAppTypes = @( + "mobileAppsAndDesktopClients" + "browser" + ) + applications = @{ + includeApplications = @( + "00000002-0000-0ff1-ce00-000000000000" + ) + } + users = @{ + includeGroups = @( + "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" + ) + } + locations = @{ + includeLocations = @( + "All" + ) + excludeLocations = @( + "AllTrusted" + ) + } + } + grantControls = @{ + operator = "OR" + builtInControls = @( + "mfa" + ) + } } -New-MgIdentityConditionalAccessPolicy -BodyParameter $params +New-MgIdentityConditionalAccessPolicy -BodyParameter $params +``` +This example shows how to use the New-MgIdentityConditionalAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Block access to Exchange Online from non-trusted regions -Id CreatedDateTime Description DisplayName ModifiedDateTime State --- --------------- ----------- ----------- ---------------- ----- -1c9afd06-3f59-464e-a6d9-193d99764a01 7/29/2022 9:46:18 AM Access to EXO requires MFA enabled -``` +```powershell Import-Module Microsoft.Graph.Identity.SignIns -This example shows a request to require multi-factor authentication for access to Exchange Online from modern authentication clients outside of trusted locations for a particular group. +$params = @{ + displayName = "Block access to EXO non-trusted regions." + state = "enabled" + conditions = @{ + clientAppTypes = @( + "all" + ) + applications = @{ + includeApplications = @( + "00000002-0000-0ff1-ce00-000000000000" + ) + } + users = @{ + includeGroups = @( + "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" + ) + } + locations = @{ + includeLocations = @( + "198ad66e-87b3-4157-85a3-8a7b51794ee9" + ) + } + } + grantControls = @{ + operator = "OR" + builtInControls = @( + "block" + ) + } +} -### Example 2: Block access to Exchange Online from non-trusted regions +New-MgIdentityConditionalAccessPolicy -BodyParameter $params +``` +This example shows how to use the New-MgIdentityConditionalAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Use all conditions and controls -```powershell -Connect-MgGraph -Scopes 'Policy.ReadWrite.ConditionalAccess' +```powershell Import-Module Microsoft.Graph.Identity.SignIns $params = @{ - DisplayName = "Block access to EXO non-trusted regions." - State = "enabled" - Conditions = @{ - ClientAppTypes = @( - "all" - ) - Applications = @{ - IncludeApplications = @( - "b457cbac-03cb-4b15-9eef-79f24f8d3247" - ) - } - Users = @{ - IncludeGroups = @( - "f39e2655-3fae-43ad-94e2-c2b593cfc473" - ) - } - Locations = @{ - IncludeLocations = @( - "0824dbaf-6277-4db0-8112-b29fd356f2c4" - ) - } - } - GrantControls = @{ - Operator = "OR" - BuiltInControls = @( - "block" - ) - } - } + displayName = "Demo app for documentation" + state = "disabled" + conditions = @{ + signInRiskLevels = @( + "high" + "medium" + ) + clientAppTypes = @( + "mobileAppsAndDesktopClients" + "exchangeActiveSync" + "other" + ) + applications = @{ + includeApplications = @( + "All" + ) + excludeApplications = @( + "499b84ac-1321-427f-aa17-267ca6975798" + "00000007-0000-0000-c000-000000000000" + "de8bc8b5-d9f9-48b1-a8ad-b748da725064" + "00000012-0000-0000-c000-000000000000" + "797f4846-ba00-4fd7-ba43-dac1f8f63013" + "05a65629-4c1b-48c1-a78b-804c4abdd4af" + "7df0a125-d3be-4c96-aa54-591f83ff541c" + ) + includeUserActions = @( + ) + } + users = @{ + includeUsers = @( + "a702a13d-a437-4a07-8a7e-8c052de62dfd" + ) + excludeUsers = @( + "124c5b6a-ffa5-483a-9b88-04c3fce5574a" + "GuestsOrExternalUsers" + ) + includeGroups = @( + ) + excludeGroups = @( + ) + includeRoles = @( + "9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" + "cf1c38e5-3621-4004-a7cb-879624dced7c" + "c4e39bd9-1100-46d3-8c65-fb160da0071f" + ) + excludeRoles = @( + "b0f54661-2d74-4c50-afa3-1ec803f12efe" + ) + } + platforms = @{ + includePlatforms = @( + "all" + ) + excludePlatforms = @( + "iOS" + "windowsPhone" + ) + } + locations = @{ + includeLocations = @( + "AllTrusted" + ) + excludeLocations = @( + "00000000-0000-0000-0000-000000000000" + "d2136c9c-b049-47ae-b9cf-316e04ef7198" + ) + } + } + grantControls = @{ + operator = "OR" + builtInControls = @( + "mfa" + "compliantDevice" + "domainJoinedDevice" + "approvedApplication" + "compliantApplication" + ) + customAuthenticationFactors = @( + ) + termsOfUse = @( + "ce580154-086a-40fd-91df-8a60abac81a0" + "7f29d675-caff-43e1-8a53-1b8516ed2075" + ) + } + sessionControls = @{ + applicationEnforcedRestrictions = $null + persistentBrowser = $null + cloudAppSecurity = @{ + cloudAppSecurityType = "blockDownloads" + isEnabled = $true + } + signInFrequency = @{ + value = 4 + type = "hours" + isEnabled = $true + } + } +} -New-MgIdentityConditionalAccessPolicy -BodyParameter $params +New-MgIdentityConditionalAccessPolicy -BodyParameter $params +``` +This example shows how to use the New-MgIdentityConditionalAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Require MFA to Exchange Online from non-compliant devices -Id CreatedDateTime Description DisplayName ModifiedDateTime State --- --------------- ----------- ----------- ---------------- ----- -61c7530f-5c1d-44b2-a972-4ae658b7a9ac 7/29/2022 10:03:30 AM Block access to EXO non-trusted regions. enabled +```powershell Import-Module Microsoft.Graph.Identity.SignIns -``` +$params = @{ + displayName = "Require MFA to EXO from non-compliant devices." + state = "enabled" + conditions = @{ + applications = @{ + includeApplications = @( + "00000002-0000-0ff1-ce00-000000000000" + ) + } + users = @{ + includeGroups = @( + "ba8e7ded-8b0f-4836-ba06-8ff1ecc5c8ba" + ) + } + } + grantControls = @{ + operator = "OR" + builtInControls = @( + "mfa" + ) + } +} -This example shows a request to block access to Exchange Online from non-trusted/unknown regions. This example assumes that the named location `0824dbaf-6277-4db0-8112-b29fd356f2c4` corresponds to a list of non-trusted/unknown regions. +New-MgIdentityConditionalAccessPolicy -BodyParameter $params +``` +This example shows how to use the New-MgIdentityConditionalAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md index 71d8706ad99..4a239bf692e 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md @@ -1,29 +1,35 @@ -### Example 1: Using the New-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Create a specific social identity provider (Azure AD and Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - "@odata.type" = "microsoft.graph.appleManagedIdentityProvider" - DisplayName = "Sign in with Apple" - DeveloperId = "UBF8T346G9" - ServiceId = "com.microsoft.rts.b2c.test.client" - KeyId = "99P6D879C4" - CertificateData = "******" + "@odata.type" = "microsoft.graph.socialIdentityProvider" + displayName = "Login with Amazon" + identityProviderType = "Amazon" + clientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" + clientSecret = "000000000000" } -New-MgIdentityProvider -BodyParameter $params -``` -This example shows how to use the New-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns + +New-MgIdentityProvider -BodyParameter $params +``` +This example shows how to use the New-MgIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Retrieves Apple identity provider (only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - "@odata.type" = "microsoft.graph.socialIdentityProvider" - DisplayName = "Login with Amazon" - IdentityProviderType = "Amazon" - ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" - ClientSecret = "000000000000" + "@odata.type" = "microsoft.graph.appleManagedIdentityProvider" + displayName = "Sign in with Apple" + developerId = "UBF8T346G9" + serviceId = "com.microsoft.rts.b2c.test.client" + keyId = "99P6D879C4" + certificateData = "******" } -New-MgIdentityProvider -BodyParameter $params -``` -This example shows how to use the New-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgIdentityProvider -BodyParameter $params +``` +This example shows how to use the New-MgIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityUserFlowAttribute.md index e296bf1fa7f..7a20511507c 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityUserFlowAttribute.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - DisplayName = "Hobby" - Description = "Your hobby" - DataType = "string" + displayName = "Hobby" + description = "Your hobby" + dataType = "string" } -New-MgIdentityUserFlowAttribute -BodyParameter $params -``` -This example shows how to use the New-MgIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgIdentityUserFlowAttribute -BodyParameter $params +``` +This example shows how to use the New-MgIdentityUserFlowAttribute Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/v1.0/examples/New-MgInformationProtectionThreatAssessmentRequest.md index 5f84e79e607..d828312386a 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgInformationProtectionThreatAssessmentRequest.md @@ -1,55 +1,67 @@ -### Example 1: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Create a mail assessment request + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - "@odata.type" = "#microsoft.graph.emailFileAssessmentRequest" - RecipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" - ExpectedAssessment = "block" - Category = "malware" - ContentData = "UmVjZWl2ZWQ6IGZyb20gTVcyUFIwME1CMDMxNC5uYW1wcmQwMC....." + "@odata.type" = "#microsoft.graph.mailAssessmentRequest" + recipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + expectedAssessment = "block" + category = "spam" + messageUri = "https://graph.microsoft.com/v1.0/users/c52ce8db-3e4b-4181-93c4-7d6b6bffaf60/messages/AAMkADU3MWUxOTU0LWNlOTEt=" } -New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns + +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an email assessment request + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - "@odata.type" = "#microsoft.graph.fileAssessmentRequest" - ExpectedAssessment = "block" - Category = "malware" - FileName = "test.txt" - ContentData = "VGhpcyBpcyBhIHRlc3QgZmlsZQ==" + "@odata.type" = "#microsoft.graph.emailFileAssessmentRequest" + recipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + expectedAssessment = "block" + category = "malware" + contentData = "UmVjZWl2ZWQ6IGZyb20gTVcyUFIwME1CMDMxNC5uYW1wcmQwMC....." } -New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns + +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create a file assessment request + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - "@odata.type" = "#microsoft.graph.mailAssessmentRequest" - RecipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" - ExpectedAssessment = "block" - Category = "spam" - MessageUri = "https://graph.microsoft.com/v1.0/users/c52ce8db-3e4b-4181-93c4-7d6b6bffaf60/messages/AAMkADU3MWUxOTU0LWNlOTEt=" + "@odata.type" = "#microsoft.graph.fileAssessmentRequest" + expectedAssessment = "block" + category = "malware" + fileName = "test.txt" + contentData = "VGhpcyBpcyBhIHRlc3QgZmlsZQ==" } -New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns + +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create an url assessment request + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ "@odata.type" = "#microsoft.graph.urlAssessmentRequest" - Url = "http://test.com" - ExpectedAssessment = "block" - Category = "phishing" + url = "http://test.com" + expectedAssessment = "block" + category = "phishing" } -New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params -``` -This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgOauth2PermissionGrant.md b/src/Identity.SignIns/v1.0/examples/New-MgOauth2PermissionGrant.md index e1d8039ddaa..458f9c11fa9 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgOauth2PermissionGrant.md @@ -1,13 +1,16 @@ -### Example 1: Using the New-MgOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - ClientId = "ef969797-201d-4f6b-960c-e9ed5f31dab5" - ConsentType = "AllPrincipals" - ResourceId = "943603e4-e787-4fe9-93d1-e30f749aae39" - Scope = "DelegatedPermissionGrant.ReadWrite.All" + clientId = "ef969797-201d-4f6b-960c-e9ed5f31dab5" + consentType = "AllPrincipals" + resourceId = "943603e4-e787-4fe9-93d1-e30f749aae39" + scope = "DelegatedPermissionGrant.ReadWrite.All" } -New-MgOauth2PermissionGrant -BodyParameter $params -``` -This example shows how to use the New-MgOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgOauth2PermissionGrant -BodyParameter $params +``` +This example shows how to use the New-MgOauth2PermissionGrant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyActivityBasedTimeoutPolicy.md index 004e0922584..c6e790bc784 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "definition-value" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "displayName-value" + isOrganizationDefault = $true } -New-MgPolicyActivityBasedTimeoutPolicy -BodyParameter $params -``` -This example shows how to use the New-MgPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgPolicyActivityBasedTimeoutPolicy -BodyParameter $params +``` +This example shows how to use the New-MgPolicyActivityBasedTimeoutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md index 02afa593e74..1ca2b4a0a8c 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md @@ -1,13 +1,16 @@ -### Example 1: Using the New-MgPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "{"ClaimsMappingPolicy":{"Version":1,"IncludeBasicClaimSet":"true","ClaimsSchema": [{"Source":"user","ID":"userprincipalname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"},{"Source":"user","ID":"givenname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"},{"Source":"user","ID":"displayname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},{"Source":"user","ID":"surname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"},{"Source":"user","ID":"userprincipalname","SamlClaimType":"username"}],"ClaimsTransformation":[{"ID":"CreateTermsOfService","TransformationMethod":"CreateStringClaim","InputParameters": [{"ID":"value","DataType":"string", "Value":"sandbox"}],"OutputClaims":[{"ClaimTypeReferenceId":"TOS","TransformationClaimType":"createdClaim"}]}]}}" ) - DisplayName = "Test1234" + displayName = "Test1234" } -New-MgPolicyClaimMappingPolicy -BodyParameter $params -``` -This example shows how to use the New-MgPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgPolicyClaimMappingPolicy -BodyParameter $params +``` +This example shows how to use the New-MgPolicyClaimMappingPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyCrossTenantAccessPolicyPartner.md index 08248d42e4e..6fbe37a8b30 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,32 +1,35 @@ -### Example 1: Using the New-MgPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - TenantId = "3d0f5dec-5d3d-455c-8016-e2af1ae4d31a" - B2bDirectConnectOutbound = @{ - UsersAndGroups = @{ - AccessType = "blocked" - Targets = @( + tenantId = "3d0f5dec-5d3d-455c-8016-e2af1ae4d31a" + b2bDirectConnectOutbound = @{ + usersAndGroups = @{ + accessType = "blocked" + targets = @( @{ - Target = "6f546279-4da5-4b53-a095-09ea0cef9971" - TargetType = "group" + target = "6f546279-4da5-4b53-a095-09ea0cef9971" + targetType = "group" } ) } } - B2bDirectConnectInbound = @{ - Applications = @{ - AccessType = "allowed" - Targets = @( + b2bDirectConnectInbound = @{ + applications = @{ + accessType = "allowed" + targets = @( @{ - Target = "Office365" - TargetType = "application" + target = "Office365" + targetType = "application" } ) } } } -New-MgPolicyCrossTenantAccessPolicyPartner -BodyParameter $params -``` -This example shows how to use the New-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgPolicyCrossTenantAccessPolicyPartner -BodyParameter $params +``` +This example shows how to use the New-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicy.md index 373de32eaff..f80a15128a1 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - DisplayName = "PassthroughAuthentication rollout policy" - Description = "PassthroughAuthentication rollout policy" - Feature = "passthroughAuthentication" - IsEnabled = $true - IsAppliedToOrganization = $false + displayName = "PassthroughAuthentication rollout policy" + description = "PassthroughAuthentication rollout policy" + feature = "passthroughAuthentication" + isEnabled = $true + isAppliedToOrganization = $false } -New-MgPolicyFeatureRolloutPolicy -BodyParameter $params -``` -This example shows how to use the New-MgPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgPolicyFeatureRolloutPolicy -BodyParameter $params +``` +This example shows how to use the New-MgPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyTo.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyTo.md index 093355d11d5..522ff9bffc5 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyTo.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyTo.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Identity.SignIns -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/2441b489-4f12-4882-b039-8f6006bd66da" +} +New-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +``` +This example shows how to use the New-MgPolicyFeatureRolloutPolicyApplyTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md index 76772151534..fd20f6accf2 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/2441b489-4f12-4882-b039-8f6006bd66da" } -New-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params -``` -This example shows how to use the New-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +``` +This example shows how to use the New-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyHomeRealmDiscoveryPolicy.md index e1b04fb9256..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgPolicyHomeRealmDiscoveryPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - Definition = @( - "definition-value" - ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true -} -New-MgPolicyHomeRealmDiscoveryPolicy -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/v1.0/examples/New-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenIssuancePolicy.md index 9d7351e87fd..54ed1451aec 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenIssuancePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "definition-value" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "displayName-value" + isOrganizationDefault = $true } -New-MgPolicyTokenIssuancePolicy -BodyParameter $params -``` -This example shows how to use the New-MgPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgPolicyTokenIssuancePolicy -BodyParameter $params +``` +This example shows how to use the New-MgPolicyTokenIssuancePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenLifetimePolicy.md index 00b365ba89a..d430f524b5b 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyTokenLifetimePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - Definition = @( - "definition-value" + definition = @( + "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"8:00:00"}}" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "Contoso token lifetime policy" + isOrganizationDefault = $true } -New-MgPolicyTokenLifetimePolicy -BodyParameter $params -``` -This example shows how to use the New-MgPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgPolicyTokenLifetimePolicy -BodyParameter $params +``` +This example shows how to use the New-MgPolicyTokenLifetimePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationEmailMethod.md index 71c41f18dc3..1ad6249595e 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationEmailMethod.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - EmailAddress = "kim@contoso.com" + emailAddress = "kim@contoso.com" } -New-MgUserAuthenticationEmailMethod -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgUserAuthenticationEmailMethod -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserAuthenticationEmailMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationPhoneMethod.md index a4751566f82..bffb29652ce 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationPhoneMethod.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - PhoneNumber = "+1 2065555555" - PhoneType = "mobile" + phoneNumber = "+1 2065555555" + phoneType = "mobile" } + # A UPN can also be used as -UserId. -New-MgUserAuthenticationPhoneMethod -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserAuthenticationPhoneMethod -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserAuthenticationPhoneMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationTemporaryAccessPassMethod.md index 7a823021bde..5f12f2aa81e 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - StartDateTime = [System.DateTime]::Parse("2022-06-05T00:00:00.000Z") - LifetimeInMinutes = 60 - IsUsableOnce = $false + startDateTime = [System.DateTime]::Parse("2022-06-05T00:00:00.000Z") + lifetimeInMinutes = 60 + isUsableOnce = $false } -New-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md index 2c391416e36..9286fb4bd8b 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityApiConnector.md @@ -1,7 +1,36 @@ -### Example 1: Using the Remove-MgIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -``` -This example shows how to use the Remove-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Changing display name, targetUrl, and username & password used for basic authentication + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + displayName = "New Test API" + targetUrl = "https://otherapi.com/api/endpoint" + authenticationConfiguration = @{ + "@odata.type" = "microsoft.graph.basicAuthentication" + username = "<NEW_USERNAME>" + password = "<NEW_PASSWORD>" + } +} + +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Remove-MgIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Changing API connector to use client certificate authentication + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + authenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + password = "secret" + } +} + +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Remove-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/Remove-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md index 41afb02897f..dd05e103376 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgIdentityB2XUserFlow Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId -``` -This example shows how to use the Remove-MgIdentityB2XUserFlow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId +``` +This example shows how to use the Remove-MgIdentityB2XUserFlow Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowLanguage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md index 77c6d93aab9..79c7d69a446 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -``` -This example shows how to use the Remove-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + userInputType = "textBox" +} + +Update-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params +``` +This example shows how to use the Remove-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/Remove-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md index e5d0701e143..4ca60125311 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityProvider.md @@ -1,14 +1,28 @@ -### Example 1: Using the Remove-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Remove-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -``` -This example shows how to use the Remove-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + clientSecret = "1111111111111" +} + +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Remove-MgIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + displayName = "Apple" +} + +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Remove-MgIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md index 4428c56f617..2865dc730e0 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityUserFlowAttribute.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -``` -This example shows how to use the Remove-MgIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + description = "Your new hobby" +} + +Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +``` +This example shows how to use the Remove-MgIdentityUserFlowAttribute Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/v1.0/examples/Remove-MgInformationProtectionThreatAssessmentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgInformationProtectionThreatAssessmentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgOauth2PermissionGrant.md b/src/Identity.SignIns/v1.0/examples/Remove-MgOauth2PermissionGrant.md index 9b181d80bb5..24b5d9b3c52 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgOauth2PermissionGrant.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -``` -This example shows how to use the Remove-MgOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + scope = "User.ReadBasic.All Group.ReadWrite.All" +} + +Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +``` +This example shows how to use the Remove-MgOauth2PermissionGrant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md index 52a82621278..33177deed9b 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -``` -This example shows how to use the Remove-MgPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + definition = @( + "definition-value" + ) + displayName = "displayName-value" + isOrganizationDefault = $true +} + +Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgPolicyActivityBasedTimeoutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAdminConsentRequestPolicy.md index 5654ebc33e3..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAdminConsentRequestPolicy.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Identity.SignIns +{{ Add output here }} +``` -Get-MgPolicyAdminConsentRequestPolicy -``` -This example shows how to use the Remove-MgPolicyAdminConsentRequestPolicy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationFlowPolicy.md index ed9671aac4f..2eb9078b613 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationFlowPolicy.md @@ -3,8 +3,8 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns $params = @{ - SelfServiceSignUp = @{ - IsEnabled = $true + selfServiceSignUp = @{ + isEnabled = $true } } diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationMethodPolicy.md index d2383ae543a..7038777baa6 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyAuthenticationMethodPolicy.md @@ -3,31 +3,21 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns $params = @{ - "@odata.context" = "https://graph.microsoft.com/v1.0/$metadata#authenticationMethodsPolicy" - RegistrationEnforcement = @{ - AuthenticationMethodsRegistrationCampaign = @{ - SnoozeDurationInDays = 1 - State = "enabled" - ExcludeTargets = @( + registrationEnforcement = @{ + authenticationMethodsRegistrationCampaign = @{ + snoozeDurationInDays = 1 + state = "enabled" + excludeTargets = @( ) - IncludeTargets = @( + includeTargets = @( @{ - Id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - TargetType = "group" - TargetedAuthenticationMethod = "microsoftAuthenticator" + id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" + targetType = "group" + targetedAuthenticationMethod = "microsoftAuthenticator" } ) } } - AuthenticationMethodConfigurations = @( - @{ - "@odata.type" = "#microsoft.graph.fido2AuthenticationMethodConfiguration" - Id = "Fido2" - State = "disabled" - IsSelfServiceRegistrationAllowed = $false - IsAttestationEnforced = $false - } - ) } Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md index bce6459f0ff..1995dddd431 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyClaimMappingPolicy.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -``` -This example shows how to use the Remove-MgPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + displayName = "UpdateClaimsPolicy" +} + +Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgPolicyClaimMappingPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicy.md index ef6a9905321..d90acd66882 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicy.md @@ -3,7 +3,9 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns $params = @{ - DisplayName = "CrossTenantAccessPolicy" + allowedCloudEndpoints = @( + "microsoftonline.us" + ) } Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyDefault.md index ad290526c4c..bdf0f665d2b 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyDefault.md @@ -3,22 +3,22 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns $params = @{ - B2bCollaborationOutbound = @{ - UsersAndGroups = @{ - AccessType = "blocked" - Targets = @( + b2bCollaborationOutbound = @{ + usersAndGroups = @{ + accessType = "blocked" + targets = @( @{ - Target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - TargetType = "group" + target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" + targetType = "group" } ) } - Applications = @{ - AccessType = "blocked" - Targets = @( + applications = @{ + accessType = "blocked" + targets = @( @{ - Target = "AllApplications" - TargetType = "application" + target = "AllApplications" + targetType = "application" } ) } diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md index f1ade290468..9f5f241d01c 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,7 +1,33 @@ -### Example 1: Using the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -``` -This example shows how to use the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Configure inbound trust settings + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + inboundTrust = @{ + isMfaAccepted = $true + isCompliantDeviceAccepted = $true + isHybridAzureADJoinedDeviceAccepted = $true + } +} + +Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Configure automaticUserConsent settings + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + automaticUserConsentSettings = @{ + inboundAllowed = $true + outboundAllowed = $true + } +} + +Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md index dadb557f6f5..d911027f2af 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicy.md @@ -1,7 +1,16 @@ -### Example 1: Using the Remove-MgPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -``` -This example shows how to use the Remove-MgPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + displayName = "PasswordHashSync Rollout Policy" + description = "PasswordHashSync Rollout Policy" + isEnabled = $true + isAppliedToOrganization = $false +} + +Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md index 16aac6be8c0..2028414e599 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -DirectoryObjectId $directoryObjectId -``` -This example shows how to use the Remove-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -DirectoryObjectId $directoryObjectId +``` +This example shows how to use the Remove-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyHomeRealmDiscoveryPolicy.md index 42c25002d03..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgPolicyHomeRealmDiscoveryPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/v1.0/examples/Remove-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 9234d62008b..8fd4d77dd15 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Identity.SignIns $params = @{ - IsEnabled = $false + isEnabled = $false } Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicyAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicyAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicyRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyRoleManagementPolicyRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md index c2333972a62..f3aafbf14e2 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenIssuancePolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -``` -This example shows how to use the Remove-MgPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + definition = @( + "definition-value" + ) + displayName = "displayName-value" + isOrganizationDefault = $true +} + +Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgPolicyTokenIssuancePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md index 9a32bcccd62..8ffc368d11f 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgPolicyTokenLifetimePolicy.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -``` -This example shows how to use the Remove-MgPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + definition = @( + "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" + ) + displayName = "Contoso token lifetime policy" + isOrganizationDefault = $true +} + +Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +``` +This example shows how to use the Remove-MgPolicyTokenLifetimePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgRiskDetection.md b/src/Identity.SignIns/v1.0/examples/Remove-MgRiskDetection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgRiskDetection.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgRiskDetection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgRiskyUser.md b/src/Identity.SignIns/v1.0/examples/Remove-MgRiskyUser.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgRiskyUser.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgRiskyUser.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md index c5a2f4ffb16..3f10e0f0d73 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationEmailMethod.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -``` -This example shows how to use the Remove-MgUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + emailAddress = "kim@contoso.com" +} + +Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserAuthenticationEmailMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationFido2Method.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationFido2Method.md index a10bc3e26a0..9f98d433ca5 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationFido2Method.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationFido2Method.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgUserAuthenticationFido2Method Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId -``` -This example shows how to use the Remove-MgUserAuthenticationFido2Method Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId +``` +This example shows how to use the Remove-MgUserAuthenticationFido2Method Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md index 8ad03994dda..6293f977ba8 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId -``` -This example shows how to use the Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId +``` +This example shows how to use the Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationOperation.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationOperation.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationPhoneMethod.md index 7ff17c6323a..e7019a3100f 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationPhoneMethod.md @@ -1,8 +1,15 @@ -### Example 1: Using the Remove-MgUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + phoneNumber = "+1 2065555554" + phoneType = "mobile" +} + # A UPN can also be used as -UserId. -Remove-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -``` -This example shows how to use the Remove-MgUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserAuthenticationPhoneMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationSoftwareOathMethod.md index ffcb8a49662..cee3ead147b 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationSoftwareOathMethod.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgUserAuthenticationSoftwareOathMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId -``` -This example shows how to use the Remove-MgUserAuthenticationSoftwareOathMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId +``` +This example shows how to use the Remove-MgUserAuthenticationSoftwareOathMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md index f8351df4ef4..7de766cb9bf 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -Remove-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId -``` -This example shows how to use the Remove-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Remove-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId +``` +This example shows how to use the Remove-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md b/src/Identity.SignIns/v1.0/examples/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md index 3fb652b6ee6..ce81348b6e6 100644 --- a/src/Identity.SignIns/v1.0/examples/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md +++ b/src/Identity.SignIns/v1.0/examples/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md @@ -1,11 +1,9 @@ -### Example 1: Using the Set-MgIdentityB2XUserFlowLanguageOverridePageContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - LocalizedStrings = @( - ) -} -Set-MgIdentityB2XUserFlowLanguageOverridePageContent -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -UserFlowLanguagePageId $userFlowLanguagePageId -BodyParameter $params -``` -This example shows how to use the Set-MgIdentityB2XUserFlowLanguageOverridePageContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId +``` +This example shows how to use the Set-MgIdentityB2XUserFlowLanguageOverridePageContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md index f9c4734e6fa..4979756dae1 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityApiConnector.md @@ -1,44 +1,36 @@ -### Example 1: Using the Update-MgIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Changing display name, targetUrl, and username & password used for basic authentication + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - AuthenticationConfiguration = @{ - "@odata.type" = "#microsoft.graph.pkcs12Certificate" - Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - Password = "secret" - } -} -Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - DisplayName = "New Test API" - TargetUrl = "https://otherapi.com/api/endpoint" - AuthenticationConfiguration = @{ + displayName = "New Test API" + targetUrl = "https://otherapi.com/api/endpoint" + authenticationConfiguration = @{ "@odata.type" = "microsoft.graph.basicAuthentication" - Username = "" - Password = "" + username = "<NEW_USERNAME>" + password = "<NEW_PASSWORD>" } } -Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgIdentityApiConnector Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns + +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Changing API connector to use client certificate authentication + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - AuthenticationConfiguration = @{ + authenticationConfiguration = @{ "@odata.type" = "#microsoft.graph.pkcs12Certificate" - Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" - Password = "secret" + pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + password = "secret" } } -Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityApiConnector Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityApiConnector Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlow.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlow.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowLanguage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowLanguage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md index 40320aa452d..053ec88cc05 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - UserInputType = "textBox" + userInputType = "textBox" } -Update-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params +``` +This example shows how to use the Update-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/Update-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md index 21f171b1dc9..202cbfc2d08 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityProvider.md @@ -1,32 +1,28 @@ -### Example 1: Using the Update-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Update a specific social identity provider (Azure AD or Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ "@odata.type" = "#microsoft.graph.socialIdentityProvider" - DisplayName = "Apple" + clientSecret = "1111111111111" } -Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - ClientSecret = "1111111111111" -} -Update-MgIdentityProvider -IdentityProviderId $identityProviderId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgIdentityProvider Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns + +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update a specific Apple identity provider (only for Azure AD B2C) + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ "@odata.type" = "#microsoft.graph.socialIdentityProvider" - ClientSecret = "1111111111111" + displayName = "Apple" } -Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityProvider Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityProvider Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md index a6f4a521f06..4c03bc0e698 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgIdentityUserFlowAttribute.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgIdentityUserFlowAttribute Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - Description = "Your new hobby" + description = "Your new hobby" } -Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params -``` -This example shows how to use the Update-MgIdentityUserFlowAttribute Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityUserFlowAttribute Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/v1.0/examples/Update-MgInformationProtectionThreatAssessmentRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgInformationProtectionThreatAssessmentRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgOauth2PermissionGrant.md b/src/Identity.SignIns/v1.0/examples/Update-MgOauth2PermissionGrant.md index 7a1f2d7b0e7..4e8fca01789 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgOauth2PermissionGrant.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgOauth2PermissionGrant Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - Scope = "User.ReadBasic.All Group.ReadWrite.All" + scope = "User.ReadBasic.All Group.ReadWrite.All" } -Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params -``` -This example shows how to use the Update-MgOauth2PermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params +``` +This example shows how to use the Update-MgOauth2PermissionGrant Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md index f9f4b84afa4..8cebf257505 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgPolicyActivityBasedTimeoutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "definition-value" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "displayName-value" + isOrganizationDefault = $true } -Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyActivityBasedTimeoutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyActivityBasedTimeoutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAdminConsentRequestPolicy.md index 9c00c23d0de..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAdminConsentRequestPolicy.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Identity.SignIns +{{ Add output here }} +``` -Get-MgPolicyAdminConsentRequestPolicy -``` -This example shows how to use the Update-MgPolicyAdminConsentRequestPolicy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md index 578c6acbcea..19f225e3e50 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationFlowPolicy.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgPolicyAuthenticationFlowPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - SelfServiceSignUp = @{ - IsEnabled = $true + selfServiceSignUp = @{ + isEnabled = $true } } -Update-MgPolicyAuthenticationFlowPolicy -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyAuthenticationFlowPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyAuthenticationFlowPolicy -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyAuthenticationFlowPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md index 3e3a4653cf7..a65ec57a5ab 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyAuthenticationMethodPolicy.md @@ -1,34 +1,27 @@ -### Example 1: Using the Update-MgPolicyAuthenticationMethodPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - "@odata.context" = "https://graph.microsoft.com/v1.0/$metadata#authenticationMethodsPolicy" - RegistrationEnforcement = @{ - AuthenticationMethodsRegistrationCampaign = @{ - SnoozeDurationInDays = 1 - State = "enabled" - ExcludeTargets = @( + registrationEnforcement = @{ + authenticationMethodsRegistrationCampaign = @{ + snoozeDurationInDays = 1 + state = "enabled" + excludeTargets = @( ) - IncludeTargets = @( + includeTargets = @( @{ - Id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" - TargetType = "group" - TargetedAuthenticationMethod = "microsoftAuthenticator" + id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" + targetType = "group" + targetedAuthenticationMethod = "microsoftAuthenticator" } ) } } - AuthenticationMethodConfigurations = @( - @{ - "@odata.type" = "#microsoft.graph.fido2AuthenticationMethodConfiguration" - Id = "Fido2" - State = "disabled" - IsSelfServiceRegistrationAllowed = $false - IsAttestationEnforced = $false - } - ) } -Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyAuthenticationMethodPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md index cad82458421..6bada98e335 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyClaimMappingPolicy.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgPolicyClaimMappingPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - DisplayName = "UpdateClaimsPolicy" + displayName = "UpdateClaimsPolicy" } -Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyClaimMappingPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyClaimMappingPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md index 90493d420a5..edcf125b251 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicy.md @@ -1,10 +1,15 @@ -### Example 1: Using the Update-MgPolicyCrossTenantAccessPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - DisplayName = "CrossTenantAccessPolicy" + allowedCloudEndpoints = @( + "microsoftonline.us" + ) } -Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyCrossTenantAccessPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md index 5f42277105e..78be4d04545 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyDefault.md @@ -1,29 +1,32 @@ -### Example 1: Using the Update-MgPolicyCrossTenantAccessPolicyDefault Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - B2bCollaborationOutbound = @{ - UsersAndGroups = @{ - AccessType = "blocked" - Targets = @( + b2bCollaborationOutbound = @{ + usersAndGroups = @{ + accessType = "blocked" + targets = @( @{ - Target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" - TargetType = "group" + target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" + targetType = "group" } ) } - Applications = @{ - AccessType = "blocked" - Targets = @( + applications = @{ + accessType = "blocked" + targets = @( @{ - Target = "AllApplications" - TargetType = "application" + target = "AllApplications" + targetType = "application" } ) } } } -Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyDefault Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyDefault Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md index 2c53523988b..ad7db51cbb8 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,14 +1,33 @@ -### Example 1: Using the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Configure inbound trust settings + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - InboundTrust = @{ - IsMfaAccepted = $true - IsCompliantDeviceAccepted = $true - IsHybridAzureADJoinedDeviceAccepted = $true + inboundTrust = @{ + isMfaAccepted = $true + isCompliantDeviceAccepted = $true + isHybridAzureADJoinedDeviceAccepted = $true } } -Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Configure automaticUserConsent settings + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + automaticUserConsentSettings = @{ + inboundAllowed = $true + outboundAllowed = $true + } +} + +Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md index d3999dd6483..d13e98eabcb 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyFeatureRolloutPolicy.md @@ -1,13 +1,16 @@ -### Example 1: Using the Update-MgPolicyFeatureRolloutPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - DisplayName = "PasswordHashSync Rollout Policy" - Description = "PasswordHashSync Rollout Policy" - IsEnabled = $true - IsAppliedToOrganization = $false + displayName = "PasswordHashSync Rollout Policy" + description = "PasswordHashSync Rollout Policy" + isEnabled = $true + isAppliedToOrganization = $false } -Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyFeatureRolloutPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyFeatureRolloutPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyHomeRealmDiscoveryPolicy.md index c2f7669d545..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgPolicyHomeRealmDiscoveryPolicy Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Identity.SignIns -$params = @{ - Definition = @( - "definition-value" - ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true -} -Update-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 916fda78477..0212d917213 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - IsEnabled = $false + isEnabled = $false } -Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicy.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicy.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyAssignment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyAssignment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md index bfdc4bdf4c5..25b9c2e56fe 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyRoleManagementPolicyRule.md @@ -1,25 +1,28 @@ -### Example 1: Using the Update-MgPolicyRoleManagementPolicyRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" - Id = "Expiration_EndUser_Assignment" - IsExpirationRequired = $true - MaximumDuration = "PT1H45M" - Target = @{ + id = "Expiration_EndUser_Assignment" + isExpirationRequired = $true + maximumDuration = "PT1H45M" + target = @{ "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" - Caller = "EndUser" - Operations = @( + caller = "EndUser" + operations = @( "All" ) - Level = "Assignment" - InheritableSettings = @( + level = "Assignment" + inheritableSettings = @( ) - EnforcedSettings = @( + enforcedSettings = @( ) } } -Update-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyRoleManagementPolicyRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyRoleManagementPolicyRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md index 991279d9a37..c531ea53ca1 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenIssuancePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgPolicyTokenIssuancePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - Definition = @( + definition = @( "definition-value" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "displayName-value" + isOrganizationDefault = $true } -Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyTokenIssuancePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyTokenIssuancePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md index e3c17506ca7..62362f6c908 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyTokenLifetimePolicy.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgPolicyTokenLifetimePolicy Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - Definition = @( - "definition-value" + definition = @( + "{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"5:30:00"}}" ) - DisplayName = "displayName-value" - IsOrganizationDefault = $true + displayName = "Contoso token lifetime policy" + isOrganizationDefault = $true } -Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgPolicyTokenLifetimePolicy Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyTokenLifetimePolicy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgRiskDetection.md b/src/Identity.SignIns/v1.0/examples/Update-MgRiskDetection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgRiskDetection.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgRiskDetection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgRiskyUser.md b/src/Identity.SignIns/v1.0/examples/Update-MgRiskyUser.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgRiskyUser.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgRiskyUser.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md index 1e91b1f02eb..688c5c6dbc4 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationEmailMethod.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgUserAuthenticationEmailMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - EmailAddress = "kim@contoso.com" + emailAddress = "kim@contoso.com" } -Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params -``` -This example shows how to use the Update-MgUserAuthenticationEmailMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Update-MgUserAuthenticationEmailMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationOperation.md b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationOperation.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md index 7375b689937..6bc954a8b4e 100644 --- a/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/v1.0/examples/Update-MgUserAuthenticationPhoneMethod.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgUserAuthenticationPhoneMethod Cmdlet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Identity.SignIns + $params = @{ - PhoneNumber = "+1 2065555554" - PhoneType = "mobile" + phoneNumber = "+1 2065555554" + phoneType = "mobile" } + # A UPN can also be used as -UserId. -Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params -``` -This example shows how to use the Update-MgUserAuthenticationPhoneMethod Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params +``` +This example shows how to use the Update-MgUserAuthenticationPhoneMethod Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md b/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md index e39ee3e5786..86248c7d5f1 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md +++ b/src/Mail/beta/examples/Get-MgBetaUserInferenceClassificationOverride.md @@ -1,8 +1,14 @@ -### Example 1: Using the Get-MgBetaUserInferenceClassificationOverride Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + classifyAs = "focused" +} + # A UPN can also be used as -UserId. -Get-MgBetaUserInferenceClassificationOverride -UserId $userId -``` -This example shows how to use the Get-MgBetaUserInferenceClassificationOverride Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +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). + diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md index 439e7b5efbf..027e684678d 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolder.md @@ -1,24 +1,14 @@ -### Example 1: Using the Get-MgBetaUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + displayName = "displayName-value" +} + # 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: Using the Get-MgBetaUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMailFolder -UserId $userId -``` -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 3: Using the Get-MgBetaUserMailFolder Cmdlet -```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). +Update-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageAttachment.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageAttachment.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageContent.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageContent.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageExtension.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageExtension.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageRule.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageRule.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageAttachment.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageAttachment.md index 51a5f8c5e75..e7834b1adb4 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageAttachment.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageAttachment.md @@ -1,12 +1,50 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +```powershell Import-Module Microsoft.Graph.Beta.Mail # A UPN can also be used as -UserId. -Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -``` -This example shows how to use the Get-MgBetaUserMailFolderMessageAttachment Cmdlet. +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgBetaBetaUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Mail +# A UPN can also be used as -UserId. +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgBetaBetaUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" +``` +This example shows how to use the Get-MgBetaBetaUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" +``` +This example shows how to use the Get-MgBetaBetaUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgBetaBetaUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageContent.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageContent.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageExtension.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageExtension.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageRule.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageRule.md index f3920007b7a..3927970b938 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageRule.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderMessageRule.md @@ -1,16 +1,17 @@ -### Example 1: Using the Get-MgBetaUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + displayName = "Important from partner" + actions = @{ + markImportance = "high" + } +} + # A UPN can also be used as -UserId. -Get-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -``` -This example shows how to use the Get-MgBetaUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -``` -This example shows how to use the Get-MgBetaUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserMailFolderMessageRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Get-MgBetaUserMessage.md b/src/Mail/beta/examples/Get-MgBetaUserMessage.md index 232181e6313..012347872b6 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMessage.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMessage.md @@ -1,64 +1,19 @@ -### Example 1: Using the Get-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -``` -This example shows how to use the Get-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "mentions" -``` -This example shows how to use the Get-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -Property "subject,body,bodyPreview,uniqueBody" -``` -This example shows how to use the Get-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -Property "internetMessageHeaders" -``` -This example shows how to use the Get-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -``` -This example shows how to use the Get-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMessage -UserId $userId -Property "subject,body,bodyPreview,uniqueBody" -``` -This example shows how to use the Get-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Get-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMessage -UserId $userId -Property "sender,subject" -``` -This example shows how to use the Get-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 8: Using the Get-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Get-MgBetaUserMessage -UserId $userId -Filter "MentionsPreview/IsMentioned eq true" -Property "Subject,Sender,ReceivedDateTime,MentionsPreview" -``` -This example shows how to use the Get-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + subject = "subject-value" + body = @{ + contentType = "" + content = "content-value" + } + inferenceClassification = "other" +} + +# A UPN can also be used as -UserId. +Update-MgBetaUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Get-MgBetaUserMessageAttachment.md b/src/Mail/beta/examples/Get-MgBetaUserMessageAttachment.md index 96df1f16a10..cbfcd0d564c 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMessageAttachment.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMessageAttachment.md @@ -1,24 +1,50 @@ -### Example 1: Using the Get-MgBetaUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + # A UPN can also be used as -UserId. -Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -``` -This example shows how to use the Get-MgBetaUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgBetaBetaUserMessageAttachment 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.Mail + # A UPN can also be used as -UserId. -Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -``` -This example shows how to use the Get-MgBetaUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgBetaBetaUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + # A UPN can also be used as -UserId. -Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -``` -This example shows how to use the Get-MgBetaUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" +``` +This example shows how to use the Get-MgBetaBetaUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" +``` +This example shows how to use the Get-MgBetaBetaUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgBetaBetaUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Get-MgBetaUserMessageContent.md b/src/Mail/beta/examples/Get-MgBetaUserMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMessageContent.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Get-MgBetaUserMessageExtension.md b/src/Mail/beta/examples/Get-MgBetaUserMessageExtension.md index 7b704bff466..69d30abe88d 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMessageExtension.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMessageExtension.md @@ -1,8 +1,48 @@ -### Example 1: Using the Get-MgBetaUserMessageExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + # A UPN can also be used as -UserId. -Get-MgBetaUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId -``` -This example shows how to use the Get-MgBetaUserMessageExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgBetaUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgBetaBetaUserMessageExtension 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.Calendar + +Get-MgBetaGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgBetaBetaUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgBetaBetaUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +Get-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgBetaBetaUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgBetaBetaUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/New-MgBetaUserInferenceClassificationOverride.md b/src/Mail/beta/examples/New-MgBetaUserInferenceClassificationOverride.md index 96fb7028632..2972a43baf9 100644 --- a/src/Mail/beta/examples/New-MgBetaUserInferenceClassificationOverride.md +++ b/src/Mail/beta/examples/New-MgBetaUserInferenceClassificationOverride.md @@ -1,15 +1,18 @@ -### Example 1: Using the New-MgBetaUserInferenceClassificationOverride Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - ClassifyAs = "focused" - SenderEmailAddress = @{ - Name = "Samantha Booth" - Address = "samanthab@adatum.onmicrosoft.com" + classifyAs = "focused" + senderEmailAddress = @{ + name = "Samantha Booth" + address = "samanthab@adatum.onmicrosoft.com" } } + # A UPN can also be used as -UserId. -New-MgBetaUserInferenceClassificationOverride -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserInferenceClassificationOverride Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserInferenceClassificationOverride -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserInferenceClassificationOverride Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/New-MgBetaUserMailFolder.md b/src/Mail/beta/examples/New-MgBetaUserMailFolder.md index 4250d1cfea2..0ac22c02b6e 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMailFolder.md +++ b/src/Mail/beta/examples/New-MgBetaUserMailFolder.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - DisplayName = "Clutter" - IsHidden = $true + displayName = "Clutter" + isHidden = $true } + # A UPN can also be used as -UserId. -New-MgBetaUserMailFolder -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserMailFolder -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolder.md b/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolder.md index a456be4319f..ca903934881 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolder.md +++ b/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolder.md @@ -1,29 +1,20 @@ -### Example 1: Using the New-MgBetaUserMailFolderChildFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - DisplayName = "displayName-value" - IsHidden = $true -} -# A UPN can also be used as -UserId. -New-MgBetaUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMailFolderChildFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaUserMailFolderChildFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ "@odata.type" = "microsoft.graph.mailSearchFolder" - DisplayName = "Weekly digests" - IncludeNestedFolders = $true - SourceFolderIds = @( + displayName = "Weekly digests" + includeNestedFolders = $true + sourceFolderIds = @( "AQMkADYAAAIBDAAAAA==" ) - FilterQuery = "contains(subject, 'weekly digest')" + filterQuery = "contains(subject, 'weekly digest')" } + # A UPN can also be used as -UserId. -New-MgBetaUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMailFolderChildFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserMailFolderChildFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessage.md b/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessage.md +++ b/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessageAttachment.md b/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessageAttachment.md +++ b/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessageRule.md b/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessageRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessageRule.md +++ b/src/Mail/beta/examples/New-MgBetaUserMailFolderChildFolderMessageRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/New-MgBetaUserMailFolderMessage.md b/src/Mail/beta/examples/New-MgBetaUserMailFolderMessage.md index 3a3c8112740..08534f82be3 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMailFolderMessage.md +++ b/src/Mail/beta/examples/New-MgBetaUserMailFolderMessage.md @@ -1,19 +1,22 @@ -### Example 1: Using the New-MgBetaUserMailFolderMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - ReceivedDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") - SentDateTime = [System.DateTime]::Parse("2016-10-19T10:37:00Z") - HasAttachments = $true - Subject = "subject-value" - Body = @{ - ContentType = "" - Content = "content-value" + receivedDateTime = [System.DateTime]::Parse("datetime-value") + sentDateTime = [System.DateTime]::Parse("datetime-value") + hasAttachments = $true + subject = "subject-value" + body = @{ + contentType = "" + content = "content-value" } - BodyPreview = "bodyPreview-value" + bodyPreview = "bodyPreview-value" } + # A UPN can also be used as -UserId. -New-MgBetaUserMailFolderMessage -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMailFolderMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserMailFolderMessage -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/New-MgBetaUserMailFolderMessageAttachment.md b/src/Mail/beta/examples/New-MgBetaUserMailFolderMessageAttachment.md index c258801d398..c0acc762d2f 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMailFolderMessageAttachment.md +++ b/src/Mail/beta/examples/New-MgBetaUserMailFolderMessageAttachment.md @@ -1,12 +1,37 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + "@odata.type" = "microsoft.graph.fileAttachment" + name = "name-value" + contentType = "contentType-value" + isInline = $false + contentLocation = "contentLocation-value" + contentBytes = "base64-contentBytes-value" +} # A UPN can also be used as -UserId. -Get-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -``` -This example shows how to use the New-MgBetaUserMailFolderMessageAttachment Cmdlet. +New-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserMailFolderMessageAttachment 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.Calendar -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" + name = "name-value" + item = @{ + "@odata.type" = "microsoft.graph.message" + } +} +# A UPN can also be used as -UserId. +New-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/New-MgBetaUserMailFolderMessageRule.md b/src/Mail/beta/examples/New-MgBetaUserMailFolderMessageRule.md index 8958aed9bac..e478ddcb5b1 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMailFolderMessageRule.md +++ b/src/Mail/beta/examples/New-MgBetaUserMailFolderMessageRule.md @@ -1,29 +1,32 @@ -### Example 1: Using the New-MgBetaUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - DisplayName = "From partner" - Sequence = 2 - IsEnabled = $true - Conditions = @{ - SenderContains = @( + displayName = "From partner" + sequence = 2 + isEnabled = $true + conditions = @{ + senderContains = @( "adele" ) } - Actions = @{ - ForwardTo = @( + actions = @{ + forwardTo = @( @{ - EmailAddress = @{ - Name = "Alex Wilbur" - Address = "AlexW@contoso.onmicrosoft.com" + emailAddress = @{ + name = "Alex Wilbur" + address = "AlexW@contoso.onmicrosoft.com" } } ) - StopProcessingRules = $true + stopProcessingRules = $true } } + # A UPN can also be used as -UserId. -New-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserMailFolderMessageRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/New-MgBetaUserMessage.md b/src/Mail/beta/examples/New-MgBetaUserMessage.md index fbb6e8a7bdc..f6c6949389e 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMessage.md +++ b/src/Mail/beta/examples/New-MgBetaUserMessage.md @@ -1,113 +1,17 @@ -### Example 1: Using the New-MgBetaUserMessage Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - Subject = "Did you see last night's game?" - Importance = "Low" - Body = @{ - ContentType = "HTML" - Content = "They were awesome!" - } - ToRecipients = @( - @{ - EmailAddress = @{ - Address = "AdeleV@contoso.onmicrosoft.com" - } - } - ) -} -# A UPN can also be used as -UserId. -New-MgBetaUserMessage -UserId $userId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaUserMessage Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - Subject = "9/8/2018: concert" - Body = @{ - ContentType = "HTML" - Content = "The group represents Washington." - } - ToRecipients = @( - @{ - EmailAddress = @{ - Address = "AlexW@contoso.OnMicrosoft.com" - } - } - ) - InternetMessageHeaders = @( - @{ - Name = "x-custom-header-group-name" - Value = "Washington" - } - @{ - Name = "x-custom-header-group-id" - Value = "WA001" - } - ) -} -# A UPN can also be used as -UserId. -New-MgBetaUserMessage -UserId $userId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - Subject = "Party planning" - ToRecipients = @( - @{ - EmailAddress = @{ - Name = "Samantha Booth" - Address = "samanthab@contoso.onmicrosoft.com" - } - } - ) - Mentions = @( - @{ - Mentioned = @{ - Name = "Dana Swope" - Address = "danas@contoso.onmicrosoft.com" - } - } - ) -} -# A UPN can also be used as -UserId. -New-MgBetaUserMessage -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - Subject = "Annual review" - Body = @{ - ContentType = "HTML" - Content = "You should be proud!" - } - ToRecipients = @( - @{ - EmailAddress = @{ - Address = "rufus@contoso.com" - } - } - ) - Extensions = @( - @{ - "@odata.type" = "microsoft.graph.openTypeExtension" - ExtensionName = "Com.Contoso.Referral" - CompanyName = "Wingtip Toys" - ExpirationDate = "2015-12-30T11:00:00.000Z" - DealValue = - } - ) -} -# A UPN can also be used as -UserId. -New-MgBetaUserMessage -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Mail/beta/examples/New-MgBetaUserMessageAttachment.md b/src/Mail/beta/examples/New-MgBetaUserMessageAttachment.md index 7e13c2d48e5..6883d109f51 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMessageAttachment.md +++ b/src/Mail/beta/examples/New-MgBetaUserMessageAttachment.md @@ -1,61 +1,37 @@ -### Example 1: Using the New-MgBetaUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - "@odata.type" = "#Microsoft.OutlookServices.FileAttachment" - Name = "name-value" - ContentType = "contentType-value" - IsInline = $false - ContentLocation = "contentLocation-value" - ContentBytes = "contentBytes-value" + "@odata.type" = "microsoft.graph.fileAttachment" + name = "name-value" + contentType = "contentType-value" + isInline = $false + contentLocation = "contentLocation-value" + contentBytes = "base64-contentBytes-value" } + # A UPN can also be used as -UserId. -New-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +New-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserMessageAttachment 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.Calendar + $params = @{ - "@odata.type" = "#microsoft.graph.fileAttachment" - Name = "smile" - ContentBytes = "a0b1c76de9f7=" -} -# A UPN can also be used as -UserId. -New-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - "@odata.type" = "#microsoft.graph.itemAttachment" - Name = "Holiday event" - Item = @{ - "@odata.type" = "microsoft.graph.event" - Subject = "Discuss gifts for children" + "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" + name = "name-value" + item = @{ + "@odata.type" = "microsoft.graph.message" } } + # A UPN can also be used as -UserId. -New-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - "@odata.type" = "#microsoft.graph.referenceAttachment" - Name = "Personal pictures" - SourceUrl = "https://contoso.com/personal/mario_contoso_net/Documents/Pics" - ProviderType = "oneDriveConsumer" - Permission = "Edit" - IsFolder = "True" -} -# A UPN can also be used as -UserId. -New-MgBetaUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/New-MgBetaUserMessageExtension.md b/src/Mail/beta/examples/New-MgBetaUserMessageExtension.md index 792c736b4dd..f6c6949389e 100644 --- a/src/Mail/beta/examples/New-MgBetaUserMessageExtension.md +++ b/src/Mail/beta/examples/New-MgBetaUserMessageExtension.md @@ -1,15 +1,17 @@ -### Example 1: Using the New-MgBetaUserMessageExtension Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - "@odata.type" = "microsoft.graph.openTypeExtension" - ExtensionName = "Com.Contoso.Referral" - CompanyName = "Wingtip Toys" - DealValue = - ExpirationDate = "2015-12-03T10:00:00.000Z" -} -# A UPN can also be used as -UserId. -New-MgBetaUserMessageExtension -UserId $userId -MessageId $messageId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaUserMessageExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/beta/examples/Remove-MgBetaUserInferenceClassificationOverride.md b/src/Mail/beta/examples/Remove-MgBetaUserInferenceClassificationOverride.md index 773ebd0b4a6..d5893b18b30 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserInferenceClassificationOverride.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserInferenceClassificationOverride.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgBetaUserInferenceClassificationOverride Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + classifyAs = "focused" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -``` -This example shows how to use the Remove-MgBetaUserInferenceClassificationOverride Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserInferenceClassificationOverride Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMailFolder.md b/src/Mail/beta/examples/Remove-MgBetaUserMailFolder.md index 7d58ec46d01..b5f4723a4ab 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMailFolder.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMailFolder.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgBetaUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + displayName = "displayName-value" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -``` -This example shows how to use the Remove-MgBetaUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageAttachment.md b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageAttachment.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageExtension.md b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageExtension.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageRule.md b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageRule.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderChildFolderMessageRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageAttachment.md b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageAttachment.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageExtension.md b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageExtension.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageRule.md b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageRule.md index 19df7d91620..21807d69d22 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageRule.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMailFolderMessageRule.md @@ -1,8 +1,17 @@ -### Example 1: Using the Remove-MgBetaUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + displayName = "Important from partner" + actions = @{ + markImportance = "high" + } +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -``` -This example shows how to use the Remove-MgBetaUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserMailFolderMessageRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMessage.md b/src/Mail/beta/examples/Remove-MgBetaUserMessage.md index 5e8be1ab539..0fc7a308ade 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMessage.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMessage.md @@ -1,16 +1,19 @@ -### Example 1: Using the Remove-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +$params = @{ + subject = "subject-value" + body = @{ + contentType = "" + content = "content-value" + } + inferenceClassification = "other" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserMessage -UserId $userId -MessageId $messageId -``` -This example shows how to use the Remove-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -# A UPN can also be used as -UserId. -Remove-MgBetaUserMessage -UserId $userId -MessageId $messageId -``` -This example shows how to use the Remove-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMessageAttachment.md b/src/Mail/beta/examples/Remove-MgBetaUserMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMessageAttachment.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Remove-MgBetaUserMessageExtension.md b/src/Mail/beta/examples/Remove-MgBetaUserMessageExtension.md index 4ccf2b8df3b..3964bb32021 100644 --- a/src/Mail/beta/examples/Remove-MgBetaUserMessageExtension.md +++ b/src/Mail/beta/examples/Remove-MgBetaUserMessageExtension.md @@ -1,8 +1,48 @@ -### Example 1: Using the Remove-MgBetaUserMessageExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + # A UPN can also be used as -UserId. -Remove-MgBetaUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId -``` -This example shows how to use the Remove-MgBetaUserMessageExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgBetaUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Remove-MgBetaBetaUserMessageExtension 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.Calendar + +Get-MgBetaGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Remove-MgBetaBetaUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Remove-MgBetaBetaUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Groups + +Get-MgBetaGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Remove-MgBetaBetaUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + +# A UPN can also be used as -UserId. +Get-MgBetaUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" +``` +This example shows how to use the Remove-MgBetaBetaUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Set-MgBetaUserMailFolderChildFolderMessageContent.md b/src/Mail/beta/examples/Set-MgBetaUserMailFolderChildFolderMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Set-MgBetaUserMailFolderChildFolderMessageContent.md +++ b/src/Mail/beta/examples/Set-MgBetaUserMailFolderChildFolderMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Set-MgBetaUserMailFolderMessageContent.md b/src/Mail/beta/examples/Set-MgBetaUserMailFolderMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Set-MgBetaUserMailFolderMessageContent.md +++ b/src/Mail/beta/examples/Set-MgBetaUserMailFolderMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Set-MgBetaUserMessageContent.md b/src/Mail/beta/examples/Set-MgBetaUserMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Set-MgBetaUserMessageContent.md +++ b/src/Mail/beta/examples/Set-MgBetaUserMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Update-MgBetaUserInferenceClassificationOverride.md b/src/Mail/beta/examples/Update-MgBetaUserInferenceClassificationOverride.md index 02cadb79cd9..f88f0962963 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserInferenceClassificationOverride.md +++ b/src/Mail/beta/examples/Update-MgBetaUserInferenceClassificationOverride.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaUserInferenceClassificationOverride Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - ClassifyAs = "focused" + classifyAs = "focused" } + # A UPN can also be used as -UserId. -Update-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserInferenceClassificationOverride Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserInferenceClassificationOverride Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Update-MgBetaUserMailFolder.md b/src/Mail/beta/examples/Update-MgBetaUserMailFolder.md index 07dd69cd7bc..39a1ec07fe4 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMailFolder.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMailFolder.md @@ -1,23 +1,14 @@ -### Example 1: Using the Update-MgBetaUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - DisplayName = "displayName-value" + displayName = "displayName-value" } + # A UPN can also be used as -UserId. -Update-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - "@odata.type" = "microsoft.graph.mailSearchFolder" - FilterQuery = "contains(subject, 'Analytics')" -} -# A UPN can also be used as -UserId. -Update-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Update-MgBetaUserMailFolderChildFolderMessageExtension.md b/src/Mail/beta/examples/Update-MgBetaUserMailFolderChildFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMailFolderChildFolderMessageExtension.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMailFolderChildFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Update-MgBetaUserMailFolderChildFolderMessageRule.md b/src/Mail/beta/examples/Update-MgBetaUserMailFolderChildFolderMessageRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMailFolderChildFolderMessageRule.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMailFolderChildFolderMessageRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageExtension.md b/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageExtension.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageRule.md b/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageRule.md index f217fd7e6b1..4c3d86446a9 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageRule.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMailFolderMessageRule.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - DisplayName = "Important from partner" - Actions = @{ - MarkImportance = "high" + displayName = "Important from partner" + actions = @{ + markImportance = "high" } } + # A UPN can also be used as -UserId. -Update-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserMailFolderMessageRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Update-MgBetaUserMessage.md b/src/Mail/beta/examples/Update-MgBetaUserMessage.md index d01da080367..ef9e4228563 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMessage.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMessage.md @@ -1,27 +1,19 @@ -### Example 1: Using the Update-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Mail + $params = @{ - IsRead = "true" -} -# A UPN can also be used as -UserId. -Update-MgBetaUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Mail -$params = @{ - Subject = "subject-value" - Body = @{ - ContentType = "" - Content = "content-value" + subject = "subject-value" + body = @{ + contentType = "" + content = "content-value" } - InferenceClassification = "other" + inferenceClassification = "other" } + # A UPN can also be used as -UserId. -Update-MgBetaUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/beta/examples/Update-MgBetaUserMessageExtension.md b/src/Mail/beta/examples/Update-MgBetaUserMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/beta/examples/Update-MgBetaUserMessageExtension.md +++ b/src/Mail/beta/examples/Update-MgBetaUserMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + 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 17be1eb8173..4b1be478ebf 100644 --- a/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md +++ b/src/Mail/v1.0/examples/Get-MgUserInferenceClassificationOverride.md @@ -1,8 +1,14 @@ -### Example 1: Using the Get-MgUserInferenceClassificationOverride Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +$params = @{ + classifyAs = "focused" +} + # 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). +Update-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +``` +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 b2305146281..903a760d273 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolder.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolder.md @@ -1,24 +1,14 @@ -### Example 1: Using the Get-MgUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +$params = @{ + displayName = "displayName-value" +} + # 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: Using the Get-MgUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Get-MgUserMailFolder -UserId $userId -``` -This example shows how to use the Get-MgUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -``` -This example shows how to use the Get-MgUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Get-MgUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageAttachment.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageAttachment.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageContent.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageContent.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageExtension.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageExtension.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageRule.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageRule.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageAttachment.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageAttachment.md index 8c0c23dd1a0..b71255aa3d6 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageAttachment.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageAttachment.md @@ -3,7 +3,47 @@ ```powershell Import-Module Microsoft.Graph.Mail # A UPN can also be used as -UserId. -Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" +``` +This example shows how to use the Get-MgUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" +``` +This example shows how to use the Get-MgUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId ``` This example shows how to use the Get-MgUserMailFolderMessageAttachment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageContent.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageContent.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageExtension.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageExtension.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageRule.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageRule.md index 8ba4ec629ff..3c3e497fb8f 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageRule.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderMessageRule.md @@ -1,16 +1,17 @@ -### Example 1: Using the Get-MgUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +$params = @{ + displayName = "Important from partner" + actions = @{ + markImportance = "high" + } +} + # A UPN can also be used as -UserId. -Get-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -``` -This example shows how to use the Get-MgUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Get-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -``` -This example shows how to use the Get-MgUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +``` +This example shows how to use the Get-MgUserMailFolderMessageRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Get-MgUserMessage.md b/src/Mail/v1.0/examples/Get-MgUserMessage.md index 7b601cc96f2..3314d19cbcd 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMessage.md +++ b/src/Mail/v1.0/examples/Get-MgUserMessage.md @@ -1,40 +1,19 @@ -### Example 1: Using the Get-MgUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +$params = @{ + subject = "subject-value" + body = @{ + contentType = "" + content = "content-value" + } + inferenceClassification = "other" +} + # A UPN can also be used as -UserId. -Get-MgUserMessage -UserId $userId -MessageId $messageId -``` -This example shows how to use the Get-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Get-MgUserMessage -UserId $userId -MessageId $messageId -Property "internetMessageHeaders" -``` -This example shows how to use the Get-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Get-MgUserMessage -UserId $userId -MessageId $messageId -Property "subject,body,bodyPreview,uniqueBody" -``` -This example shows how to use the Get-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Get-MgUserMessage -UserId $userId -MessageId $messageId -``` -This example shows how to use the Get-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Get-MgUserMessage -UserId $userId -Property "sender,subject" -``` -This example shows how to use the Get-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Get-MgUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Get-MgUserMessageAttachment.md b/src/Mail/v1.0/examples/Get-MgUserMessageAttachment.md index c1854a1f118..778973a733c 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMessageAttachment.md +++ b/src/Mail/v1.0/examples/Get-MgUserMessageAttachment.md @@ -1,56 +1,50 @@ -### Example 1: Using the Get-MgUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + # A UPN can also be used as -UserId. -Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -``` -This example shows how to use the Get-MgUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + # A UPN can also be used as -UserId. -Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" -``` -This example shows how to use the Get-MgUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + # A UPN can also be used as -UserId. -Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" -``` -This example shows how to use the Get-MgUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + # A UPN can also be used as -UserId. -Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -``` -This example shows how to use the Get-MgUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + # A UPN can also be used as -UserId. -Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -``` -This example shows how to use the Get-MgUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -``` -This example shows how to use the Get-MgUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the Get-MgUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -``` -This example shows how to use the Get-MgUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Get-MgUserMessageContent.md b/src/Mail/v1.0/examples/Get-MgUserMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMessageContent.md +++ b/src/Mail/v1.0/examples/Get-MgUserMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Get-MgUserMessageExtension.md b/src/Mail/v1.0/examples/Get-MgUserMessageExtension.md index 1e5c230c748..9497e5f83b0 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMessageExtension.md +++ b/src/Mail/v1.0/examples/Get-MgUserMessageExtension.md @@ -1,8 +1,48 @@ -### Example 1: Using the Get-MgUserMessageExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + # A UPN can also be used as -UserId. -Get-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId -``` -This example shows how to use the Get-MgUserMessageExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +Get-MgGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +Get-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Get-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" +``` +This example shows how to use the Get-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/New-MgUserInferenceClassificationOverride.md b/src/Mail/v1.0/examples/New-MgUserInferenceClassificationOverride.md index f7f8599f03f..24997687785 100644 --- a/src/Mail/v1.0/examples/New-MgUserInferenceClassificationOverride.md +++ b/src/Mail/v1.0/examples/New-MgUserInferenceClassificationOverride.md @@ -1,15 +1,18 @@ -### Example 1: Using the New-MgUserInferenceClassificationOverride Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ - ClassifyAs = "focused" - SenderEmailAddress = @{ - Name = "Samantha Booth" - Address = "samanthab@adatum.onmicrosoft.com" + classifyAs = "focused" + senderEmailAddress = @{ + name = "Samantha Booth" + address = "samanthab@adatum.onmicrosoft.com" } } + # A UPN can also be used as -UserId. -New-MgUserInferenceClassificationOverride -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserInferenceClassificationOverride Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserInferenceClassificationOverride -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserInferenceClassificationOverride Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/New-MgUserMailFolder.md b/src/Mail/v1.0/examples/New-MgUserMailFolder.md index c07c53c18a1..21a6b1423da 100644 --- a/src/Mail/v1.0/examples/New-MgUserMailFolder.md +++ b/src/Mail/v1.0/examples/New-MgUserMailFolder.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ - DisplayName = "Clutter" - IsHidden = $true + displayName = "Clutter" + isHidden = $true } + # A UPN can also be used as -UserId. -New-MgUserMailFolder -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserMailFolder -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolder.md b/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolder.md index dc8bdfe7be6..9e977c21948 100644 --- a/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolder.md +++ b/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolder.md @@ -1,29 +1,20 @@ -### Example 1: Using the New-MgUserMailFolderChildFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -$params = @{ - DisplayName = "displayName-value" - IsHidden = $true -} -# A UPN can also be used as -UserId. -New-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the New-MgUserMailFolderChildFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgUserMailFolderChildFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ "@odata.type" = "microsoft.graph.mailSearchFolder" - DisplayName = "Weekly digests" - IncludeNestedFolders = $true - SourceFolderIds = @( + displayName = "Weekly digests" + includeNestedFolders = $true + sourceFolderIds = @( "AQMkADYAAAIBDAAAAA==" ) - FilterQuery = "contains(subject, 'weekly digest')" + filterQuery = "contains(subject, 'weekly digest')" } + # A UPN can also be used as -UserId. -New-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the New-MgUserMailFolderChildFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderChildFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessage.md b/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessage.md +++ b/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessageAttachment.md b/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessageAttachment.md +++ b/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessageRule.md b/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessageRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessageRule.md +++ b/src/Mail/v1.0/examples/New-MgUserMailFolderChildFolderMessageRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/New-MgUserMailFolderMessage.md b/src/Mail/v1.0/examples/New-MgUserMailFolderMessage.md index 286a5444e4e..10dc93b1aae 100644 --- a/src/Mail/v1.0/examples/New-MgUserMailFolderMessage.md +++ b/src/Mail/v1.0/examples/New-MgUserMailFolderMessage.md @@ -1,19 +1,22 @@ -### Example 1: Using the New-MgUserMailFolderMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ - ReceivedDateTime = [System.DateTime]::Parse("datetime-value") - SentDateTime = [System.DateTime]::Parse("datetime-value") - HasAttachments = $true - Subject = "subject-value" - Body = @{ - ContentType = "" - Content = "content-value" + receivedDateTime = [System.DateTime]::Parse("datetime-value") + sentDateTime = [System.DateTime]::Parse("datetime-value") + hasAttachments = $true + subject = "subject-value" + body = @{ + contentType = "" + content = "content-value" } - BodyPreview = "bodyPreview-value" + bodyPreview = "bodyPreview-value" } + # A UPN can also be used as -UserId. -New-MgUserMailFolderMessage -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the New-MgUserMailFolderMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserMailFolderMessage -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/New-MgUserMailFolderMessageAttachment.md b/src/Mail/v1.0/examples/New-MgUserMailFolderMessageAttachment.md index a286409c462..a4a43dd6aca 100644 --- a/src/Mail/v1.0/examples/New-MgUserMailFolderMessageAttachment.md +++ b/src/Mail/v1.0/examples/New-MgUserMailFolderMessageAttachment.md @@ -2,8 +2,35 @@ ```powershell Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "microsoft.graph.fileAttachment" + name = "name-value" + contentType = "contentType-value" + isInline = $false + contentLocation = "contentLocation-value" + contentBytes = "base64-contentBytes-value" +} + +# A UPN can also be used as -UserId. +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +$params = @{ + "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" + name = "name-value" + item = @{ + "@odata.type" = "microsoft.graph.message" + } +} + # A UPN can also be used as -UserId. -Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params ``` This example shows how to use the New-MgUserMailFolderMessageAttachment Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/v1.0/examples/New-MgUserMailFolderMessageRule.md b/src/Mail/v1.0/examples/New-MgUserMailFolderMessageRule.md index 9665ec34a31..48769757d49 100644 --- a/src/Mail/v1.0/examples/New-MgUserMailFolderMessageRule.md +++ b/src/Mail/v1.0/examples/New-MgUserMailFolderMessageRule.md @@ -1,29 +1,32 @@ -### Example 1: Using the New-MgUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ - DisplayName = "From partner" - Sequence = 2 - IsEnabled = $true - Conditions = @{ - SenderContains = @( + displayName = "From partner" + sequence = 2 + isEnabled = $true + conditions = @{ + senderContains = @( "adele" ) } - Actions = @{ - ForwardTo = @( + actions = @{ + forwardTo = @( @{ - EmailAddress = @{ - Name = "Alex Wilbur" - Address = "AlexW@contoso.onmicrosoft.com" + emailAddress = @{ + name = "Alex Wilbur" + address = "AlexW@contoso.onmicrosoft.com" } } ) - StopProcessingRules = $true + stopProcessingRules = $true } } + # A UPN can also be used as -UserId. -New-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the New-MgUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderMessageRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/New-MgUserMessage.md b/src/Mail/v1.0/examples/New-MgUserMessage.md index dff97c550a1..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/New-MgUserMessage.md +++ b/src/Mail/v1.0/examples/New-MgUserMessage.md @@ -1,55 +1,17 @@ -### Example 1: Using the New-MgUserMessage Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Mail -$params = @{ - Subject = "Did you see last night's game?" - Importance = "Low" - Body = @{ - ContentType = "HTML" - Content = "They were awesome!" - } - ToRecipients = @( - @{ - EmailAddress = @{ - Address = "AdeleV@contoso.onmicrosoft.com" - } - } - ) -} -# A UPN can also be used as -UserId. -New-MgUserMessage -UserId $userId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgUserMessage Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Mail -$params = @{ - Subject = "9/8/2018: concert" - Body = @{ - ContentType = "HTML" - Content = "The group represents Washington." - } - ToRecipients = @( - @{ - EmailAddress = @{ - Address = "AlexW@contoso.OnMicrosoft.com" - } - } - ) - InternetMessageHeaders = @( - @{ - Name = "x-custom-header-group-name" - Value = "Washington" - } - @{ - Name = "x-custom-header-group-id" - Value = "WA001" - } - ) -} -# A UPN can also be used as -UserId. -New-MgUserMessage -UserId $userId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Mail/v1.0/examples/New-MgUserMessageAttachment.md b/src/Mail/v1.0/examples/New-MgUserMessageAttachment.md index f50fc1006ad..1379eb09bfa 100644 --- a/src/Mail/v1.0/examples/New-MgUserMessageAttachment.md +++ b/src/Mail/v1.0/examples/New-MgUserMessageAttachment.md @@ -1,29 +1,37 @@ -### Example 1: Using the New-MgUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ "@odata.type" = "microsoft.graph.fileAttachment" - Name = "name-value" - ContentType = "contentType-value" - IsInline = $false - ContentLocation = "contentLocation-value" - ContentBytes = "base64-contentBytes-value" + name = "name-value" + contentType = "contentType-value" + isInline = $false + contentLocation = "contentLocation-value" + contentBytes = "base64-contentBytes-value" } + # A UPN can also be used as -UserId. -New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the New-MgUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgUserMessageAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + $params = @{ - "@odata.type" = "#microsoft.graph.fileAttachment" - Name = "smile" - ContentBytes = "R0lGODdhEAYEAA7" + "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" + name = "name-value" + item = @{ + "@odata.type" = "microsoft.graph.message" + } } + # A UPN can also be used as -UserId. -New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the New-MgUserMessageAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the New-MgUserMessageAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Remove-MgUserInferenceClassificationOverride.md b/src/Mail/v1.0/examples/Remove-MgUserInferenceClassificationOverride.md index 6be2a44bbba..7161811b5c9 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserInferenceClassificationOverride.md +++ b/src/Mail/v1.0/examples/Remove-MgUserInferenceClassificationOverride.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgUserInferenceClassificationOverride Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +$params = @{ + classifyAs = "focused" +} + # A UPN can also be used as -UserId. -Remove-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -``` -This example shows how to use the Remove-MgUserInferenceClassificationOverride Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserInferenceClassificationOverride Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Remove-MgUserMailFolder.md b/src/Mail/v1.0/examples/Remove-MgUserMailFolder.md index 4d4e4d75664..bc778783d10 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMailFolder.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMailFolder.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +$params = @{ + displayName = "displayName-value" +} + # A UPN can also be used as -UserId. -Remove-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -``` -This example shows how to use the Remove-MgUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageAttachment.md b/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageAttachment.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageExtension.md b/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageExtension.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageRule.md b/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageRule.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMailFolderChildFolderMessageRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageAttachment.md b/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageAttachment.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageExtension.md b/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageExtension.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageRule.md b/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageRule.md index 5580bf0cae1..e69a39d36bf 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageRule.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMailFolderMessageRule.md @@ -1,8 +1,17 @@ -### Example 1: Using the Remove-MgUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +$params = @{ + displayName = "Important from partner" + actions = @{ + markImportance = "high" + } +} + # A UPN can also be used as -UserId. -Remove-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -``` -This example shows how to use the Remove-MgUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserMailFolderMessageRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Remove-MgUserMessage.md b/src/Mail/v1.0/examples/Remove-MgUserMessage.md index 19137c5c0b4..2422edc4399 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMessage.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMessage.md @@ -1,16 +1,19 @@ -### Example 1: Using the Remove-MgUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +$params = @{ + subject = "subject-value" + body = @{ + contentType = "" + content = "content-value" + } + inferenceClassification = "other" +} + # A UPN can also be used as -UserId. -Remove-MgUserMessage -UserId $userId -MessageId $messageId -``` -This example shows how to use the Remove-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -# A UPN can also be used as -UserId. -Remove-MgUserMessage -UserId $userId -MessageId $messageId -``` -This example shows how to use the Remove-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Remove-MgUserMessageAttachment.md b/src/Mail/v1.0/examples/Remove-MgUserMessageAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMessageAttachment.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMessageAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Remove-MgUserMessageExtension.md b/src/Mail/v1.0/examples/Remove-MgUserMessageExtension.md index 0e59fe62b40..d3f1fa1afc6 100644 --- a/src/Mail/v1.0/examples/Remove-MgUserMessageExtension.md +++ b/src/Mail/v1.0/examples/Remove-MgUserMessageExtension.md @@ -1,8 +1,48 @@ -### Example 1: Using the Remove-MgUserMessageExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + # A UPN can also be used as -UserId. -Remove-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId -``` -This example shows how to use the Remove-MgUserMessageExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId +``` +This example shows how to use the Remove-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Calendar + +Get-MgGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId +``` +This example shows how to use the Remove-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -ExpandProperty "extensions(`$filter=id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')" +``` +This example shows how to use the Remove-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Groups + +Get-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId +``` +This example shows how to use the Remove-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -Filter "Extensions/any(f:f/id eq 'Com.Contoso.Referral')" -ExpandProperty "Extensions(`$filter=id eq 'Com.Contoso.Referral')" +``` +This example shows how to use the Remove-MgUserMessageExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Set-MgUserMailFolderChildFolderMessageContent.md b/src/Mail/v1.0/examples/Set-MgUserMailFolderChildFolderMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Set-MgUserMailFolderChildFolderMessageContent.md +++ b/src/Mail/v1.0/examples/Set-MgUserMailFolderChildFolderMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Set-MgUserMailFolderMessageContent.md b/src/Mail/v1.0/examples/Set-MgUserMailFolderMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Set-MgUserMailFolderMessageContent.md +++ b/src/Mail/v1.0/examples/Set-MgUserMailFolderMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Set-MgUserMessageContent.md b/src/Mail/v1.0/examples/Set-MgUserMessageContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Set-MgUserMessageContent.md +++ b/src/Mail/v1.0/examples/Set-MgUserMessageContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Update-MgUserInferenceClassificationOverride.md b/src/Mail/v1.0/examples/Update-MgUserInferenceClassificationOverride.md index 3d86ddb676b..edb8298365f 100644 --- a/src/Mail/v1.0/examples/Update-MgUserInferenceClassificationOverride.md +++ b/src/Mail/v1.0/examples/Update-MgUserInferenceClassificationOverride.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgUserInferenceClassificationOverride Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ - ClassifyAs = "focused" + classifyAs = "focused" } + # A UPN can also be used as -UserId. -Update-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params -``` -This example shows how to use the Update-MgUserInferenceClassificationOverride Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params +``` +This example shows how to use the Update-MgUserInferenceClassificationOverride Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Update-MgUserMailFolder.md b/src/Mail/v1.0/examples/Update-MgUserMailFolder.md index 037e7b990a3..7a754bf2ff8 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMailFolder.md +++ b/src/Mail/v1.0/examples/Update-MgUserMailFolder.md @@ -1,23 +1,14 @@ -### Example 1: Using the Update-MgUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ - DisplayName = "displayName-value" + displayName = "displayName-value" } + # A UPN can also be used as -UserId. -Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the Update-MgUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgUserMailFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -$params = @{ - "@odata.type" = "microsoft.graph.mailSearchFolder" - FilterQuery = "contains(subject, 'Analytics')" -} -# A UPN can also be used as -UserId. -Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params -``` -This example shows how to use the Update-MgUserMailFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Update-MgUserMailFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Update-MgUserMailFolderChildFolderMessageExtension.md b/src/Mail/v1.0/examples/Update-MgUserMailFolderChildFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMailFolderChildFolderMessageExtension.md +++ b/src/Mail/v1.0/examples/Update-MgUserMailFolderChildFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Update-MgUserMailFolderChildFolderMessageRule.md b/src/Mail/v1.0/examples/Update-MgUserMailFolderChildFolderMessageRule.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMailFolderChildFolderMessageRule.md +++ b/src/Mail/v1.0/examples/Update-MgUserMailFolderChildFolderMessageRule.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageExtension.md b/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageExtension.md +++ b/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageRule.md b/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageRule.md index 1892488eb31..4adb4457538 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageRule.md +++ b/src/Mail/v1.0/examples/Update-MgUserMailFolderMessageRule.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgUserMailFolderMessageRule Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ - DisplayName = "Important from partner" - Actions = @{ - MarkImportance = "high" + displayName = "Important from partner" + actions = @{ + markImportance = "high" } } + # A UPN can also be used as -UserId. -Update-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params -``` -This example shows how to use the Update-MgUserMailFolderMessageRule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params +``` +This example shows how to use the Update-MgUserMailFolderMessageRule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Update-MgUserMessage.md b/src/Mail/v1.0/examples/Update-MgUserMessage.md index d2199b93c99..fccb0ba60ce 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMessage.md +++ b/src/Mail/v1.0/examples/Update-MgUserMessage.md @@ -1,27 +1,19 @@ -### Example 1: Using the Update-MgUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Mail + $params = @{ - IsRead = $true -} -# A UPN can also be used as -UserId. -Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the Update-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgUserMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Mail -$params = @{ - Subject = "subject-value" - Body = @{ - ContentType = "" - Content = "content-value" + subject = "subject-value" + body = @{ + contentType = "" + content = "content-value" } - InferenceClassification = "other" + inferenceClassification = "other" } + # A UPN can also be used as -UserId. -Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params -``` -This example shows how to use the Update-MgUserMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Update-MgUserMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Mail/v1.0/examples/Update-MgUserMessageExtension.md b/src/Mail/v1.0/examples/Update-MgUserMessageExtension.md index 093355d11d5..f6c6949389e 100644 --- a/src/Mail/v1.0/examples/Update-MgUserMessageExtension.md +++ b/src/Mail/v1.0/examples/Update-MgUserMessageExtension.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebook.md b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebook.md index 609d3e99539..84d592b95f5 100644 --- a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebook.md +++ b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteNotebook.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the Get-MgBetaGroupOnenoteNotebook Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteNotebook -UserId $userId -NotebookId $notebookId +``` +This example shows how to use the Get-MgBetaBetaGroupOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteOperation.md b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteOperation.md +++ b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Get-MgBetaGroupOnenotePage.md b/src/Notes/beta/examples/Get-MgBetaGroupOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Get-MgBetaGroupOnenotePage.md +++ b/src/Notes/beta/examples/Get-MgBetaGroupOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSection.md b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSection.md index bd6c2e34429..47616013ae9 100644 --- a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSection.md +++ b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSection.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the Get-MgBetaGroupOnenoteSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteSection -UserId $userId -OnenoteSectionId $onenoteSectionId +``` +This example shows how to use the Get-MgBetaBetaGroupOnenoteSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSectionGroup.md b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSectionGroup.md index d1a85a05e53..51d4f441d59 100644 --- a/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Get-MgBetaGroupOnenoteSectionGroup.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the Get-MgBetaGroupOnenoteSectionGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteSectionGroup -UserId $userId -SectionGroupId $sectionGroupId +``` +This example shows how to use the Get-MgBetaBetaGroupOnenoteSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebook.md b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebook.md index 84b4ad4abf3..3b011770142 100644 --- a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebook.md +++ b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteNotebook.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the Get-MgBetaSiteOnenoteNotebook Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteNotebook -UserId $userId -NotebookId $notebookId +``` +This example shows how to use the Get-MgBetaBetaSiteOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteOperation.md b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteOperation.md +++ b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Get-MgBetaSiteOnenotePage.md b/src/Notes/beta/examples/Get-MgBetaSiteOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Get-MgBetaSiteOnenotePage.md +++ b/src/Notes/beta/examples/Get-MgBetaSiteOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSection.md b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSection.md index c806ad03a58..4c2260ec270 100644 --- a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSection.md +++ b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSection.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the Get-MgBetaSiteOnenoteSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteSection -UserId $userId -OnenoteSectionId $onenoteSectionId +``` +This example shows how to use the Get-MgBetaBetaSiteOnenoteSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSectionGroup.md b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSectionGroup.md index f45cc80f760..dba862351d8 100644 --- a/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Get-MgBetaSiteOnenoteSectionGroup.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the Get-MgBetaSiteOnenoteSectionGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserOnenoteSectionGroup -UserId $userId -SectionGroupId $sectionGroupId +``` +This example shows how to use the Get-MgBetaBetaSiteOnenoteSectionGroup 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 deaacc3d82a..895895c0f46 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebook.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteNotebook.md @@ -1,24 +1,10 @@ -### Example 1: Using the Get-MgBetaUserOnenoteNotebook Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes +### Example 1: Code snippet + +```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). -### Example 2: Using the Get-MgBetaUserOnenoteNotebook Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes -# A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteNotebook -UserId $userId -``` -This example shows how to use the Get-MgBetaUserOnenoteNotebook Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaUserOnenoteNotebook Cmdlet -```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 -NotebookId $notebookId +``` +This example shows how to use the Get-MgBetaBetaUserOnenoteNotebook 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 cffd2cdb755..1d0730aa6bf 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteOperation.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteOperation.md @@ -1,8 +1,10 @@ -### Example 1: Using the Get-MgBetaUserOnenoteOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes +### Example 1: Code snippet + +```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-MgBetaBetaUserOnenoteOperation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenotePage.md b/src/Notes/beta/examples/Get-MgBetaUserOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenotePage.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSection.md b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSection.md index 23c7e5154df..ba70ce046de 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSection.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSection.md @@ -1,16 +1,10 @@ -### Example 1: Using the Get-MgBetaUserOnenoteSection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes +### Example 1: Code snippet + +```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). -### Example 2: Using the Get-MgBetaUserOnenoteSection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes -# A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteSection -UserId $userId -``` -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 -OnenoteSectionId $onenoteSectionId +``` +This example shows how to use the Get-MgBetaBetaUserOnenoteSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroup.md b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroup.md index dc294a71f49..9ebc380d944 100644 --- a/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Get-MgBetaUserOnenoteSectionGroup.md @@ -1,16 +1,10 @@ -### Example 1: Using the Get-MgBetaUserOnenoteSectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes +### Example 1: Code snippet + +```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). -### Example 2: Using the Get-MgBetaUserOnenoteSectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes -# A UPN can also be used as -UserId. -Get-MgBetaUserOnenoteSectionGroup -UserId $userId -``` -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 -SectionGroupId $sectionGroupId +``` +This example shows how to use the Get-MgBetaBetaUserOnenoteSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebook.md b/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebook.md index ea473c8a2f9..d576d114535 100644 --- a/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebook.md +++ b/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebook.md @@ -1,12 +1,14 @@ -### 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 -``` -This example shows how to use the New-MgBetaGroupOnenoteNotebook Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$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-MgBetaBetaGroupOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebookSection.md b/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebookSection.md index a0e6a2ef825..e38550b7c3d 100644 --- a/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebookSection.md +++ b/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebookSection.md @@ -1,12 +1,14 @@ -### 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-MgBetaUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the New-MgBetaGroupOnenoteNotebookSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$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-MgBetaBetaGroupOnenoteNotebookSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebookSectionGroup.md b/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebookSectionGroup.md index ca9abf55c8c..f9468fe13fb 100644 --- a/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebookSectionGroup.md +++ b/src/Notes/beta/examples/New-MgBetaGroupOnenoteNotebookSectionGroup.md @@ -1,12 +1,14 @@ -### 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-MgBetaUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the New-MgBetaGroupOnenoteNotebookSectionGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$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-MgBetaBetaGroupOnenoteNotebookSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaGroupOnenoteSection.md b/src/Notes/beta/examples/New-MgBetaGroupOnenoteSection.md index 03f36e29d25..72c431ea524 100644 --- a/src/Notes/beta/examples/New-MgBetaGroupOnenoteSection.md +++ b/src/Notes/beta/examples/New-MgBetaGroupOnenoteSection.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the New-MgBetaGroupOnenoteSection 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 New-MgBetaBetaGroupOnenoteSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaGroupOnenoteSectionGroup.md b/src/Notes/beta/examples/New-MgBetaGroupOnenoteSectionGroup.md index 9d215c3857a..2a2dffca13a 100644 --- a/src/Notes/beta/examples/New-MgBetaGroupOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/New-MgBetaGroupOnenoteSectionGroup.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the New-MgBetaGroupOnenoteSectionGroup 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 New-MgBetaBetaGroupOnenoteSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaGroupOnenoteSectionGroupSection.md b/src/Notes/beta/examples/New-MgBetaGroupOnenoteSectionGroupSection.md index 74b25714d45..8624c034b4f 100644 --- a/src/Notes/beta/examples/New-MgBetaGroupOnenoteSectionGroupSection.md +++ b/src/Notes/beta/examples/New-MgBetaGroupOnenoteSectionGroupSection.md @@ -1,12 +1,14 @@ -### 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-MgBetaUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -``` -This example shows how to use the New-MgBetaGroupOnenoteSectionGroupSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$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-MgBetaBetaGroupOnenoteSectionGroupSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebook.md b/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebook.md index 2e45d54f785..59d3ad4b98e 100644 --- a/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebook.md +++ b/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebook.md @@ -1,12 +1,14 @@ -### 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 -``` -This example shows how to use the New-MgBetaSiteOnenoteNotebook Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$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-MgBetaBetaSiteOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebookSection.md b/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebookSection.md index 968ed49ced0..b305f9cc57c 100644 --- a/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebookSection.md +++ b/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebookSection.md @@ -1,12 +1,14 @@ -### 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-MgBetaUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the New-MgBetaSiteOnenoteNotebookSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$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-MgBetaBetaSiteOnenoteNotebookSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebookSectionGroup.md b/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebookSectionGroup.md index 007924db466..4a4adface00 100644 --- a/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebookSectionGroup.md +++ b/src/Notes/beta/examples/New-MgBetaSiteOnenoteNotebookSectionGroup.md @@ -1,12 +1,14 @@ -### 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-MgBetaUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the New-MgBetaSiteOnenoteNotebookSectionGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$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-MgBetaBetaSiteOnenoteNotebookSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaSiteOnenoteSection.md b/src/Notes/beta/examples/New-MgBetaSiteOnenoteSection.md index 3cf321fafed..8683f165aa8 100644 --- a/src/Notes/beta/examples/New-MgBetaSiteOnenoteSection.md +++ b/src/Notes/beta/examples/New-MgBetaSiteOnenoteSection.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the New-MgBetaSiteOnenoteSection 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 New-MgBetaBetaSiteOnenoteSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaSiteOnenoteSectionGroup.md b/src/Notes/beta/examples/New-MgBetaSiteOnenoteSectionGroup.md index be157c0edff..25da4005e69 100644 --- a/src/Notes/beta/examples/New-MgBetaSiteOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/New-MgBetaSiteOnenoteSectionGroup.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the New-MgBetaSiteOnenoteSectionGroup 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 New-MgBetaBetaSiteOnenoteSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaSiteOnenoteSectionGroupSection.md b/src/Notes/beta/examples/New-MgBetaSiteOnenoteSectionGroupSection.md index f2ee452daa7..7dfda9d2def 100644 --- a/src/Notes/beta/examples/New-MgBetaSiteOnenoteSectionGroupSection.md +++ b/src/Notes/beta/examples/New-MgBetaSiteOnenoteSectionGroupSection.md @@ -1,12 +1,14 @@ -### 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-MgBetaUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -``` -This example shows how to use the New-MgBetaSiteOnenoteSectionGroupSection Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$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-MgBetaBetaSiteOnenoteSectionGroupSection 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 b2d731725e0..55f4096612e 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebook.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebook.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaUserOnenoteNotebook Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Notes + $params = @{ - DisplayName = "My Private notebook" + 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-MgBetaBetaUserOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSection.md b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSection.md index 9ddcd19a0bb..755f60cc966 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSection.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSection.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaUserOnenoteNotebookSection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Notes + $params = @{ - DisplayName = "Section name" + 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-MgBetaBetaUserOnenoteNotebookSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSectionGroup.md b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSectionGroup.md index 5b3cefcc3e0..c1989871334 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteNotebookSectionGroup.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaUserOnenoteNotebookSectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Notes + $params = @{ - DisplayName = "Section group name" + 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-MgBetaBetaUserOnenoteNotebookSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaUserOnenoteSection.md b/src/Notes/beta/examples/New-MgBetaUserOnenoteSection.md index b24b0e7caa2..942d7392515 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteSection.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteSection.md @@ -1,12 +1,10 @@ -### 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 -``` -This example shows how to use the New-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 New-MgBetaBetaUserOnenoteSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroup.md b/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroup.md index 1ba7ad1e731..b17194bdcec 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroup.md @@ -1,11 +1,10 @@ -### Example 1: Using the New-MgBetaUserOnenoteSectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes -$params = @{ - DisplayName = "Section group name" -} +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Notes + # A UPN can also be used as -UserId. -New-MgBetaUserOnenoteSectionGroup -UserId $userId -SectionGroupId $sectionGroupId -BodyParameter $params -``` -This example shows how to use the New-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 New-MgBetaBetaUserOnenoteSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroupSection.md b/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroupSection.md index 52d9b9e63e1..76169cda2aa 100644 --- a/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroupSection.md +++ b/src/Notes/beta/examples/New-MgBetaUserOnenoteSectionGroupSection.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaUserOnenoteSectionGroupSection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Notes + $params = @{ - DisplayName = "Section name" + 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-MgBetaBetaUserOnenoteSectionGroupSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteNotebook.md b/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteNotebook.md +++ b/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaGroupOnenotePage.md b/src/Notes/beta/examples/Remove-MgBetaGroupOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaGroupOnenotePage.md +++ b/src/Notes/beta/examples/Remove-MgBetaGroupOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteSection.md b/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteSection.md +++ b/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteSectionGroup.md b/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Remove-MgBetaGroupOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteNotebook.md b/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteNotebook.md +++ b/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaSiteOnenotePage.md b/src/Notes/beta/examples/Remove-MgBetaSiteOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaSiteOnenotePage.md +++ b/src/Notes/beta/examples/Remove-MgBetaSiteOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteSection.md b/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteSection.md +++ b/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteSectionGroup.md b/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Remove-MgBetaSiteOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaUserOnenoteNotebook.md b/src/Notes/beta/examples/Remove-MgBetaUserOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaUserOnenoteNotebook.md +++ b/src/Notes/beta/examples/Remove-MgBetaUserOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaUserOnenotePage.md b/src/Notes/beta/examples/Remove-MgBetaUserOnenotePage.md index e9ae765ef17..a46f1793ec3 100644 --- a/src/Notes/beta/examples/Remove-MgBetaUserOnenotePage.md +++ b/src/Notes/beta/examples/Remove-MgBetaUserOnenotePage.md @@ -1,8 +1,10 @@ -### Example 1: Using the Remove-MgBetaUserOnenotePage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Notes + # A UPN can also be used as -UserId. -Remove-MgBetaUserOnenotePage -UserId $userId -OnenotePageId $onenotePageId -``` -This example shows how to use the Remove-MgBetaUserOnenotePage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgBetaUserOnenotePage -UserId $userId -OnenotePageId $onenotePageId +``` +This example shows how to use the Remove-MgBetaBetaUserOnenotePage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/beta/examples/Remove-MgBetaUserOnenoteSection.md b/src/Notes/beta/examples/Remove-MgBetaUserOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaUserOnenoteSection.md +++ b/src/Notes/beta/examples/Remove-MgBetaUserOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Remove-MgBetaUserOnenoteSectionGroup.md b/src/Notes/beta/examples/Remove-MgBetaUserOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Remove-MgBetaUserOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Remove-MgBetaUserOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaGroupOnenoteNotebook.md b/src/Notes/beta/examples/Update-MgBetaGroupOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaGroupOnenoteNotebook.md +++ b/src/Notes/beta/examples/Update-MgBetaGroupOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaGroupOnenotePage.md b/src/Notes/beta/examples/Update-MgBetaGroupOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaGroupOnenotePage.md +++ b/src/Notes/beta/examples/Update-MgBetaGroupOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaGroupOnenoteSection.md b/src/Notes/beta/examples/Update-MgBetaGroupOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaGroupOnenoteSection.md +++ b/src/Notes/beta/examples/Update-MgBetaGroupOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaGroupOnenoteSectionGroup.md b/src/Notes/beta/examples/Update-MgBetaGroupOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaGroupOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Update-MgBetaGroupOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaSiteOnenoteNotebook.md b/src/Notes/beta/examples/Update-MgBetaSiteOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaSiteOnenoteNotebook.md +++ b/src/Notes/beta/examples/Update-MgBetaSiteOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaSiteOnenotePage.md b/src/Notes/beta/examples/Update-MgBetaSiteOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaSiteOnenotePage.md +++ b/src/Notes/beta/examples/Update-MgBetaSiteOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaSiteOnenoteSection.md b/src/Notes/beta/examples/Update-MgBetaSiteOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaSiteOnenoteSection.md +++ b/src/Notes/beta/examples/Update-MgBetaSiteOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaSiteOnenoteSectionGroup.md b/src/Notes/beta/examples/Update-MgBetaSiteOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaSiteOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Update-MgBetaSiteOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaUserOnenoteNotebook.md b/src/Notes/beta/examples/Update-MgBetaUserOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaUserOnenoteNotebook.md +++ b/src/Notes/beta/examples/Update-MgBetaUserOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaUserOnenotePage.md b/src/Notes/beta/examples/Update-MgBetaUserOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaUserOnenotePage.md +++ b/src/Notes/beta/examples/Update-MgBetaUserOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaUserOnenoteSection.md b/src/Notes/beta/examples/Update-MgBetaUserOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaUserOnenoteSection.md +++ b/src/Notes/beta/examples/Update-MgBetaUserOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/beta/examples/Update-MgBetaUserOnenoteSectionGroup.md b/src/Notes/beta/examples/Update-MgBetaUserOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/beta/examples/Update-MgBetaUserOnenoteSectionGroup.md +++ b/src/Notes/beta/examples/Update-MgBetaUserOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebook.md b/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebook.md index 35d0716f853..7a2a0bb0d10 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenoteNotebook.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Notes # A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebook -UserId $userId +Get-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId ``` This example shows how to use the Get-MgGroupOnenoteNotebook Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenoteOperation.md b/src/Notes/v1.0/examples/Get-MgGroupOnenoteOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenoteOperation.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenoteOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenotePage.md b/src/Notes/v1.0/examples/Get-MgGroupOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenotePage.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenoteSection.md b/src/Notes/v1.0/examples/Get-MgGroupOnenoteSection.md index ae758c1ad96..19833e4bd36 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenoteSection.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenoteSection.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Notes # A UPN can also be used as -UserId. -Get-MgUserOnenoteSection -UserId $userId +Get-MgUserOnenoteSection -UserId $userId -OnenoteSectionId $onenoteSectionId ``` This example shows how to use the Get-MgGroupOnenoteSection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionGroup.md index 6293f3c711f..2659c0d853c 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenoteSectionGroup.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Notes # A UPN can also be used as -UserId. -Get-MgUserOnenoteSectionGroup -UserId $userId +Get-MgUserOnenoteSectionGroup -UserId $userId -SectionGroupId $sectionGroupId ``` This example shows how to use the Get-MgGroupOnenoteSectionGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebook.md b/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebook.md index 8f9755c51fa..eaacbcc446e 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenoteNotebook.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Notes # A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebook -UserId $userId +Get-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId ``` This example shows how to use the Get-MgSiteOnenoteNotebook 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 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenoteOperation.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenoteOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Get-MgSiteOnenotePage.md b/src/Notes/v1.0/examples/Get-MgSiteOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenotePage.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Get-MgSiteOnenoteSection.md b/src/Notes/v1.0/examples/Get-MgSiteOnenoteSection.md index 505c55933e2..389e1ac0cb6 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenoteSection.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenoteSection.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Notes # A UPN can also be used as -UserId. -Get-MgUserOnenoteSection -UserId $userId +Get-MgUserOnenoteSection -UserId $userId -OnenoteSectionId $onenoteSectionId ``` This example shows how to use the Get-MgSiteOnenoteSection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionGroup.md index a1ab153fe94..6ecf8fda897 100644 --- a/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Get-MgSiteOnenoteSectionGroup.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Notes # A UPN can also be used as -UserId. -Get-MgUserOnenoteSectionGroup -UserId $userId +Get-MgUserOnenoteSectionGroup -UserId $userId -SectionGroupId $sectionGroupId ``` This example shows how to use the Get-MgSiteOnenoteSectionGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebook.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebook.md index cf630807ed8..2f0e03d970a 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteNotebook.md @@ -1,24 +1,10 @@ -### Example 1: Using the Get-MgUserOnenoteNotebook Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes +### Example 1: Code snippet + +```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). -### Example 2: Using the Get-MgUserOnenoteNotebook Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes -# A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebook -UserId $userId -``` -This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgUserOnenoteNotebook Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes -# A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -``` -This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Get-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId +``` +This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenoteOperation.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteOperation.md index d43d2d8d0e2..b9edb480023 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteOperation.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteOperation.md @@ -1,8 +1,10 @@ -### Example 1: Using the Get-MgUserOnenoteOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes +### Example 1: Code snippet + +```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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenotePage.md b/src/Notes/v1.0/examples/Get-MgUserOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenotePage.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenoteSection.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteSection.md index 83d92648f54..b269a62775e 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteSection.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteSection.md @@ -1,16 +1,10 @@ -### Example 1: Using the Get-MgUserOnenoteSection Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes +### Example 1: Code snippet + +```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). -### Example 2: Using the Get-MgUserOnenoteSection Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes -# A UPN can also be used as -UserId. -Get-MgUserOnenoteSection -UserId $userId -``` -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 -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). + diff --git a/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroup.md index 2aeedfa816e..d11e465483b 100644 --- a/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Get-MgUserOnenoteSectionGroup.md @@ -1,8 +1,10 @@ -### Example 1: Using the Get-MgUserOnenoteSectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Notes + # A UPN can also be used as -UserId. -Get-MgUserOnenoteSectionGroup -UserId $userId -``` -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 -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). + diff --git a/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebook.md b/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebook.md index 1b00f4359d5..5d864138ffa 100644 --- a/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebook.md @@ -2,8 +2,12 @@ ```powershell Import-Module Microsoft.Graph.Notes +$params = @{ + displayName = "My Private notebook" +} + # A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebook -UserId $userId +New-MgUserOnenoteNotebook -UserId $userId -BodyParameter $params ``` This example shows how to use the New-MgGroupOnenoteNotebook Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebookSection.md b/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebookSection.md index 140477a559c..8f5135d7612 100644 --- a/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebookSection.md +++ b/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebookSection.md @@ -2,8 +2,12 @@ ```powershell Import-Module Microsoft.Graph.Notes +$params = @{ + displayName = "Section name" +} + # A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId +New-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` This example shows how to use the New-MgGroupOnenoteNotebookSection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebookSectionGroup.md b/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebookSectionGroup.md index bf834a8727b..5fc8d08a661 100644 --- a/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebookSectionGroup.md +++ b/src/Notes/v1.0/examples/New-MgGroupOnenoteNotebookSectionGroup.md @@ -2,8 +2,12 @@ ```powershell Import-Module Microsoft.Graph.Notes +$params = @{ + displayName = "Section group name" +} + # A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId +New-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` This example shows how to use the New-MgGroupOnenoteNotebookSectionGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/New-MgGroupOnenoteSectionGroupSection.md b/src/Notes/v1.0/examples/New-MgGroupOnenoteSectionGroupSection.md index 29cacff12a2..723a594851f 100644 --- a/src/Notes/v1.0/examples/New-MgGroupOnenoteSectionGroupSection.md +++ b/src/Notes/v1.0/examples/New-MgGroupOnenoteSectionGroupSection.md @@ -2,8 +2,12 @@ ```powershell Import-Module Microsoft.Graph.Notes +$params = @{ + displayName = "Section name" +} + # A UPN can also be used as -UserId. -Get-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId +New-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -BodyParameter $params ``` This example shows how to use the New-MgGroupOnenoteSectionGroupSection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebook.md b/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebook.md index b983d2a27f7..5d8062452c4 100644 --- a/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebook.md @@ -2,8 +2,12 @@ ```powershell Import-Module Microsoft.Graph.Notes +$params = @{ + displayName = "My Private notebook" +} + # A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebook -UserId $userId +New-MgUserOnenoteNotebook -UserId $userId -BodyParameter $params ``` This example shows how to use the New-MgSiteOnenoteNotebook Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebookSection.md b/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebookSection.md index 7f3c0577f1f..f01b57ef52a 100644 --- a/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebookSection.md +++ b/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebookSection.md @@ -2,8 +2,12 @@ ```powershell Import-Module Microsoft.Graph.Notes +$params = @{ + displayName = "Section name" +} + # A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId +New-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` This example shows how to use the New-MgSiteOnenoteNotebookSection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebookSectionGroup.md b/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebookSectionGroup.md index 7521b0e2d11..2121d391dc7 100644 --- a/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebookSectionGroup.md +++ b/src/Notes/v1.0/examples/New-MgSiteOnenoteNotebookSectionGroup.md @@ -2,8 +2,12 @@ ```powershell Import-Module Microsoft.Graph.Notes +$params = @{ + displayName = "Section group name" +} + # A UPN can also be used as -UserId. -Get-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId +New-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` This example shows how to use the New-MgSiteOnenoteNotebookSectionGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/New-MgSiteOnenoteSectionGroupSection.md b/src/Notes/v1.0/examples/New-MgSiteOnenoteSectionGroupSection.md index b543bcb18db..ad6bd459cd2 100644 --- a/src/Notes/v1.0/examples/New-MgSiteOnenoteSectionGroupSection.md +++ b/src/Notes/v1.0/examples/New-MgSiteOnenoteSectionGroupSection.md @@ -2,8 +2,12 @@ ```powershell Import-Module Microsoft.Graph.Notes +$params = @{ + displayName = "Section name" +} + # A UPN can also be used as -UserId. -Get-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId +New-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -BodyParameter $params ``` This example shows how to use the New-MgSiteOnenoteSectionGroupSection Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebook.md b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebook.md index 36192b3b5fd..a6869f69d6d 100644 --- a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebook.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserOnenoteNotebook Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Notes + $params = @{ - DisplayName = "My Private notebook" + 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 838fd4d5258..0add618e889 100644 --- a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSection.md +++ b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSection.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserOnenoteNotebookSection Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Notes + $params = @{ - DisplayName = "Section name" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSectionGroup.md b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSectionGroup.md index 8fe88b33041..242a0a37cac 100644 --- a/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/v1.0/examples/New-MgUserOnenoteNotebookSectionGroup.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserOnenoteNotebookSectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Notes + $params = @{ - DisplayName = "Section group name" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/v1.0/examples/New-MgUserOnenoteSectionGroupSection.md b/src/Notes/v1.0/examples/New-MgUserOnenoteSectionGroupSection.md index d481eb0fae0..0cb1af0efbe 100644 --- a/src/Notes/v1.0/examples/New-MgUserOnenoteSectionGroupSection.md +++ b/src/Notes/v1.0/examples/New-MgUserOnenoteSectionGroupSection.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserOnenoteSectionGroupSection Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Notes + $params = @{ - DisplayName = "Section name" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/v1.0/examples/Remove-MgGroupOnenoteNotebook.md b/src/Notes/v1.0/examples/Remove-MgGroupOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgGroupOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Remove-MgGroupOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgGroupOnenotePage.md b/src/Notes/v1.0/examples/Remove-MgGroupOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgGroupOnenotePage.md +++ b/src/Notes/v1.0/examples/Remove-MgGroupOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgGroupOnenoteSection.md b/src/Notes/v1.0/examples/Remove-MgGroupOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgGroupOnenoteSection.md +++ b/src/Notes/v1.0/examples/Remove-MgGroupOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgGroupOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Remove-MgGroupOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgGroupOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Remove-MgGroupOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgSiteOnenoteNotebook.md b/src/Notes/v1.0/examples/Remove-MgSiteOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgSiteOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Remove-MgSiteOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgSiteOnenotePage.md b/src/Notes/v1.0/examples/Remove-MgSiteOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgSiteOnenotePage.md +++ b/src/Notes/v1.0/examples/Remove-MgSiteOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgSiteOnenoteSection.md b/src/Notes/v1.0/examples/Remove-MgSiteOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgSiteOnenoteSection.md +++ b/src/Notes/v1.0/examples/Remove-MgSiteOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgSiteOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Remove-MgSiteOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgSiteOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Remove-MgSiteOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgUserOnenoteNotebook.md b/src/Notes/v1.0/examples/Remove-MgUserOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgUserOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Remove-MgUserOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgUserOnenotePage.md b/src/Notes/v1.0/examples/Remove-MgUserOnenotePage.md index 8f9927ca2f5..54bbfb1d353 100644 --- a/src/Notes/v1.0/examples/Remove-MgUserOnenotePage.md +++ b/src/Notes/v1.0/examples/Remove-MgUserOnenotePage.md @@ -1,8 +1,10 @@ -### Example 1: Using the Remove-MgUserOnenotePage Cmdlet -```powershell -Import-Module Microsoft.Graph.Notes +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Notes + # A UPN can also be used as -UserId. -Remove-MgUserOnenotePage -UserId $userId -OnenotePageId $onenotePageId -``` -This example shows how to use the Remove-MgUserOnenotePage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgUserOnenotePage -UserId $userId -OnenotePageId $onenotePageId +``` +This example shows how to use the Remove-MgUserOnenotePage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Notes/v1.0/examples/Remove-MgUserOnenoteSection.md b/src/Notes/v1.0/examples/Remove-MgUserOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgUserOnenoteSection.md +++ b/src/Notes/v1.0/examples/Remove-MgUserOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Remove-MgUserOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Remove-MgUserOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Remove-MgUserOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Remove-MgUserOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgGroupOnenoteNotebook.md b/src/Notes/v1.0/examples/Update-MgGroupOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgGroupOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Update-MgGroupOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgGroupOnenotePage.md b/src/Notes/v1.0/examples/Update-MgGroupOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgGroupOnenotePage.md +++ b/src/Notes/v1.0/examples/Update-MgGroupOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgGroupOnenoteSection.md b/src/Notes/v1.0/examples/Update-MgGroupOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgGroupOnenoteSection.md +++ b/src/Notes/v1.0/examples/Update-MgGroupOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgGroupOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Update-MgGroupOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgGroupOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Update-MgGroupOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgSiteOnenoteNotebook.md b/src/Notes/v1.0/examples/Update-MgSiteOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgSiteOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Update-MgSiteOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgSiteOnenotePage.md b/src/Notes/v1.0/examples/Update-MgSiteOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgSiteOnenotePage.md +++ b/src/Notes/v1.0/examples/Update-MgSiteOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgSiteOnenoteSection.md b/src/Notes/v1.0/examples/Update-MgSiteOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgSiteOnenoteSection.md +++ b/src/Notes/v1.0/examples/Update-MgSiteOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgSiteOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Update-MgSiteOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgSiteOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Update-MgSiteOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgUserOnenoteNotebook.md b/src/Notes/v1.0/examples/Update-MgUserOnenoteNotebook.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgUserOnenoteNotebook.md +++ b/src/Notes/v1.0/examples/Update-MgUserOnenoteNotebook.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgUserOnenotePage.md b/src/Notes/v1.0/examples/Update-MgUserOnenotePage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgUserOnenotePage.md +++ b/src/Notes/v1.0/examples/Update-MgUserOnenotePage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgUserOnenoteSection.md b/src/Notes/v1.0/examples/Update-MgUserOnenoteSection.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgUserOnenoteSection.md +++ b/src/Notes/v1.0/examples/Update-MgUserOnenoteSection.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Notes/v1.0/examples/Update-MgUserOnenoteSectionGroup.md b/src/Notes/v1.0/examples/Update-MgUserOnenoteSectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Notes/v1.0/examples/Update-MgUserOnenoteSectionGroup.md +++ b/src/Notes/v1.0/examples/Update-MgUserOnenoteSectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md b/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md index f944a3e6603..46ba6a6a99d 100644 --- a/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md +++ b/src/PersonalContacts/beta/examples/Get-MgBetaUserContact.md @@ -1,16 +1,20 @@ -### Example 1: Using the Get-MgBetaUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + +$params = @{ + homeAddress = @{ + street = "123 Some street" + city = "Seattle" + state = "WA" + postalCode = "98121" + } + birthday = [System.DateTime]::Parse("1974-07-22") +} + # 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). -### Example 2: Using the Get-MgBetaUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts -# A UPN can also be used as -UserId. -Get-MgBetaUserContact -UserId $userId -Property "displayName,emailAddresses" -``` -This example shows how to use the Get-MgBetaUserContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md b/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md index e77cd6276db..9989a514709 100644 --- a/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md +++ b/src/PersonalContacts/beta/examples/Get-MgBetaUserContactFolder.md @@ -1,16 +1,15 @@ -### Example 1: Using the Get-MgBetaUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + +$params = @{ + parentFolderId = "parentFolderId-value" + displayName = "displayName-value" +} + # 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). -### Example 2: Using the Get-MgBetaUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts -# A UPN can also be used as -UserId. -Get-MgBetaUserContactFolder -UserId $userId -``` -This example shows how to use the Get-MgBetaUserContactFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserContactFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/beta/examples/New-MgBetaUserContact.md b/src/PersonalContacts/beta/examples/New-MgBetaUserContact.md index 314131b075a..7ec5a251683 100644 --- a/src/PersonalContacts/beta/examples/New-MgBetaUserContact.md +++ b/src/PersonalContacts/beta/examples/New-MgBetaUserContact.md @@ -1,31 +1,24 @@ -### Example 1: Using the New-MgBetaUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + $params = @{ - GivenName = "Pavel" - Surname = "Bansky" - EmailAddresses = @( + givenName = "Pavel" + surname = "Bansky" + emailAddresses = @( @{ - Address = "pavelb@contoso.onmicrosoft.com" - Name = "Pavel Bansky" - Type = "personal" - } - @{ - Address = "pavelb@fabrikam.onmicrosoft.com" - Name = "Pavel Bansky" - Type = "other" - OtherLabel = "Volunteer work" + address = "pavelb@fabrikam.onmicrosoft.com" + name = "Pavel Bansky" } ) - Phones = @( - @{ - Number = "+1 732 555 0102" - Type = "business" - } + businessPhones = @( + "+1 732 555 0102" ) } + # A UPN can also be used as -UserId. -New-MgBetaUserContact -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserContact -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolder.md b/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolder.md index 12e269d8aa8..6c7f54d1f7d 100644 --- a/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolder.md +++ b/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolder.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + $params = @{ - ParentFolderId = "AQMkADIxYjJiYgEzLTFmNjYALTRjYTMtODA1NC0wZDkxZGNmOTcxNTQALgAAA8RJzXYaLKZPlmn0ge0edZkBADa3qi2IMXRNg6RwQSHe_F8AAAIBDgAAAA==" - DisplayName = "Important contacts" + parentFolderId = "AQMkADIxYjJiYgEzLTFmNjYALTRjYTMtODA1NC0wZDkxZGNmOTcxNTQALgAAA8RJzXYaLKZPlmn0ge0edZkBADa3qi2IMXRNg6RwQSHe_F8AAAIBDgAAAA==" + displayName = "Important contacts" } + # A UPN can also be used as -UserId. -New-MgBetaUserContactFolder -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserContactFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserContactFolder -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserContactFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderChildFolder.md b/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderChildFolder.md index c688f53d975..0b370cc5b9b 100644 --- a/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderChildFolder.md +++ b/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderChildFolder.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaUserContactFolderChildFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + $params = @{ - DisplayName = "Family" + displayName = "Family" } + # A UPN can also be used as -UserId. -New-MgBetaUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserContactFolderChildFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserContactFolderChildFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderChildFolderContact.md b/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderChildFolderContact.md index 093355d11d5..f6c6949389e 100644 --- a/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderChildFolderContact.md +++ b/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderChildFolderContact.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderContact.md b/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderContact.md index 3c496ad473f..310dc032991 100644 --- a/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderContact.md +++ b/src/PersonalContacts/beta/examples/New-MgBetaUserContactFolderContact.md @@ -1,16 +1,19 @@ -### Example 1: Using the New-MgBetaUserContactFolderContact Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + $params = @{ - ParentFolderId = "parentFolderId-value" - Birthday = [System.DateTime]::Parse("2016-10-19T10:37:00Z") - FileAs = "fileAs-value" - DisplayName = "displayName-value" - GivenName = "givenName-value" - Initials = "initials-value" + parentFolderId = "parentFolderId-value" + birthday = [System.DateTime]::Parse("datetime-value") + fileAs = "fileAs-value" + displayName = "displayName-value" + givenName = "givenName-value" + initials = "initials-value" } + # A UPN can also be used as -UserId. -New-MgBetaUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserContactFolderContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserContactFolderContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/beta/examples/Remove-MgBetaUserContact.md b/src/PersonalContacts/beta/examples/Remove-MgBetaUserContact.md index 4874cfc2cdb..078472ec3e9 100644 --- a/src/PersonalContacts/beta/examples/Remove-MgBetaUserContact.md +++ b/src/PersonalContacts/beta/examples/Remove-MgBetaUserContact.md @@ -1,8 +1,20 @@ -### Example 1: Using the Remove-MgBetaUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + +$params = @{ + homeAddress = @{ + street = "123 Some street" + city = "Seattle" + state = "WA" + postalCode = "98121" + } + birthday = [System.DateTime]::Parse("1974-07-22") +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserContact -UserId $userId -ContactId $contactId -``` -This example shows how to use the Remove-MgBetaUserContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/beta/examples/Remove-MgBetaUserContactFolder.md b/src/PersonalContacts/beta/examples/Remove-MgBetaUserContactFolder.md index 877df3e8f07..5f24b2d3c83 100644 --- a/src/PersonalContacts/beta/examples/Remove-MgBetaUserContactFolder.md +++ b/src/PersonalContacts/beta/examples/Remove-MgBetaUserContactFolder.md @@ -1,8 +1,15 @@ -### Example 1: Using the Remove-MgBetaUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + +$params = @{ + parentFolderId = "parentFolderId-value" + displayName = "displayName-value" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -``` -This example shows how to use the Remove-MgBetaUserContactFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserContactFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/beta/examples/Update-MgBetaUserContact.md b/src/PersonalContacts/beta/examples/Update-MgBetaUserContact.md index ad8bb59b9cf..acc56277c67 100644 --- a/src/PersonalContacts/beta/examples/Update-MgBetaUserContact.md +++ b/src/PersonalContacts/beta/examples/Update-MgBetaUserContact.md @@ -1,23 +1,20 @@ -### Example 1: Using the Update-MgBetaUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + $params = @{ - EmailAddresses = @( - @{ - Type = "personal" - Name = "Pavel Bansky" - Address = "pavelb@adatum.onmicrosoft.com" - } - @{ - Address = "pavelb@fabrikam.onmicrosoft.com" - Name = "Pavel Bansky" - Type = "other" - OtherLabel = "Volunteer work" - } - ) + homeAddress = @{ + street = "123 Some street" + city = "Seattle" + state = "WA" + postalCode = "98121" + } + birthday = [System.DateTime]::Parse("1974-07-22") } + # A UPN can also be used as -UserId. -Update-MgBetaUserContact -UserId $userId -ContactId $contactId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/beta/examples/Update-MgBetaUserContactFolder.md b/src/PersonalContacts/beta/examples/Update-MgBetaUserContactFolder.md index 6f0712cece8..b90c714e5c0 100644 --- a/src/PersonalContacts/beta/examples/Update-MgBetaUserContactFolder.md +++ b/src/PersonalContacts/beta/examples/Update-MgBetaUserContactFolder.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgBetaUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.PersonalContacts + $params = @{ - ParentFolderId = "parentFolderId-value" - DisplayName = "displayName-value" + parentFolderId = "parentFolderId-value" + displayName = "displayName-value" } + # A UPN can also be used as -UserId. -Update-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserContactFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserContactFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md b/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md index badbf3883ab..c15b5a9af0e 100644 --- a/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md +++ b/src/PersonalContacts/v1.0/examples/Get-MgUserContact.md @@ -1,16 +1,20 @@ -### Example 1: Using the Get-MgUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + +$params = @{ + homeAddress = @{ + street = "123 Some street" + city = "Seattle" + state = "WA" + postalCode = "98121" + } + birthday = [System.DateTime]::Parse("1974-07-22") +} + # 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). -### Example 2: Using the Get-MgUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts -# A UPN can also be used as -UserId. -Get-MgUserContact -UserId $userId -``` -This example shows how to use the Get-MgUserContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +``` +This example shows how to use the Get-MgUserContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md b/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md index ae1d35eb409..8164a8e54e9 100644 --- a/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md +++ b/src/PersonalContacts/v1.0/examples/Get-MgUserContactFolder.md @@ -1,16 +1,15 @@ -### Example 1: Using the Get-MgUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + +$params = @{ + parentFolderId = "parentFolderId-value" + displayName = "displayName-value" +} + # 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). -### Example 2: Using the Get-MgUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts -# A UPN can also be used as -UserId. -Get-MgUserContactFolder -UserId $userId -``` -This example shows how to use the Get-MgUserContactFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the Get-MgUserContactFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/New-MgUserContact.md b/src/PersonalContacts/v1.0/examples/New-MgUserContact.md index 76d888d29c9..83ae16b960d 100644 --- a/src/PersonalContacts/v1.0/examples/New-MgUserContact.md +++ b/src/PersonalContacts/v1.0/examples/New-MgUserContact.md @@ -1,21 +1,24 @@ -### Example 1: Using the New-MgUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + $params = @{ - GivenName = "Pavel" - Surname = "Bansky" - EmailAddresses = @( + givenName = "Pavel" + surname = "Bansky" + emailAddresses = @( @{ - Address = "pavelb@fabrikam.onmicrosoft.com" - Name = "Pavel Bansky" + address = "pavelb@fabrikam.onmicrosoft.com" + name = "Pavel Bansky" } ) - BusinessPhones = @( + businessPhones = @( "+1 732 555 0102" ) } + # A UPN can also be used as -UserId. -New-MgUserContact -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserContact -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/New-MgUserContactFolder.md b/src/PersonalContacts/v1.0/examples/New-MgUserContactFolder.md index 4f7b487fed6..cac691c6652 100644 --- a/src/PersonalContacts/v1.0/examples/New-MgUserContactFolder.md +++ b/src/PersonalContacts/v1.0/examples/New-MgUserContactFolder.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + $params = @{ - ParentFolderId = "AQMkADIxYjJiYgEzLTFmNjYALTRjYTMtODA1NC0wZDkxZGNmOTcxNTQALgAAA8RJzXYaLKZPlmn0ge0edZkBADa3qi2IMXRNg6RwQSHe_F8AAAIBDgAAAA==" - DisplayName = "Important contacts" + parentFolderId = "AQMkADIxYjJiYgEzLTFmNjYALTRjYTMtODA1NC0wZDkxZGNmOTcxNTQALgAAA8RJzXYaLKZPlmn0ge0edZkBADa3qi2IMXRNg6RwQSHe_F8AAAIBDgAAAA==" + displayName = "Important contacts" } + # A UPN can also be used as -UserId. -New-MgUserContactFolder -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserContactFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserContactFolder -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserContactFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderChildFolder.md b/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderChildFolder.md index 9fee34e1685..511e1a9df0d 100644 --- a/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderChildFolder.md +++ b/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderChildFolder.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserContactFolderChildFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + $params = @{ - DisplayName = "Family" + displayName = "Family" } + # A UPN can also be used as -UserId. -New-MgUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params -``` -This example shows how to use the New-MgUserContactFolderChildFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the New-MgUserContactFolderChildFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderChildFolderContact.md b/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderChildFolderContact.md index 093355d11d5..f6c6949389e 100644 --- a/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderChildFolderContact.md +++ b/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderChildFolderContact.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderContact.md b/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderContact.md index 86615c2292f..a35a52555c0 100644 --- a/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderContact.md +++ b/src/PersonalContacts/v1.0/examples/New-MgUserContactFolderContact.md @@ -1,16 +1,19 @@ -### Example 1: Using the New-MgUserContactFolderContact Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + $params = @{ - ParentFolderId = "parentFolderId-value" - Birthday = [System.DateTime]::Parse("datetime-value") - FileAs = "fileAs-value" - DisplayName = "displayName-value" - GivenName = "givenName-value" - Initials = "initials-value" + parentFolderId = "parentFolderId-value" + birthday = [System.DateTime]::Parse("datetime-value") + fileAs = "fileAs-value" + displayName = "displayName-value" + givenName = "givenName-value" + initials = "initials-value" } + # A UPN can also be used as -UserId. -New-MgUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params -``` -This example shows how to use the New-MgUserContactFolderContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the New-MgUserContactFolderContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/Remove-MgUserContact.md b/src/PersonalContacts/v1.0/examples/Remove-MgUserContact.md index 2cfe18df0c1..47617e24f79 100644 --- a/src/PersonalContacts/v1.0/examples/Remove-MgUserContact.md +++ b/src/PersonalContacts/v1.0/examples/Remove-MgUserContact.md @@ -1,8 +1,20 @@ -### Example 1: Using the Remove-MgUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + +$params = @{ + homeAddress = @{ + street = "123 Some street" + city = "Seattle" + state = "WA" + postalCode = "98121" + } + birthday = [System.DateTime]::Parse("1974-07-22") +} + # A UPN can also be used as -UserId. -Remove-MgUserContact -UserId $userId -ContactId $contactId -``` -This example shows how to use the Remove-MgUserContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/Remove-MgUserContactFolder.md b/src/PersonalContacts/v1.0/examples/Remove-MgUserContactFolder.md index 44f4ebfd984..c68acb12920 100644 --- a/src/PersonalContacts/v1.0/examples/Remove-MgUserContactFolder.md +++ b/src/PersonalContacts/v1.0/examples/Remove-MgUserContactFolder.md @@ -1,8 +1,15 @@ -### Example 1: Using the Remove-MgUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + +$params = @{ + parentFolderId = "parentFolderId-value" + displayName = "displayName-value" +} + # A UPN can also be used as -UserId. -Remove-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -``` -This example shows how to use the Remove-MgUserContactFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserContactFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/Update-MgUserContact.md b/src/PersonalContacts/v1.0/examples/Update-MgUserContact.md index 3c1721011a0..4d70e81d241 100644 --- a/src/PersonalContacts/v1.0/examples/Update-MgUserContact.md +++ b/src/PersonalContacts/v1.0/examples/Update-MgUserContact.md @@ -1,17 +1,20 @@ -### Example 1: Using the Update-MgUserContact Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + $params = @{ - HomeAddress = @{ - Street = "123 Some street" - City = "Seattle" - State = "WA" - PostalCode = "98121" + homeAddress = @{ + street = "123 Some street" + city = "Seattle" + state = "WA" + postalCode = "98121" } - Birthday = [System.DateTime]::Parse("1974-07-22") + birthday = [System.DateTime]::Parse("1974-07-22") } + # A UPN can also be used as -UserId. -Update-MgUserContact -UserId $userId -ContactId $contactId -BodyParameter $params -``` -This example shows how to use the Update-MgUserContact Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserContact -UserId $userId -ContactId $contactId -BodyParameter $params +``` +This example shows how to use the Update-MgUserContact Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/PersonalContacts/v1.0/examples/Update-MgUserContactFolder.md b/src/PersonalContacts/v1.0/examples/Update-MgUserContactFolder.md index ea993d87800..6bef481b0e5 100644 --- a/src/PersonalContacts/v1.0/examples/Update-MgUserContactFolder.md +++ b/src/PersonalContacts/v1.0/examples/Update-MgUserContactFolder.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgUserContactFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.PersonalContacts +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.PersonalContacts + $params = @{ - ParentFolderId = "parentFolderId-value" - DisplayName = "displayName-value" + parentFolderId = "parentFolderId-value" + displayName = "displayName-value" } + # A UPN can also be used as -UserId. -Update-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params -``` -This example shows how to use the Update-MgUserContactFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params +``` +This example shows how to use the Update-MgUserContactFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanDetail.md b/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanDetail.md index ce83986a28a..f6c6949389e 100644 --- a/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanDetail.md +++ b/src/Planner/beta/examples/Get-MgBetaGroupPlannerPlanDetail.md @@ -1,22 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Planner - -$params = @{ - SharedWith = @{ - "6463a5ce-2119-4198-9f2a-628761df4a62" = $true - "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false - } - CategoryDescriptions = @{ - Category1 = "Indoors" - Category3 = $null - } -} + PS C:\> {{ Add code here }} -Update-MgBetaPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaGroupPlannerPlanDetail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` +{{ Add description here }} diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md b/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md index e1d4c23f77b..57a01ce30da 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerBucket.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -Get-MgBetaPlannerBucket -``` -This example shows how to use the Get-MgBetaPlannerBucket Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + name = "Development" +} + +Update-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Get-MgBetaBetaPlannerBucket 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 27f4da56c9c..49343821727 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerPlan.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -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). -### Example 2: Using the Get-MgBetaPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -Get-MgBetaPlannerPlan -``` -This example shows how to use the Get-MgBetaPlannerPlan Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + title = "title-value" +} + +Update-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaPlannerPlan 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 731907fc5c5..f6c6949389e 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerPlanDetail.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerPlanDetail.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgBetaPlannerPlanDetail Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Planner -Get-MgBetaPlannerPlanDetail -PlannerPlanId $plannerPlanId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaPlannerPlanDetail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTask.md b/src/Planner/beta/examples/Get-MgBetaPlannerTask.md index 43b39053cf0..3d843cb25cd 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTask.md @@ -1,14 +1,22 @@ -### Example 1: Using the Get-MgBetaPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -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). -### Example 2: Using the Get-MgBetaPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -Get-MgBetaPlannerTask -``` -This example shows how to use the Get-MgBetaPlannerTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + assignments = @{ + "fbab97d0-4932-4511-b675-204639209557" = @{ + "@odata.type" = "#microsoft.graph.plannerAssignment" + orderHint = "N9917 U2883!" + } + } + appliedCategories = @{ + category3 = $true + category4 = $false + } +} + +Update-MgBetaPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Get-MgBetaBetaPlannerTask 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 15990310590..ae0bfb8ac39 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskAssignedToTaskBoardFormat.md @@ -1,7 +1,15 @@ -### Example 1: Using the Get-MgBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + orderHintsByAssignee = @{ + "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" + } +} + +Update-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Get-MgBetaBetaPlannerTaskAssignedToTaskBoardFormat 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 3d75ca2fbf6..116a1e7ac36 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskBucketTaskBoardFormat.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgBetaPlannerTaskBucketTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + orderHint = "A6673H Ejkl!" +} + +Update-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Get-MgBetaBetaPlannerTaskBucketTaskBoardFormat 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 a19596efe65..e669c8faeed 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskDetail.md @@ -1,7 +1,38 @@ -### Example 1: Using the Get-MgBetaPlannerTaskDetail Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + previewType = "noPreview" + references = @{ + "http%3A//developer%2Emicrosoft%2Ecom" = @{ + "@odata.type" = "microsoft.graph.plannerExternalReference" + alias = "Documentation" + previewPriority = " !" + type = "Other" + } + "https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ + "@odata.type" = "microsoft.graph.plannerExternalReference" + previewPriority = " !!" + } + "http%3A//www%2Ebing%2Ecom" = $null + } + checklist = @{ + "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ + "@odata.type" = "microsoft.graph.plannerChecklistItem" + title = "Update task details" + isChecked = $true + } + "d280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ + "@odata.type" = "microsoft.graph.plannerChecklistItem" + isChecked = $true + } + "a93c93c5-10a6-4167-9551-8bafa09967a7" = $null + } +} + +Update-MgBetaPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Get-MgBetaBetaPlannerTaskDetail 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 99b6ebc6141..e7b655e2d53 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgBetaPlannerTaskProgressTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + orderHint = "A6673H Ejkl!" +} + +Update-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Get-MgBetaBetaPlannerTaskProgressTaskBoardFormat 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 a168869f2dd..f42354a41e0 100644 --- a/src/Planner/beta/examples/New-MgBetaPlannerBucket.md +++ b/src/Planner/beta/examples/New-MgBetaPlannerBucket.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - Name = "Advertising" - PlanId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" - OrderHint = " !" + name = "Advertising" + planId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" + 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-MgBetaBetaPlannerBucket Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/New-MgBetaPlannerPlan.md b/src/Planner/beta/examples/New-MgBetaPlannerPlan.md index 8d2e97272de..96eac859f2f 100644 --- a/src/Planner/beta/examples/New-MgBetaPlannerPlan.md +++ b/src/Planner/beta/examples/New-MgBetaPlannerPlan.md @@ -1,13 +1,16 @@ -### Example 1: Using the New-MgBetaPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - Container = @{ - Url = "https://graph.microsoft.com/beta/groups/ebf3b108-5234-4e22-b93d-656d7dae5874" + container = @{ + url = "https://graph.microsoft.com/beta/groups/ebf3b108-5234-4e22-b93d-656d7dae5874" } - Title = "title-value" + 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-MgBetaBetaPlannerPlan Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/New-MgBetaPlannerTask.md b/src/Planner/beta/examples/New-MgBetaPlannerTask.md index 88874b0881f..654b288f2f2 100644 --- a/src/Planner/beta/examples/New-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/New-MgBetaPlannerTask.md @@ -1,18 +1,21 @@ -### Example 1: Using the New-MgBetaPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - PlanId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" - BucketId = "hsOf2dhOJkqyYYZEtdzDe2QAIUCR" - Title = "Update client list" - Assignments = @{ - "Fbab97d0-4932-4511-b675-204639209557" = @{ + planId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" + bucketId = "hsOf2dhOJkqyYYZEtdzDe2QAIUCR" + title = "Update client list" + assignments = @{ + "fbab97d0-4932-4511-b675-204639209557" = @{ "@odata.type" = "#microsoft.graph.plannerAssignment" - OrderHint = " !" + orderHint = " !" } } } -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-MgBetaBetaPlannerTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Remove-MgBetaGroupPlannerPlanDetail.md b/src/Planner/beta/examples/Remove-MgBetaGroupPlannerPlanDetail.md index 00099a72a9c..f6c6949389e 100644 --- a/src/Planner/beta/examples/Remove-MgBetaGroupPlannerPlanDetail.md +++ b/src/Planner/beta/examples/Remove-MgBetaGroupPlannerPlanDetail.md @@ -1,22 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Planner - -$params = @{ - SharedWith = @{ - "6463a5ce-2119-4198-9f2a-628761df4a62" = $true - "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false - } - CategoryDescriptions = @{ - Category1 = "Indoors" - Category3 = $null - } -} + PS C:\> {{ Add code here }} -Update-MgBetaPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaGroupPlannerPlanDetail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` +{{ Add description here }} diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerBucket.md b/src/Planner/beta/examples/Remove-MgBetaPlannerBucket.md index 569d736e895..9142f9815d1 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerBucket.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerBucket.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -Remove-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" -``` -This example shows how to use the Remove-MgBetaPlannerBucket Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + name = "Development" +} + +Update-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Remove-MgBetaBetaPlannerBucket Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerPlan.md b/src/Planner/beta/examples/Remove-MgBetaPlannerPlan.md index eac92497836..1ed24e3eeab 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerPlan.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerPlan.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -Remove-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" -``` -This example shows how to use the Remove-MgBetaPlannerPlan Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + title = "title-value" +} + +Update-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaPlannerPlan Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md index 14b3f0e22d9..3d54f1a68bd 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md @@ -1,7 +1,22 @@ -### Example 1: Using the Remove-MgBetaPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner -Remove-MgBetaPlannerTask -PlannerTaskId $plannerTaskId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" -``` -This example shows how to use the Remove-MgBetaPlannerTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + assignments = @{ + "fbab97d0-4932-4511-b675-204639209557" = @{ + "@odata.type" = "#microsoft.graph.plannerAssignment" + orderHint = "N9917 U2883!" + } + } + appliedCategories = @{ + category3 = $true + category4 = $false + } +} + +Update-MgBetaPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Remove-MgBetaBetaPlannerTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskAssignedToTaskBoardFormat.md index 4d9ea8d13cb..c741dc03385 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskAssignedToTaskBoardFormat.md @@ -1,17 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +```powershell Import-Module Microsoft.Graph.Beta.Planner $params = @{ - OrderHintsByAssignee = @{ - "Aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" + orderHintsByAssignee = @{ + "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" } } -Update-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Remove-MgBetaBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskBucketTaskBoardFormat.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskBucketTaskBoardFormat.md index 96caa54fd7a..ac5195a8dae 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskBucketTaskBoardFormat.md @@ -1,15 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +```powershell Import-Module Microsoft.Graph.Beta.Planner $params = @{ - OrderHint = "A6673H Ejkl!" + orderHint = "A6673H Ejkl!" } -Update-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaPlannerTaskBucketTaskBoardFormat Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Remove-MgBetaBetaPlannerTaskBucketTaskBoardFormat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskProgressTaskBoardFormat.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskProgressTaskBoardFormat.md index 9eb644ef1b1..22b479b8f28 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTaskProgressTaskBoardFormat.md @@ -1,15 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +```powershell Import-Module Microsoft.Graph.Beta.Planner $params = @{ - OrderHint = "A6673H Ejkl!" + orderHint = "A6673H Ejkl!" } -Update-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaPlannerTaskProgressTaskBoardFormat Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Remove-MgBetaBetaPlannerTaskProgressTaskBoardFormat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Update-MgBetaGroupPlannerPlanDetail.md b/src/Planner/beta/examples/Update-MgBetaGroupPlannerPlanDetail.md index 272b481873a..f6c6949389e 100644 --- a/src/Planner/beta/examples/Update-MgBetaGroupPlannerPlanDetail.md +++ b/src/Planner/beta/examples/Update-MgBetaGroupPlannerPlanDetail.md @@ -1,22 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Planner - -$params = @{ - SharedWith = @{ - "6463a5ce-2119-4198-9f2a-628761df4a62" = $true - "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false - } - CategoryDescriptions = @{ - Category1 = "Indoors" - Category3 = $null - } -} + PS C:\> {{ Add code here }} -Update-MgBetaPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaGroupPlannerPlanDetail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` +{{ Add description here }} diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerBucket.md b/src/Planner/beta/examples/Update-MgBetaPlannerBucket.md index 9994a95ce91..8ec86a9f7c4 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerBucket.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerBucket.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - Name = "Development" + name = "Development" } -Update-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlannerBucket Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgBetaBetaPlannerBucket Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerPlan.md b/src/Planner/beta/examples/Update-MgBetaPlannerPlan.md index 9b75eb047fe..06913574b1f 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerPlan.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerPlan.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - Title = "title-value" + title = "title-value" } -Update-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlannerPlan Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaPlannerPlan Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerPlanDetail.md b/src/Planner/beta/examples/Update-MgBetaPlannerPlanDetail.md index 035bfe0e2b2..f6c6949389e 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerPlanDetail.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerPlanDetail.md @@ -1,17 +1,17 @@ -### Example 1: Using the Update-MgBetaPlannerPlanDetail Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Planner -$params = @{ - SharedWith = @{ - "6463a5ce-2119-4198-9f2a-628761df4a62" = $true - "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false - } - CategoryDescriptions = @{ - Category1 = "Indoors" - Category3 = $null - } -} -Update-MgBetaPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaPlannerPlanDetail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTask.md b/src/Planner/beta/examples/Update-MgBetaPlannerTask.md index 880d321d85f..12478cda0d1 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTask.md @@ -1,19 +1,22 @@ -### Example 1: Using the Update-MgBetaPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - Assignments = @{ - "Fbab97d0-4932-4511-b675-204639209557" = @{ + assignments = @{ + "fbab97d0-4932-4511-b675-204639209557" = @{ "@odata.type" = "#microsoft.graph.plannerAssignment" - OrderHint = "N9917 U2883!" + orderHint = "N9917 U2883!" } } - AppliedCategories = @{ - Category3 = $true - Category4 = $false + appliedCategories = @{ + category3 = $true + category4 = $false } } -Update-MgBetaPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlannerTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgBetaBetaPlannerTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/beta/examples/Update-MgBetaPlannerTaskAssignedToTaskBoardFormat.md index c0a28c5ecf6..f6689caf3c5 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTaskAssignedToTaskBoardFormat.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - OrderHintsByAssignee = @{ - "Aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" + orderHintsByAssignee = @{ + "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" } } -Update-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgBetaBetaPlannerTaskAssignedToTaskBoardFormat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTaskBucketTaskBoardFormat.md b/src/Planner/beta/examples/Update-MgBetaPlannerTaskBucketTaskBoardFormat.md index 7ed115c5870..783e80c6d13 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTaskBucketTaskBoardFormat.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaPlannerTaskBucketTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - OrderHint = "A6673H Ejkl!" + orderHint = "A6673H Ejkl!" } -Update-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlannerTaskBucketTaskBoardFormat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgBetaBetaPlannerTaskBucketTaskBoardFormat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTaskDetail.md b/src/Planner/beta/examples/Update-MgBetaPlannerTaskDetail.md index 4f0901ff9e3..bc0f118943b 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTaskDetail.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTaskDetail.md @@ -1,35 +1,38 @@ -### Example 1: Using the Update-MgBetaPlannerTaskDetail Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - PreviewType = "noPreview" - References = @{ - "Http%3A//developer%2Emicrosoft%2Ecom" = @{ + previewType = "noPreview" + references = @{ + "http%3A//developer%2Emicrosoft%2Ecom" = @{ "@odata.type" = "microsoft.graph.plannerExternalReference" - Alias = "Documentation" - PreviewPriority = " !" - Type = "Other" + alias = "Documentation" + previewPriority = " !" + type = "Other" } - "Https%3A//developer%2Emicrosoft%2Ecom/graph/graph-explorer" = @{ + "https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ "@odata.type" = "microsoft.graph.plannerExternalReference" - PreviewPriority = " !!" + previewPriority = " !!" } - "Http%3A//www%2Ebing%2Ecom" = $null + "http%3A//www%2Ebing%2Ecom" = $null } - Checklist = @{ + checklist = @{ "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ "@odata.type" = "microsoft.graph.plannerChecklistItem" - Title = "Update task details" - IsChecked = $true + title = "Update task details" + isChecked = $true } - "D280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ + "d280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ "@odata.type" = "microsoft.graph.plannerChecklistItem" - IsChecked = $true + isChecked = $true } - "A93c93c5-10a6-4167-9551-8bafa09967a7" = $null + "a93c93c5-10a6-4167-9551-8bafa09967a7" = $null } } -Update-MgBetaPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlannerTaskDetail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgBetaBetaPlannerTaskDetail Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/beta/examples/Update-MgBetaPlannerTaskProgressTaskBoardFormat.md b/src/Planner/beta/examples/Update-MgBetaPlannerTaskProgressTaskBoardFormat.md index b43a335272b..2140a7df388 100644 --- a/src/Planner/beta/examples/Update-MgBetaPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/beta/examples/Update-MgBetaPlannerTaskProgressTaskBoardFormat.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaPlannerTaskProgressTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Planner + $params = @{ - OrderHint = "A6673H Ejkl!" + orderHint = "A6673H Ejkl!" } -Update-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPlannerTaskProgressTaskBoardFormat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgBetaBetaPlannerTaskProgressTaskBoardFormat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanDetail.md b/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanDetail.md index 72f69c97880..f6c6949389e 100644 --- a/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanDetail.md +++ b/src/Planner/v1.0/examples/Get-MgGroupPlannerPlanDetail.md @@ -1,20 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Planner +{{ Add output here }} +``` -$params = @{ - SharedWith = @{ - "6463a5ce-2119-4198-9f2a-628761df4a62" = $true - "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false - } - CategoryDescriptions = @{ - Category1 = "Indoors" - Category3 = $null - } -} +{{ Add description here }} -Update-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params -``` -This example shows how to use the Get-MgGroupPlannerPlanDetail Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Planner/v1.0/examples/Get-MgPlannerBucket.md b/src/Planner/v1.0/examples/Get-MgPlannerBucket.md index 527e0665d1a..e8cbf6b7149 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerBucket.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerBucket.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -Get-MgPlannerBucket -``` -This example shows how to use the Get-MgPlannerBucket Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + name = "Development" +} + +Update-MgPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +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-MgPlannerPlan.md b/src/Planner/v1.0/examples/Get-MgPlannerPlan.md index c85fd490932..90c387f0738 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerPlan.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -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). -### Example 2: Using the Get-MgPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -Get-MgPlannerPlan -``` -This example shows how to use the Get-MgPlannerPlan Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + title = "title-value" +} + +Update-MgPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +``` +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 3ef38714af1..f6c6949389e 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerPlanDetail.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerPlanDetail.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgPlannerPlanDetail Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Planner -Get-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgPlannerPlanDetail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Planner/v1.0/examples/Get-MgPlannerTask.md b/src/Planner/v1.0/examples/Get-MgPlannerTask.md index b77b84390d9..1c0bfa74700 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTask.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTask.md @@ -1,14 +1,22 @@ -### Example 1: Using the Get-MgPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -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). -### Example 2: Using the Get-MgPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -Get-MgPlannerTask -``` -This example shows how to use the Get-MgPlannerTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + assignments = @{ + "fbab97d0-4932-4511-b675-204639209557" = @{ + "@odata.type" = "#microsoft.graph.plannerAssignment" + orderHint = "N9917 U2883!" + } + } + appliedCategories = @{ + category3 = $true + category4 = $false + } +} + +Update-MgPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +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 9c5f0fea3bc..a891d80c95f 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -1,7 +1,15 @@ -### Example 1: Using the Get-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + orderHintsByAssignee = @{ + "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" + } +} + +Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +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 33d6a38f832..8b564d50d20 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskBucketTaskBoardFormat.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgPlannerTaskBucketTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + orderHint = "A6673H Ejkl!" +} + +Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +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 3723f3299b1..7b66c8f7e9a 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskDetail.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskDetail.md @@ -1,7 +1,38 @@ -### Example 1: Using the Get-MgPlannerTaskDetail Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + previewType = "noPreview" + references = @{ + "http%3A//developer%2Emicrosoft%2Ecom" = @{ + "@odata.type" = "microsoft.graph.plannerExternalReference" + alias = "Documentation" + previewPriority = " !" + type = "Other" + } + "https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ + "@odata.type" = "microsoft.graph.plannerExternalReference" + previewPriority = " !!" + } + "http%3A//www%2Ebing%2Ecom" = $null + } + checklist = @{ + "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ + "@odata.type" = "microsoft.graph.plannerChecklistItem" + title = "Update task details" + isChecked = $true + } + "d280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ + "@odata.type" = "microsoft.graph.plannerChecklistItem" + isChecked = $true + } + "a93c93c5-10a6-4167-9551-8bafa09967a7" = $null + } +} + +Update-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +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 a8925d1e73b..9aff730daea 100644 --- a/src/Planner/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Get-MgPlannerTaskProgressTaskBoardFormat.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgPlannerTaskProgressTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + orderHint = "A6673H Ejkl!" +} + +Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +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/New-MgPlannerBucket.md b/src/Planner/v1.0/examples/New-MgPlannerBucket.md index 92e6b457ff3..5daaa961901 100644 --- a/src/Planner/v1.0/examples/New-MgPlannerBucket.md +++ b/src/Planner/v1.0/examples/New-MgPlannerBucket.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - Name = "Advertising" - PlanId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" - OrderHint = " !" + name = "Advertising" + planId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/New-MgPlannerPlan.md b/src/Planner/v1.0/examples/New-MgPlannerPlan.md index d4a02df2e39..bb1d522ab44 100644 --- a/src/Planner/v1.0/examples/New-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/New-MgPlannerPlan.md @@ -1,11 +1,16 @@ -### Example 1: Using the New-MgPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - Owner = "ebf3b108-5234-4e22-b93d-656d7dae5874" - Title = "title-value" + container = @{ + url = "https://graph.microsoft.com/beta/groups/ebf3b108-5234-4e22-b93d-656d7dae5874" + } + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/New-MgPlannerTask.md b/src/Planner/v1.0/examples/New-MgPlannerTask.md index 3cf42b6362b..8f69081c637 100644 --- a/src/Planner/v1.0/examples/New-MgPlannerTask.md +++ b/src/Planner/v1.0/examples/New-MgPlannerTask.md @@ -1,18 +1,21 @@ -### Example 1: Using the New-MgPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - PlanId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" - BucketId = "hsOf2dhOJkqyYYZEtdzDe2QAIUCR" - Title = "Update client list" - Assignments = @{ - "Fbab97d0-4932-4511-b675-204639209557" = @{ + planId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" + bucketId = "hsOf2dhOJkqyYYZEtdzDe2QAIUCR" + title = "Update client list" + assignments = @{ + "fbab97d0-4932-4511-b675-204639209557" = @{ "@odata.type" = "#microsoft.graph.plannerAssignment" - OrderHint = " !" + orderHint = " !" } } } -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Remove-MgGroupPlannerPlanDetail.md b/src/Planner/v1.0/examples/Remove-MgGroupPlannerPlanDetail.md index 14bdf28fa05..f6c6949389e 100644 --- a/src/Planner/v1.0/examples/Remove-MgGroupPlannerPlanDetail.md +++ b/src/Planner/v1.0/examples/Remove-MgGroupPlannerPlanDetail.md @@ -1,20 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Planner +{{ Add output here }} +``` -$params = @{ - SharedWith = @{ - "6463a5ce-2119-4198-9f2a-628761df4a62" = $true - "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false - } - CategoryDescriptions = @{ - Category1 = "Indoors" - Category3 = $null - } -} +{{ Add description here }} -Update-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params -``` -This example shows how to use the Remove-MgGroupPlannerPlanDetail Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerBucket.md b/src/Planner/v1.0/examples/Remove-MgPlannerBucket.md index ef48c848a6f..e889e25f665 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerBucket.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerBucket.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -Remove-MgPlannerBucket -PlannerBucketId $plannerBucketId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" -``` -This example shows how to use the Remove-MgPlannerBucket Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + name = "Development" +} + +Update-MgPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Remove-MgPlannerBucket Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerPlan.md b/src/Planner/v1.0/examples/Remove-MgPlannerPlan.md index 68a7b2eea17..a382246b442 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerPlan.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -Remove-MgPlannerPlan -PlannerPlanId $plannerPlanId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" -``` -This example shows how to use the Remove-MgPlannerPlan Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + title = "title-value" +} + +Update-MgPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +``` +This example shows how to use the Remove-MgPlannerPlan Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerTask.md b/src/Planner/v1.0/examples/Remove-MgPlannerTask.md index bbeb881e87c..3d2193e49db 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerTask.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerTask.md @@ -1,7 +1,22 @@ -### Example 1: Using the Remove-MgPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner -Remove-MgPlannerTask -PlannerTaskId $plannerTaskId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" -``` -This example shows how to use the Remove-MgPlannerTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + +$params = @{ + assignments = @{ + "fbab97d0-4932-4511-b675-204639209557" = @{ + "@odata.type" = "#microsoft.graph.plannerAssignment" + orderHint = "N9917 U2883!" + } + } + appliedCategories = @{ + category3 = $true + category4 = $false + } +} + +Update-MgPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Remove-MgPlannerTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/v1.0/examples/Remove-MgPlannerTaskAssignedToTaskBoardFormat.md index 06a811fc851..cb79182003d 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -3,12 +3,12 @@ ```powershell Import-Module Microsoft.Graph.Planner $params = @{ - OrderHintsByAssignee = @{ - "Aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" + orderHintsByAssignee = @{ + "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" } } -Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params +Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" ``` This example shows how to use the Remove-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/v1.0/examples/Remove-MgPlannerTaskBucketTaskBoardFormat.md index 5c6db36719c..cc6d00fde9e 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerTaskBucketTaskBoardFormat.md @@ -3,10 +3,10 @@ ```powershell Import-Module Microsoft.Graph.Planner $params = @{ - OrderHint = "A6673H Ejkl!" + orderHint = "A6673H Ejkl!" } -Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params +Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" ``` This example shows how to use the Remove-MgPlannerTaskBucketTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Remove-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/v1.0/examples/Remove-MgPlannerTaskProgressTaskBoardFormat.md index cae1968f08b..f08be2a64e1 100644 --- a/src/Planner/v1.0/examples/Remove-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Remove-MgPlannerTaskProgressTaskBoardFormat.md @@ -3,10 +3,10 @@ ```powershell Import-Module Microsoft.Graph.Planner $params = @{ - OrderHint = "A6673H Ejkl!" + orderHint = "A6673H Ejkl!" } -Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params +Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" ``` This example shows how to use the Remove-MgPlannerTaskProgressTaskBoardFormat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/v1.0/examples/Update-MgGroupPlannerPlanDetail.md b/src/Planner/v1.0/examples/Update-MgGroupPlannerPlanDetail.md index de83e6381bb..f6c6949389e 100644 --- a/src/Planner/v1.0/examples/Update-MgGroupPlannerPlanDetail.md +++ b/src/Planner/v1.0/examples/Update-MgGroupPlannerPlanDetail.md @@ -1,20 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Planner +{{ Add output here }} +``` -$params = @{ - SharedWith = @{ - "6463a5ce-2119-4198-9f2a-628761df4a62" = $true - "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false - } - CategoryDescriptions = @{ - Category1 = "Indoors" - Category3 = $null - } -} +{{ Add description here }} -Update-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params -``` -This example shows how to use the Update-MgGroupPlannerPlanDetail Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Planner/v1.0/examples/Update-MgPlannerBucket.md b/src/Planner/v1.0/examples/Update-MgPlannerBucket.md index 3ed2845eac4..82348decf75 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerBucket.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerBucket.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgPlannerBucket Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - Name = "Development" + name = "Development" } -Update-MgPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params -``` -This example shows how to use the Update-MgPlannerBucket Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgPlannerBucket Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Update-MgPlannerPlan.md b/src/Planner/v1.0/examples/Update-MgPlannerPlan.md index f85255752f9..d6b9e47d5ae 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerPlan.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgPlannerPlan Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - Title = "title-value" + title = "title-value" } -Update-MgPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params -``` -This example shows how to use the Update-MgPlannerPlan Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params +``` +This example shows how to use the Update-MgPlannerPlan Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Update-MgPlannerPlanDetail.md b/src/Planner/v1.0/examples/Update-MgPlannerPlanDetail.md index 7e24eb55fd6..f6c6949389e 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerPlanDetail.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerPlanDetail.md @@ -1,17 +1,17 @@ -### Example 1: Using the Update-MgPlannerPlanDetail Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Planner -$params = @{ - SharedWith = @{ - "6463a5ce-2119-4198-9f2a-628761df4a62" = $true - "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false - } - CategoryDescriptions = @{ - Category1 = "Indoors" - Category3 = $null - } -} -Update-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgPlannerPlanDetail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTask.md b/src/Planner/v1.0/examples/Update-MgPlannerTask.md index d6f22d3562a..c634a5b2a5e 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTask.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTask.md @@ -1,19 +1,22 @@ -### Example 1: Using the Update-MgPlannerTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - Assignments = @{ - "Fbab97d0-4932-4511-b675-204639209557" = @{ + assignments = @{ + "fbab97d0-4932-4511-b675-204639209557" = @{ "@odata.type" = "#microsoft.graph.plannerAssignment" - OrderHint = "N9917 U2883!" + orderHint = "N9917 U2883!" } } - AppliedCategories = @{ - Category3 = $true - Category4 = $false + appliedCategories = @{ + category3 = $true + category4 = $false } } -Update-MgPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgPlannerTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgPlannerTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/v1.0/examples/Update-MgPlannerTaskAssignedToTaskBoardFormat.md index 59425a6026f..f82fe82feb4 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - OrderHintsByAssignee = @{ - "Aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" + orderHintsByAssignee = @{ + "aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" } } -Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/v1.0/examples/Update-MgPlannerTaskBucketTaskBoardFormat.md index b94eeb1278a..5a1f6730c3d 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTaskBucketTaskBoardFormat.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgPlannerTaskBucketTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - OrderHint = "A6673H Ejkl!" + orderHint = "A6673H Ejkl!" } -Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgPlannerTaskBucketTaskBoardFormat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgPlannerTaskBucketTaskBoardFormat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTaskDetail.md b/src/Planner/v1.0/examples/Update-MgPlannerTaskDetail.md index d16d0bc58c5..e62c5bed6e1 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTaskDetail.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTaskDetail.md @@ -1,35 +1,38 @@ -### Example 1: Using the Update-MgPlannerTaskDetail Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - PreviewType = "noPreview" - References = @{ - "Http%3A//developer%2Emicrosoft%2Ecom" = @{ + previewType = "noPreview" + references = @{ + "http%3A//developer%2Emicrosoft%2Ecom" = @{ "@odata.type" = "microsoft.graph.plannerExternalReference" - Alias = "Documentation" - PreviewPriority = " !" - Type = "Other" + alias = "Documentation" + previewPriority = " !" + type = "Other" } - "Https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ + "https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ "@odata.type" = "microsoft.graph.plannerExternalReference" - PreviewPriority = " !!" + previewPriority = " !!" } - "Http%3A//www%2Ebing%2Ecom" = $null + "http%3A//www%2Ebing%2Ecom" = $null } - Checklist = @{ + checklist = @{ "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ "@odata.type" = "microsoft.graph.plannerChecklistItem" - Title = "Update task details" - IsChecked = $true + title = "Update task details" + isChecked = $true } - "D280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ + "d280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ "@odata.type" = "microsoft.graph.plannerChecklistItem" - IsChecked = $true + isChecked = $true } - "A93c93c5-10a6-4167-9551-8bafa09967a7" = $null + "a93c93c5-10a6-4167-9551-8bafa09967a7" = $null } } -Update-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgPlannerTaskDetail Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgPlannerTaskDetail Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Planner/v1.0/examples/Update-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/v1.0/examples/Update-MgPlannerTaskProgressTaskBoardFormat.md index 4a456eeb232..843d128ba10 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerTaskProgressTaskBoardFormat.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgPlannerTaskProgressTaskBoardFormat Cmdlet -```powershell -Import-Module Microsoft.Graph.Planner +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Planner + $params = @{ - OrderHint = "A6673H Ejkl!" + orderHint = "A6673H Ejkl!" } -Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgPlannerTaskProgressTaskBoardFormat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" +``` +This example shows how to use the Update-MgPlannerTaskProgressTaskBoardFormat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Reports/beta/examples/Get-MgBetaAuditLogDirectoryAudit.md b/src/Reports/beta/examples/Get-MgBetaAuditLogDirectoryAudit.md index 9ec30ff1236..eca4f359a8d 100644 --- a/src/Reports/beta/examples/Get-MgBetaAuditLogDirectoryAudit.md +++ b/src/Reports/beta/examples/Get-MgBetaAuditLogDirectoryAudit.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaAuditLogDirectoryAudit Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Reports -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). -### Example 2: Using the Get-MgBetaAuditLogDirectoryAudit Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Reports -Get-MgBetaAuditLogDirectoryAudit -``` -This example shows how to use the Get-MgBetaAuditLogDirectoryAudit Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaAuditLogDirectoryAudit -DirectoryAuditId $directoryAuditId +``` +This example shows how to use the Get-MgBetaBetaAuditLogDirectoryAudit Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Reports/beta/examples/Get-MgBetaAuditLogSignIn.md b/src/Reports/beta/examples/Get-MgBetaAuditLogSignIn.md index 46d710b9375..0b8eb312e19 100644 --- a/src/Reports/beta/examples/Get-MgBetaAuditLogSignIn.md +++ b/src/Reports/beta/examples/Get-MgBetaAuditLogSignIn.md @@ -1,28 +1,9 @@ -### Example 1: Using the Get-MgBetaAuditLogSignIn Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Reports -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). -### Example 2: Using the Get-MgBetaAuditLogSignIn Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Reports -Get-MgBetaAuditLogSignIn -``` -This example shows how to use the Get-MgBetaAuditLogSignIn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaAuditLogSignIn Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Reports -Get-MgBetaAuditLogSignIn -Filter "startsWith(appDisplayName,'Azure')" -Top 10 -``` -This example shows how to use the Get-MgBetaAuditLogSignIn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaAuditLogSignIn Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Reports -Get-MgBetaAuditLogSignIn -Filter "(signInEventTypes/any(t: t ne 'interactiveUser'))" -Sort "createdDateTime DESC" -Top 10 -``` -This example shows how to use the Get-MgBetaAuditLogSignIn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaAuditLogSignIn -SignInId $signInId +``` +This example shows how to use the Get-MgBetaBetaAuditLogSignIn 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 780850d5e83..13f37543bdf 100644 --- a/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByPrinter.md +++ b/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByPrinter.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Reports - -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). +```powershell Import-Module Microsoft.Graph.Beta.Reports +Get-MgBetaReportDailyPrintUsageByPrinter -PrintUsageByPrinterId $printUsageByPrinterId +``` +This example shows how to use the Get-MgBetaBetaReportDailyPrintUsageByPrinter 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 2ad5457a88d..d7352728184 100644 --- a/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByUser.md +++ b/src/Reports/beta/examples/Get-MgBetaReportDailyPrintUsageByUser.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Reports - -Get-MgBetaReportDailyPrintUsageByUser -``` -This example shows how to use the Get-MgBetaReportDailyPrintUsageByUser Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Reports +Get-MgBetaReportDailyPrintUsageByUser -PrintUsageByUserId $printUsageByUserId +``` +This example shows how to use the Get-MgBetaBetaReportDailyPrintUsageByUser 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 475994ea767..9bcbdcea257 100644 --- a/src/Reports/v1.0/examples/Get-MgAuditLogDirectoryAudit.md +++ b/src/Reports/v1.0/examples/Get-MgAuditLogDirectoryAudit.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgAuditLogDirectoryAudit Cmdlet -```powershell -Import-Module Microsoft.Graph.Reports -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). -### Example 2: Using the Get-MgAuditLogDirectoryAudit Cmdlet -```powershell -Import-Module Microsoft.Graph.Reports -Get-MgAuditLogDirectoryAudit -``` -This example shows how to use the Get-MgAuditLogDirectoryAudit Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Reports + +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-MgAuditLogSignIn.md b/src/Reports/v1.0/examples/Get-MgAuditLogSignIn.md index 6e6ffdfd8df..62c23125b69 100644 --- a/src/Reports/v1.0/examples/Get-MgAuditLogSignIn.md +++ b/src/Reports/v1.0/examples/Get-MgAuditLogSignIn.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgAuditLogSignIn Cmdlet -```powershell -Import-Module Microsoft.Graph.Reports -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). -### Example 2: Using the Get-MgAuditLogSignIn Cmdlet -```powershell -Import-Module Microsoft.Graph.Reports -Get-MgAuditLogSignIn -Filter "startsWith(appDisplayName,'Graph')" -Top 10 -``` -This example shows how to use the Get-MgAuditLogSignIn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgAuditLogSignIn Cmdlet -```powershell -Import-Module Microsoft.Graph.Reports -Get-MgAuditLogSignIn -``` -This example shows how to use the Get-MgAuditLogSignIn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Reports + +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 38e18d2a5ee..5519699597f 100644 --- a/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByPrinter.md +++ b/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByPrinter.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgReportDailyPrintUsageByPrinter Cmdlet -```powershell -Import-Module Microsoft.Graph.Reports -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). -### Example 2: Using the Get-MgReportDailyPrintUsageByPrinter Cmdlet -```powershell -Import-Module Microsoft.Graph.Reports -Get-MgReportDailyPrintUsageByPrinter -``` -This example shows how to use the Get-MgReportDailyPrintUsageByPrinter Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Reports + +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 0bbe5bd12c8..88479b12bce 100644 --- a/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByUser.md +++ b/src/Reports/v1.0/examples/Get-MgReportDailyPrintUsageByUser.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgReportDailyPrintUsageByUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Reports -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). -### Example 2: Using the Get-MgReportDailyPrintUsageByUser Cmdlet -```powershell -Import-Module Microsoft.Graph.Reports -Get-MgReportDailyPrintUsageByUser -``` -This example shows how to use the Get-MgReportDailyPrintUsageByUser Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Reports + +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 5c3f3fccc0b..fdfc750d1fe 100644 --- a/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/Get-MgBetaSchemaExtension.md @@ -1,14 +1,31 @@ -### Example 1: Using the Get-MgBetaSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.SchemaExtensions -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). -### Example 2: Using the Get-MgBetaSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.SchemaExtensions -Get-MgBetaSchemaExtension -Filter "id eq 'graphlearn_test'" -``` -This example shows how to use the Get-MgBetaSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions + +$params = @{ + owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } + @{ + name = "courseSupervisors" + type = "String" + } + ) +} + +Update-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSchemaExtension 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 5f8f0dd54c1..29fd97a00d4 100644 --- a/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/New-MgBetaSchemaExtension.md @@ -1,85 +1,94 @@ -### Example 1: Using the New-MgBetaSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.SchemaExtensions +### Example 1: Creating a schema extension using a verified domain + +```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions + $params = @{ - Id = "graphlearn_courses" - Description = "Graph Learn training courses extensions" - TargetTypes = @( + id = "graphlearn_courses" + description = "Graph Learn training courses extensions" + targetTypes = @( "Group" ) - Properties = @( + properties = @( @{ - Name = "courseId" - Type = "Integer" + name = "courseId" + type = "Integer" } @{ - Name = "courseName" - Type = "String" + name = "courseName" + type = "String" } @{ - Name = "courseType" - Type = "String" + name = "courseType" + type = "String" } ) } -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: Using the New-MgBetaSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.SchemaExtensions + +New-MgBetaSchemaExtension -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSchemaExtension 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 + +```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions + $params = @{ - Id = "courses" - Description = "Graph Learn training courses extensions" - TargetTypes = @( + id = "courses" + description = "Graph Learn training courses extensions" + targetTypes = @( "Group" ) - Properties = @( + properties = @( @{ - Name = "courseId" - Type = "Integer" + name = "courseId" + type = "Integer" } @{ - Name = "courseName" - Type = "String" + name = "courseName" + type = "String" } @{ - Name = "courseType" - Type = "String" + name = "courseType" + type = "String" } ) } -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: Using the New-MgBetaSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.SchemaExtensions + +New-MgBetaSchemaExtension -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSchemaExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Creating a schema extension setting the owner + +```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions + $params = @{ - Id = "courses" - Description = "Graph Learn training courses extensions" - TargetTypes = @( + id = "courses" + description = "Graph Learn training courses extensions" + targetTypes = @( "Group" ) - Owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" - Properties = @( + owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" + properties = @( @{ - Name = "courseId" - Type = "Integer" + name = "courseId" + type = "Integer" } @{ - Name = "courseName" - Type = "String" + name = "courseName" + type = "String" } @{ - Name = "courseType" - Type = "String" + name = "courseType" + type = "String" } ) } -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 how to use the New-MgBetaBetaSchemaExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/SchemaExtensions/beta/examples/Remove-MgBetaSchemaExtension.md b/src/SchemaExtensions/beta/examples/Remove-MgBetaSchemaExtension.md index d1b204e22dd..7460bce0a07 100644 --- a/src/SchemaExtensions/beta/examples/Remove-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/Remove-MgBetaSchemaExtension.md @@ -1,7 +1,31 @@ -### Example 1: Using the Remove-MgBetaSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.SchemaExtensions -Remove-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -``` -This example shows how to use the Remove-MgBetaSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions + +$params = @{ + owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } + @{ + name = "courseSupervisors" + type = "String" + } + ) +} + +Update-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaSchemaExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/SchemaExtensions/beta/examples/Update-MgBetaSchemaExtension.md b/src/SchemaExtensions/beta/examples/Update-MgBetaSchemaExtension.md index fed0c2eab3a..95e7b005bda 100644 --- a/src/SchemaExtensions/beta/examples/Update-MgBetaSchemaExtension.md +++ b/src/SchemaExtensions/beta/examples/Update-MgBetaSchemaExtension.md @@ -1,56 +1,31 @@ -### Example 1: Using the Update-MgBetaSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.SchemaExtensions +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.SchemaExtensions + $params = @{ - Owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - Properties = @( + owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + properties = @( @{ - Name = "courseId" - Type = "Integer" + name = "courseId" + type = "Integer" } @{ - Name = "courseName" - Type = "String" + name = "courseName" + type = "String" } @{ - Name = "courseType" - Type = "String" + name = "courseType" + type = "String" } @{ - Name = "courseSupervisors" - Type = "String" + name = "courseSupervisors" + type = "String" } ) } -Update-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.SchemaExtensions -$params = @{ - Owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - Properties = @( - @{ - Name = "courseId" - Type = "Integer" - } - @{ - Name = "courseName" - Type = "String" - } - @{ - Name = "courseType" - Type = "String" - } - @{ - Name = "courseSupervisors" - Type = "String" - } - ) -} -Update-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSchemaExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md b/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md index 463677ebfe3..611fd1a87a7 100644 --- a/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/Get-MgSchemaExtension.md @@ -1,14 +1,31 @@ -### Example 1: Using the Get-MgSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.SchemaExtensions -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). -### Example 2: Using the Get-MgSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.SchemaExtensions -Get-MgSchemaExtension -Filter "id eq 'graphlearn_test'" -``` -This example shows how to use the Get-MgSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.SchemaExtensions + +$params = @{ + owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } + @{ + name = "courseSupervisors" + type = "String" + } + ) +} + +Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +``` +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 369d52f1ca4..d3477495995 100644 --- a/src/SchemaExtensions/v1.0/examples/New-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/New-MgSchemaExtension.md @@ -1,85 +1,94 @@ -### Example 1: Using the New-MgSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.SchemaExtensions +### Example 1: Creating a schema extension using a verified domain + +```powershell Import-Module Microsoft.Graph.SchemaExtensions + $params = @{ - Id = "graphlearn_courses" - Description = "Graph Learn training courses extensions" - TargetTypes = @( + id = "graphlearn_courses" + description = "Graph Learn training courses extensions" + targetTypes = @( "Group" ) - Properties = @( + properties = @( @{ - Name = "courseId" - Type = "Integer" + name = "courseId" + type = "Integer" } @{ - Name = "courseName" - Type = "String" + name = "courseName" + type = "String" } @{ - Name = "courseType" - Type = "String" + name = "courseType" + type = "String" } ) } -New-MgSchemaExtension -BodyParameter $params -``` -This example shows how to use the New-MgSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.SchemaExtensions + +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 + +```powershell Import-Module Microsoft.Graph.SchemaExtensions + $params = @{ - Id = "courses" - Description = "Graph Learn training courses extensions" - TargetTypes = @( + id = "courses" + description = "Graph Learn training courses extensions" + targetTypes = @( "Group" ) - Properties = @( + properties = @( @{ - Name = "courseId" - Type = "Integer" + name = "courseId" + type = "Integer" } @{ - Name = "courseName" - Type = "String" + name = "courseName" + type = "String" } @{ - Name = "courseType" - Type = "String" + name = "courseType" + type = "String" } ) } -New-MgSchemaExtension -BodyParameter $params -``` -This example shows how to use the New-MgSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.SchemaExtensions + +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 + +```powershell Import-Module Microsoft.Graph.SchemaExtensions + $params = @{ - Id = "courses" - Description = "Graph Learn training courses extensions" - TargetTypes = @( + id = "courses" + description = "Graph Learn training courses extensions" + targetTypes = @( "Group" ) - Owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" - Properties = @( + owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" + properties = @( @{ - Name = "courseId" - Type = "Integer" + name = "courseId" + type = "Integer" } @{ - Name = "courseName" - Type = "String" + name = "courseName" + type = "String" } @{ - Name = "courseType" - Type = "String" + name = "courseType" + type = "String" } ) } -New-MgSchemaExtension -BodyParameter $params -``` -This example shows how to use the New-MgSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgSchemaExtension -BodyParameter $params +``` +This example shows how to use the New-MgSchemaExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/SchemaExtensions/v1.0/examples/Remove-MgSchemaExtension.md b/src/SchemaExtensions/v1.0/examples/Remove-MgSchemaExtension.md index 5fbf9f8da95..a8d472e2e87 100644 --- a/src/SchemaExtensions/v1.0/examples/Remove-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/Remove-MgSchemaExtension.md @@ -1,7 +1,31 @@ -### Example 1: Using the Remove-MgSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.SchemaExtensions -Remove-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -``` -This example shows how to use the Remove-MgSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.SchemaExtensions + +$params = @{ + owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + properties = @( + @{ + name = "courseId" + type = "Integer" + } + @{ + name = "courseName" + type = "String" + } + @{ + name = "courseType" + type = "String" + } + @{ + name = "courseSupervisors" + type = "String" + } + ) +} + +Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +``` +This example shows how to use the Remove-MgSchemaExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/SchemaExtensions/v1.0/examples/Update-MgSchemaExtension.md b/src/SchemaExtensions/v1.0/examples/Update-MgSchemaExtension.md index 961a8eb0e44..b580c68686f 100644 --- a/src/SchemaExtensions/v1.0/examples/Update-MgSchemaExtension.md +++ b/src/SchemaExtensions/v1.0/examples/Update-MgSchemaExtension.md @@ -1,56 +1,31 @@ -### Example 1: Using the Update-MgSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.SchemaExtensions +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.SchemaExtensions + $params = @{ - Owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - Properties = @( + owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + properties = @( @{ - Name = "courseId" - Type = "Integer" + name = "courseId" + type = "Integer" } @{ - Name = "courseName" - Type = "String" + name = "courseName" + type = "String" } @{ - Name = "courseType" - Type = "String" + name = "courseType" + type = "String" } @{ - Name = "courseSupervisors" - Type = "String" + name = "courseSupervisors" + type = "String" } ) } -Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params -``` -This example shows how to use the Update-MgSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgSchemaExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.SchemaExtensions -$params = @{ - Owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" - Properties = @( - @{ - Name = "courseId" - Type = "Integer" - } - @{ - Name = "courseName" - Type = "String" - } - @{ - Name = "courseType" - Type = "String" - } - @{ - Name = "courseSupervisors" - Type = "String" - } - ) -} -Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params -``` -This example shows how to use the Update-MgSchemaExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params +``` +This example shows how to use the Update-MgSchemaExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Get-MgBetaExternalConnection.md b/src/Search/beta/examples/Get-MgBetaExternalConnection.md index 044077b4f8e..147bb86c432 100644 --- a/src/Search/beta/examples/Get-MgBetaExternalConnection.md +++ b/src/Search/beta/examples/Get-MgBetaExternalConnection.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgBetaExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -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). -### Example 2: Using the Get-MgBetaExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -Get-MgBetaExternalConnection -``` -This example shows how to use the Get-MgBetaExternalConnection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + +$params = @{ + name = "Contoso HR Service Tickets" + description = "Connection to index HR service tickets" +} + +Update-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaExternalConnection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Get-MgBetaExternalConnectionGroup.md b/src/Search/beta/examples/Get-MgBetaExternalConnectionGroup.md index 3d0e17dc0b0..a9706a33358 100644 --- a/src/Search/beta/examples/Get-MgBetaExternalConnectionGroup.md +++ b/src/Search/beta/examples/Get-MgBetaExternalConnectionGroup.md @@ -1,17 +1,14 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Search +```powershell Import-Module Microsoft.Graph.Beta.Search $params = @{ - Id = "31bea3d537902000" - DisplayName = "Contoso Marketing" - Description = "The product marketing team" + displayName = "Contoso Marketing" + description = "The product marketing team" } -New-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaExternalConnectionGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaExternalConnectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Get-MgBetaExternalConnectionGroupMember.md b/src/Search/beta/examples/Get-MgBetaExternalConnectionGroupMember.md index 4e3de7652a6..512ead2582f 100644 --- a/src/Search/beta/examples/Get-MgBetaExternalConnectionGroupMember.md +++ b/src/Search/beta/examples/Get-MgBetaExternalConnectionGroupMember.md @@ -1,48 +1,9 @@ -### Example 1: Add an Azure Active Directory user as a member +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Search - -$params = @{ - Id = "e811976d-83df-4cbd-8b9b-5215b18aa874" - Type = "user" -} - -New-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaExternalConnectionGroupMember 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 - -```powershell -Import-Module Microsoft.Graph.Beta.Search - -$params = @{ - Id = "e5477431-1038-484e-bf69-1dfedb97a110" - Type = "group" -} - -New-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaExternalConnectionGroupMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Add another external group as a member - -```powershell -Import-Module Microsoft.Graph.Beta.Search - -$params = @{ - Id = "1431b9c38ee647f6a" - Type = "externalGroup" -} - -New-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaExternalConnectionGroupMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Search +Remove-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -IdentityId $identityId +``` +This example shows how to use the Get-MgBetaBetaExternalConnectionGroupMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Get-MgBetaExternalConnectionItem.md b/src/Search/beta/examples/Get-MgBetaExternalConnectionItem.md index 35b9cf23d21..84ad02f5f3b 100644 --- a/src/Search/beta/examples/Get-MgBetaExternalConnectionItem.md +++ b/src/Search/beta/examples/Get-MgBetaExternalConnectionItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaExternalConnectionItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -Get-MgBetaExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId -``` -This example shows how to use the Get-MgBetaExternalConnectionItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + +Get-MgBetaExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId +``` +This example shows how to use the Get-MgBetaBetaExternalConnectionItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Get-MgBetaExternalConnectionOperation.md b/src/Search/beta/examples/Get-MgBetaExternalConnectionOperation.md index 01ac4297b4d..533b645bccb 100644 --- a/src/Search/beta/examples/Get-MgBetaExternalConnectionOperation.md +++ b/src/Search/beta/examples/Get-MgBetaExternalConnectionOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaExternalConnectionOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -Get-MgBetaExternalConnectionOperation -ExternalConnectionId $externalConnectionId -ConnectionOperationId $connectionOperationId -``` -This example shows how to use the Get-MgBetaExternalConnectionOperation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + +Get-MgBetaExternalConnectionOperation -ExternalConnectionId $externalConnectionId -ConnectionOperationId $connectionOperationId +``` +This example shows how to use the Get-MgBetaBetaExternalConnectionOperation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Get-MgBetaExternalConnectionSchema.md b/src/Search/beta/examples/Get-MgBetaExternalConnectionSchema.md index 3d15d8bb262..a5f115b4a7d 100644 --- a/src/Search/beta/examples/Get-MgBetaExternalConnectionSchema.md +++ b/src/Search/beta/examples/Get-MgBetaExternalConnectionSchema.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaExternalConnectionSchema Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -Get-MgBetaExternalConnectionSchema -ExternalConnectionId $externalConnectionId -``` -This example shows how to use the Get-MgBetaExternalConnectionSchema Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + +Get-MgBetaExternalConnectionSchema -ExternalConnectionId $externalConnectionId +``` +This example shows how to use the Get-MgBetaBetaExternalConnectionSchema Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/New-MgBetaExternalConnection.md b/src/Search/beta/examples/New-MgBetaExternalConnection.md index afe3d5dfc1d..e8fb6f46b12 100644 --- a/src/Search/beta/examples/New-MgBetaExternalConnection.md +++ b/src/Search/beta/examples/New-MgBetaExternalConnection.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + $params = @{ - Id = "contosohr" - Name = "Contoso HR" - Description = "Connection to index Contoso HR system" + id = "contosohr" + name = "Contoso HR" + description = "Connection to index Contoso HR system" } -New-MgBetaExternalConnection -BodyParameter $params -``` -This example shows how to use the New-MgBetaExternalConnection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaExternalConnection -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaExternalConnection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/New-MgBetaExternalConnectionGroup.md b/src/Search/beta/examples/New-MgBetaExternalConnectionGroup.md index 101ba6f974a..3e76f1a0f5a 100644 --- a/src/Search/beta/examples/New-MgBetaExternalConnectionGroup.md +++ b/src/Search/beta/examples/New-MgBetaExternalConnectionGroup.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaExternalConnectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + $params = @{ - Id = "31bea3d537902000" - DisplayName = "Contoso Marketing" - Description = "The product marketing team" + id = "31bea3d537902000" + displayName = "Contoso Marketing" + description = "The product marketing team" } -New-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -BodyParameter $params -``` -This example shows how to use the New-MgBetaExternalConnectionGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaExternalConnectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/New-MgBetaExternalConnectionGroupMember.md b/src/Search/beta/examples/New-MgBetaExternalConnectionGroupMember.md index cda3530daeb..281027b6db4 100644 --- a/src/Search/beta/examples/New-MgBetaExternalConnectionGroupMember.md +++ b/src/Search/beta/examples/New-MgBetaExternalConnectionGroupMember.md @@ -1,33 +1,42 @@ -### Example 1: Using the New-MgBetaExternalConnectionGroupMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search +### Example 1: Add an Azure Active Directory user as a member + +```powershell Import-Module Microsoft.Graph.Beta.Search + $params = @{ - Id = "e811976d-83df-4cbd-8b9b-5215b18aa874" - Type = "user" + id = "e811976d-83df-4cbd-8b9b-5215b18aa874" + type = "user" } -New-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaExternalConnectionGroupMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaExternalConnectionGroupMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search + +New-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaExternalConnectionGroupMember 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 + +```powershell Import-Module Microsoft.Graph.Beta.Search + $params = @{ - Id = "e5477431-1038-484e-bf69-1dfedb97a110" - Type = "externalGroup" + id = "e5477431-1038-484e-bf69-1dfedb97a110" + type = "group" } -New-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaExternalConnectionGroupMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaExternalConnectionGroupMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search + +New-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaExternalConnectionGroupMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add another external group as a member + +```powershell Import-Module Microsoft.Graph.Beta.Search + $params = @{ - Id = "1431b9c38ee647f6a" - Type = "externalGroup" + id = "1431b9c38ee647f6a" + type = "externalGroup" } -New-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params -``` -This example shows how to use the New-MgBetaExternalConnectionGroupMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaExternalConnectionGroupMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Remove-MgBetaExternalConnection.md b/src/Search/beta/examples/Remove-MgBetaExternalConnection.md index 2c3c84618ba..8771aa09765 100644 --- a/src/Search/beta/examples/Remove-MgBetaExternalConnection.md +++ b/src/Search/beta/examples/Remove-MgBetaExternalConnection.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgBetaExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -Remove-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId -``` -This example shows how to use the Remove-MgBetaExternalConnection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + +$params = @{ + name = "Contoso HR Service Tickets" + description = "Connection to index HR service tickets" +} + +Update-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaExternalConnection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroup.md b/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroup.md index 04655667399..c88217da485 100644 --- a/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroup.md +++ b/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroup.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgBetaExternalConnectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -Remove-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -``` -This example shows how to use the Remove-MgBetaExternalConnectionGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + +$params = @{ + displayName = "Contoso Marketing" + description = "The product marketing team" +} + +Update-MgBetaExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaExternalConnectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroupMember.md b/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroupMember.md index 08856377a81..59788eb3531 100644 --- a/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroupMember.md +++ b/src/Search/beta/examples/Remove-MgBetaExternalConnectionGroupMember.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaExternalConnectionGroupMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -Remove-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -IdentityId $identityId -``` -This example shows how to use the Remove-MgBetaExternalConnectionGroupMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + +Remove-MgBetaExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -IdentityId $identityId +``` +This example shows how to use the Remove-MgBetaBetaExternalConnectionGroupMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Remove-MgBetaExternalConnectionItem.md b/src/Search/beta/examples/Remove-MgBetaExternalConnectionItem.md index e59c953396c..28af8635644 100644 --- a/src/Search/beta/examples/Remove-MgBetaExternalConnectionItem.md +++ b/src/Search/beta/examples/Remove-MgBetaExternalConnectionItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaExternalConnectionItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -Remove-MgBetaExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId -``` -This example shows how to use the Remove-MgBetaExternalConnectionItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + +Get-MgBetaExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId +``` +This example shows how to use the Remove-MgBetaBetaExternalConnectionItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Remove-MgBetaExternalConnectionOperation.md b/src/Search/beta/examples/Remove-MgBetaExternalConnectionOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Search/beta/examples/Remove-MgBetaExternalConnectionOperation.md +++ b/src/Search/beta/examples/Remove-MgBetaExternalConnectionOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Search/beta/examples/Remove-MgBetaExternalConnectionSchema.md b/src/Search/beta/examples/Remove-MgBetaExternalConnectionSchema.md index fc59f73ffa1..8257e89c8d1 100644 --- a/src/Search/beta/examples/Remove-MgBetaExternalConnectionSchema.md +++ b/src/Search/beta/examples/Remove-MgBetaExternalConnectionSchema.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Search - -Get-MgBetaExternalConnectionSchema -ExternalConnectionId $externalConnectionId -``` -This example shows how to use the Remove-MgBetaExternalConnectionSchema Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Search +Get-MgBetaExternalConnectionSchema -ExternalConnectionId $externalConnectionId +``` +This example shows how to use the Remove-MgBetaBetaExternalConnectionSchema Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Update-MgBetaExternalConnection.md b/src/Search/beta/examples/Update-MgBetaExternalConnection.md index 9c6d8fea2d8..b80bfd1b661 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalConnection.md +++ b/src/Search/beta/examples/Update-MgBetaExternalConnection.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + $params = @{ - Name = "Contoso HR Service Tickets" - Description = "Connection to index HR service tickets" + name = "Contoso HR Service Tickets" + description = "Connection to index HR service tickets" } -Update-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaExternalConnection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaExternalConnection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/beta/examples/Update-MgBetaExternalConnectionGroup.md b/src/Search/beta/examples/Update-MgBetaExternalConnectionGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalConnectionGroup.md +++ b/src/Search/beta/examples/Update-MgBetaExternalConnectionGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Search/beta/examples/Update-MgBetaExternalConnectionGroupMember.md b/src/Search/beta/examples/Update-MgBetaExternalConnectionGroupMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalConnectionGroupMember.md +++ b/src/Search/beta/examples/Update-MgBetaExternalConnectionGroupMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Search/beta/examples/Update-MgBetaExternalConnectionOperation.md b/src/Search/beta/examples/Update-MgBetaExternalConnectionOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalConnectionOperation.md +++ b/src/Search/beta/examples/Update-MgBetaExternalConnectionOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Search/beta/examples/Update-MgBetaExternalConnectionSchema.md b/src/Search/beta/examples/Update-MgBetaExternalConnectionSchema.md index 4e710b7ec14..22c279d1609 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalConnectionSchema.md +++ b/src/Search/beta/examples/Update-MgBetaExternalConnectionSchema.md @@ -1,33 +1,9 @@ -### Example 1: Using the Update-MgBetaExternalConnectionSchema Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Search -$params = @{ - BaseType = "microsoft.graph.externalItem" - Properties = @( - @{ - Name = "ticketTitle" - Type = "string" - IsSearchable = "true" - IsRetrievable = "true" - Labels = @( - "title" - ) - } - @{ - Name = "priority" - Type = "string" - IsQueryable = "true" - IsRetrievable = "true" - IsSearchable = "false" - } - @{ - Name = "assignee" - Type = "string" - IsRetrievable = "true" - } - ) -} -Update-MgBetaExternalConnectionSchema -ExternalConnectionId $externalConnectionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaExternalConnectionSchema Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Search + +Get-MgBetaExternalConnectionSchema -ExternalConnectionId $externalConnectionId +``` +This example shows how to use the Update-MgBetaBetaExternalConnectionSchema 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 1ed6e2eb7e7..38fca1d07cf 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnection.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnection.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Search -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). -### Example 2: Using the Get-MgExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Search -Get-MgExternalConnection -``` -This example shows how to use the Get-MgExternalConnection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + +$params = @{ + name = "Contoso HR Service Tickets" + description = "Connection to index HR service tickets" +} + +Update-MgExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +``` +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 f60b7dde06c..8a41e5004a3 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnectionGroup.md @@ -1,7 +1,14 @@ -### Example 1: Using the Get-MgExternalConnectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Search -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + +$params = @{ + displayName = "Contoso Marketing" + description = "The product marketing team" +} + +Update-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +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-MgExternalConnectionGroupMember.md b/src/Search/v1.0/examples/Get-MgExternalConnectionGroupMember.md index ae529c6dcde..24f37cfc486 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnectionGroupMember.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnectionGroupMember.md @@ -1,41 +1,8 @@ -### Example 1: Add an Azure Active Directory user as a member +### Example 1: Code snippet ```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 Get-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 - -```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 Get-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 - -```powershell Import-Module Microsoft.Graph.Search - -$params = @{ - Id = "1431b9c38ee647f6a" - Type = "externalGroup" -} - -New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +Remove-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -IdentityId $identityId ``` This example shows how to use the Get-MgExternalConnectionGroupMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/v1.0/examples/Get-MgExternalConnectionItem.md b/src/Search/v1.0/examples/Get-MgExternalConnectionItem.md index b3620a72024..b359cbf50db 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnectionItem.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnectionItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgExternalConnectionItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Search -Get-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId -``` -This example shows how to use the Get-MgExternalConnectionItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + +Get-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId +``` +This example shows how to use the Get-MgExternalConnectionItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/Get-MgExternalConnectionOperation.md b/src/Search/v1.0/examples/Get-MgExternalConnectionOperation.md index 8e09194b1fe..4eaca8b698c 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnectionOperation.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnectionOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgExternalConnectionOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Search -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + +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 66d1dc5d0aa..dfde94d5d8e 100644 --- a/src/Search/v1.0/examples/Get-MgExternalConnectionSchema.md +++ b/src/Search/v1.0/examples/Get-MgExternalConnectionSchema.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgExternalConnectionSchema Cmdlet -```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). +### Example 1: Code snippet + +```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). + diff --git a/src/Search/v1.0/examples/New-MgExternalConnection.md b/src/Search/v1.0/examples/New-MgExternalConnection.md index a0247c4c1d9..8df25db5f0c 100644 --- a/src/Search/v1.0/examples/New-MgExternalConnection.md +++ b/src/Search/v1.0/examples/New-MgExternalConnection.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Search +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + $params = @{ - Id = "contosohr" - Name = "Contoso HR" - Description = "Connection to index Contoso HR system" + id = "contosohr" + name = "Contoso HR" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/New-MgExternalConnectionGroup.md b/src/Search/v1.0/examples/New-MgExternalConnectionGroup.md index 2128cf13651..bb142f0ad37 100644 --- a/src/Search/v1.0/examples/New-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/New-MgExternalConnectionGroup.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgExternalConnectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Search +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + $params = @{ - Id = "31bea3d537902000" - DisplayName = "Contoso Marketing" - Description = "The product marketing team" + id = "31bea3d537902000" + displayName = "Contoso Marketing" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/New-MgExternalConnectionGroupMember.md b/src/Search/v1.0/examples/New-MgExternalConnectionGroupMember.md index 49bf7f2ae40..05b319c2c32 100644 --- a/src/Search/v1.0/examples/New-MgExternalConnectionGroupMember.md +++ b/src/Search/v1.0/examples/New-MgExternalConnectionGroupMember.md @@ -1,33 +1,42 @@ -### Example 1: Using the New-MgExternalConnectionGroupMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Search +### Example 1: Add an Azure Active Directory user as a member + +```powershell Import-Module Microsoft.Graph.Search + $params = @{ - Id = "e5477431-1038-484e-bf69-1dfedb97a110" - Type = "group" + 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: Using the New-MgExternalConnectionGroupMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Search + +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 + +```powershell Import-Module Microsoft.Graph.Search + $params = @{ - Id = "e811976d-83df-4cbd-8b9b-5215b18aa874" - Type = "user" + 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: Using the New-MgExternalConnectionGroupMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Search + +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 + +```powershell Import-Module Microsoft.Graph.Search + $params = @{ - Id = "1431b9c38ee647f6a" - Type = "externalGroup" + 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 shows how to use the New-MgExternalConnectionGroupMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/Remove-MgExternalConnection.md b/src/Search/v1.0/examples/Remove-MgExternalConnection.md index 8cba0fa7fa1..b2fec752160 100644 --- a/src/Search/v1.0/examples/Remove-MgExternalConnection.md +++ b/src/Search/v1.0/examples/Remove-MgExternalConnection.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Search -Remove-MgExternalConnection -ExternalConnectionId $externalConnectionId -``` -This example shows how to use the Remove-MgExternalConnection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + +$params = @{ + name = "Contoso HR Service Tickets" + description = "Connection to index HR service tickets" +} + +Update-MgExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +``` +This example shows how to use the Remove-MgExternalConnection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md b/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md index 594a7d0bcee..2e3c5b5b204 100644 --- a/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgExternalConnectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Search -Remove-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -``` -This example shows how to use the Remove-MgExternalConnectionGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + +$params = @{ + displayName = "Contoso Marketing" + description = "The product marketing team" +} + +Update-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +This example shows how to use the Remove-MgExternalConnectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/Remove-MgExternalConnectionGroupMember.md b/src/Search/v1.0/examples/Remove-MgExternalConnectionGroupMember.md index c7b3afefb9e..531e4b98a92 100644 --- a/src/Search/v1.0/examples/Remove-MgExternalConnectionGroupMember.md +++ b/src/Search/v1.0/examples/Remove-MgExternalConnectionGroupMember.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgExternalConnectionGroupMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Search -Remove-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -IdentityId $identityId -``` -This example shows how to use the Remove-MgExternalConnectionGroupMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + +Remove-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -IdentityId $identityId +``` +This example shows how to use the Remove-MgExternalConnectionGroupMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/Remove-MgExternalConnectionItem.md b/src/Search/v1.0/examples/Remove-MgExternalConnectionItem.md index 42ba2ec9a58..ed4811edcdc 100644 --- a/src/Search/v1.0/examples/Remove-MgExternalConnectionItem.md +++ b/src/Search/v1.0/examples/Remove-MgExternalConnectionItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgExternalConnectionItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Search -Remove-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId -``` -This example shows how to use the Remove-MgExternalConnectionItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + +Get-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId +``` +This example shows how to use the Remove-MgExternalConnectionItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/Remove-MgExternalConnectionOperation.md b/src/Search/v1.0/examples/Remove-MgExternalConnectionOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Search/v1.0/examples/Remove-MgExternalConnectionOperation.md +++ b/src/Search/v1.0/examples/Remove-MgExternalConnectionOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Search/v1.0/examples/Update-MgExternalConnection.md b/src/Search/v1.0/examples/Update-MgExternalConnection.md index 95ba5a033aa..2acede6c76d 100644 --- a/src/Search/v1.0/examples/Update-MgExternalConnection.md +++ b/src/Search/v1.0/examples/Update-MgExternalConnection.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgExternalConnection Cmdlet -```powershell -Import-Module Microsoft.Graph.Search +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + $params = @{ - Name = "Contoso HR Service Tickets" - Description = "Connection to index HR service tickets" + name = "Contoso HR Service Tickets" + description = "Connection to index HR service tickets" } -Update-MgExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params -``` -This example shows how to use the Update-MgExternalConnection Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params +``` +This example shows how to use the Update-MgExternalConnection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/Update-MgExternalConnectionGroup.md b/src/Search/v1.0/examples/Update-MgExternalConnectionGroup.md index a3f8bbc234e..326cba25175 100644 --- a/src/Search/v1.0/examples/Update-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/Update-MgExternalConnectionGroup.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgExternalConnectionGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Search +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Search + $params = @{ - DisplayName = "Contoso Marketing" - Description = "The product marketing team" + displayName = "Contoso Marketing" + description = "The product marketing team" } -Update-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params -``` -This example shows how to use the Update-MgExternalConnectionGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +This example shows how to use the Update-MgExternalConnectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Search/v1.0/examples/Update-MgExternalConnectionGroupMember.md b/src/Search/v1.0/examples/Update-MgExternalConnectionGroupMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Search/v1.0/examples/Update-MgExternalConnectionGroupMember.md +++ b/src/Search/v1.0/examples/Update-MgExternalConnectionGroupMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Search/v1.0/examples/Update-MgExternalConnectionOperation.md b/src/Search/v1.0/examples/Update-MgExternalConnectionOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Search/v1.0/examples/Update-MgExternalConnectionOperation.md +++ b/src/Search/v1.0/examples/Update-MgExternalConnectionOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityAlert.md b/src/Security/beta/examples/Get-MgBetaSecurityAlert.md index 1987f6643ee..45589c25c02 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityAlert.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityAlert.md @@ -1,14 +1,52 @@ -### Example 1: Using the Get-MgBetaSecurityAlert Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). -### Example 2: Using the Get-MgBetaSecurityAlert Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityAlert -``` -This example shows how to use the Get-MgBetaSecurityAlert Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Request without Prefer header + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + assignedTo = "String" + closedDateTime = [System.DateTime]::Parse("String (timestamp)") + comments = @( + "String" + ) + feedback = "@odata.type: microsoft.graph.alertFeedback" + status = "@odata.type: microsoft.graph.alertStatus" + tags = @( + "String" + ) + vendorInformation = @{ + provider = "String" + vendor = "String" + } +} + +Update-MgBetaSecurityAlert -AlertId $alertId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSecurityAlert Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Request with Prefer header + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + assignedTo = "String" + closedDateTime = [System.DateTime]::Parse("String (timestamp)") + comments = @( + "String" + ) + feedback = "@odata.type: microsoft.graph.alertFeedback" + status = "@odata.type: microsoft.graph.alertStatus" + tags = @( + "String" + ) + vendorInformation = @{ + provider = "String" + vendor = "String" + } +} + +Update-MgBetaSecurityAlert -AlertId $alertId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSecurityAlert 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 6dd2b809e84..4258588603f 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaSecurityAttackSimulation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityAttackSimulation -``` -This example shows how to use the Get-MgBetaSecurityAttackSimulation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +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 212db577d28..403f52cad7c 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityAttackSimulationAutomation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaSecurityAttackSimulationAutomation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityAttackSimulationAutomation -``` -This example shows how to use the Get-MgBetaSecurityAttackSimulationAutomation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityAttackSimulationAutomation -SimulationAutomationId $simulationAutomationId +``` +This example shows how to use the Get-MgBetaBetaSecurityAttackSimulationAutomation 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 c0d45feb20c..5ff942e663e 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCase Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + displayName = "My Case 1 - Renamed" + description = "Updated description" +} + +Update-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCase 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 2d4b9b80c19..f5ff2471643 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodian.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseCustodian Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseCustodian Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseCustodian Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId +``` +This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseCustodian 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 b0756a73d10..00c43911bc7 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId +``` +This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseCustodianLastIndexOperation 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 fa539354ad7..ef1289dec09 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseOperation.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseOperation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaSecurityCaseEdiscoveryCaseOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseOperation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId -CaseOperationId $caseOperationId +``` +This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseOperation 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 c1ce5db829c..95954004386 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId +``` +This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseReviewSet 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 3c1a58b8891..0b73ce0c024 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + displayName = "My Query 1 (update)" + contentQuery = "(Author="edisons")" +} + +Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseReviewSetQuery 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 3629f5e119e..491fb0f07a3 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + displayName = "Teams search" +} + +Update-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseSearch 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 aed50ffb11f..f6c6949389e 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -OutFile $outFileId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md index 12d3f483f6c..e4ce061327b 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId +``` +This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md index f994b0ac75b..f6c6949389e 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseSearchNoncustodialSource Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseSearchNoncustodialSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseSearchNoncustodialSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md index d0a1fe10a75..933e4436f14 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSetting.md @@ -1,7 +1,22 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" + redundancyDetection = @{ + "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" + } + topicModeling = @{ + "@odata.type" = "microsoft.graph.security.topicModelingSettings" + } + ocr = @{ + "@odata.type" = "microsoft.graph.security.ocrSettings" + } +} + +Update-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSecurityCaseEdiscoveryCaseSetting 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 c5d64bb25a2..f6c6949389e 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseTag.md @@ -1,21 +1,17 @@ -### Example 1: Using the Get-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Get-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Security/beta/examples/Get-MgBetaSecurityIncident.md b/src/Security/beta/examples/Get-MgBetaSecurityIncident.md index b13ac4facfb..2315a4e2198 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityIncident.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityIncident.md @@ -1,21 +1,17 @@ -### Example 1: Using the Get-MgBetaSecurityIncident Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -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). -### Example 2: Using the Get-MgBetaSecurityIncident Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityIncident -``` -This example shows how to use the Get-MgBetaSecurityIncident Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaSecurityIncident Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecurityIncident -ExpandProperty "alerts" -``` -This example shows how to use the Get-MgBetaSecurityIncident Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + classification = "TruePositive" + determination = "MultiStagedAttack" + customTags = @( + "Demo" + ) +} + +Update-MgBetaSecurityIncident -IncidentId $incidentId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSecurityIncident Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Get-MgBetaSecuritySecureScore.md b/src/Security/beta/examples/Get-MgBetaSecuritySecureScore.md index c59c624f04c..70591fd8c3d 100644 --- a/src/Security/beta/examples/Get-MgBetaSecuritySecureScore.md +++ b/src/Security/beta/examples/Get-MgBetaSecuritySecureScore.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaSecuritySecureScore Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecuritySecureScore -Top 1 -``` -This example shows how to use the Get-MgBetaSecuritySecureScore Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecuritySecureScore -SecureScoreId $secureScoreId +``` +This example shows how to use the Get-MgBetaBetaSecuritySecureScore Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Get-MgBetaSecuritySecureScoreControlProfile.md b/src/Security/beta/examples/Get-MgBetaSecuritySecureScoreControlProfile.md index 0d2f7e02149..7a9f8ded6ec 100644 --- a/src/Security/beta/examples/Get-MgBetaSecuritySecureScoreControlProfile.md +++ b/src/Security/beta/examples/Get-MgBetaSecuritySecureScoreControlProfile.md @@ -1,7 +1,42 @@ -### Example 1: Using the Get-MgBetaSecuritySecureScoreControlProfile Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Get-MgBetaSecuritySecureScoreControlProfile -``` -This example shows how to use the Get-MgBetaSecuritySecureScoreControlProfile Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Request without Prefer header + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + assignedTo = "" + comment = "control is reviewed" + state = "Reviewed" + vendorInformation = @{ + provider = "SecureScore" + providerVersion = $null + subProvider = $null + vendor = "Microsoft" + } +} + +Update-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSecuritySecureScoreControlProfile Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Request with Prefer header + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + assignedTo = "" + comment = "control is reviewed" + state = "Reviewed" + vendorInformation = @{ + provider = "SecureScore" + providerVersion = $null + subProvider = $null + vendor = "Microsoft" + } +} + +Update-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSecuritySecureScoreControlProfile Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityAlert.md b/src/Security/beta/examples/New-MgBetaSecurityAlert.md index 7fdf00d6aad..9a6660411bd 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityAlert.md +++ b/src/Security/beta/examples/New-MgBetaSecurityAlert.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Security - -Get-MgBetaSecurityAlert -``` -This example shows how to use the New-MgBetaSecurityAlert Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Security +Get-MgBetaSecurityAlert +``` +This example shows how to use the New-MgBetaBetaSecurityAlert Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityAttackSimulation.md b/src/Security/beta/examples/New-MgBetaSecurityAttackSimulation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityAttackSimulation.md +++ b/src/Security/beta/examples/New-MgBetaSecurityAttackSimulation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/New-MgBetaSecurityAttackSimulationAutomation.md b/src/Security/beta/examples/New-MgBetaSecurityAttackSimulationAutomation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityAttackSimulationAutomation.md +++ b/src/Security/beta/examples/New-MgBetaSecurityAttackSimulationAutomation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/New-MgBetaSecurityAttackSimulationAutomationRun.md b/src/Security/beta/examples/New-MgBetaSecurityAttackSimulationAutomationRun.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityAttackSimulationAutomationRun.md +++ b/src/Security/beta/examples/New-MgBetaSecurityAttackSimulationAutomationRun.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCase.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCase.md index df542c80759..2dde21b4258 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCase.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - DisplayName = "CONTOSO LITIGATION-005" - Description = "Project Bazooka" - ExternalId = "324516" + displayName = "CONTOSO LITIGATION-005" + description = "Project Bazooka" + externalId = "324516" } -New-MgBetaSecurityCaseEdiscoveryCase -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCase Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSecurityCaseEdiscoveryCase -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCase Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodian.md index adc56734bf2..71a2a40c2a6 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodian.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaSecurityCaseEdiscoveryCaseCustodian Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - Email = "AdeleV@contoso.com" + email = "AdeleV@contoso.com" } -New-MgBetaSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCaseCustodian Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCaseCustodian Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource.md index ec35780a2ef..ae25ac20fc7 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - Site = @{ - WebUrl = "https://m365x809305.sharepoint.com/sites/Retail" + site = @{ + webUrl = "https://m365x809305.sharepoint.com/sites/Retail" } } -New-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 040473ba00a..cd11ee31136 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,35 +1,16 @@ -### Example 1: Using the New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - Group = @{ - Mail = "SOCTeam@M365x809305.onmicrosoft.com" + group = @{ + mail = "SOCTeam@M365x809305.onmicrosoft.com" } - IncludedSources = "mailbox, site" + includedSources = "mailbox, site" } -New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -$params = @{ - "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" - IncludedSources = "mailbox" -} -New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -$params = @{ - "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" - IncludedSources = "mailbox" -} -New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index 66496956207..a05d2c4d080 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - DataSource = @{ + dataSource = @{ "@odata.type" = "microsoft.graph.security.siteSource" } } -New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseOperation.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md index 09ea7dddf6e..7079606ea62 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaSecurityCaseEdiscoveryCaseReviewSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - DisplayName = "My review set 2" + displayName = "My review set 2" } -New-MgBetaSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCaseReviewSet Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCaseReviewSet Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md index de5390cf834..8fafdd07925 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - DisplayName = "My Query 1" - ContentQuery = "(Author="edison")" + displayName = "My Query 1" + contentQuery = "(Author="edison")" } -New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearch.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearch.md index f5bff443696..5a3a9ee970a 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -1,20 +1,23 @@ -### Example 1: Using the New-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - DisplayName = "My search 2" - Description = "My first search" - ContentQuery = "(Author="edison")" - "CustodianSources@odata.bind" = @( - "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/userSources/43434642-3137-3138-3432-374142313639" - "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/siteSources/169718e3-a8df-449d-bef4-ee09fe1ddc5d" - "https://graph.microsoft.com/beta/security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/custodians('0053a61a3b6c42738f7606791716a22a')/unifiedGroupSources('32e14fa4-3106-4bd2-a245-34bf0c718a7e')" + displayName = "My search 2" + description = "My first search" + contentQuery = "(Author="edison")" + "custodianSources@odata.bind" = @( + "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/userSources/43434642-3137-3138-3432-374142313639" + "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/siteSources/169718e3-a8df-449d-bef4-ee09fe1ddc5d" + "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/custodians('0053a61a3b6c42738f7606791716a22a')/unifiedGroupSources('32e14fa4-3106-4bd2-a245-34bf0c718a7e')" ) - "NoncustodialSources@odata.bind" = @( - "https://graph.microsoft.com/beta/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/noncustodialdatasources/35393639323133394345384344303043" + "noncustodialSources@odata.bind" = @( + "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/noncustodialdatasources/35393639323133394345384344303043" ) } -New-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecurityIncident.md b/src/Security/beta/examples/New-MgBetaSecurityIncident.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityIncident.md +++ b/src/Security/beta/examples/New-MgBetaSecurityIncident.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/New-MgBetaSecuritySecureScore.md b/src/Security/beta/examples/New-MgBetaSecuritySecureScore.md index 309fe9c7c85..d5628bdd846 100644 --- a/src/Security/beta/examples/New-MgBetaSecuritySecureScore.md +++ b/src/Security/beta/examples/New-MgBetaSecuritySecureScore.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Security - -Get-MgBetaSecuritySecureScore -Top 1 -``` -This example shows how to use the New-MgBetaSecuritySecureScore Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Security +Get-MgBetaSecuritySecureScore -Top 1 +``` +This example shows how to use the New-MgBetaBetaSecuritySecureScore Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/New-MgBetaSecuritySecureScoreControlProfile.md b/src/Security/beta/examples/New-MgBetaSecuritySecureScoreControlProfile.md index 04af8262f20..430d1f45cfd 100644 --- a/src/Security/beta/examples/New-MgBetaSecuritySecureScoreControlProfile.md +++ b/src/Security/beta/examples/New-MgBetaSecuritySecureScoreControlProfile.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Security - -Get-MgBetaSecuritySecureScoreControlProfile -``` -This example shows how to use the New-MgBetaSecuritySecureScoreControlProfile Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Security +Get-MgBetaSecuritySecureScoreControlProfile +``` +This example shows how to use the New-MgBetaBetaSecuritySecureScoreControlProfile Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityAttackSimulationAutomation.md b/src/Security/beta/examples/Remove-MgBetaSecurityAttackSimulationAutomation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityAttackSimulationAutomation.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityAttackSimulationAutomation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCase.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCase.md index 6cb100a523d..b5ad50341ca 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCase.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgBetaSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Remove-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Remove-MgBetaSecurityCaseEdiscoveryCase Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + displayName = "My Case 1 - Renamed" + description = "Updated description" +} + +Update-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaSecurityCaseEdiscoveryCase Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseCustodian.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseOperation.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md index a2fda84f07c..0b424220792 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -``` -This example shows how to use the Remove-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + displayName = "My Query 1 (update)" + contentQuery = "(Author="edisons")" +} + +Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSearch.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSearch.md index 3d0da88f725..408f495d1ea 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security -Remove-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -``` -This example shows how to use the Remove-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + displayName = "Teams search" +} + +Update-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSetting.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSetting.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseSetting.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseTag.md b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseTag.md index 845ae903dea..f6c6949389e 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityCaseEdiscoveryCaseTag.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Security -Remove-MgBetaSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaSecurityCaseEdiscoveryCaseTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Security/beta/examples/Remove-MgBetaSecurityIncident.md b/src/Security/beta/examples/Remove-MgBetaSecurityIncident.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecurityIncident.md +++ b/src/Security/beta/examples/Remove-MgBetaSecurityIncident.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Remove-MgBetaSecuritySecureScore.md b/src/Security/beta/examples/Remove-MgBetaSecuritySecureScore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecuritySecureScore.md +++ b/src/Security/beta/examples/Remove-MgBetaSecuritySecureScore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Remove-MgBetaSecuritySecureScoreControlProfile.md b/src/Security/beta/examples/Remove-MgBetaSecuritySecureScoreControlProfile.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Remove-MgBetaSecuritySecureScoreControlProfile.md +++ b/src/Security/beta/examples/Remove-MgBetaSecuritySecureScoreControlProfile.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Update-MgBetaSecurityAlert.md b/src/Security/beta/examples/Update-MgBetaSecurityAlert.md index 88d14235dc8..df50ee59a33 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityAlert.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityAlert.md @@ -1,46 +1,52 @@ -### Example 1: Using the Update-MgBetaSecurityAlert Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Request without Prefer header + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - AssignedTo = "String" - ClosedDateTime = [System.DateTime]::Parse("String (timestamp)") - Comments = @( + assignedTo = "String" + closedDateTime = [System.DateTime]::Parse("String (timestamp)") + comments = @( "String" ) - Feedback = "@odata.type: microsoft.graph.alertFeedback" - Status = "@odata.type: microsoft.graph.alertStatus" - Tags = @( + feedback = "@odata.type: microsoft.graph.alertFeedback" + status = "@odata.type: microsoft.graph.alertStatus" + tags = @( "String" ) - VendorInformation = @{ - Provider = "String" - Vendor = "String" + vendorInformation = @{ + provider = "String" + vendor = "String" } } -Update-MgBetaSecurityAlert -AlertId $alertId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSecurityAlert Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaSecurityAlert Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security + +Update-MgBetaSecurityAlert -AlertId $alertId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSecurityAlert Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Request with Prefer header + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - AssignedTo = "String" - ClosedDateTime = [System.DateTime]::Parse("String (timestamp)") - Comments = @( + assignedTo = "String" + closedDateTime = [System.DateTime]::Parse("String (timestamp)") + comments = @( "String" ) - Feedback = "@odata.type: microsoft.graph.alertFeedback" - Status = "@odata.type: microsoft.graph.alertStatus" - Tags = @( + feedback = "@odata.type: microsoft.graph.alertFeedback" + status = "@odata.type: microsoft.graph.alertStatus" + tags = @( "String" ) - VendorInformation = @{ - Provider = "String" - Vendor = "String" + vendorInformation = @{ + provider = "String" + vendor = "String" } } -Update-MgBetaSecurityAlert -AlertId $alertId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSecurityAlert Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSecurityAlert -AlertId $alertId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSecurityAlert Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Update-MgBetaSecurityAttackSimulationAutomation.md b/src/Security/beta/examples/Update-MgBetaSecurityAttackSimulationAutomation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityAttackSimulationAutomation.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityAttackSimulationAutomation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCase.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCase.md index d4712445bc3..60bb61e2047 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCase.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - DisplayName = "My Case 1 - Renamed" - Description = "Updated description" + displayName = "My Case 1 - Renamed" + description = "Updated description" } -Update-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSecurityCaseEdiscoveryCase Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSecurityCaseEdiscoveryCase Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseCustodian.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseOperation.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md index a79d6860664..06842a967e5 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - DisplayName = "My Query 1 (update)" - ContentQuery = "(Author="edisons")" + displayName = "My Query 1 (update)" + contentQuery = "(Author="edisons")" } -Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSearch.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSearch.md index 940dfccf62b..06d8032f383 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - DisplayName = "Teams search" + displayName = "Teams search" } -Update-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSecurityCaseEdiscoveryCaseSearch Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSetting.md b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSetting.md index 6d7ba68dc36..7a3761a2c24 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityCaseEdiscoveryCaseSetting.md @@ -1,19 +1,22 @@ -### Example 1: Using the Update-MgBetaSecurityCaseEdiscoveryCaseSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" - RedundancyDetection = @{ + redundancyDetection = @{ "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" } - TopicModeling = @{ + topicModeling = @{ "@odata.type" = "microsoft.graph.security.topicModelingSettings" } - Ocr = @{ + ocr = @{ "@odata.type" = "microsoft.graph.security.ocrSettings" } } -Update-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSecurityCaseEdiscoveryCaseSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSecurityCaseEdiscoveryCaseSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Update-MgBetaSecurityIncident.md b/src/Security/beta/examples/Update-MgBetaSecurityIncident.md index d95b1e15ddc..5109e0d07de 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityIncident.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityIncident.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaSecurityIncident Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - Classification = "TruePositive" - Determination = "MultiStagedAttack" - Tags = @( + classification = "TruePositive" + determination = "MultiStagedAttack" + customTags = @( "Demo" ) } -Update-MgBetaSecurityIncident -IncidentId $incidentId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSecurityIncident Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSecurityIncident -IncidentId $incidentId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSecurityIncident Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/beta/examples/Update-MgBetaSecuritySecureScore.md b/src/Security/beta/examples/Update-MgBetaSecuritySecureScore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/beta/examples/Update-MgBetaSecuritySecureScore.md +++ b/src/Security/beta/examples/Update-MgBetaSecuritySecureScore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/beta/examples/Update-MgBetaSecuritySecureScoreControlProfile.md b/src/Security/beta/examples/Update-MgBetaSecuritySecureScoreControlProfile.md index 026bf459dec..fe858ec844a 100644 --- a/src/Security/beta/examples/Update-MgBetaSecuritySecureScoreControlProfile.md +++ b/src/Security/beta/examples/Update-MgBetaSecuritySecureScoreControlProfile.md @@ -1,10 +1,42 @@ -### Example 1: Using the Update-MgBetaSecuritySecureScoreControlProfile Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Security +### Example 1: Request without Prefer header + +```powershell Import-Module Microsoft.Graph.Beta.Security + $params = @{ - ControlStateUpdates = "controlStateUpdates-value" + assignedTo = "" + comment = "control is reviewed" + state = "Reviewed" + vendorInformation = @{ + provider = "SecureScore" + providerVersion = $null + subProvider = $null + vendor = "Microsoft" + } } -Update-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSecuritySecureScoreControlProfile Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSecuritySecureScoreControlProfile Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Request with Prefer header + +```powershell Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + assignedTo = "" + comment = "control is reviewed" + state = "Reviewed" + vendorInformation = @{ + provider = "SecureScore" + providerVersion = $null + subProvider = $null + vendor = "Microsoft" + } +} + +Update-MgBetaSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSecuritySecureScoreControlProfile 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 e6e1a8cfc20..4f91007d5e8 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityAlert.md +++ b/src/Security/v1.0/examples/Get-MgSecurityAlert.md @@ -1,14 +1,52 @@ -### Example 1: Using the Get-MgSecurityAlert Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). -### Example 2: Using the Get-MgSecurityAlert Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityAlert -``` -This example shows how to use the Get-MgSecurityAlert Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Request without Prefer header + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + assignedTo = "String" + closedDateTime = [System.DateTime]::Parse("String (timestamp)") + comments = @( + "String" + ) + feedback = "@odata.type: microsoft.graph.alertFeedback" + status = "@odata.type: microsoft.graph.alertStatus" + tags = @( + "String" + ) + vendorInformation = @{ + provider = "String" + vendor = "String" + } +} + +Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params +``` +This example shows how to use the Get-MgSecurityAlert Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Request with Prefer header + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + assignedTo = "String" + closedDateTime = [System.DateTime]::Parse("String (timestamp)") + comments = @( + "String" + ) + feedback = "@odata.type: microsoft.graph.alertFeedback" + status = "@odata.type: microsoft.graph.alertStatus" + tags = @( + "String" + ) + vendorInformation = @{ + provider = "String" + vendor = "String" + } +} + +Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params +``` +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 093355d11d5..4da8f3bba9b 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityAttackSimulation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulation.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Security +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 093355d11d5..f4feee5805c 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationAutomation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationAutomation.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Security +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-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md index 3d9541dd0b2..d0505e20740 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCase.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). -### Example 2: Using the Get-MgSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCase -``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCase Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + displayName = "My Case 1 - Renamed" + description = "Updated description" +} + +Update-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +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 343b7051d3a..3f2ddb637c1 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). -### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +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 9c5674f5b13..b7ff360bcea 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +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-MgSecurityCaseEdiscoveryCaseOperation.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseOperation.md index c743c44a57a..c9c73ecd758 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseOperation.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). -### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +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 7533ab2d84c..9223ada4d6f 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). -### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +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 6b2dba5fe8e..a5daff6d524 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,14 +1,14 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). -### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + displayName = "My Query 1 (update)" + contentQuery = "(Author="edisons")" +} + +Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +``` +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 bea4e904d74..3c0add9b8b1 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + displayName = "Teams search" +} + +Update-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +``` +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-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md index 80b8003a105..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md index 3aa80af3e2d..cbcdf545870 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +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-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md index 96a866a7172..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md index 0d925d1c95b..7b1e4ae6e3d 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSetting.md @@ -1,7 +1,22 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" + redundancyDetection = @{ + "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" + } + topicModeling = @{ + "@odata.type" = "microsoft.graph.security.topicModelingSettings" + } + ocr = @{ + "@odata.type" = "microsoft.graph.security.ocrSettings" + } +} + +Update-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +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 c9c0e0f6731..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseTag.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Security/v1.0/examples/Get-MgSecuritySecureScore.md b/src/Security/v1.0/examples/Get-MgSecuritySecureScore.md index cb722b4ea79..96ef851a83a 100644 --- a/src/Security/v1.0/examples/Get-MgSecuritySecureScore.md +++ b/src/Security/v1.0/examples/Get-MgSecuritySecureScore.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgSecuritySecureScore Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). -### Example 2: Using the Get-MgSecuritySecureScore Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecuritySecureScore -Top 1 -``` -This example shows how to use the Get-MgSecuritySecureScore Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +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 689af4a4aa7..733b74ebdc3 100644 --- a/src/Security/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/v1.0/examples/Get-MgSecuritySecureScoreControlProfile.md @@ -1,14 +1,42 @@ -### Example 1: Using the Get-MgSecuritySecureScoreControlProfile Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -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). -### Example 2: Using the Get-MgSecuritySecureScoreControlProfile Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Get-MgSecuritySecureScoreControlProfile -``` -This example shows how to use the Get-MgSecuritySecureScoreControlProfile Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Request without Prefer header + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + assignedTo = "" + comment = "control is reviewed" + state = "Reviewed" + vendorInformation = @{ + provider = "SecureScore" + providerVersion = $null + subProvider = $null + vendor = "Microsoft" + } +} + +Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +``` +This example shows how to use the Get-MgSecuritySecureScoreControlProfile Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Request with Prefer header + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + assignedTo = "" + comment = "control is reviewed" + state = "Reviewed" + vendorInformation = @{ + provider = "SecureScore" + providerVersion = $null + subProvider = $null + vendor = "Microsoft" + } +} + +Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +``` +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-MgSecurityAttackSimulation.md b/src/Security/v1.0/examples/New-MgSecurityAttackSimulation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/New-MgSecurityAttackSimulation.md +++ b/src/Security/v1.0/examples/New-MgSecurityAttackSimulation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/New-MgSecurityAttackSimulationAutomation.md b/src/Security/v1.0/examples/New-MgSecurityAttackSimulationAutomation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/New-MgSecurityAttackSimulationAutomation.md +++ b/src/Security/v1.0/examples/New-MgSecurityAttackSimulationAutomation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/New-MgSecurityAttackSimulationAutomationRun.md b/src/Security/v1.0/examples/New-MgSecurityAttackSimulationAutomationRun.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/New-MgSecurityAttackSimulationAutomationRun.md +++ b/src/Security/v1.0/examples/New-MgSecurityAttackSimulationAutomationRun.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCase.md index 8d48d254019..70112aa0171 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCase.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - DisplayName = "CONTOSO LITIGATION-005" - Description = "Project Bazooka" - ExternalId = "324516" + displayName = "CONTOSO LITIGATION-005" + description = "Project Bazooka" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodian.md index ded74992aeb..9c5101437ea 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - Email = "AdeleV@contoso.com" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md index d65cb5ded4d..4315650af34 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - Site = @{ - WebUrl = "https://m365x809305.sharepoint.com/sites/Retail" + site = @{ + webUrl = "https://m365x809305.sharepoint.com/sites/Retail" } } -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index f92b550b31a..29e8f5693be 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,35 +1,16 @@ -### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - Group = @{ - Mail = "SOCTeam@M365x809305.onmicrosoft.com" + group = @{ + mail = "SOCTeam@M365x809305.onmicrosoft.com" } - IncludedSources = "mailbox, site" + 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: Using the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -$params = @{ - "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" - IncludedSources = "mailbox" -} -New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params -``` -This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -$params = @{ - "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" - IncludedSources = "mailbox" -} -New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params -``` -This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index a8e4d85bf21..c81ac3af0c0 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - DataSource = @{ + dataSource = @{ "@odata.type" = "microsoft.graph.security.siteSource" } } -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseOperation.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSet.md index 3e35fb4657f..27137b0fc42 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - DisplayName = "My review set 2" + 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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 881672dd475..7e8e6a857ab 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - DisplayName = "My Query 1" - ContentQuery = "(Author="edison")" + 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 43a5392a8df..d1287c6ed83 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,20 +1,23 @@ -### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - DisplayName = "My search 2" - Description = "My first search" - ContentQuery = "(Author="edison")" - "CustodianSources@odata.bind" = @( + displayName = "My search 2" + description = "My first search" + contentQuery = "(Author="edison")" + "custodianSources@odata.bind" = @( "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/userSources/43434642-3137-3138-3432-374142313639" "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/siteSources/169718e3-a8df-449d-bef4-ee09fe1ddc5d" "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/custodians('0053a61a3b6c42738f7606791716a22a')/unifiedGroupSources('32e14fa4-3106-4bd2-a245-34bf0c718a7e')" ) - "NoncustodialSources@odata.bind" = @( + "noncustodialSources@odata.bind" = @( "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/noncustodialdatasources/35393639323133394345384344303043" ) } -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. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Remove-MgSecurityAttackSimulationAutomation.md b/src/Security/v1.0/examples/Remove-MgSecurityAttackSimulationAutomation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityAttackSimulationAutomation.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityAttackSimulationAutomation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCase.md index 4f94cc69fb8..963c8d0c09f 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCase.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Remove-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -``` -This example shows how to use the Remove-MgSecurityCaseEdiscoveryCase Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + displayName = "My Case 1 - Renamed" + description = "Updated description" +} + +Update-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCase Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseOperation.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 1cd6012b1b4..0ade59eb0c2 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,7 +1,14 @@ -### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -``` -This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + displayName = "My Query 1 (update)" + contentQuery = "(Author="edisons")" +} + +Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +``` +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSearch.md index bc15c9d5bc1..b0eb206ecb1 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Security -Remove-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -``` -This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + displayName = "Teams search" +} + +Update-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +``` +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSetting.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseSetting.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseTag.md b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseTag.md index 25b221923d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/v1.0/examples/Remove-MgSecurityCaseEdiscoveryCaseTag.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseTag Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Security -Remove-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} + +{{ Add output here }} +``` + +{{ Add description here }} diff --git a/src/Security/v1.0/examples/Remove-MgSecuritySecureScore.md b/src/Security/v1.0/examples/Remove-MgSecuritySecureScore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Remove-MgSecuritySecureScore.md +++ b/src/Security/v1.0/examples/Remove-MgSecuritySecureScore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Remove-MgSecuritySecureScoreControlProfile.md b/src/Security/v1.0/examples/Remove-MgSecuritySecureScoreControlProfile.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Remove-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/v1.0/examples/Remove-MgSecuritySecureScoreControlProfile.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Update-MgSecurityAlert.md b/src/Security/v1.0/examples/Update-MgSecurityAlert.md index f96730d858b..05aabc2425f 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityAlert.md +++ b/src/Security/v1.0/examples/Update-MgSecurityAlert.md @@ -1,46 +1,52 @@ -### Example 1: Using the Update-MgSecurityAlert Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Request without Prefer header + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - AssignedTo = "String" - ClosedDateTime = [System.DateTime]::Parse("String (timestamp)") - Comments = @( + assignedTo = "String" + closedDateTime = [System.DateTime]::Parse("String (timestamp)") + comments = @( "String" ) - Feedback = "@odata.type: microsoft.graph.alertFeedback" - Status = "@odata.type: microsoft.graph.alertStatus" - Tags = @( + feedback = "@odata.type: microsoft.graph.alertFeedback" + status = "@odata.type: microsoft.graph.alertStatus" + tags = @( "String" ) - VendorInformation = @{ - Provider = "String" - Vendor = "String" + vendorInformation = @{ + provider = "String" + vendor = "String" } } -Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params -``` -This example shows how to use the Update-MgSecurityAlert Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgSecurityAlert Cmdlet -```powershell -Import-Module Microsoft.Graph.Security + +Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params +``` +This example shows how to use the Update-MgSecurityAlert Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Request with Prefer header + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - AssignedTo = "String" - ClosedDateTime = [System.DateTime]::Parse("String (timestamp)") - Comments = @( + assignedTo = "String" + closedDateTime = [System.DateTime]::Parse("String (timestamp)") + comments = @( "String" ) - Feedback = "@odata.type: microsoft.graph.alertFeedback" - Status = "@odata.type: microsoft.graph.alertStatus" - Tags = @( + feedback = "@odata.type: microsoft.graph.alertFeedback" + status = "@odata.type: microsoft.graph.alertStatus" + tags = @( "String" ) - VendorInformation = @{ - Provider = "String" - Vendor = "String" + vendorInformation = @{ + provider = "String" + vendor = "String" } } -Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params -``` -This example shows how to use the Update-MgSecurityAlert Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params +``` +This example shows how to use the Update-MgSecurityAlert Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Update-MgSecurityAttackSimulationAutomation.md b/src/Security/v1.0/examples/Update-MgSecurityAttackSimulationAutomation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityAttackSimulationAutomation.md +++ b/src/Security/v1.0/examples/Update-MgSecurityAttackSimulationAutomation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md index 8b8e49cf037..6455b525628 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgSecurityCaseEdiscoveryCase Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - DisplayName = "My Case 1 - Renamed" - Description = "Updated description" + displayName = "My Case 1 - Renamed" + description = "Updated description" } -Update-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the Update-MgSecurityCaseEdiscoveryCase Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the Update-MgSecurityCaseEdiscoveryCase Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseOperation.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseOperation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseOperation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index a145c5f8494..167b5f27697 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - DisplayName = "My Query 1 (update)" - ContentQuery = "(Author="edisons")" + displayName = "My Query 1 (update)" + contentQuery = "(Author="edisons")" } -Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params -``` -This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params +``` +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSearch.md index 0f357fb2d80..c1288b7da99 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseSearch Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - DisplayName = "Teams search" + displayName = "Teams search" } -Update-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params -``` -This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params +``` +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSetting.md index 6bb7f565180..e065bc62f7b 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCaseSetting.md @@ -1,19 +1,22 @@ -### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" - RedundancyDetection = @{ + redundancyDetection = @{ "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" } - TopicModeling = @{ + topicModeling = @{ "@odata.type" = "microsoft.graph.security.topicModelingSettings" } - Ocr = @{ + ocr = @{ "@odata.type" = "microsoft.graph.security.ocrSettings" } } -Update-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params -``` -This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params +``` +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Update-MgSecuritySecureScore.md b/src/Security/v1.0/examples/Update-MgSecuritySecureScore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Security/v1.0/examples/Update-MgSecuritySecureScore.md +++ b/src/Security/v1.0/examples/Update-MgSecuritySecureScore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Security/v1.0/examples/Update-MgSecuritySecureScoreControlProfile.md b/src/Security/v1.0/examples/Update-MgSecuritySecureScoreControlProfile.md index 3ee33f799b8..9d0cda445bd 100644 --- a/src/Security/v1.0/examples/Update-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/v1.0/examples/Update-MgSecuritySecureScoreControlProfile.md @@ -1,36 +1,42 @@ -### Example 1: Using the Update-MgSecuritySecureScoreControlProfile Cmdlet -```powershell -Import-Module Microsoft.Graph.Security +### Example 1: Request without Prefer header + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - AssignedTo = "" - Comment = "control is reviewed" - State = "Reviewed" - VendorInformation = @{ - Provider = "SecureScore" - ProviderVersion = $null - SubProvider = $null - Vendor = "Microsoft" + assignedTo = "" + comment = "control is reviewed" + state = "Reviewed" + vendorInformation = @{ + provider = "SecureScore" + providerVersion = $null + subProvider = $null + vendor = "Microsoft" } } -Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params -``` -This example shows how to use the Update-MgSecuritySecureScoreControlProfile Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgSecuritySecureScoreControlProfile Cmdlet -```powershell -Import-Module Microsoft.Graph.Security + +Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +``` +This example shows how to use the Update-MgSecuritySecureScoreControlProfile Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Request with Prefer header + +```powershell Import-Module Microsoft.Graph.Security + $params = @{ - AssignedTo = "" - Comment = "control is reviewed" - State = "Reviewed" - VendorInformation = @{ - Provider = "SecureScore" - ProviderVersion = $null - SubProvider = $null - Vendor = "Microsoft" + assignedTo = "" + comment = "control is reviewed" + state = "Reviewed" + vendorInformation = @{ + provider = "SecureScore" + providerVersion = $null + subProvider = $null + vendor = "Microsoft" } } -Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params -``` -This example shows how to use the Update-MgSecuritySecureScoreControlProfile Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params +``` +This example shows how to use the Update-MgSecuritySecureScoreControlProfile Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteContentType.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteContentType.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteContentTypeColumn.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteContentTypeColumn.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteList.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteList.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteListContentTypeColumn.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteListContentTypeColumn.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteListItem.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteListItem.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemDocumentSetVersion.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemDocumentSetVersion.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemField.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemField.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemVersion.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemVersion.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSitePermission.md b/src/Sites/beta/examples/Get-MgBetaGroupSitePermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSitePermission.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSitePermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStore.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStore.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreGroup.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreGroup.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreGroupSetTerm.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreGroupSetTerm.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreSet.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreSet.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreSetTerm.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreSetTerm.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Get-MgBetaSite.md b/src/Sites/beta/examples/Get-MgBetaSite.md index f9bec49a73a..c3bbf6294f3 100644 --- a/src/Sites/beta/examples/Get-MgBetaSite.md +++ b/src/Sites/beta/examples/Get-MgBetaSite.md @@ -1,42 +1,9 @@ -### Example 1: Using the Get-MgBetaSite Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSite -``` -This example shows how to use the Get-MgBetaSite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSite Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSite -SiteId $siteId -``` -This example shows how to use the Get-MgBetaSite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaSite Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSite -Search "{query}" -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaSite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaSite Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSite -Search "{query}" -``` -This example shows how to use the Get-MgBetaSite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaSite Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSite -Property "siteCollection,webUrl" -Filter "siteCollection/root ne null" -``` -This example shows how to use the Get-MgBetaSite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaSite Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSite -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaSite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSite -SiteId $siteId +``` +This example shows how to use the Get-MgBetaBetaSite Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteContentType.md b/src/Sites/beta/examples/Get-MgBetaSiteContentType.md index e9a0d2d9f2a..285aaa9c9f6 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteContentType.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteContentType.md @@ -1,21 +1,52 @@ -### Example 1: Using the Get-MgBetaSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteContentType -SiteId $siteId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the Get-MgBetaSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteContentType -SiteId $siteId -``` -This example shows how to use the Get-MgBetaSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +$params = @{ + name = "updatedCt" + documentSet = @{ + shouldPrefixNameToFile = $true + allowedContentTypes = @( + @{ + id = "0x0101" + name = "Document" + } + ) + defaultContents = @( + @{ + fileName = "a.txt" + contentType = @{ + id = "0x0101" + } + } + @{ + fileName = "b.txt" + contentType = @{ + id = "0x0101" + } + } + ) + sharedColumns = @( + @{ + name = "Description" + id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" + } + @{ + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + welcomePageColumns = @( + @{ + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + } +} + +Update-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSiteContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteContentTypeColumn.md b/src/Sites/beta/examples/Get-MgBetaSiteContentTypeColumn.md index ed27f55f514..9c095449120 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteContentTypeColumn.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteContentTypeColumn.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaSiteContentTypeColumn Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId -``` -This example shows how to use the Get-MgBetaSiteContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSiteContentTypeColumn Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the Get-MgBetaSiteContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId +``` +This example shows how to use the Get-MgBetaBetaSiteContentTypeColumn Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteList.md b/src/Sites/beta/examples/Get-MgBetaSiteList.md index 4e7e45ad732..e946766767d 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteList.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteList.md @@ -1,42 +1,27 @@ -### Example 1: Using the Get-MgBetaSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteList -SiteId $siteId -``` -This example shows how to use the Get-MgBetaSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteList -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgBetaSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteList -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgBetaSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteList -SiteId $siteId -ListId $listId -Property "name,lastModifiedDateTime" -ExpandProperty "columns(select=name,description),items)" -``` -This example shows how to use the Get-MgBetaSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteList -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgBetaSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteList -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgBetaSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgBetaBetaSiteList 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.Sites + +Get-MgBetaSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgBetaBetaSiteList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteList -SiteId $siteId -ListId $listId -Property "id,name,lastModifiedDateTime" -ExpandProperty "columns(select=name,description),items)" +``` +This example shows how to use the Get-MgBetaBetaSiteList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteListContentTypeColumn.md b/src/Sites/beta/examples/Get-MgBetaSiteListContentTypeColumn.md index 49efb9ee1ef..98584e7927e 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteListContentTypeColumn.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteListContentTypeColumn.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the Get-MgBetaSiteListContentTypeColumn Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Sites +Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId +``` +This example shows how to use the Get-MgBetaBetaSiteListContentTypeColumn Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteListItem.md b/src/Sites/beta/examples/Get-MgBetaSiteListItem.md index 769239aa9f8..4ba00d528e2 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteListItem.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteListItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaSiteListItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -ExpandProperty "fields" -``` -This example shows how to use the Get-MgBetaSiteListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -ExpandProperty "fields" +``` +This example shows how to use the Get-MgBetaBetaSiteListItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteListItemDocumentSetVersion.md b/src/Sites/beta/examples/Get-MgBetaSiteListItemDocumentSetVersion.md index 9abc9e8c4c6..2f1b26edb0e 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteListItemDocumentSetVersion.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteListItemDocumentSetVersion.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaSiteListItemDocumentSetVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId -``` -This example shows how to use the Get-MgBetaSiteListItemDocumentSetVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSiteListItemDocumentSetVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the Get-MgBetaSiteListItemDocumentSetVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Get-MgBetaBetaSiteListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteListItemField.md b/src/Sites/beta/examples/Get-MgBetaSiteListItemField.md index fce92410d1c..fd46facce3b 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteListItemField.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteListItemField.md @@ -1,16 +1,14 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +```powershell Import-Module Microsoft.Graph.Beta.Sites $params = @{ Color = "Fuchsia" Quantity = } -Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Get-MgBetaSiteListItemField Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSiteListItemField Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteListItemVersion.md b/src/Sites/beta/examples/Get-MgBetaSiteListItemVersion.md index 1736838ecce..b6b730486ef 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteListItemVersion.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteListItemVersion.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the Get-MgBetaSiteListItemVersion Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Sites +Get-MgBetaSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId -ExpandProperty "fields" +``` +This example shows how to use the Get-MgBetaBetaSiteListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSitePermission.md b/src/Sites/beta/examples/Get-MgBetaSitePermission.md index 38b98ae8af6..a95d991bc3f 100644 --- a/src/Sites/beta/examples/Get-MgBetaSitePermission.md +++ b/src/Sites/beta/examples/Get-MgBetaSitePermission.md @@ -1,14 +1,15 @@ -### Example 1: Using the Get-MgBetaSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId -``` -This example shows how to use the Get-MgBetaSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSitePermission -SiteId $siteId -``` -This example shows how to use the Get-MgBetaSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +$params = @{ + roles = @( + "read" + ) +} + +Update-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteTermStore.md b/src/Sites/beta/examples/Get-MgBetaSiteTermStore.md index 360038cf481..d64ebda74c9 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteTermStore.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteTermStore.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaSiteTermStore Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteTermStore -SiteId $siteId -``` -This example shows how to use the Get-MgBetaSiteTermStore Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSiteTermStore Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteTermStore -SiteId $siteId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaSiteTermStore Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +$params = @{ + defaultLanguageTag = "en-US" +} + +Update-MgBetaSiteTermStore -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSiteTermStore Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroup.md b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroup.md index 13eb0d5cc9f..d071a1827aa 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroup.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroup.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgBetaSiteTermStoreGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -Property "*,parentSiteId" -``` -This example shows how to use the Get-MgBetaSiteTermStoreGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSiteTermStoreGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -``` -This example shows how to use the Get-MgBetaSiteTermStoreGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a termStore group + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteTermStoreGroup -SiteId $siteId -GroupId $groupId +``` +This example shows how to use the Get-MgBetaBetaSiteTermStoreGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a site collection termStore group and its parent site ID + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -Property "*,parentSiteId" +``` +This example shows how to use the Get-MgBetaBetaSiteTermStoreGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroupSetTerm.md b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroupSetTerm.md index c6f8d94ca9d..c3b822d25ca 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroupSetTerm.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreGroupSetTerm.md @@ -1,14 +1,19 @@ -### Example 1: Using the Get-MgBetaSiteTermStoreGroupSetTerm Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId -``` -This example shows how to use the Get-MgBetaSiteTermStoreGroupSetTerm Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaSiteTermStoreGroupSetTerm Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId -``` -This example shows how to use the Get-MgBetaSiteTermStoreGroupSetTerm Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +$params = @{ + labels = @( + @{ + name = "changedLabel" + languageTag = "en-US" + isDefault = $true + } + ) +} + +Update-MgBetaSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSiteTermStoreGroupSetTerm Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSet.md b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSet.md index 35e314c3173..a62de6bfd3c 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSet.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSet.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgBetaSiteTermStoreSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteTermStoreSet -SiteId $siteId -SetId $setId -``` -This example shows how to use the Get-MgBetaSiteTermStoreSet Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +$params = @{ + description = "mySet" +} + +Update-MgBetaSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaSiteTermStoreSet Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSetTerm.md b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSetTerm.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteColumn.md b/src/Sites/beta/examples/New-MgBetaGroupSiteColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteColumn.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteContentType.md b/src/Sites/beta/examples/New-MgBetaGroupSiteContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteContentType.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteList.md b/src/Sites/beta/examples/New-MgBetaGroupSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteList.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteListContentType.md b/src/Sites/beta/examples/New-MgBetaGroupSiteListContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteListContentType.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteListContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteListItem.md b/src/Sites/beta/examples/New-MgBetaGroupSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteListItem.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteListItemDocumentSetVersion.md b/src/Sites/beta/examples/New-MgBetaGroupSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteListItemDocumentSetVersion.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteListItemVersion.md b/src/Sites/beta/examples/New-MgBetaGroupSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteListItemVersion.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSitePermission.md b/src/Sites/beta/examples/New-MgBetaGroupSitePermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSitePermission.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSitePermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSet.md b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSet.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSetChild.md b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSetChild.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSetChild.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSetChild.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSetRelation.md b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSetRelation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSetRelation.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreGroupSetRelation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreSetChild.md b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreSetChild.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreSetChild.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreSetChild.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreSetRelation.md b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreSetRelation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreSetRelation.md +++ b/src/Sites/beta/examples/New-MgBetaGroupSiteTermStoreSetRelation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/New-MgBetaSiteColumn.md b/src/Sites/beta/examples/New-MgBetaSiteColumn.md index 1010fe8d062..e9974f50b25 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteColumn.md +++ b/src/Sites/beta/examples/New-MgBetaSiteColumn.md @@ -1,20 +1,23 @@ -### Example 1: Using the New-MgBetaSiteColumn Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - Description = "test" - EnforceUniqueValues = $false - Hidden = $false - Indexed = $false - Name = "Title" - Text = @{ - AllowMultipleLines = $false - AppendChangesToExistingText = $false - LinesForEditing = 0 - MaxLength = 255 + description = "test" + enforceUniqueValues = $false + hidden = $false + indexed = $false + name = "Title" + text = @{ + allowMultipleLines = $false + appendChangesToExistingText = $false + linesForEditing = 0 + maxLength = 255 } } -New-MgBetaSiteColumn -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSiteColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSiteColumn -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSiteColumn Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteContentType.md b/src/Sites/beta/examples/New-MgBetaSiteContentType.md index 0fe39f9c041..f6b8a3692c2 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteContentType.md +++ b/src/Sites/beta/examples/New-MgBetaSiteContentType.md @@ -1,16 +1,19 @@ -### Example 1: Using the New-MgBetaSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - Name = "docSet" - Description = "custom docset" - Base = @{ - Name = "Document Set" - Id = "0x0120D520" + name = "docSet" + description = "custom docset" + base = @{ + name = "Document Set" + id = "0x0120D520" } - Group = "Document Set Content Types" + group = "Document Set Content Types" } -New-MgBetaSiteContentType -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSiteContentType -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSiteContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteContentTypeColumn.md b/src/Sites/beta/examples/New-MgBetaSiteContentTypeColumn.md index ba4cb957c87..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteContentTypeColumn.md +++ b/src/Sites/beta/examples/New-MgBetaSiteContentTypeColumn.md @@ -1,10 +1,17 @@ -### Example 1: Using the New-MgBetaSiteContentTypeColumn Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - "SourceColumn@odata.bind" = "https://graph.microsoft.com/beta/sites/root/columns/99ddcf45-e2f7-4f17-82b0-6fba34445103" -} -New-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaSiteContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgBetaSiteList.md b/src/Sites/beta/examples/New-MgBetaSiteList.md index 991f24f6c2c..f698c05daf7 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteList.md +++ b/src/Sites/beta/examples/New-MgBetaSiteList.md @@ -1,25 +1,28 @@ -### Example 1: Using the New-MgBetaSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - DisplayName = "Books" - Columns = @( + displayName = "Books" + columns = @( @{ - Name = "Author" - Text = @{ + name = "Author" + text = @{ } } @{ - Name = "PageCount" - Number = @{ + name = "PageCount" + number = @{ } } ) - List = @{ - Template = "genericList" + list = @{ + template = "genericList" } } -New-MgBetaSiteList -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSiteList -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSiteList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteListColumn.md b/src/Sites/beta/examples/New-MgBetaSiteListColumn.md index bb88b3a8b20..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteListColumn.md +++ b/src/Sites/beta/examples/New-MgBetaSiteListColumn.md @@ -1,20 +1,17 @@ -### Example 1: Using the New-MgBetaSiteListColumn Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - Description = "test" - EnforceUniqueValues = $false - Hidden = $false - Indexed = $false - Name = "Title" - Text = @{ - AllowMultipleLines = $false - AppendChangesToExistingText = $false - LinesForEditing = 0 - MaxLength = 255 - } -} -New-MgBetaSiteListColumn -SiteId $siteId -ListId $listId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaSiteListColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgBetaSiteListContentType.md b/src/Sites/beta/examples/New-MgBetaSiteListContentType.md index bb331840e02..60b0212a800 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteListContentType.md +++ b/src/Sites/beta/examples/New-MgBetaSiteListContentType.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSiteListContentType -SiteId $siteId -ListId $listId -``` -This example shows how to use the New-MgBetaSiteListContentType Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Sites +Get-MgBetaSiteListContentType -SiteId $siteId -ListId $listId +``` +This example shows how to use the New-MgBetaBetaSiteListContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteListContentTypeColumn.md b/src/Sites/beta/examples/New-MgBetaSiteListContentTypeColumn.md index 5b312703e10..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteListContentTypeColumn.md +++ b/src/Sites/beta/examples/New-MgBetaSiteListContentTypeColumn.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaSiteListContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaSiteListItem.md b/src/Sites/beta/examples/New-MgBetaSiteListItem.md index d0dde829ada..bbf6691f573 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteListItem.md +++ b/src/Sites/beta/examples/New-MgBetaSiteListItem.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaSiteListItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - Fields = @{ + fields = @{ Title = "Widget" Color = "Purple" Weight = } } -New-MgBetaSiteListItem -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSiteListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSiteListItem -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSiteListItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteListItemDocumentSetVersion.md b/src/Sites/beta/examples/New-MgBetaSiteListItemDocumentSetVersion.md index 9ae4daca27c..10d6dbeb6b6 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteListItemDocumentSetVersion.md +++ b/src/Sites/beta/examples/New-MgBetaSiteListItemDocumentSetVersion.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaSiteListItemDocumentSetVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - Comment = "v1" - ShouldCaptureMinorVersion = $false + comment = "v1" + shouldCaptureMinorVersion = $false } -New-MgBetaSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSiteListItemDocumentSetVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSiteListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteListItemVersion.md b/src/Sites/beta/examples/New-MgBetaSiteListItemVersion.md index 9ce40fc3b91..7379aebf095 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteListItemVersion.md +++ b/src/Sites/beta/examples/New-MgBetaSiteListItemVersion.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the New-MgBetaSiteListItemVersion Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Sites +Get-MgBetaSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId +``` +This example shows how to use the New-MgBetaBetaSiteListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSitePermission.md b/src/Sites/beta/examples/New-MgBetaSitePermission.md index dcf4ad74048..fdf62a010f9 100644 --- a/src/Sites/beta/examples/New-MgBetaSitePermission.md +++ b/src/Sites/beta/examples/New-MgBetaSitePermission.md @@ -1,20 +1,23 @@ -### Example 1: Using the New-MgBetaSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - Roles = @( + roles = @( "write" ) - GrantedToIdentities = @( + grantedToIdentities = @( @{ - Application = @{ - Id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e" - DisplayName = "Contoso Time Manager App" + application = @{ + id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e" + displayName = "Contoso Time Manager App" } } ) } -New-MgBetaSitePermission -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the New-MgBetaSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaSitePermission -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroup.md b/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroup.md index 35847dcc31c..f6c6949389e 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroup.md +++ b/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroup.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Sites + PS C:\> {{ Add code here }} -Get-MgBetaSiteTermStoreGroup -SiteId $siteId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaSiteTermStoreGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaSiteTermStoreGroupSet.md b/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSet.md index 5aef64d6e4b..1d244b11600 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSet.md +++ b/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSet.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSiteTermStoreGroupSet -SiteId $siteId -GroupId $groupId -``` -This example shows how to use the New-MgBetaSiteTermStoreGroupSet Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Sites +Get-MgBetaSiteTermStoreGroupSet -SiteId $siteId -GroupId $groupId +``` +This example shows how to use the New-MgBetaBetaSiteTermStoreGroupSet Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSetChild.md b/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSetChild.md index e9d463435ba..a6f097c6a94 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSetChild.md +++ b/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSetChild.md @@ -1,11 +1,19 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +```powershell Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteTermStoreSetChild -SiteId $siteId -SetId $setId -``` -This example shows how to use the New-MgBetaSiteTermStoreGroupSetChild Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + labels = @( + @{ + languageTag = "en-US" + name = "Car" + isDefault = $true + } + ) +} +New-MgBetaSiteTermStoreSetChild -SiteId $siteId -SetId $setId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSiteTermStoreGroupSetChild Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSetRelation.md b/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSetRelation.md index 1c680f1a94d..cc1f6b15ff8 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSetRelation.md +++ b/src/Sites/beta/examples/New-MgBetaSiteTermStoreGroupSetRelation.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSiteTermStoreSetRelation -SiteId $siteId -SetId $setId -``` -This example shows how to use the New-MgBetaSiteTermStoreGroupSetRelation Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Sites +Get-MgBetaSiteTermStoreSetRelation -SiteId $siteId -SetId $setId +``` +This example shows how to use the New-MgBetaBetaSiteTermStoreGroupSetRelation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteTermStoreSetChild.md b/src/Sites/beta/examples/New-MgBetaSiteTermStoreSetChild.md index f40cd35f817..d184ffc323d 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteTermStoreSetChild.md +++ b/src/Sites/beta/examples/New-MgBetaSiteTermStoreSetChild.md @@ -1,11 +1,19 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +```powershell Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSiteTermStoreSetChild -SiteId $siteId -SetId $setId -``` -This example shows how to use the New-MgBetaSiteTermStoreSetChild Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + labels = @( + @{ + languageTag = "en-US" + name = "Car" + isDefault = $true + } + ) +} +New-MgBetaSiteTermStoreSetChild -SiteId $siteId -SetId $setId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaSiteTermStoreSetChild Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/New-MgBetaSiteTermStoreSetRelation.md b/src/Sites/beta/examples/New-MgBetaSiteTermStoreSetRelation.md index 9549d7725ac..adfed77e661 100644 --- a/src/Sites/beta/examples/New-MgBetaSiteTermStoreSetRelation.md +++ b/src/Sites/beta/examples/New-MgBetaSiteTermStoreSetRelation.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSiteTermStoreSetRelation -SiteId $siteId -SetId $setId -``` -This example shows how to use the New-MgBetaSiteTermStoreSetRelation Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Sites +Get-MgBetaSiteTermStoreSetRelation -SiteId $siteId -SetId $setId +``` +This example shows how to use the New-MgBetaBetaSiteTermStoreSetRelation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteContentType.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteContentType.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteContentTypeColumn.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteContentTypeColumn.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteList.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteList.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListContentTypeColumn.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListContentTypeColumn.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItem.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItem.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemDocumentSetVersion.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemDocumentSetVersion.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemField.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemField.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemVersion.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemVersion.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSitePermission.md b/src/Sites/beta/examples/Remove-MgBetaGroupSitePermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSitePermission.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSitePermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStore.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStore.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreGroup.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreGroup.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreGroupSetTerm.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreGroupSetTerm.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreSet.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreSet.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreSetTerm.md b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreSetTerm.md +++ b/src/Sites/beta/examples/Remove-MgBetaGroupSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteContentType.md b/src/Sites/beta/examples/Remove-MgBetaSiteContentType.md index 6fd25412073..f2aebe53daa 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteContentType.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteContentType.md @@ -1,7 +1,52 @@ -### Example 1: Using the Remove-MgBetaSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Remove-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the Remove-MgBetaSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +$params = @{ + name = "updatedCt" + documentSet = @{ + shouldPrefixNameToFile = $true + allowedContentTypes = @( + @{ + id = "0x0101" + name = "Document" + } + ) + defaultContents = @( + @{ + fileName = "a.txt" + contentType = @{ + id = "0x0101" + } + } + @{ + fileName = "b.txt" + contentType = @{ + id = "0x0101" + } + } + ) + sharedColumns = @( + @{ + name = "Description" + id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" + } + @{ + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + welcomePageColumns = @( + @{ + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + } +} + +Update-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaSiteContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteContentTypeColumn.md b/src/Sites/beta/examples/Remove-MgBetaSiteContentTypeColumn.md index e8b1fef6f38..b0bc7bb5c75 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteContentTypeColumn.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteContentTypeColumn.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaSiteContentTypeColumn Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Remove-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId -``` -This example shows how to use the Remove-MgBetaSiteContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId +``` +This example shows how to use the Remove-MgBetaBetaSiteContentTypeColumn Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteList.md b/src/Sites/beta/examples/Remove-MgBetaSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteList.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteListContentTypeColumn.md b/src/Sites/beta/examples/Remove-MgBetaSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteListContentTypeColumn.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteListItem.md b/src/Sites/beta/examples/Remove-MgBetaSiteListItem.md index 5704d785ce3..29c7f7e16ba 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteListItem.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteListItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaSiteListItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Remove-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the Remove-MgBetaSiteListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -ExpandProperty "fields" +``` +This example shows how to use the Remove-MgBetaBetaSiteListItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteListItemDocumentSetVersion.md b/src/Sites/beta/examples/Remove-MgBetaSiteListItemDocumentSetVersion.md index c7224a20520..f9c553ba2db 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteListItemDocumentSetVersion.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteListItemDocumentSetVersion.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaSiteListItemDocumentSetVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Remove-MgBetaSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId -``` -This example shows how to use the Remove-MgBetaSiteListItemDocumentSetVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Remove-MgBetaBetaSiteListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteListItemField.md b/src/Sites/beta/examples/Remove-MgBetaSiteListItemField.md index 4d6e887980e..5b896e02b53 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteListItemField.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteListItemField.md @@ -1,16 +1,14 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +```powershell Import-Module Microsoft.Graph.Beta.Sites $params = @{ Color = "Fuchsia" Quantity = } -Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaSiteListItemField Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaSiteListItemField Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteListItemVersion.md b/src/Sites/beta/examples/Remove-MgBetaSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteListItemVersion.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaSitePermission.md b/src/Sites/beta/examples/Remove-MgBetaSitePermission.md index 085497be37f..785e7031349 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSitePermission.md +++ b/src/Sites/beta/examples/Remove-MgBetaSitePermission.md @@ -1,7 +1,15 @@ -### Example 1: Using the Remove-MgBetaSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -Remove-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId -``` -This example shows how to use the Remove-MgBetaSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +$params = @{ + roles = @( + "read" + ) +} + +Update-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteTermStore.md b/src/Sites/beta/examples/Remove-MgBetaSiteTermStore.md index 4609f370ac6..f2fd0803218 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteTermStore.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteTermStore.md @@ -1,15 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +```powershell Import-Module Microsoft.Graph.Beta.Sites $params = @{ - DefaultLanguageTag = "en-US" + defaultLanguageTag = "en-US" } -Update-MgBetaSiteTermStore -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaSiteTermStore Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaSiteTermStore -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaSiteTermStore Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreGroup.md b/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreGroup.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreGroupSetTerm.md b/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreGroupSetTerm.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreSet.md b/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreSet.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreSetTerm.md b/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreSetTerm.md +++ b/src/Sites/beta/examples/Remove-MgBetaSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteContentType.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteContentType.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteContentTypeColumn.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteContentTypeColumn.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteList.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteList.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteListContentTypeColumn.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteListContentTypeColumn.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteListItem.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteListItem.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemDocumentSetVersion.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemDocumentSetVersion.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemField.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemField.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemVersion.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemVersion.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSitePermission.md b/src/Sites/beta/examples/Update-MgBetaGroupSitePermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSitePermission.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSitePermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStore.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStore.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreGroup.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreGroup.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreGroupSetTerm.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreGroupSetTerm.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreSet.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreSet.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreSetTerm.md b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreSetTerm.md +++ b/src/Sites/beta/examples/Update-MgBetaGroupSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaSite.md b/src/Sites/beta/examples/Update-MgBetaSite.md index 4add838d21a..b2f63cbd2d2 100644 --- a/src/Sites/beta/examples/Update-MgBetaSite.md +++ b/src/Sites/beta/examples/Update-MgBetaSite.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites - -Get-MgBetaSite -SiteId $siteId -``` -This example shows how to use the Update-MgBetaSite Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Sites +Get-MgBetaSite -SiteId $siteId +``` +This example shows how to use the Update-MgBetaBetaSite Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Update-MgBetaSiteContentType.md b/src/Sites/beta/examples/Update-MgBetaSiteContentType.md index 75cc2b4faf1..6941bcfabb9 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteContentType.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteContentType.md @@ -1,49 +1,52 @@ -### Example 1: Using the Update-MgBetaSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - Name = "updatedCt" - DocumentSet = @{ - ShouldPrefixNameToFile = $true - AllowedContentTypes = @( + name = "updatedCt" + documentSet = @{ + shouldPrefixNameToFile = $true + allowedContentTypes = @( @{ - Id = "0x0101" - Name = "Document" + id = "0x0101" + name = "Document" } ) - DefaultContents = @( + defaultContents = @( @{ - FileName = "a.txt" - ContentType = @{ - Id = "0x0101" + fileName = "a.txt" + contentType = @{ + id = "0x0101" } } @{ - FileName = "b.txt" - ContentType = @{ - Id = "0x0101" + fileName = "b.txt" + contentType = @{ + id = "0x0101" } } ) - SharedColumns = @( + sharedColumns = @( @{ - Name = "Description" - Id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" + name = "Description" + id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" } @{ - Name = "Address" - Id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" } ) - WelcomePageColumns = @( + welcomePageColumns = @( @{ - Name = "Address" - Id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" } ) } } -Update-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSiteContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Update-MgBetaSiteContentTypeColumn.md b/src/Sites/beta/examples/Update-MgBetaSiteContentTypeColumn.md index 6a4a00eab8f..0180f1087d0 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteContentTypeColumn.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteContentTypeColumn.md @@ -1,12 +1,9 @@ -### Example 1: Using the Update-MgBetaSiteContentTypeColumn Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites -$params = @{ - Required = $true - Hidden = $false - PropagateChanges = $false -} -Update-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSiteContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId +``` +This example shows how to use the Update-MgBetaBetaSiteContentTypeColumn Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Update-MgBetaSiteList.md b/src/Sites/beta/examples/Update-MgBetaSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteList.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaSiteListContentTypeColumn.md b/src/Sites/beta/examples/Update-MgBetaSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteListContentTypeColumn.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaSiteListItem.md b/src/Sites/beta/examples/Update-MgBetaSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteListItem.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaSiteListItemDocumentSetVersion.md b/src/Sites/beta/examples/Update-MgBetaSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteListItemDocumentSetVersion.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaSiteListItemField.md b/src/Sites/beta/examples/Update-MgBetaSiteListItemField.md index ea3e63be203..187b4044c55 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteListItemField.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteListItemField.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaSiteListItemField Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + $params = @{ Color = "Fuchsia" Quantity = } -Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSiteListItemField Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSiteListItemField Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Update-MgBetaSiteListItemVersion.md b/src/Sites/beta/examples/Update-MgBetaSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteListItemVersion.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaSitePermission.md b/src/Sites/beta/examples/Update-MgBetaSitePermission.md index 99cd7e9a751..d9c041dba28 100644 --- a/src/Sites/beta/examples/Update-MgBetaSitePermission.md +++ b/src/Sites/beta/examples/Update-MgBetaSitePermission.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgBetaSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Sites + $params = @{ - Roles = @( + roles = @( "read" ) } -Update-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Update-MgBetaSiteTermStore.md b/src/Sites/beta/examples/Update-MgBetaSiteTermStore.md index c6e15a67e37..44db18e9790 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteTermStore.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteTermStore.md @@ -1,15 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Sites +```powershell Import-Module Microsoft.Graph.Beta.Sites $params = @{ - DefaultLanguageTag = "en-US" + defaultLanguageTag = "en-US" } -Update-MgBetaSiteTermStore -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaSiteTermStore Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaSiteTermStore -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaSiteTermStore Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/beta/examples/Update-MgBetaSiteTermStoreGroup.md b/src/Sites/beta/examples/Update-MgBetaSiteTermStoreGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteTermStoreGroup.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteTermStoreGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaSiteTermStoreGroupSetTerm.md b/src/Sites/beta/examples/Update-MgBetaSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteTermStoreGroupSetTerm.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaSiteTermStoreSet.md b/src/Sites/beta/examples/Update-MgBetaSiteTermStoreSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteTermStoreSet.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteTermStoreSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/beta/examples/Update-MgBetaSiteTermStoreSetTerm.md b/src/Sites/beta/examples/Update-MgBetaSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/beta/examples/Update-MgBetaSiteTermStoreSetTerm.md +++ b/src/Sites/beta/examples/Update-MgBetaSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteContentType.md b/src/Sites/v1.0/examples/Get-MgGroupSiteContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteContentType.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteContentTypeColumn.md b/src/Sites/v1.0/examples/Get-MgGroupSiteContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteList.md b/src/Sites/v1.0/examples/Get-MgGroupSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteList.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteListContentTypeColumn.md b/src/Sites/v1.0/examples/Get-MgGroupSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteListContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteListItem.md b/src/Sites/v1.0/examples/Get-MgGroupSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteListItem.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteListItemDocumentSetVersion.md b/src/Sites/v1.0/examples/Get-MgGroupSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteListItemDocumentSetVersion.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteListItemField.md b/src/Sites/v1.0/examples/Get-MgGroupSiteListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteListItemField.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteListItemVersion.md b/src/Sites/v1.0/examples/Get-MgGroupSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteListItemVersion.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSitePermission.md b/src/Sites/v1.0/examples/Get-MgGroupSitePermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSitePermission.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSitePermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStore.md b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStore.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreGroup.md b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreGroup.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreGroupSetTerm.md b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSet.md b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSet.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSetParentGroupSetTerm.md b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSetParentGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSetParentGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSetParentGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSetTerm.md b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSetTerm.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgSite.md b/src/Sites/v1.0/examples/Get-MgSite.md index d06a8565629..c00ee4de9ed 100644 --- a/src/Sites/v1.0/examples/Get-MgSite.md +++ b/src/Sites/v1.0/examples/Get-MgSite.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgSite Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSite -SiteId $siteId -``` -This example shows how to use the Get-MgSite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSite Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSite -Search "{query}" -``` -This example shows how to use the Get-MgSite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgSite Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSite -Search "{query}" -OutFile $outFileId -``` -This example shows how to use the Get-MgSite Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSite -SiteId $siteId +``` +This example shows how to use the Get-MgSite Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteContentType.md b/src/Sites/v1.0/examples/Get-MgSiteContentType.md index b628661025a..e0f12a3e1bc 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteContentType.md +++ b/src/Sites/v1.0/examples/Get-MgSiteContentType.md @@ -1,21 +1,52 @@ -### Example 1: Using the Get-MgSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteContentType -SiteId $siteId -``` -This example shows how to use the Get-MgSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteContentType -SiteId $siteId -OutFile $outFileId -``` -This example shows how to use the Get-MgSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the Get-MgSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +$params = @{ + name = "updatedCt" + documentSet = @{ + shouldPrefixNameToFile = $true + allowedContentTypes = @( + @{ + id = "0x0101" + name = "Document" + } + ) + defaultContents = @( + @{ + fileName = "a.txt" + contentType = @{ + id = "0x0101" + } + } + @{ + fileName = "b.txt" + contentType = @{ + id = "0x0101" + } + } + ) + sharedColumns = @( + @{ + name = "Description" + id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" + } + @{ + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + welcomePageColumns = @( + @{ + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + } +} + +Update-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Get-MgSiteContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteContentTypeColumn.md b/src/Sites/v1.0/examples/Get-MgSiteContentTypeColumn.md index 5fac8bfbf93..cda97201f6e 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Get-MgSiteContentTypeColumn.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgSiteContentTypeColumn Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId -``` -This example shows how to use the Get-MgSiteContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSiteContentTypeColumn Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the Get-MgSiteContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId +``` +This example shows how to use the Get-MgSiteContentTypeColumn Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteList.md b/src/Sites/v1.0/examples/Get-MgSiteList.md index ce9d9e98c3e..f59c89f05ca 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteList.md +++ b/src/Sites/v1.0/examples/Get-MgSiteList.md @@ -1,42 +1,27 @@ -### Example 1: Using the Get-MgSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteList -SiteId $siteId -``` -This example shows how to use the Get-MgSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteList -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteList -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteList -SiteId $siteId -ListId $listId -Property "id,name,lastModifiedDateTime" -ExpandProperty "columns(select=name,description),items)" -``` -This example shows how to use the Get-MgSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteList -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteList -SiteId $siteId -ListId $listId -``` -This example shows how to use the Get-MgSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgSiteList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgSiteList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteList -SiteId $siteId -ListId $listId -Property "id,name,lastModifiedDateTime" -ExpandProperty "columns(select=name,description),items)" +``` +This example shows how to use the Get-MgSiteList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteListContentTypeColumn.md b/src/Sites/v1.0/examples/Get-MgSiteListContentTypeColumn.md index 2702d2380e3..26b04222a96 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteListContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Get-MgSiteListContentTypeColumn.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Sites -Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId +Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId ``` This example shows how to use the Get-MgSiteListContentTypeColumn Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/Get-MgSiteListItem.md b/src/Sites/v1.0/examples/Get-MgSiteListItem.md index e5814197197..2e16d60cbaa 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteListItem.md +++ b/src/Sites/v1.0/examples/Get-MgSiteListItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgSiteListItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -ExpandProperty "fields" -``` -This example shows how to use the Get-MgSiteListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -ExpandProperty "fields" +``` +This example shows how to use the Get-MgSiteListItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteListItemDocumentSetVersion.md b/src/Sites/v1.0/examples/Get-MgSiteListItemDocumentSetVersion.md index c0a41576121..7a3d282ed65 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/v1.0/examples/Get-MgSiteListItemDocumentSetVersion.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgSiteListItemDocumentSetVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId -``` -This example shows how to use the Get-MgSiteListItemDocumentSetVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSiteListItemDocumentSetVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the Get-MgSiteListItemDocumentSetVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Get-MgSiteListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteListItemVersion.md b/src/Sites/v1.0/examples/Get-MgSiteListItemVersion.md index 3f5c7aaedd1..a4f0d7e2343 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteListItemVersion.md +++ b/src/Sites/v1.0/examples/Get-MgSiteListItemVersion.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgSiteListItemVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the Get-MgSiteListItemVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSiteListItemVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId -ExpandProperty "fields" -``` -This example shows how to use the Get-MgSiteListItemVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId -ExpandProperty "fields" +``` +This example shows how to use the Get-MgSiteListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSitePermission.md b/src/Sites/v1.0/examples/Get-MgSitePermission.md index a81d9eb2f3a..d9b085cb8a2 100644 --- a/src/Sites/v1.0/examples/Get-MgSitePermission.md +++ b/src/Sites/v1.0/examples/Get-MgSitePermission.md @@ -1,14 +1,15 @@ -### Example 1: Using the Get-MgSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSitePermission -SiteId $siteId -PermissionId $permissionId -``` -This example shows how to use the Get-MgSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSitePermission -SiteId $siteId -``` -This example shows how to use the Get-MgSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +$params = @{ + roles = @( + "read" + ) +} + +Update-MgSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +``` +This example shows how to use the Get-MgSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteTermStore.md b/src/Sites/v1.0/examples/Get-MgSiteTermStore.md index 5dc284c5bab..d13b5316608 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteTermStore.md +++ b/src/Sites/v1.0/examples/Get-MgSiteTermStore.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgSiteTermStore Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteTermStore -SiteId $siteId -OutFile $outFileId -``` -This example shows how to use the Get-MgSiteTermStore Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +$params = @{ + defaultLanguageTag = "en-US" +} + +Update-MgSiteTermStore -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the Get-MgSiteTermStore Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroup.md b/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroup.md index a3eedaf9fdf..388113f4fcd 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroup.md +++ b/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroup.md @@ -1,21 +1,18 @@ -### Example 1: Using the Get-MgSiteTermStoreGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteTermStoreGroup -SiteId $siteId -OutFile $outFileId -``` -This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgSiteTermStoreGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -``` -This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgSiteTermStoreGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -Property "*,parentSiteId" -``` -This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a termStore group + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId +``` +This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a site collection termStore group and its parent site ID + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -Property "*,parentSiteId" +``` +This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroupSetTerm.md b/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroupSetTerm.md index 9a610109fce..5529b1c1644 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Get-MgSiteTermStoreGroupSetTerm.md @@ -1,7 +1,19 @@ -### Example 1: Using the Get-MgSiteTermStoreGroupSetTerm Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId -``` -This example shows how to use the Get-MgSiteTermStoreGroupSetTerm Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +$params = @{ + labels = @( + @{ + name = "changedLabel" + languageTag = "en-US" + isDefault = $true + } + ) +} + +Update-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params +``` +This example shows how to use the Get-MgSiteTermStoreGroupSetTerm Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteTermStoreSet.md b/src/Sites/v1.0/examples/Get-MgSiteTermStoreSet.md index 27e4b693762..e023323c9a1 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteTermStoreSet.md +++ b/src/Sites/v1.0/examples/Get-MgSiteTermStoreSet.md @@ -1,7 +1,13 @@ -### Example 1: Using the Get-MgSiteTermStoreSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Get-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -``` -This example shows how to use the Get-MgSiteTermStoreSet Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +$params = @{ + description = "mySet" +} + +Update-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params +``` +This example shows how to use the Get-MgSiteTermStoreSet Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Get-MgSiteTermStoreSetParentGroupSetTerm.md b/src/Sites/v1.0/examples/Get-MgSiteTermStoreSetParentGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteTermStoreSetParentGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Get-MgSiteTermStoreSetParentGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Get-MgSiteTermStoreSetTerm.md b/src/Sites/v1.0/examples/Get-MgSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Get-MgSiteTermStoreSetTerm.md +++ b/src/Sites/v1.0/examples/Get-MgSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteColumn.md b/src/Sites/v1.0/examples/New-MgGroupSiteColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteColumn.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteContentType.md b/src/Sites/v1.0/examples/New-MgGroupSiteContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteContentType.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteList.md b/src/Sites/v1.0/examples/New-MgGroupSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteList.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteListContentType.md b/src/Sites/v1.0/examples/New-MgGroupSiteListContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteListContentType.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteListContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteListItem.md b/src/Sites/v1.0/examples/New-MgGroupSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteListItem.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteListItemDocumentSetVersion.md b/src/Sites/v1.0/examples/New-MgGroupSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteListItemDocumentSetVersion.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteListItemVersion.md b/src/Sites/v1.0/examples/New-MgGroupSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteListItemVersion.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSitePermission.md b/src/Sites/v1.0/examples/New-MgGroupSitePermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSitePermission.md +++ b/src/Sites/v1.0/examples/New-MgGroupSitePermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSet.md b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSet.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSetChild.md b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSetChild.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSetChild.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSetChild.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSetRelation.md b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSetRelation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSetRelation.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreGroupSetRelation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetChild.md b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetChild.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetChild.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetChild.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSet.md b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSet.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSetChild.md b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSetChild.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSetChild.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSetChild.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSetRelation.md b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSetRelation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSetRelation.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetParentGroupSetRelation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetRelation.md b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetRelation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetRelation.md +++ b/src/Sites/v1.0/examples/New-MgGroupSiteTermStoreSetRelation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgSiteColumn.md b/src/Sites/v1.0/examples/New-MgSiteColumn.md index e89d734a213..00d6eadb289 100644 --- a/src/Sites/v1.0/examples/New-MgSiteColumn.md +++ b/src/Sites/v1.0/examples/New-MgSiteColumn.md @@ -1,20 +1,23 @@ -### Example 1: Using the New-MgSiteColumn Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Description = "test" - EnforceUniqueValues = $false - Hidden = $false - Indexed = $false - Name = "Title" - Text = @{ - AllowMultipleLines = $false - AppendChangesToExistingText = $false - LinesForEditing = 0 - MaxLength = 255 + description = "test" + enforceUniqueValues = $false + hidden = $false + indexed = $false + name = "Title" + text = @{ + allowMultipleLines = $false + appendChangesToExistingText = $false + linesForEditing = 0 + maxLength = 255 } } -New-MgSiteColumn -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the New-MgSiteColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgSiteColumn -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the New-MgSiteColumn Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/New-MgSiteContentType.md b/src/Sites/v1.0/examples/New-MgSiteContentType.md index 27f532b11fa..fb2bc366a6a 100644 --- a/src/Sites/v1.0/examples/New-MgSiteContentType.md +++ b/src/Sites/v1.0/examples/New-MgSiteContentType.md @@ -1,16 +1,19 @@ -### Example 1: Using the New-MgSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Name = "docSet" - Description = "custom docset" - Base = @{ - Name = "Document Set" - Id = "0x0120D520" + name = "docSet" + description = "custom docset" + base = @{ + name = "Document Set" + id = "0x0120D520" } - Group = "Document Set Content Types" + group = "Document Set Content Types" } -New-MgSiteContentType -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the New-MgSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgSiteContentType -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the New-MgSiteContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/New-MgSiteContentTypeColumn.md b/src/Sites/v1.0/examples/New-MgSiteContentTypeColumn.md index ce1951bff30..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgSiteContentTypeColumn.md +++ b/src/Sites/v1.0/examples/New-MgSiteContentTypeColumn.md @@ -1,10 +1,17 @@ -### Example 1: Using the New-MgSiteContentTypeColumn Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Sites -$params = @{ - "SourceColumn@odata.bind" = "https://graph.microsoft.com/v1.0/sites/root/columns/99ddcf45-e2f7-4f17-82b0-6fba34445103" -} -New-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgSiteContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgSiteList.md b/src/Sites/v1.0/examples/New-MgSiteList.md index 66083c9b800..578b796bcd6 100644 --- a/src/Sites/v1.0/examples/New-MgSiteList.md +++ b/src/Sites/v1.0/examples/New-MgSiteList.md @@ -1,25 +1,28 @@ -### Example 1: Using the New-MgSiteList Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - DisplayName = "Books" - Columns = @( + displayName = "Books" + columns = @( @{ - Name = "Author" - Text = @{ + name = "Author" + text = @{ } } @{ - Name = "PageCount" - Number = @{ + name = "PageCount" + number = @{ } } ) - List = @{ - Template = "genericList" + list = @{ + template = "genericList" } } -New-MgSiteList -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the New-MgSiteList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgSiteList -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the New-MgSiteList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/New-MgSiteListColumn.md b/src/Sites/v1.0/examples/New-MgSiteListColumn.md index 499765fcb5e..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgSiteListColumn.md +++ b/src/Sites/v1.0/examples/New-MgSiteListColumn.md @@ -1,20 +1,17 @@ -### Example 1: Using the New-MgSiteListColumn Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Sites -$params = @{ - Description = "test" - EnforceUniqueValues = $false - Hidden = $false - Indexed = $false - Name = "Title" - Text = @{ - AllowMultipleLines = $false - AppendChangesToExistingText = $false - LinesForEditing = 0 - MaxLength = 255 - } -} -New-MgSiteListColumn -SiteId $siteId -ListId $listId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgSiteListColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgSiteListContentTypeColumn.md b/src/Sites/v1.0/examples/New-MgSiteListContentTypeColumn.md index 9e76277e706..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgSiteListContentTypeColumn.md +++ b/src/Sites/v1.0/examples/New-MgSiteListContentTypeColumn.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Sites +{{ Add output here }} +``` -Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the New-MgSiteListContentTypeColumn Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/New-MgSiteListItem.md b/src/Sites/v1.0/examples/New-MgSiteListItem.md index 2b5c2b22fcf..105df1d7758 100644 --- a/src/Sites/v1.0/examples/New-MgSiteListItem.md +++ b/src/Sites/v1.0/examples/New-MgSiteListItem.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgSiteListItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Fields = @{ + fields = @{ Title = "Widget" Color = "Purple" Weight = } } -New-MgSiteListItem -SiteId $siteId -ListId $listId -BodyParameter $params -``` -This example shows how to use the New-MgSiteListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgSiteListItem -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the New-MgSiteListItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/New-MgSiteListItemDocumentSetVersion.md b/src/Sites/v1.0/examples/New-MgSiteListItemDocumentSetVersion.md index a94e05f8e23..4233b5e1f53 100644 --- a/src/Sites/v1.0/examples/New-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/v1.0/examples/New-MgSiteListItemDocumentSetVersion.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgSiteListItemDocumentSetVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Comment = "v1" - ShouldCaptureMinorVersion = $false + comment = "v1" + shouldCaptureMinorVersion = $false } -New-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the New-MgSiteListItemDocumentSetVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +``` +This example shows how to use the New-MgSiteListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/New-MgSitePermission.md b/src/Sites/v1.0/examples/New-MgSitePermission.md index 363e7ee368f..69aea2b0c56 100644 --- a/src/Sites/v1.0/examples/New-MgSitePermission.md +++ b/src/Sites/v1.0/examples/New-MgSitePermission.md @@ -1,20 +1,23 @@ -### Example 1: Using the New-MgSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Roles = @( + roles = @( "write" ) - GrantedToIdentities = @( + grantedToIdentities = @( @{ - Application = @{ - Id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e" - DisplayName = "Contoso Time Manager App" + application = @{ + id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e" + displayName = "Contoso Time Manager App" } } ) } -New-MgSitePermission -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the New-MgSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgSitePermission -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the New-MgSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/New-MgSiteTermStoreGroup.md b/src/Sites/v1.0/examples/New-MgSiteTermStoreGroup.md index 09006f89d26..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgSiteTermStoreGroup.md +++ b/src/Sites/v1.0/examples/New-MgSiteTermStoreGroup.md @@ -1,10 +1,17 @@ -### Example 1: Using the New-MgSiteTermStoreGroup Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Sites -$params = @{ - DisplayName = "myGroup" -} -New-MgSiteTermStoreGroup -SiteId $siteId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgSiteTermStoreGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgSiteTermStoreGroupSetChild.md b/src/Sites/v1.0/examples/New-MgSiteTermStoreGroupSetChild.md index f30a1711596..e4053efc316 100644 --- a/src/Sites/v1.0/examples/New-MgSiteTermStoreGroupSetChild.md +++ b/src/Sites/v1.0/examples/New-MgSiteTermStoreGroupSetChild.md @@ -2,7 +2,17 @@ ```powershell Import-Module Microsoft.Graph.Sites -Get-MgSiteTermStoreSetChild -SiteId $siteId -SetId $setId +$params = @{ + labels = @( + @{ + languageTag = "en-US" + name = "Car" + isDefault = $true + } + ) +} + +New-MgSiteTermStoreSetChild -SiteId $siteId -SetId $setId -BodyParameter $params ``` This example shows how to use the New-MgSiteTermStoreGroupSetChild Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/v1.0/examples/New-MgSiteTermStoreSetChild.md b/src/Sites/v1.0/examples/New-MgSiteTermStoreSetChild.md index 36a8e7d271c..e34fc0d7ea5 100644 --- a/src/Sites/v1.0/examples/New-MgSiteTermStoreSetChild.md +++ b/src/Sites/v1.0/examples/New-MgSiteTermStoreSetChild.md @@ -1,16 +1,19 @@ -### Example 1: Using the New-MgSiteTermStoreSetChild Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Labels = @( + labels = @( @{ - LanguageTag = "en-US" - Name = "Car" - IsDefault = $true + languageTag = "en-US" + name = "Car" + isDefault = $true } ) } -New-MgSiteTermStoreSetChild -SiteId $siteId -SetId $setId -BodyParameter $params -``` -This example shows how to use the New-MgSiteTermStoreSetChild Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgSiteTermStoreSetChild -SiteId $siteId -SetId $setId -BodyParameter $params +``` +This example shows how to use the New-MgSiteTermStoreSetChild Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/New-MgSiteTermStoreSetParentGroupSetChild.md b/src/Sites/v1.0/examples/New-MgSiteTermStoreSetParentGroupSetChild.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgSiteTermStoreSetParentGroupSetChild.md +++ b/src/Sites/v1.0/examples/New-MgSiteTermStoreSetParentGroupSetChild.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/New-MgSiteTermStoreSetParentGroupSetRelation.md b/src/Sites/v1.0/examples/New-MgSiteTermStoreSetParentGroupSetRelation.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/New-MgSiteTermStoreSetParentGroupSetRelation.md +++ b/src/Sites/v1.0/examples/New-MgSiteTermStoreSetParentGroupSetRelation.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteContentType.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteContentType.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteContentTypeColumn.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteList.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteList.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteListContentTypeColumn.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteListContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteListItem.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteListItem.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemDocumentSetVersion.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemDocumentSetVersion.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemField.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemField.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemVersion.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemVersion.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSitePermission.md b/src/Sites/v1.0/examples/Remove-MgGroupSitePermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSitePermission.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSitePermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStore.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStore.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreGroup.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreGroup.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreGroupSetTerm.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSet.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSet.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSetParentGroupSetTerm.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSetParentGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSetParentGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSetParentGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSetTerm.md b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSetTerm.md +++ b/src/Sites/v1.0/examples/Remove-MgGroupSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgSiteContentType.md b/src/Sites/v1.0/examples/Remove-MgSiteContentType.md index bbbb9224a1f..6a3008c6d41 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteContentType.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteContentType.md @@ -1,7 +1,52 @@ -### Example 1: Using the Remove-MgSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Remove-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -``` -This example shows how to use the Remove-MgSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +$params = @{ + name = "updatedCt" + documentSet = @{ + shouldPrefixNameToFile = $true + allowedContentTypes = @( + @{ + id = "0x0101" + name = "Document" + } + ) + defaultContents = @( + @{ + fileName = "a.txt" + contentType = @{ + id = "0x0101" + } + } + @{ + fileName = "b.txt" + contentType = @{ + id = "0x0101" + } + } + ) + sharedColumns = @( + @{ + name = "Description" + id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" + } + @{ + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + welcomePageColumns = @( + @{ + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + } +} + +Update-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Remove-MgSiteContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Remove-MgSiteContentTypeColumn.md b/src/Sites/v1.0/examples/Remove-MgSiteContentTypeColumn.md index 2bb8fe25e24..e7e4b57e7bd 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteContentTypeColumn.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgSiteContentTypeColumn Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Remove-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId -``` -This example shows how to use the Remove-MgSiteContentTypeColumn Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId +``` +This example shows how to use the Remove-MgSiteContentTypeColumn Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Remove-MgSiteList.md b/src/Sites/v1.0/examples/Remove-MgSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteList.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgSiteListContentTypeColumn.md b/src/Sites/v1.0/examples/Remove-MgSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteListContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgSiteListItem.md b/src/Sites/v1.0/examples/Remove-MgSiteListItem.md index 7abc69f7410..bc151605a36 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteListItem.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteListItem.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgSiteListItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Remove-MgSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -``` -This example shows how to use the Remove-MgSiteListItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -ExpandProperty "fields" +``` +This example shows how to use the Remove-MgSiteListItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Remove-MgSiteListItemDocumentSetVersion.md b/src/Sites/v1.0/examples/Remove-MgSiteListItemDocumentSetVersion.md index 699d5742c71..71ca495b7b9 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteListItemDocumentSetVersion.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgSiteListItemDocumentSetVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Remove-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId -``` -This example shows how to use the Remove-MgSiteListItemDocumentSetVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Remove-MgSiteListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Remove-MgSiteListItemVersion.md b/src/Sites/v1.0/examples/Remove-MgSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteListItemVersion.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgSitePermission.md b/src/Sites/v1.0/examples/Remove-MgSitePermission.md index 87f483f71df..24e7a70bba7 100644 --- a/src/Sites/v1.0/examples/Remove-MgSitePermission.md +++ b/src/Sites/v1.0/examples/Remove-MgSitePermission.md @@ -1,7 +1,15 @@ -### Example 1: Using the Remove-MgSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Remove-MgSitePermission -SiteId $siteId -PermissionId $permissionId -``` -This example shows how to use the Remove-MgSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +$params = @{ + roles = @( + "read" + ) +} + +Update-MgSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +``` +This example shows how to use the Remove-MgSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Remove-MgSiteTermStore.md b/src/Sites/v1.0/examples/Remove-MgSiteTermStore.md index 1f907b4209a..a3b8174e047 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteTermStore.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteTermStore.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Sites $params = @{ - DefaultLanguageTag = "en-US" + defaultLanguageTag = "en-US" } Update-MgSiteTermStore -SiteId $siteId -BodyParameter $params diff --git a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreGroup.md b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreGroup.md index b8b7c3405cf..6075bca1c90 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreGroup.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreGroup.md @@ -1,7 +1,18 @@ -### Example 1: Using the Remove-MgSiteTermStoreGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Remove-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -``` -This example shows how to use the Remove-MgSiteTermStoreGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a termStore group + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId +``` +This example shows how to use the Remove-MgSiteTermStoreGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a site collection termStore group and its parent site ID + +```powershell Import-Module Microsoft.Graph.Sites + +Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -Property "*,parentSiteId" +``` +This example shows how to use the Remove-MgSiteTermStoreGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreGroupSetTerm.md b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSet.md b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSet.md index 6c0382684fe..75301852c8c 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSet.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSet.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgSiteTermStoreSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Remove-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -``` -This example shows how to use the Remove-MgSiteTermStoreSet Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +$params = @{ + description = "mySet" +} + +Update-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params +``` +This example shows how to use the Remove-MgSiteTermStoreSet Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetParentGroupSetTerm.md b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetParentGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetParentGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetParentGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetTerm.md b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetTerm.md index bed5734bc55..ee7305e9de4 100644 --- a/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetTerm.md +++ b/src/Sites/v1.0/examples/Remove-MgSiteTermStoreSetTerm.md @@ -1,7 +1,19 @@ -### Example 1: Using the Remove-MgSiteTermStoreSetTerm Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites -Remove-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -``` -This example shows how to use the Remove-MgSiteTermStoreSetTerm Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + +$params = @{ + labels = @( + @{ + name = "changedLabel" + languageTag = "en-US" + isDefault = $true + } + ) +} + +Update-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params +``` +This example shows how to use the Remove-MgSiteTermStoreSetTerm Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteContentType.md b/src/Sites/v1.0/examples/Update-MgGroupSiteContentType.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteContentType.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteContentType.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteContentTypeColumn.md b/src/Sites/v1.0/examples/Update-MgGroupSiteContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteList.md b/src/Sites/v1.0/examples/Update-MgGroupSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteList.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteListContentTypeColumn.md b/src/Sites/v1.0/examples/Update-MgGroupSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteListContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteListItem.md b/src/Sites/v1.0/examples/Update-MgGroupSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteListItem.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteListItemDocumentSetVersion.md b/src/Sites/v1.0/examples/Update-MgGroupSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteListItemDocumentSetVersion.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteListItemField.md b/src/Sites/v1.0/examples/Update-MgGroupSiteListItemField.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteListItemField.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteListItemField.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteListItemVersion.md b/src/Sites/v1.0/examples/Update-MgGroupSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteListItemVersion.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSitePermission.md b/src/Sites/v1.0/examples/Update-MgGroupSitePermission.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSitePermission.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSitePermission.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStore.md b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStore.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStore.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStore.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreGroup.md b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreGroup.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreGroupSetTerm.md b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSet.md b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSet.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSet.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSet.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSetParentGroupSetTerm.md b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSetParentGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSetParentGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSetParentGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSetTerm.md b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSetTerm.md +++ b/src/Sites/v1.0/examples/Update-MgGroupSiteTermStoreSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSiteContentType.md b/src/Sites/v1.0/examples/Update-MgSiteContentType.md index 3b10d9efe98..bb7f52c7f16 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteContentType.md +++ b/src/Sites/v1.0/examples/Update-MgSiteContentType.md @@ -1,49 +1,52 @@ -### Example 1: Using the Update-MgSiteContentType Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Name = "updatedCt" - DocumentSet = @{ - ShouldPrefixNameToFile = $true - AllowedContentTypes = @( + name = "updatedCt" + documentSet = @{ + shouldPrefixNameToFile = $true + allowedContentTypes = @( @{ - Id = "0x0101" - Name = "Document" + id = "0x0101" + name = "Document" } ) - DefaultContents = @( + defaultContents = @( @{ - FileName = "a.txt" - ContentType = @{ - Id = "0x0101" + fileName = "a.txt" + contentType = @{ + id = "0x0101" } } @{ - FileName = "b.txt" - ContentType = @{ - Id = "0x0101" + fileName = "b.txt" + contentType = @{ + id = "0x0101" } } ) - SharedColumns = @( + sharedColumns = @( @{ - Name = "Description" - Id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" + name = "Description" + id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" } @{ - Name = "Address" - Id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" } ) - WelcomePageColumns = @( + welcomePageColumns = @( @{ - Name = "Address" - Id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + name = "Address" + id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" } ) } } -Update-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params -``` -This example shows how to use the Update-MgSiteContentType Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Update-MgSiteContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Update-MgSiteContentTypeColumn.md b/src/Sites/v1.0/examples/Update-MgSiteContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Update-MgSiteContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSiteList.md b/src/Sites/v1.0/examples/Update-MgSiteList.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteList.md +++ b/src/Sites/v1.0/examples/Update-MgSiteList.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSiteListContentTypeColumn.md b/src/Sites/v1.0/examples/Update-MgSiteListContentTypeColumn.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteListContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Update-MgSiteListContentTypeColumn.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSiteListItem.md b/src/Sites/v1.0/examples/Update-MgSiteListItem.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteListItem.md +++ b/src/Sites/v1.0/examples/Update-MgSiteListItem.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSiteListItemDocumentSetVersion.md b/src/Sites/v1.0/examples/Update-MgSiteListItemDocumentSetVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/v1.0/examples/Update-MgSiteListItemDocumentSetVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSiteListItemField.md b/src/Sites/v1.0/examples/Update-MgSiteListItemField.md index 04f565c666f..c03f098b414 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteListItemField.md +++ b/src/Sites/v1.0/examples/Update-MgSiteListItemField.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgSiteListItemField Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ Color = "Fuchsia" Quantity = } -Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params -``` -This example shows how to use the Update-MgSiteListItemField Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params +``` +This example shows how to use the Update-MgSiteListItemField Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Update-MgSiteListItemVersion.md b/src/Sites/v1.0/examples/Update-MgSiteListItemVersion.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteListItemVersion.md +++ b/src/Sites/v1.0/examples/Update-MgSiteListItemVersion.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSitePermission.md b/src/Sites/v1.0/examples/Update-MgSitePermission.md index 9990ad6d08e..614a5baac31 100644 --- a/src/Sites/v1.0/examples/Update-MgSitePermission.md +++ b/src/Sites/v1.0/examples/Update-MgSitePermission.md @@ -1,12 +1,15 @@ -### Example 1: Using the Update-MgSitePermission Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Roles = @( + roles = @( "read" ) } -Update-MgSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params -``` -This example shows how to use the Update-MgSitePermission Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params +``` +This example shows how to use the Update-MgSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Update-MgSiteTermStore.md b/src/Sites/v1.0/examples/Update-MgSiteTermStore.md index fd55c698022..2fec0152cbd 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteTermStore.md +++ b/src/Sites/v1.0/examples/Update-MgSiteTermStore.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgSiteTermStore Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - DefaultLanguageTag = "en-US" + defaultLanguageTag = "en-US" } -Update-MgSiteTermStore -SiteId $siteId -BodyParameter $params -``` -This example shows how to use the Update-MgSiteTermStore Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSiteTermStore -SiteId $siteId -BodyParameter $params +``` +This example shows how to use the Update-MgSiteTermStore Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Update-MgSiteTermStoreGroup.md b/src/Sites/v1.0/examples/Update-MgSiteTermStoreGroup.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteTermStoreGroup.md +++ b/src/Sites/v1.0/examples/Update-MgSiteTermStoreGroup.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSiteTermStoreGroupSetTerm.md b/src/Sites/v1.0/examples/Update-MgSiteTermStoreGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteTermStoreGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Update-MgSiteTermStoreGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSet.md b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSet.md index 486653b947a..9304b40f3c6 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSet.md +++ b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSet.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgSiteTermStoreSet Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Description = "mySet" + description = "mySet" } -Update-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params -``` -This example shows how to use the Update-MgSiteTermStoreSet Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params +``` +This example shows how to use the Update-MgSiteTermStoreSet Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetParentGroupSetTerm.md b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetParentGroupSetTerm.md index 093355d11d5..f6c6949389e 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetParentGroupSetTerm.md +++ b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetParentGroupSetTerm.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetTerm.md b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetTerm.md index 09d8a5fb541..b4a9b87557a 100644 --- a/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetTerm.md +++ b/src/Sites/v1.0/examples/Update-MgSiteTermStoreSetTerm.md @@ -1,16 +1,19 @@ -### Example 1: Using the Update-MgSiteTermStoreSetTerm Cmdlet -```powershell -Import-Module Microsoft.Graph.Sites +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Sites + $params = @{ - Labels = @( + labels = @( @{ - Name = "changedLabel" - LanguageTag = "en-US" - IsDefault = $true + name = "changedLabel" + languageTag = "en-US" + isDefault = $true } ) } -Update-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params -``` -This example shows how to use the Update-MgSiteTermStoreSetTerm Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params +``` +This example shows how to use the Update-MgSiteTermStoreSetTerm Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamApp.md b/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamApp.md index df688d1eeea..8eb99a9f7d8 100644 --- a/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamApp.md +++ b/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamApp.md @@ -1,42 +1,9 @@ -### Example 1: Using the Get-MgBetaAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaAppCatalogTeamApp -Filter "externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgBetaAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaAppCatalogTeamApp -Filter "id eq 'b1c5353a-7aca-41b3-830f-27d5218fe0e5'" -``` -This example shows how to use the Get-MgBetaAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaAppCatalogTeamApp -ExpandProperty "appDefinitions(`$select=id,displayName,allowedInstallationScopes)" -Filter "appDefinitions/any(a:a/allowedInstallationScopes has 'personal')" -``` -This example shows how to use the Get-MgBetaAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaAppCatalogTeamApp -ExpandProperty "appDefinitions(`$expand=bot)" -Filter "appDefinitions/any(a:a/bot ne null)" -``` -This example shows how to use the Get-MgBetaAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaAppCatalogTeamApp -Filter "id eq '876df28f-2e78-423b-94a5-44181bd0e225'" -ExpandProperty "appDefinitions" -``` -This example shows how to use the Get-MgBetaAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the Get-MgBetaAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaAppCatalogTeamApp -Filter "distributionMethod eq 'organization'" -``` -This example shows how to use the Get-MgBetaAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Remove-MgBetaAppCatalogTeamApp -TeamsAppId $teamsAppId +``` +This example shows how to use the Get-MgBetaBetaAppCatalogTeamApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamAppDefinition.md b/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamAppDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamAppDefinition.md +++ b/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamAppDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamAppDefinitionBot.md b/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamAppDefinitionBot.md index b2cf4148537..6b60b65fe34 100644 --- a/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamAppDefinitionBot.md +++ b/src/Teams/beta/examples/Get-MgBetaAppCatalogTeamAppDefinitionBot.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaAppCatalogTeamAppDefinitionBot Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId -``` -This example shows how to use the Get-MgBetaAppCatalogTeamAppDefinitionBot Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId +``` +This example shows how to use the Get-MgBetaBetaAppCatalogTeamAppDefinitionBot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaChat.md b/src/Teams/beta/examples/Get-MgBetaChat.md index d549659bdaf..b3d437023d0 100644 --- a/src/Teams/beta/examples/Get-MgBetaChat.md +++ b/src/Teams/beta/examples/Get-MgBetaChat.md @@ -1,35 +1,13 @@ -### Example 1: Using the Get-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChat -ChatId $chatId -ExpandProperty "members" -``` -This example shows how to use the Get-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChat -ChatId $chatId -``` -This example shows how to use the Get-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChat -ChatId $chatId -``` -This example shows how to use the Get-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChat -ExpandProperty "lastMessagePreview" -``` -This example shows how to use the Get-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChat -Sort "lastMessagePreview/createdDateTime desc" -``` -This example shows how to use the Get-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + topic = "Group chat title update" +} + +Update-MgBetaChat -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaChatInstalledApp.md b/src/Teams/beta/examples/Get-MgBetaChatInstalledApp.md index ce1d984553d..793631c0dce 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatInstalledApp.md +++ b/src/Teams/beta/examples/Get-MgBetaChatInstalledApp.md @@ -1,28 +1,9 @@ -### Example 1: Using the Get-MgBetaChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId -``` -This example shows how to use the Get-MgBetaChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatInstalledApp -ChatId $chatId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgBetaChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatInstalledApp -ChatId $chatId -ExpandProperty "teamsAppDefinition(`$expand=bot)" -``` -This example shows how to use the Get-MgBetaChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatInstalledApp -ChatId $chatId -``` -This example shows how to use the Get-MgBetaChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Get-MgBetaBetaChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaChatMember.md b/src/Teams/beta/examples/Get-MgBetaChatMember.md index 738d41bb133..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatMember.md +++ b/src/Teams/beta/examples/Get-MgBetaChatMember.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgBetaChatMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Get-MgBetaChatMessage.md b/src/Teams/beta/examples/Get-MgBetaChatMessage.md index 8c41464c535..34a1f7fb5e8 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaChatMessage.md @@ -1,14 +1,27 @@ -### Example 1: Using the Get-MgBetaChatMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatMessage -ChatId $chatId -Top 2 -Sort "createdDateTime desc" -``` -This example shows how to use the Get-MgBetaChatMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaChatMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaChatMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a message in a chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaChatMessageHostedContent.md b/src/Teams/beta/examples/Get-MgBetaChatMessageHostedContent.md index a404f82fc69..6e8bca74352 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatMessageHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaChatMessageHostedContent.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaChatMessageHostedContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId -``` -This example shows how to use the Get-MgBetaChatMessageHostedContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaChatMessageHostedContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaChatMessageHostedContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaChatMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaChatMessageReply.md b/src/Teams/beta/examples/Get-MgBetaChatMessageReply.md index 6498b78bc45..c8e40f6ab1d 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatMessageReply.md +++ b/src/Teams/beta/examples/Get-MgBetaChatMessageReply.md @@ -1,11 +1,27 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaChatMessageReply Cmdlet. +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgBetaBetaChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaChatMessageReplyHostedContent.md b/src/Teams/beta/examples/Get-MgBetaChatMessageReplyHostedContent.md index 3140791421e..20fe70d88c8 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaChatMessageReplyHostedContent.md @@ -1,33 +1,9 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaChatMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaChatPinnedMessage.md b/src/Teams/beta/examples/Get-MgBetaChatPinnedMessage.md index e82a6cbe073..4f96772a8c3 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatPinnedMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaChatPinnedMessage.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgBetaChatPinnedMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatPinnedMessage -ChatId $chatId -ExpandProperty "message" -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaChatPinnedMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaChatPinnedMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatPinnedMessage -ChatId $chatId -ExpandProperty "message" -``` -This example shows how to use the Get-MgBetaChatPinnedMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaChatPinnedMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatPinnedMessage -ChatId $chatId -``` -This example shows how to use the Get-MgBetaChatPinnedMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Remove-MgBetaChatPinnedMessage -ChatId $chatId -PinnedChatMessageInfoId $pinnedChatMessageInfoId +``` +This example shows how to use the Get-MgBetaBetaChatPinnedMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaChatTab.md b/src/Teams/beta/examples/Get-MgBetaChatTab.md index 4694d75b7db..6a5e815c3fd 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatTab.md +++ b/src/Teams/beta/examples/Get-MgBetaChatTab.md @@ -1,21 +1,13 @@ -### Example 1: Using the Get-MgBetaChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" -``` -This example shows how to use the Get-MgBetaChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatTab -ChatId $chatId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.web'" -``` -This example shows how to use the Get-MgBetaChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatTab -ChatId $chatId -ExpandProperty "teamsApp" -``` -This example shows how to use the Get-MgBetaChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update the name of a tab in a chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + displayName = "My Contoso Tab - updated again" +} + +Update-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelFileFolder.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelFileFolder.md index 70a81fbc6df..88f9149ec6e 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelFileFolder.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelFileFolder.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaGroupTeamChannelFileFolder Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelFileFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelFileFolderContent.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelFileFolderContent.md index 37dcd0a3283..08ea228693e 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelFileFolderContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaGroupTeamChannelFileFolderContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelFileFolderContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMember.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMember.md index d1822b3556d..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMember.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMember.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaGroupTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Get-MgBetaGroupTeamChannelMessage.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessage.md index 948fe56921d..eb04142ed21 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessage.md @@ -1,22 +1,434 @@ -### Example 1: Code snippet +### Example 1: Update policyViolation property using application permissions -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 -``` -This example shows how to use the Get-MgBetaGroupTeamChannelMessage Cmdlet. +$params = @{ + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( + "Credit Card Number" + ) + } + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions -### Example 2: Code snippet +```powershell Import-Module Microsoft.Graph.Beta.Teams -```powershell -Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "text" + content = "Edit text only" + } + attachments = @( + ) + mentions = @( + ) + reactions = @( + ) +} -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" -``` -This example shows how to use the Get-MgBetaGroupTeamChannelMessage Cmdlet. +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" + } + attachments = @( + ) + mentions = @( + @{ + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + } + @{ + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" + } + device = $null + conversation = $null + user = $null + } + } + ) + reactions = @( + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Update the content with attachments of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Update the reactions in a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + @{ + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageHostedContent.md index 142a2aa4203..04074944d1d 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageHostedContent.md @@ -1,33 +1,9 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaGroupTeamChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageReply.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageReply.md index 11e1eff952b..c9c86c6d6dc 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageReply.md @@ -1,11 +1,27 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamChannelMessageReply Cmdlet. +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageReplyHostedContent.md index f5ba4c05afc..834333cc6af 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelMessageReplyHostedContent.md @@ -1,33 +1,9 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelSharedWithTeam.md index 12ea398492c..69d4f0818bd 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamChannelSharedWithTeam.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaGroupTeamChannelSharedWithTeam Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamIncomingChannel.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamIncomingChannel.md index db2328b12b7..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamIncomingChannel.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamIncomingChannel.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamIncomingChannel -TeamId $teamId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaGroupTeamIncomingChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Get-MgBetaGroupTeamInstalledApp.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamInstalledApp.md index 32e1222efd0..5a0d569c036 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamInstalledApp.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamInstalledApp.md @@ -1,33 +1,18 @@ -### Example 1: List installed apps +### Example 1: Get the installed app -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamInstalledApp -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamInstalledApp Cmdlet. +Get-MgBetaTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the names and other details of the installed app -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get the names and other details of installed apps - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsAppDefinition" -``` -This example shows how to use the Get-MgBetaGroupTeamInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the app installation resource based on the manifest ID of the associated app - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgBetaGroupTeamInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" +``` +This example shows how to use the Get-MgBetaBetaGroupTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamMember.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamMember.md index 90205de1570..1e7f0446448 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamMember.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamMember.md @@ -1,33 +1,16 @@ -### Example 1: Get list of members in team - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamMember -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Find members of a team by their Azure AD user object ID - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/userId eq '73761f06-2ac9-469c-9f10-279a8cc267f9')" -``` -This example shows how to use the Get-MgBetaGroupTeamMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Find members of a team by their names or email - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/displayName eq 'Harry Johnson' or microsoft.graph.aadUserConversationMember/email eq 'admin@M365x987948.OnMicrosoft.com')" -``` -This example shows how to use the Get-MgBetaGroupTeamMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) +} + +Update-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannel.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannel.md index b6c8f31b333..d0f60d1cd09 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannel.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannel.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamPrimaryChannel -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannel Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamPrimaryChannel -TeamId $teamId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelFileFolder.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelFileFolder.md index 0817da81d90..9ac5e55ca0d 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelFileFolder.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelFileFolder.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelFileFolder Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelFileFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelFileFolderContent.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelFileFolderContent.md index 74735db9747..1226878b1b5 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelFileFolderContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelFileFolderContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelFileFolderContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMember.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMember.md index aed2c12379f..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMember.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Get-MgBetaGroupTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessage.md index 65ad0b47113..7766c076818 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessage.md @@ -1,22 +1,434 @@ -### Example 1: Code snippet +### Example 1: Update policyViolation property using application permissions -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMessage Cmdlet. +$params = @{ + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( + "Credit Card Number" + ) + } + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions -### Example 2: Code snippet +```powershell Import-Module Microsoft.Graph.Beta.Teams -```powershell -Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "text" + content = "Edit text only" + } + attachments = @( + ) + mentions = @( + ) + reactions = @( + ) +} -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMessage Cmdlet. +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" + } + attachments = @( + ) + mentions = @( + @{ + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + } + @{ + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" + } + device = $null + conversation = $null + user = $null + } + } + ) + reactions = @( + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Update the content with attachments of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Update the reactions in a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + @{ + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md index ce2b277c0e3..591bb28f564 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md @@ -1,33 +1,9 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageReply.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageReply.md index 1fcbc25c847..2cd31f56646 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageReply.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageReply.md @@ -1,11 +1,27 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMessageReply Cmdlet. +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md index cf6303f29a1..946e3890f27 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,33 +1,9 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md index 1e6d2471f36..175ce32dbff 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaGroupTeamPrimaryChannelSharedWithTeam Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamPrimaryChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamSchedule.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamSchedule.md index 7ddc171d4da..bcf8de704a5 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamSchedule.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamSchedule.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamSchedule -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamSchedule Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamSchedule -TeamId $teamId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamSchedule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOfferShiftRequest.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOfferShiftRequest.md index 86ee589d853..e6e0d445058 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOfferShiftRequest.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOfferShiftRequest.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamScheduleOfferShiftRequest -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamScheduleOfferShiftRequest Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamScheduleOfferShiftRequest -TeamId $teamId -OfferShiftRequestId $offerShiftRequestId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamScheduleOfferShiftRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShift.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShift.md index 1e2480c5125..2f549ba1bfc 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShift.md @@ -1,11 +1,31 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleOpenShift -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamScheduleOpenShift Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedOpenShift = @{ + notes = "Inventory Management" + openSlotCount = 5 + displayName = "Field shift" + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") + theme = "white" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") + code = "" + displayName = "Lunch" + } + ) + } + draftOpenShift = $null +} +Update-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamScheduleOpenShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md index b6c49494fd3..cc5eba01fc2 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamScheduleOpenShiftChangeRequest -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamScheduleOpenShiftChangeRequest Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamScheduleOpenShiftChangeRequest -TeamId $teamId -OpenShiftChangeRequestId $openShiftChangeRequestId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamScheduleOpenShiftChangeRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleSchedulingGroup.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleSchedulingGroup.md index 22aec5aba49..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleSchedulingGroup.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleSchedulingGroup.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamScheduleSchedulingGroup -TeamId $teamId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaGroupTeamScheduleSchedulingGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Get-MgBetaGroupTeamScheduleShift.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleShift.md index 3f5260dfdb0..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleShift.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleShift.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamScheduleShift -TeamId $teamId -Filter "sharedShift/startDateTime ge 2019-03-11T00:00:00.000Z and sharedShift/endDateTime le 2019-03-18T00:00:00.000Z and draftShift/startDateTime ge 2019-03-11T00:00:00.000Z and draftShift/endDateTime le 2019-03-18T00:00:00.000Z" +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaGroupTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Get-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md index 6939fdf8149..73bdafeb25d 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamScheduleSwapShiftChangeRequest -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamScheduleSwapShiftChangeRequest Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamScheduleSwapShiftChangeRequest -TeamId $teamId -SwapShiftsChangeRequestId $swapShiftsChangeRequestId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamScheduleSwapShiftChangeRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOff.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOff.md index c9aeda9ebdc..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOff.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOff.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamScheduleTimeOff -TeamId $teamId -Filter "sharedTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and sharedTimeOff/endDateTime le 2019-03-18T00:00:00.000Z and draftTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and draftTimeOff/endDateTime le 2019-03-18T00:00:00.000Z" +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaGroupTeamScheduleTimeOff Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Get-MgBetaGroupTeamScheduleTimeOffReason.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOffReason.md index 5fd0037d0cc..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOffReason.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOffReason.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamScheduleTimeOffReason -TeamId $teamId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaGroupTeamScheduleTimeOffReason Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Get-MgBetaGroupTeamScheduleTimeOffRequest.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOffRequest.md index e96f15a5070..e9f8c955d93 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOffRequest.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamScheduleTimeOffRequest.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamScheduleTimeOffRequest Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamScheduleTimeOffRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamTag.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamTag.md index d562fe41bbf..2432c414ed0 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamTag.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamTag.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamTag -TeamId $teamId -``` -This example shows how to use the Get-MgBetaGroupTeamTag Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "Finance" +} +Update-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaGroupTeamTag Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamTagMember.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamTagMember.md index 8a0d8db73bc..76366954784 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamTagMember.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamTagMember.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -``` -This example shows how to use the Get-MgBetaGroupTeamTagMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId +``` +This example shows how to use the Get-MgBetaBetaGroupTeamTagMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeam.md b/src/Teams/beta/examples/Get-MgBetaTeam.md index 61fd87af162..7b5b2e2dda3 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeam.md +++ b/src/Teams/beta/examples/Get-MgBetaTeam.md @@ -1,35 +1,23 @@ -### Example 1: Using the Get-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeam -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeam -Filter "displayName eq 'A Contoso Team'" -Property "id,description" -``` -This example shows how to use the Get-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeam -Filter "startswith(displayName, 'A')" -Top 2 -``` -This example shows how to use the Get-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeam -``` -This example shows how to use the Get-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeam -Filter "displayName eq 'A Contoso Team'" -Property "id,description" -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + memberSettings = @{ + allowCreateUpdateChannels = $true + } + messagingSettings = @{ + allowUserEditMessages = $true + allowUserDeleteMessages = $true + } + funSettings = @{ + allowGiphy = $true + giphyContentRating = "strict" + } +} + +Update-MgBetaTeam -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamChannelFileFolder.md b/src/Teams/beta/examples/Get-MgBetaTeamChannelFileFolder.md index e4e5c68ab10..86db50ba3b9 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamChannelFileFolder.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamChannelFileFolder.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamChannelFileFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaTeamChannelFileFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Get-MgBetaBetaTeamChannelFileFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamChannelFileFolderContent.md b/src/Teams/beta/examples/Get-MgBetaTeamChannelFileFolderContent.md index 21aa4eda3c6..faa47097d2d 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamChannelFileFolderContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaTeamChannelFileFolderContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Get-MgBetaBetaTeamChannelFileFolderContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamChannelMember.md b/src/Teams/beta/examples/Get-MgBetaTeamChannelMember.md index af03d0c803b..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamChannelMember.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamChannelMember.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaTeamChannelMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamChannelMember Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessage.md b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessage.md index d468754ee2c..7327c6bffe5 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessage.md @@ -1,14 +1,434 @@ -### Example 1: Using the Get-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 -``` -This example shows how to use the Get-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update policyViolation property using application permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( + "Credit Card Number" + ) + } + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" + } +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "text" + content = "Edit text only" + } + attachments = @( + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" + } + attachments = @( + ) + mentions = @( + @{ + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + } + @{ + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" + } + device = $null + conversation = $null + user = $null + } + } + ) + reactions = @( + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Update the content with attachments of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Update the reactions in a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + @{ + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageHostedContent.md index 9bc31c8b0f1..487caf836d2 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageHostedContent.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamChannelMessageHostedContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaTeamChannelMessageHostedContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageReply.md b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageReply.md index 242f873090a..a5426f4dfa5 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageReply.md @@ -1,7 +1,27 @@ -### Example 1: Using the Get-MgBetaTeamChannelMessageReply Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaTeamChannelMessageReply Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a message in a chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageReplyHostedContent.md index 278c2c24998..203c6b11236 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamChannelMessageReplyHostedContent.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamChannelMessageReplyHostedContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaTeamChannelMessageReplyHostedContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaTeamChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/Get-MgBetaTeamChannelSharedWithTeam.md index 7b7ab113271..c5696dc3912 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamChannelSharedWithTeam.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamChannelSharedWithTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId -``` -This example shows how to use the Get-MgBetaTeamChannelSharedWithTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamChannelSharedWithTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaTeamChannelSharedWithTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId +``` +This example shows how to use the Get-MgBetaBetaTeamChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamIncomingChannel.md b/src/Teams/beta/examples/Get-MgBetaTeamIncomingChannel.md index 88ec15ce62d..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamIncomingChannel.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamIncomingChannel.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgBetaTeamIncomingChannel Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamIncomingChannel -TeamId $teamId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamIncomingChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Get-MgBetaTeamInstalledApp.md b/src/Teams/beta/examples/Get-MgBetaTeamInstalledApp.md index 44a7210dfc1..ff0e2963a2e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamInstalledApp.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamInstalledApp.md @@ -1,35 +1,18 @@ -### Example 1: Using the Get-MgBetaTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" -``` -This example shows how to use the Get-MgBetaTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -``` -This example shows how to use the Get-MgBetaTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgBetaTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamInstalledApp -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsAppDefinition(`$expand=bot)" -``` -This example shows how to use the Get-MgBetaTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get the installed app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Get-MgBetaBetaTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the names and other details of the installed app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" +``` +This example shows how to use the Get-MgBetaBetaTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamMember.md b/src/Teams/beta/examples/Get-MgBetaTeamMember.md index 4cee4c6c0b2..d4cbce01581 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamMember.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamMember.md @@ -1,35 +1,16 @@ -### Example 1: Using the Get-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamMember -TeamId $teamId -Filter "roles/any(r:r eq 'owner')" -``` -This example shows how to use the Get-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/userId eq '73761f06-2ac9-469c-9f10-279a8cc267f9')" -``` -This example shows how to use the Get-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/displayName eq 'Harry Johnson' or microsoft.graph.aadUserConversationMember/email eq 'admin@M365x987948.OnMicrosoft.com')" -``` -This example shows how to use the Get-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamMember -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -``` -This example shows how to use the Get-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) +} + +Update-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannel.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannel.md index 7539d254c23..b982823776e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannel.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannel.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamPrimaryChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamPrimaryChannel -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamPrimaryChannel -TeamId $teamId +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelFileFolder.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelFileFolder.md index 97d5c767ecd..fd143662c4a 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelFileFolder.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelFileFolder.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelFileFolder Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelFileFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelFileFolderContent.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelFileFolderContent.md index 912831e7e58..fb147bd5b99 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelFileFolderContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelFileFolderContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelFileFolderContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMember.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMember.md index 0eea9640cc2..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMember.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/Get-MgBetaTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessage.md index e3c68cca99b..736b1f38f9d 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessage.md @@ -1,22 +1,434 @@ -### Example 1: Code snippet +### Example 1: Update policyViolation property using application permissions -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMessage Cmdlet. +$params = @{ + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( + "Credit Card Number" + ) + } + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions -### Example 2: Code snippet +```powershell Import-Module Microsoft.Graph.Beta.Teams -```powershell -Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "text" + content = "Edit text only" + } + attachments = @( + ) + mentions = @( + ) + reactions = @( + ) +} -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMessage Cmdlet. +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" + } + attachments = @( + ) + mentions = @( + @{ + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + } + @{ + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" + } + device = $null + conversation = $null + user = $null + } + } + ) + reactions = @( + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Update the content with attachments of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Update the reactions in a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + @{ + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + ) +} + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageHostedContent.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageHostedContent.md index 7c7bc2fa17b..e6c81842839 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageHostedContent.md @@ -1,33 +1,9 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageReply.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageReply.md index a8a76884e1a..c9b09e8a6a8 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageReply.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageReply.md @@ -1,11 +1,27 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMessageReply Cmdlet. +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md index 5804ffccd78..7897a35b815 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,33 +1,9 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelSharedWithTeam.md b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelSharedWithTeam.md index d166113965d..26e15f798ed 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamPrimaryChannelSharedWithTeam.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgBetaTeamPrimaryChannelSharedWithTeam Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId +``` +This example shows how to use the Get-MgBetaBetaTeamPrimaryChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamSchedule.md b/src/Teams/beta/examples/Get-MgBetaTeamSchedule.md index c6aca86eda0..4b9f55b306e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamSchedule.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamSchedule.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamSchedule Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamSchedule -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamSchedule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamSchedule -TeamId $teamId +``` +This example shows how to use the Get-MgBetaBetaTeamSchedule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleOfferShiftRequest.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleOfferShiftRequest.md index 009ed8e22aa..7adfaeff433 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleOfferShiftRequest.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleOfferShiftRequest.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamScheduleOfferShiftRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleOfferShiftRequest -TeamId $teamId -OfferShiftRequestId $offerShiftRequestId -``` -This example shows how to use the Get-MgBetaTeamScheduleOfferShiftRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamScheduleOfferShiftRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleOfferShiftRequest -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamScheduleOfferShiftRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamScheduleOfferShiftRequest -TeamId $teamId -OfferShiftRequestId $offerShiftRequestId +``` +This example shows how to use the Get-MgBetaBetaTeamScheduleOfferShiftRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShift.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShift.md index f6ea3a27075..c4b8a25aa0f 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShift.md @@ -1,14 +1,31 @@ -### Example 1: Using the Get-MgBetaTeamScheduleOpenShift Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -``` -This example shows how to use the Get-MgBetaTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamScheduleOpenShift Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleOpenShift -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedOpenShift = @{ + notes = "Inventory Management" + openSlotCount = 5 + displayName = "Field shift" + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") + theme = "white" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") + code = "" + displayName = "Lunch" + } + ) + } + draftOpenShift = $null +} + +Update-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamScheduleOpenShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShiftChangeRequest.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShiftChangeRequest.md index 9c228344454..952994b4fe0 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleOpenShiftChangeRequest.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamScheduleOpenShiftChangeRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleOpenShiftChangeRequest -TeamId $teamId -OpenShiftChangeRequestId $openShiftChangeRequestId -``` -This example shows how to use the Get-MgBetaTeamScheduleOpenShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamScheduleOpenShiftChangeRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleOpenShiftChangeRequest -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamScheduleOpenShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamScheduleOpenShiftChangeRequest -TeamId $teamId -OpenShiftChangeRequestId $openShiftChangeRequestId +``` +This example shows how to use the Get-MgBetaBetaTeamScheduleOpenShiftChangeRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleSchedulingGroup.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleSchedulingGroup.md index 3f2a354b036..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleSchedulingGroup.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleSchedulingGroup.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaTeamScheduleSchedulingGroup Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleSchedulingGroup -TeamId $teamId -SchedulingGroupId $schedulingGroupId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamScheduleSchedulingGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamScheduleSchedulingGroup Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleSchedulingGroup -TeamId $teamId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamScheduleSchedulingGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleShift.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleShift.md index 377b0897ee7..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleShift.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleShift.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaTeamScheduleShift Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleShift -TeamId $teamId -Filter "sharedShift/startDateTime ge 2019-03-11T00:00:00.000Z and sharedShift/endDateTime le 2019-03-18T00:00:00.000Z and draftShift/startDateTime ge 2019-03-11T00:00:00.000Z and draftShift/endDateTime le 2019-03-18T00:00:00.000Z" + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamScheduleShift Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleShift -TeamId $teamId -ShiftId $shiftId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleSwapShiftChangeRequest.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleSwapShiftChangeRequest.md index a4f00a14ac4..0da8fdf2564 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleSwapShiftChangeRequest.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamScheduleSwapShiftChangeRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleSwapShiftChangeRequest -TeamId $teamId -SwapShiftsChangeRequestId $swapShiftsChangeRequestId -``` -This example shows how to use the Get-MgBetaTeamScheduleSwapShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamScheduleSwapShiftChangeRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleSwapShiftChangeRequest -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamScheduleSwapShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamScheduleSwapShiftChangeRequest -TeamId $teamId -SwapShiftsChangeRequestId $swapShiftsChangeRequestId +``` +This example shows how to use the Get-MgBetaBetaTeamScheduleSwapShiftChangeRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOff.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOff.md index c498f120d33..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOff.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOff.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaTeamScheduleTimeOff Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleTimeOff -TeamId $teamId -Filter "sharedTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and sharedTimeOff/endDateTime le 2019-03-18T00:00:00.000Z and draftTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and draftTimeOff/endDateTime le 2019-03-18T00:00:00.000Z" + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamScheduleTimeOff Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamScheduleTimeOff Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleTimeOff -TeamId $teamId -TimeOffId $timeOffId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamScheduleTimeOff Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOffReason.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOffReason.md index d871aeefbe1..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOffReason.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOffReason.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgBetaTeamScheduleTimeOffReason Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleTimeOffReason -TeamId $teamId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamScheduleTimeOffReason Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamScheduleTimeOffReason Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleTimeOffReason -TeamId $teamId -TimeOffReasonId $timeOffReasonId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaTeamScheduleTimeOffReason Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOffRequest.md b/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOffRequest.md index f06bbe1e151..2d6366db0cf 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOffRequest.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamScheduleTimeOffRequest.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamScheduleTimeOffRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId -``` -This example shows how to use the Get-MgBetaTeamScheduleTimeOffRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamScheduleTimeOffRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamScheduleTimeOffRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId +``` +This example shows how to use the Get-MgBetaBetaTeamScheduleTimeOffRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamTag.md b/src/Teams/beta/examples/Get-MgBetaTeamTag.md index 25dc96b9943..541a9c53c05 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamTag.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamTag.md @@ -1,14 +1,13 @@ -### Example 1: Using the Get-MgBetaTeamTag Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -``` -This example shows how to use the Get-MgBetaTeamTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamTag Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamTag -TeamId $teamId -``` -This example shows how to use the Get-MgBetaTeamTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + displayName = "Finance" +} + +Update-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamTag Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamTagMember.md b/src/Teams/beta/examples/Get-MgBetaTeamTagMember.md index 2644fa0988b..147227c47f9 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamTagMember.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamTagMember.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgBetaTeamTagMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId -``` -This example shows how to use the Get-MgBetaTeamTagMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamTagMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -``` -This example shows how to use the Get-MgBetaTeamTagMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId +``` +This example shows how to use the Get-MgBetaBetaTeamTagMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelFileFolder.md b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelFileFolder.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelFileFolder.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelFileFolder.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelFileFolderContent.md b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelFileFolderContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelFileFolderContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessage.md b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageReply.md b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Get-MgBetaTeamworkWorkforceIntegration.md b/src/Teams/beta/examples/Get-MgBetaTeamworkWorkforceIntegration.md index 8931b23f97a..f47fe02dee8 100644 --- a/src/Teams/beta/examples/Get-MgBetaTeamworkWorkforceIntegration.md +++ b/src/Teams/beta/examples/Get-MgBetaTeamworkWorkforceIntegration.md @@ -1,14 +1,21 @@ -### Example 1: Using the Get-MgBetaTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -``` -This example shows how to use the Get-MgBetaTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamworkWorkforceIntegration -``` -This example shows how to use the Get-MgBetaTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + displayName = "displayName-value" + apiVersion = 99 + encryption = @{ + protocol = "protocol-value" + secret = "secret-value" + } + isActive = $true + url = "url-value" + supportedEntities = "supportedEntities-value" +} + +Update-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaTeamworkWorkforceIntegration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserChat.md b/src/Teams/beta/examples/Get-MgBetaUserChat.md index c8d4f22da79..fa050c4c68d 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChat.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChat.md @@ -1,28 +1,45 @@ -### Example 1: Using the Get-MgBetaUserChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserChat -UserId $userId -ChatId $chatId -``` -This example shows how to use the Get-MgBetaUserChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserChat -UserId $userId -ExpandProperty "members" -Filter "members/any(o: o/displayname eq 'Peter Parker')" -``` -This example shows how to use the Get-MgBetaUserChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaUserChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserChat -UserId $userId -ExpandProperty "members" -``` -This example shows how to use the Get-MgBetaUserChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaUserChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserChat -UserId $userId -``` -This example shows how to use the Get-MgBetaUserChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a group chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId +``` +This example shows how to use the Get-MgBetaBetaUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a user's one on one chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaUserChat -UserId $userId -ChatId $chatId +``` +This example shows how to use the Get-MgBetaBetaUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get a chat and all its members + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId -ExpandProperty "members" +``` +This example shows how to use the Get-MgBetaBetaUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Get the meeting details of a chat associated with a Microsoft Teams meeting + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId +``` +This example shows how to use the Get-MgBetaBetaUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get the chat along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChat -ChatId $chatId -ExpandProperty "lastMessagePreview" +``` +This example shows how to use the Get-MgBetaBetaUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserChatInstalledApp.md b/src/Teams/beta/examples/Get-MgBetaUserChatInstalledApp.md index a81e618b6fc..5e74b8de9ad 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChatInstalledApp.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChatInstalledApp.md @@ -1,33 +1,9 @@ -### Example 1: Get all the apps installed in the specified chat +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatInstalledApp -ChatId $chatId -``` -This example shows how to use the Get-MgBetaUserChatInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get the names and other details of apps installed in the specified chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatInstalledApp -ChatId $chatId -ExpandProperty "teamsAppDefinition(`$expand=bot)" -``` -This example shows how to use the Get-MgBetaUserChatInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the app installation resource based on the manifest id of the associated app - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatInstalledApp -ChatId $chatId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgBetaUserChatInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Get-MgBetaBetaUserChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserChatMember.md b/src/Teams/beta/examples/Get-MgBetaUserChatMember.md index 43c089aa1a7..f6c6949389e 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChatMember.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChatMember.md @@ -1,8 +1,17 @@ -### Example 1: Using the Get-MgBetaUserChatMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -# A UPN can also be used as -UserId. -Get-MgBetaUserChatMember -UserId $userId -ChatId $chatId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgBetaUserChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Get-MgBetaUserChatMessage.md b/src/Teams/beta/examples/Get-MgBetaUserChatMessage.md index 1e8be591fe1..5c4570366e5 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChatMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChatMessage.md @@ -1,33 +1,27 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatMessage -ChatId $chatId -Top 2 -``` -This example shows how to use the Get-MgBetaUserChatMessage Cmdlet. +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: Code snippet +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessage -ChatId $chatId -Top 2 -Sort "createdDateTime desc" -``` -This example shows how to use the Get-MgBetaUserChatMessage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Code snippet - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessage -ChatId $chatId -Top 2 -Sort "lastModifiedDateTime desc" -Filter "lastModifiedDateTime ge 2022-09-22T00:00:00.000Z and lastModifiedDateTime le 2022-09-24T00:00:00.000Z" -``` -This example shows how to use the Get-MgBetaUserChatMessage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserChatMessageHostedContent.md b/src/Teams/beta/examples/Get-MgBetaUserChatMessageHostedContent.md index 43d4f9f73c8..aab484af586 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChatMessageHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChatMessageHostedContent.md @@ -1,33 +1,9 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaUserChatMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaUserChatMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaUserChatMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaUserChatMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserChatMessageReply.md b/src/Teams/beta/examples/Get-MgBetaUserChatMessageReply.md index 2f3e542af73..22d3f3ee637 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChatMessageReply.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChatMessageReply.md @@ -1,11 +1,27 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaUserChatMessageReply Cmdlet. +Get-MgBetaChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaUserChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgBetaBetaUserChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgBetaBetaUserChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserChatMessageReplyHostedContent.md b/src/Teams/beta/examples/Get-MgBetaUserChatMessageReplyHostedContent.md index bf9eb681193..6b5da268478 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChatMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChatMessageReplyHostedContent.md @@ -1,33 +1,9 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaUserChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgBetaUserChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgBetaUserChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgBetaBetaUserChatMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserChatPinnedMessage.md b/src/Teams/beta/examples/Get-MgBetaUserChatPinnedMessage.md index 86d75f01997..0b076375201 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChatPinnedMessage.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChatPinnedMessage.md @@ -1,22 +1,9 @@ -### Example 1: List all the pinned messages in a chat +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatPinnedMessage -ChatId $chatId -``` -This example shows how to use the Get-MgBetaUserChatPinnedMessage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the pinned messages in a chat along with the associated chat message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatPinnedMessage -ChatId $chatId -ExpandProperty "message" -``` -This example shows how to use the Get-MgBetaUserChatPinnedMessage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Remove-MgBetaChatPinnedMessage -ChatId $chatId -PinnedChatMessageInfoId $pinnedChatMessageInfoId +``` +This example shows how to use the Get-MgBetaBetaUserChatPinnedMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserChatTab.md b/src/Teams/beta/examples/Get-MgBetaUserChatTab.md index 389b739c072..28e3638053f 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserChatTab.md +++ b/src/Teams/beta/examples/Get-MgBetaUserChatTab.md @@ -1,22 +1,13 @@ -### Example 1: List all the tabs in the chat along with associated Teams app +### Example 1: Update the name of a tab in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatTab -ChatId $chatId -ExpandProperty "teamsApp" -``` -This example shows how to use the Get-MgBetaUserChatTab Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the tabs belonging to a specific app in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatTab -ChatId $chatId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.web'" -``` -This example shows how to use the Get-MgBetaUserChatTab Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "My Contoso Tab - updated again" +} +Update-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserTeamworkInstalledApp.md b/src/Teams/beta/examples/Get-MgBetaUserTeamworkInstalledApp.md index 7b2492732d4..73f6e26e92c 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserTeamworkInstalledApp.md +++ b/src/Teams/beta/examples/Get-MgBetaUserTeamworkInstalledApp.md @@ -1,35 +1,9 @@ -### Example 1: Using the Get-MgBetaUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId -``` -This example shows how to use the Get-MgBetaUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserTeamworkInstalledApp -UserId $userId -``` -This example shows how to use the Get-MgBetaUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId -ExpandProperty "teamsAppDefinition" -``` -This example shows how to use the Get-MgBetaUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgBetaUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserTeamworkInstalledApp -UserId $userId -ExpandProperty "teamsAppDefinition(`$expand=bot)" -``` -This example shows how to use the Get-MgBetaUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgBetaUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserTeamworkInstalledApp -UserId $userId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgBetaUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId +``` +This example shows how to use the Get-MgBetaBetaUserTeamworkInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaUserTeamworkInstalledAppChat.md b/src/Teams/beta/examples/Get-MgBetaUserTeamworkInstalledAppChat.md index 1108cceea1d..1c8ef4c5923 100644 --- a/src/Teams/beta/examples/Get-MgBetaUserTeamworkInstalledAppChat.md +++ b/src/Teams/beta/examples/Get-MgBetaUserTeamworkInstalledAppChat.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaUserTeamworkInstalledAppChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserTeamworkInstalledAppChat -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId -``` -This example shows how to use the Get-MgBetaUserTeamworkInstalledAppChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaUserTeamworkInstalledAppChat -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId +``` +This example shows how to use the Get-MgBetaBetaUserTeamworkInstalledAppChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaAppCatalogTeamApp.md b/src/Teams/beta/examples/New-MgBetaAppCatalogTeamApp.md index 3a3406abec6..519348fb0b8 100644 --- a/src/Teams/beta/examples/New-MgBetaAppCatalogTeamApp.md +++ b/src/Teams/beta/examples/New-MgBetaAppCatalogTeamApp.md @@ -1,7 +1,9 @@ -### Example 1: Using the New-MgBetaAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -New-MgBetaAppCatalogTeamApp -Requiresreview true -``` -This example shows how to use the New-MgBetaAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaAppCatalogTeamApp -Requiresreview true +``` +This example shows how to use the New-MgBetaBetaAppCatalogTeamApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaChat.md b/src/Teams/beta/examples/New-MgBetaChat.md index 638c78b0294..c192a661e08 100644 --- a/src/Teams/beta/examples/New-MgBetaChat.md +++ b/src/Teams/beta/examples/New-MgBetaChat.md @@ -1,212 +1,162 @@ -### Example 1: Using the New-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Create a one-on-one chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - ChatType = "group" - Topic = "Group chat title" - Members = @( + chatType = "oneOnOne" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" - } - @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('3626a173-f2bc-4883-bcf7-01514c3bfb82')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" } ) } -New-MgBetaChat -BodyParameter $params -``` -This example shows how to use the New-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaChat -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create a group chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - ChatType = "group" - Topic = "Group chat title" - Members = @( - @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" - } + chatType = "group" + topic = "Group chat title" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "guest" - ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" - } - ) -} -New-MgBetaChat -BodyParameter $params -``` -This example shows how to use the New-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - ChatType = "group" - Topic = "Group chat title" - Members = @( - @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" - } - @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "guest" - ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('3626a173-f2bc-4883-bcf7-01514c3bfb82')" } ) } -New-MgBetaChat -BodyParameter $params -``` -This example shows how to use the New-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaChat -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create a one-on-one chat using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - ChatType = "oneOnOne" - Members = @( + chatType = "oneOnOne" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + "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('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" - TenantId = "4dc1fe35-8ac6-4f0d-904a-7ebcd364bea1" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" } ) } -New-MgBetaChat -BodyParameter $params -``` -This example shows how to use the New-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaChat -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create a group chat with tenant guest user + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - ChatType = "oneOnOne" - Members = @( - @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" - } + chatType = "group" + topic = "Group chat title" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" } - ) -} -New-MgBetaChat -BodyParameter $params -``` -This example shows how to use the New-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - ChatType = "oneOnOne" - Members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" + roles = @( + "guest" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('alex@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" } ) } -New-MgBetaChat -BodyParameter $params -``` -This example shows how to use the New-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the New-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaChat -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create a one-on-one chat with a federated user (outside of own organization) + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - ChatType = "oneOnOne" - Members = @( + chatType = "oneOnOne" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" - } - ) - InstalledApps = @( - @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/05F59CEC-A742-4A50-A62E-202A57E478A4" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" + tenantId = "4dc1fe35-8ac6-4f0d-904a-7ebcd364bea1" } ) } -New-MgBetaChat -BodyParameter $params -``` -This example shows how to use the New-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaChat -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaChatInstalledApp.md b/src/Teams/beta/examples/New-MgBetaChatInstalledApp.md index 8483e3cdad5..30733ee4dc4 100644 --- a/src/Teams/beta/examples/New-MgBetaChatInstalledApp.md +++ b/src/Teams/beta/examples/New-MgBetaChatInstalledApp.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" } -New-MgBetaChatInstalledApp -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgBetaChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaChatInstalledApp -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaChatMember.md b/src/Teams/beta/examples/New-MgBetaChatMember.md index c441fda12f7..528200d0042 100644 --- a/src/Teams/beta/examples/New-MgBetaChatMember.md +++ b/src/Teams/beta/examples/New-MgBetaChatMember.md @@ -1,59 +1,71 @@ -### Example 1: Using the New-MgBetaChatMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Add a single member to a chat and specify the timespan for the conversation history + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/beta/users/jacob@contoso.com" - VisibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + roles = @( "owner" ) } -New-MgBetaChatMember -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgBetaChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaChatMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Adding a single member to a Microsoft Teams chat, sharing no chat history + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" - VisibleHistoryStartDateTime = [System.DateTime]::Parse("0001-01-01T00:00:00Z") - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + roles = @( "owner" ) } -New-MgBetaChatMember -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgBetaChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaChatMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Adding a single member to a Microsoft Teams chat, sharing the whole history of the chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + visibleHistoryStartDateTime = [System.DateTime]::Parse("0001-01-01T00:00:00Z") + roles = @( "owner" ) } -New-MgBetaChatMember -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgBetaChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaChatMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a single member to a chat using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/beta/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" - VisibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/jacob@contoso.com" + visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + roles = @( "owner" ) } -New-MgBetaChatMember -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgBetaChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaChatMessage.md b/src/Teams/beta/examples/New-MgBetaChatMessage.md index e290578ee08..5e5e063a250 100644 --- a/src/Teams/beta/examples/New-MgBetaChatMessage.md +++ b/src/Teams/beta/examples/New-MgBetaChatMessage.md @@ -1,36 +1,412 @@ -### Example 1: Using the New-MgBetaChatMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Send a Hello World message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "
-
-
-
-
" + body = @{ + content = "Hello World" } - HostedContents = @( +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Send a message with file attachment in it + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddC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z01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0UXKiVlNMf90YV5jDwopyYo2BuiQUQdNDaciuswiEatl6vknRiElWdHGAB0y6qBejrH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G3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Enc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vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( @{ "@microsoft.graph.temporaryId" = "1" - ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguap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7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") - ContentType = "image/png" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" } ) } -New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgBetaChatMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaChatMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Body = @{ - Content = "Hello world" + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" } } -New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgBetaChatMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaChatMessageHostedContent.md b/src/Teams/beta/examples/New-MgBetaChatMessageHostedContent.md index e8f4d4c7468..fc3337d1ee9 100644 --- a/src/Teams/beta/examples/New-MgBetaChatMessageHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaChatMessageHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaChatMessageHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaChatMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaChatMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaChatMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaChatMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaChatMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaChatMessageReply.md b/src/Teams/beta/examples/New-MgBetaChatMessageReply.md index 440f5f432ee..03e4512bee7 100644 --- a/src/Teams/beta/examples/New-MgBetaChatMessageReply.md +++ b/src/Teams/beta/examples/New-MgBetaChatMessageReply.md @@ -1,11 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaChatMessageReply Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} +New-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaChatMessageReplyHostedContent.md b/src/Teams/beta/examples/New-MgBetaChatMessageReplyHostedContent.md index 32d58cb5b4f..2cd0a23764c 100644 --- a/src/Teams/beta/examples/New-MgBetaChatMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaChatMessageReplyHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaChatMessageReplyHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaChatMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaChatMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaChatMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaChatPinnedMessage.md b/src/Teams/beta/examples/New-MgBetaChatPinnedMessage.md index c433efaf711..c7b458ddbf3 100644 --- a/src/Teams/beta/examples/New-MgBetaChatPinnedMessage.md +++ b/src/Teams/beta/examples/New-MgBetaChatPinnedMessage.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaChatPinnedMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "Message@odata.bind" = "https://graph.microsoft.com/beta/chats/19:2da4c29f6d7041eca70b638b43d45437@thread.v2/messages/1616964509832" + "message@odata.bind" = "https://graph.microsoft.com/v1.0/chats/19:2da4c29f6d7041eca70b638b43d45437@thread.v2/messages/1616964509832" } -New-MgBetaChatPinnedMessage -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgBetaChatPinnedMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaChatPinnedMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatPinnedMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaChatTab.md b/src/Teams/beta/examples/New-MgBetaChatTab.md index de40fa69cd9..9ee2806e745 100644 --- a/src/Teams/beta/examples/New-MgBetaChatTab.md +++ b/src/Teams/beta/examples/New-MgBetaChatTab.md @@ -1,17 +1,20 @@ -### Example 1: Using the New-MgBetaChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "My Contoso Tab" - "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8" - Configuration = @{ - EntityId = "2DCA2E6C7A10415CAF6B8AB6661B3154" - ContentUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView" - WebsiteUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154" - RemoveUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/uninstallTab" + displayName = "My Contoso Tab" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8" + configuration = @{ + entityId = "2DCA2E6C7A10415CAF6B8AB6661B3154" + contentUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView" + websiteUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154" + removeUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/uninstallTab" } } -New-MgBetaChatTab -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgBetaChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaChatTab -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamChannel.md b/src/Teams/beta/examples/New-MgBetaGroupTeamChannel.md index 7b7e7294c70..1727618d577 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamChannel.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamChannel.md @@ -1,33 +1,105 @@ -### Example 1: List all channels +### Example 1: Create a standard channel -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannel -TeamId $teamId -``` -This example shows how to use the New-MgBetaGroupTeamChannel Cmdlet. +$params = @{ + displayName = "Architecture Discussion" + description = "This channel is where we debate all future architecture plans" + membershipType = "standard" +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create private channel on behalf of user -### Example 2: List all private channels +```powershell Import-Module Microsoft.Graph.Beta.Teams -```powershell -Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + "@odata.type" = "#Microsoft.Graph.Beta.channel" + membershipType = "private" + displayName = "My First Private Channel" + description = "This is my first private channels" + members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('62855810-484b-4823-9e01-60667f8b12ae')" + roles = @( + "owner" + ) + } + ) +} -Get-MgBetaTeamChannel -TeamId $teamId -Filter "membershipType eq 'private'" -``` -This example shows how to use the New-MgBetaGroupTeamChannel Cmdlet. +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create a channel in migration mode -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 3: List all shared channels +$params = @{ + "@microsoft.graph.channelCreationMode" = "migration" + displayName = "Import_150958_99z" + description = "Import_150958_99z" + createdDateTime = [System.DateTime]::Parse("2020-03-14T11:22:17.067Z") +} -```powershell -Import-Module Microsoft.Graph.Beta.Teams +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create private channel on behalf of user using user principal name -Get-MgBetaTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'" -``` -This example shows how to use the New-MgBetaGroupTeamChannel Cmdlet. +```powershell Import-Module Microsoft.Graph.Beta.Teams -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "@odata.type" = "#Microsoft.Graph.Beta.channel" + membershipType = "private" + displayName = "My First Private Channel" + description = "This is my first private channels" + members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + roles = @( + "owner" + ) + } + ) +} +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create a shared channel on behalf of a user + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + displayName = "My First Shared Channel" + description = "This is my first shared channel" + membershipType = "shared" + members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('7640023f-fe43-573f-9ff4-84a9efe4acd6')" + roles = @( + "owner" + ) + } + ) +} + +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMember.md b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMember.md index 6f83af50afb..6fb64e21e8a 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMember.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMember.md @@ -1,11 +1,92 @@ -### Example 1: Code snippet +### Example 1: Add a member to a private channel -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the New-MgBetaGroupTeamChannelMember Cmdlet. +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member with the owner role to a private channel +```powershell Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add an owner to a channel using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a user who is part of the same tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Add a user who is part of a different tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" + tenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Add a user who is part of the same or a different tenant as a member to a shared channel using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessage.md b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessage.md index 8cc2ca2251f..29c6d245c15 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessage.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessage.md @@ -1,22 +1,412 @@ -### Example 1: Code snippet +### Example 1: Send a Hello World message in a channel -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 -``` -This example shows how to use the New-MgBetaGroupTeamChannelMessage Cmdlet. +$params = @{ + body = @{ + content = "Hello World" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message -### Example 2: Code snippet +```powershell Import-Module Microsoft.Graph.Beta.Teams -```powershell -Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" -``` -This example shows how to use the New-MgBetaGroupTeamChannelMessage Cmdlet. +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Send a message with file attachment in it + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNA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OfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0UXKiVlNMf90YV5jDwopyYo2BuiQUQdNDaciuswiEatl6vknRiElWdHGAB0y6qBejrHXl+ashh7zT4xCSrKijQE6ZNRBPeEjci1T6MDq1vYayz4UUpIVbQzQIaMO6k3zVC1YrTD/lHsfKaQkK9oYoENGHTQHzVM1YDXC/BOukWQ19KSQkqxoY4AOGXXQnHQnyCWsNri1b475J0YhJVnRxgA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/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlA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140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } +} + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageHostedContent.md index c51fec73350..ad267d6fb91 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamChannelMessageHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaGroupTeamChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageReply.md b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageReply.md index 28cd25f0228..0c07908d538 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageReply.md @@ -1,11 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamChannelMessageReply Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} +New-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageReplyHostedContent.md index 872b4e15bf9..efc704d7688 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelMessageReplyHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelSharedWithTeam.md index c750b0c81f3..3831cb017cc 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelSharedWithTeam.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the New-MgBetaGroupTeamChannelSharedWithTeam Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelTab.md b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelTab.md index b092f2d530f..010fb185ad6 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamChannelTab.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamChannelTab.md @@ -1,22 +1,18 @@ -### Example 1: List all the tabs in the channel along with associated Teams app +### Example 1: List all the tabs in the channel along with associated Teams app -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -``` -This example shows how to use the New-MgBetaGroupTeamChannelTab Cmdlet. +Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List all the tabs belonging to a specific app in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the tabs belonging to a specific app in a channel - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" -``` -This example shows how to use the New-MgBetaGroupTeamChannelTab Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" +``` +This example shows how to use the New-MgBetaBetaGroupTeamChannelTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamInstalledApp.md b/src/Teams/beta/examples/New-MgBetaGroupTeamInstalledApp.md index 5bbab781d0c..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamInstalledApp.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamInstalledApp.md @@ -1,33 +1,17 @@ -### Example 1: List installed apps - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamInstalledApp -TeamId $teamId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaGroupTeamInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Get the names and other details of installed apps +{{ Add description here }} +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsAppDefinition" +{{ Add output here }} ``` -This example shows how to use the New-MgBetaGroupTeamInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the app installation resource based on the manifest ID of the associated app - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the New-MgBetaGroupTeamInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ Add description here }} diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamMember.md b/src/Teams/beta/examples/New-MgBetaGroupTeamMember.md index d9f6f3452e2..d8bb70e7d63 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamMember.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamMember.md @@ -1,33 +1,34 @@ -### Example 1: Get list of members in team - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamMember -TeamId $teamId -``` -This example shows how to use the New-MgBetaGroupTeamMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Find members of a team by their Azure AD user object ID - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/userId eq '73761f06-2ac9-469c-9f10-279a8cc267f9')" -``` -This example shows how to use the New-MgBetaGroupTeamMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Find members of a team by their names or email - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/displayName eq 'Harry Johnson' or microsoft.graph.aadUserConversationMember/email eq 'admin@M365x987948.OnMicrosoft.com')" -``` -This example shows how to use the New-MgBetaGroupTeamMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Add a member to a team + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} + +New-MgBetaTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} + +New-MgBetaTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMember.md b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMember.md index ab31948e16b..1f82965063d 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMember.md @@ -1,11 +1,92 @@ -### Example 1: Code snippet +### Example 1: Add a member to a private channel -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMember Cmdlet. +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member with the owner role to a private channel +```powershell Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add an owner to a channel using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a user who is part of the same tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Add a user who is part of a different tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" + tenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Add a user who is part of the same or a different tenant as a member to a shared channel using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessage.md index b9b55a5659f..e3c2d317ceb 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessage.md @@ -1,22 +1,412 @@ -### Example 1: Code snippet +### Example 1: Send a Hello World message in a channel -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMessage Cmdlet. +$params = @{ + body = @{ + content = "Hello World" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message -### Example 2: Code snippet +```powershell Import-Module Microsoft.Graph.Beta.Teams -```powershell -Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMessage Cmdlet. +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Send a message with file attachment in it + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRS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hNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0UXKiVlNMf90YV5jDwopyYo2BuiQUQdNDaciuswiEatl6vknRiElWdHGAB0y6qBejrHXl+ashh7zT4xCSrKijQE6ZNRBPeEjci1T6MDq1vYayz4UUpIVbQzQIaMO6k3zVC1YrTD/lHsfKaQkK9oYoENGHTQHzVM1YDXC/BOukWQ19KSQkqxoY4AOGXXQnHQnyCWsNri1b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hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYd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Ic20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } +} + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md index 14455bd8719..e249157d4b7 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageReply.md b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageReply.md index ba12daf7bdc..d51244085c5 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageReply.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageReply.md @@ -1,11 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMessageReply Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} +New-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md index d491c9b5bc5..382fbe3e396 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md index d612096ebc5..68308f69275 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelSharedWithTeam Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelTab.md b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelTab.md index 982a5268d7f..640731c6b8d 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelTab.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamPrimaryChannelTab.md @@ -1,22 +1,18 @@ -### Example 1: List all the tabs in the channel along with associated Teams app +### Example 1: List all the tabs in the channel along with associated Teams app -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelTab Cmdlet. +Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List all the tabs belonging to a specific app in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the tabs belonging to a specific app in a channel - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" -``` -This example shows how to use the New-MgBetaGroupTeamPrimaryChannelTab Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" +``` +This example shows how to use the New-MgBetaBetaGroupTeamPrimaryChannelTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOfferShiftRequest.md b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOfferShiftRequest.md index f4d4bec2484..af5dd43eca3 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOfferShiftRequest.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOfferShiftRequest.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamScheduleOfferShiftRequest -TeamId $teamId -``` -This example shows how to use the New-MgBetaGroupTeamScheduleOfferShiftRequest Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamScheduleOfferShiftRequest -TeamId $teamId +``` +This example shows how to use the New-MgBetaBetaGroupTeamScheduleOfferShiftRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOpenShift.md b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOpenShift.md index a8f75f6f9b0..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOpenShift.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamScheduleOpenShift -TeamId $teamId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaGroupTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md index a1be048f36d..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamScheduleOpenShiftChangeRequest -TeamId $teamId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaGroupTeamScheduleOpenShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaGroupTeamScheduleSchedulingGroup.md b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleSchedulingGroup.md index 4b90360bd9d..9696529e8a3 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleSchedulingGroup.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleSchedulingGroup.md @@ -1,11 +1,18 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleSchedulingGroup -TeamId $teamId -``` -This example shows how to use the New-MgBetaGroupTeamScheduleSchedulingGroup Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "Cashiers" + isActive = $true + userIds = @( + "c5d0c76b-80c4-481c-be50-923cd8d680a1" + "2a4296b3-a28a-44ba-bc66-0274b9b95851" + ) +} +New-MgBetaTeamScheduleSchedulingGroup -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamScheduleSchedulingGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleShift.md b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleShift.md index 497153e8548..43eac08c424 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleShift.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleShift.md @@ -1,11 +1,47 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleShift -TeamId $teamId -Filter "sharedShift/startDateTime ge 2019-03-11T00:00:00.000Z and sharedShift/endDateTime le 2019-03-18T00:00:00.000Z and draftShift/startDateTime ge 2019-03-11T00:00:00.000Z and draftShift/endDateTime le 2019-03-18T00:00:00.000Z" -``` -This example shows how to use the New-MgBetaGroupTeamScheduleShift Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" + userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedShift = @{ + displayName = "Day shift" + notes = "Please do inventory as part of your shift." + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + theme = "blue" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") + code = "" + displayName = "Lunch" + } + ) + } + draftShift = @{ + displayName = "Day shift" + notes = "Please do inventory as part of your shift." + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + theme = "blue" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") + code = "" + displayName = "Lunch" + } + ) + } +} +New-MgBetaTeamScheduleShift -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamScheduleShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md index 1166e355006..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md @@ -1,11 +1,17 @@ -### Example 1: Code snippet - +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams + PS C:\> {{ Add code here }} -Get-MgBetaTeamScheduleSwapShiftChangeRequest -TeamId $teamId +{{ Add output here }} ``` -This example shows how to use the New-MgBetaGroupTeamScheduleSwapShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +{{ 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/New-MgBetaGroupTeamScheduleTimeOff.md b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOff.md index cb45cadaad4..3f24a8b3e22 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOff.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOff.md @@ -1,11 +1,25 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleTimeOff -TeamId $teamId -Filter "sharedTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and sharedTimeOff/endDateTime le 2019-03-18T00:00:00.000Z and draftTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and draftTimeOff/endDateTime le 2019-03-18T00:00:00.000Z" -``` -This example shows how to use the New-MgBetaGroupTeamScheduleTimeOff Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + sharedTimeOff = @{ + timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + theme = "white" + } + draftTimeOff = @{ + timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + theme = "pink" + } +} +New-MgBetaTeamScheduleTimeOff -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamScheduleTimeOff Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOffReason.md b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOffReason.md index b82d76bfbaf..efbab8a6ae4 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOffReason.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOffReason.md @@ -1,11 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamScheduleTimeOffReason -TeamId $teamId -``` -This example shows how to use the New-MgBetaGroupTeamScheduleTimeOffReason Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "Vacation" + iconType = "plane" + isActive = $true +} +New-MgBetaTeamScheduleTimeOffReason -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamScheduleTimeOffReason Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOffRequest.md b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOffRequest.md index 70847562a14..121f8a3bf52 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOffRequest.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamScheduleTimeOffRequest.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId -``` -This example shows how to use the New-MgBetaGroupTeamScheduleTimeOffRequest Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId +``` +This example shows how to use the New-MgBetaBetaGroupTeamScheduleTimeOffRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamTag.md b/src/Teams/beta/examples/New-MgBetaGroupTeamTag.md index 5f55294f5b3..924c9cf5393 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamTag.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamTag.md @@ -1,11 +1,21 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamTag -TeamId $teamId -``` -This example shows how to use the New-MgBetaGroupTeamTag Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + displayName = "Finance" + members = @( + @{ + userId = "92f6952f-61ca-4a94-8910-508a240bc167" + } + @{ + userId = "085d800c-b86b-4bfc-a857-9371ad1caf29" + } + ) +} +New-MgBetaTeamTag -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamTag Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaGroupTeamTagMember.md b/src/Teams/beta/examples/New-MgBetaGroupTeamTagMember.md index d20ae204f68..4ad8c24df26 100644 --- a/src/Teams/beta/examples/New-MgBetaGroupTeamTagMember.md +++ b/src/Teams/beta/examples/New-MgBetaGroupTeamTagMember.md @@ -1,11 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -``` -This example shows how to use the New-MgBetaGroupTeamTagMember Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + userId = "97f62344-57dc-409c-88ad-c4af14158ff5" +} +New-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaGroupTeamTagMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeam.md b/src/Teams/beta/examples/New-MgBetaTeam.md index 0ab677d39fe..b0ede7db818 100644 --- a/src/Teams/beta/examples/New-MgBetaTeam.md +++ b/src/Teams/beta/examples/New-MgBetaTeam.md @@ -1,236 +1,257 @@ -### Example 1: Using the New-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" - "Group@odata.bind" = "https://graph.microsoft.com/beta/groups('dbd8de4f-5d47-48da-87f1-594bed003375')" - Channels = @( + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + displayName = "My Sample Team" + description = "My Sample Team???s Description" +} + +New-MgBetaTeam -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeam 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.Teams + +$params = @{ + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + displayName = "My Sample Team" + description = "My Sample Team???s Description" + members = @( @{ - DisplayName = "Class Announcements 📢" - IsFavoriteByDefault = $true + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('0040b377-61d8-43db-94f5-81374122dc7e')" } + ) +} + +New-MgBetaTeam -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + visibility = "Private" + displayName = "Sample Engineering Team" + description = "This is a sample engineering team, used to showcase the range of properties supported by this API" + channels = @( @{ - DisplayName = "Homework ��" - IsFavoriteByDefault = $true + displayName = "Announcements ????" + isFavoriteByDefault = $true + description = "This is a sample announcements channel that is favorited by default. Use this channel to make important team, product, and service announcements." + } + @{ + displayName = "Training ???????" + isFavoriteByDefault = $true + description = "This is a sample training channel, that is favorited by default, and contains an example of pinned website and YouTube tabs." + tabs = @( + @{ + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.web')" + displayName = "A Pinned Website" + configuration = @{ + contentUrl = "https://learn.microsoft.com/microsoftteams/microsoft-teams" + } + } + @{ + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.youtube')" + displayName = "A Pinned YouTube Video" + configuration = @{ + contentUrl = "https://tabs.teams.microsoft.com/Youtube/Home/YoutubeTab?videoId=X8krAMdGvCQ" + websiteUrl = "https://www.youtube.com/watch?v=X8krAMdGvCQ" + } + } + ) + } + @{ + displayName = "Planning ???? " + description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." + isFavoriteByDefault = $false + } + @{ + displayName = "Issues and Feedback ????" + description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." } ) - MemberSettings = @{ - AllowCreateUpdateChannels = $false - AllowDeleteChannels = $false - AllowAddRemoveApps = $false - AllowCreateUpdateRemoveTabs = $false - AllowCreateUpdateRemoveConnectors = $false + memberSettings = @{ + allowCreateUpdateChannels = $true + allowDeleteChannels = $true + allowAddRemoveApps = $true + allowCreateUpdateRemoveTabs = $true + allowCreateUpdateRemoveConnectors = $true + } + guestSettings = @{ + allowCreateUpdateChannels = $false + allowDeleteChannels = $false } - InstalledApps = @( + funSettings = @{ + allowGiphy = $true + giphyContentRating = "Moderate" + allowStickersAndMemes = $true + allowCustomMemes = $true + } + messagingSettings = @{ + allowUserEditMessages = $true + allowUserDeleteMessages = $true + allowOwnerDeleteMessages = $true + allowTeamMentions = $true + allowChannelMentions = $true + } + installedApps = @( @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" } @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" } ) } -New-MgBetaTeam -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeam -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('educationClass')" - DisplayName = "My Class Team" - Description = "My Class Team’s Description" + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + "group@odata.bind" = "https://graph.microsoft.com/v1.0/groups('71392b2f-1765-406e-86af-5907d9bdb2ab')" } -New-MgBetaTeam -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeam -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('educationClass')" - DisplayName = "My Class Team" - Description = "My Class Team’s Description" - Channels = @( + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + "group@odata.bind" = "https://graph.microsoft.com/v1.0/groups('dbd8de4f-5d47-48da-87f1-594bed003375')" + channels = @( @{ - DisplayName = "Class Announcements 📢" - IsFavoriteByDefault = $true + displayName = "Class Announcements ????" + isFavoriteByDefault = $true } @{ - DisplayName = "Homework ��" - IsFavoriteByDefault = $true + displayName = "Homework ???????" + isFavoriteByDefault = $true } ) - MemberSettings = @{ - AllowCreateUpdateChannels = $false - AllowDeleteChannels = $false - AllowAddRemoveApps = $false - AllowCreateUpdateRemoveTabs = $false - AllowCreateUpdateRemoveConnectors = $false + memberSettings = @{ + allowCreateUpdateChannels = $false + allowDeleteChannels = $false + allowAddRemoveApps = $false + allowCreateUpdateRemoveTabs = $false + allowCreateUpdateRemoveConnectors = $false } - InstalledApps = @( + installedApps = @( @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" } @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" } ) } -New-MgBetaTeam -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeam -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" - "Group@odata.bind" = "https://graph.microsoft.com/beta/groups('71392b2f-1765-406e-86af-5907d9bdb2ab')" + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')" + displayName = "My Class Team" + description = "My Class Team???s Description" } -New-MgBetaTeam -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeam -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" - Visibility = "Private" - DisplayName = "Sample Engineering Team" - Description = "This is a sample engineering team, used to showcase the range of properties supported by this API" - Channels = @( + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')" + displayName = "My Class Team" + description = "My Class Team???s Description" + channels = @( @{ - DisplayName = "Announcements 📢" - IsFavoriteByDefault = $true - Description = "This is a sample announcements channel that is favorited by default. Use this channel to make important team, product, and service announcements." + displayName = "Class Announcements ????" + isFavoriteByDefault = $true } @{ - DisplayName = "Training ��" - IsFavoriteByDefault = $true - Description = "This is a sample training channel, that is favorited by default, and contains an example of pinned website and YouTube tabs." - Tabs = @( - @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.web')" - DisplayName = "A Pinned Website" - Configuration = @{ - ContentUrl = "https://docs.microsoft.com/microsoftteams/microsoft-teams" - } - } - @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.youtube')" - DisplayName = "A Pinned YouTube Video" - Configuration = @{ - ContentUrl = "https://tabs.teams.microsoft.com/Youtube/Home/YoutubeTab?videoId=X8krAMdGvCQ" - WebsiteUrl = "https://www.youtube.com/watch?v=X8krAMdGvCQ" - } - } - ) - } - @{ - DisplayName = "Planning 📅 " - Description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." - IsFavoriteByDefault = $false - } - @{ - DisplayName = "Issues and Feedback �" - Description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." + displayName = "Homework ???????" + isFavoriteByDefault = $true } ) - MemberSettings = @{ - AllowCreateUpdateChannels = $true - AllowDeleteChannels = $true - AllowAddRemoveApps = $true - AllowCreateUpdateRemoveTabs = $true - AllowCreateUpdateRemoveConnectors = $true - } - GuestSettings = @{ - AllowCreateUpdateChannels = $false - AllowDeleteChannels = $false - } - FunSettings = @{ - AllowGiphy = $true - GiphyContentRating = "Moderate" - AllowStickersAndMemes = $true - AllowCustomMemes = $true + memberSettings = @{ + allowCreateUpdateChannels = $false + allowDeleteChannels = $false + allowAddRemoveApps = $false + allowCreateUpdateRemoveTabs = $false + allowCreateUpdateRemoveConnectors = $false } - MessagingSettings = @{ - AllowUserEditMessages = $true - AllowUserDeleteMessages = $true - AllowOwnerDeleteMessages = $true - AllowTeamMentions = $true - AllowChannelMentions = $true - } - DiscoverySettings = @{ - ShowInTeamsSearchAndSuggestions = $true - } - InstalledApps = @( - @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" - } + installedApps = @( @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" } - ) -} -New-MgBetaTeam -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" - DisplayName = "My Sample Team" - Description = "My Sample Team’s Description" - Members = @( @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('0040b377-61d8-43db-94f5-81374122dc7e')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" } ) } -New-MgBetaTeam -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the New-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" - DisplayName = "My Sample Team" - Description = "My Sample Team’s Description" -} -New-MgBetaTeam -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 8: Using the New-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeam -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/beta/teamsTemplates('standard')" - DisplayName = "My Sample Team" - Description = "My Sample Team’s Description" - Members = @( + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + displayName = "My Sample Team" + description = "My Sample Team???s Description" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" } ) } -New-MgBetaTeam -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeam -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamChannel.md b/src/Teams/beta/examples/New-MgBetaTeamChannel.md index c1541bcbfa2..0b775e43222 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamChannel.md +++ b/src/Teams/beta/examples/New-MgBetaTeamChannel.md @@ -1,108 +1,105 @@ -### Example 1: Using the New-MgBetaTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Create a standard channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "@microsoft.graph.channelCreationMode" = "migration" - DisplayName = "Import_150958_99z" - Description = "Import_150958_99z" - CreatedDateTime = [System.DateTime]::Parse("2020-03-14T11:22:17.067Z") -} -New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - DisplayName = "Architecture Discussion" - Description = "This channel is where we debate all future architecture plans" - MembershipType = "standard" -} -New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - DisplayName = "TestChannelModeration" - Description = "Test channel moderation." - MembershipType = "standard" - ModerationSettings = @{ - UserNewMessageRestriction = "everyoneExceptGuests" - ReplyRestriction = "everyone" - AllowNewMessageFromBots = $true - AllowNewMessageFromConnectors = $true - } + displayName = "Architecture Discussion" + description = "This channel is where we debate all future architecture plans" + membershipType = "standard" } -New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create private channel on behalf of user + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "@odata.type" = "#Microsoft.Graph.channel" - MembershipType = "private" - DisplayName = "My First Private Channel" - Description = "This is my first private channels" - Members = @( + "@odata.type" = "#Microsoft.Graph.Beta.channel" + membershipType = "private" + displayName = "My First Private Channel" + description = "This is my first private channels" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('62855810-484b-4823-9e01-60667f8b12ae')" + roles = @( "owner" ) } ) } -New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create a channel in migration mode + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@microsoft.graph.channelCreationMode" = "migration" + displayName = "Import_150958_99z" + description = "Import_150958_99z" + createdDateTime = [System.DateTime]::Parse("2020-03-14T11:22:17.067Z") +} + +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create private channel on behalf of user using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "@odata.type" = "#Microsoft.Graph.channel" - MembershipType = "private" - DisplayName = "My First Private Channel" - Description = "This is my first private channels" - Members = @( + "@odata.type" = "#Microsoft.Graph.Beta.channel" + membershipType = "private" + displayName = "My First Private Channel" + description = "This is my first private channels" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/beta/users('62855810-484b-4823-9e01-60667f8b12ae')" - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + roles = @( "owner" ) } ) } -New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgBetaTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create a shared channel on behalf of a user + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "My First Shared Channel" - Description = "This is my first shared channel" - MembershipType = "shared" - Members = @( + displayName = "My First Shared Channel" + description = "This is my first shared channel" + membershipType = "shared" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/beta/users('7640023f-fe43-gv3f-9gg4-84a9efe4acd6')" - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('7640023f-fe43-573f-9ff4-84a9efe4acd6')" + roles = @( "owner" ) } ) } -New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamChannelMember.md b/src/Teams/beta/examples/New-MgBetaTeamChannelMember.md index d7e9cbbedda..5a2c0265863 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamChannelMember.md +++ b/src/Teams/beta/examples/New-MgBetaTeamChannelMember.md @@ -1,82 +1,92 @@ -### Example 1: Using the New-MgBetaTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Add a member to a private channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" } -New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member with the owner role to a private channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgBetaBetaTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add an owner to a channel using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" } -New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a user who is part of the same tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" -} -New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" } -New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Add a user who is part of a different tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" + tenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" } -New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgBetaTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Add a user who is part of the same or a different tenant as a member to a shared channel using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users/bc3598dd-cce4-4742-ae15-173429951408" - TenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" + "user@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" } -New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamChannelMessage.md b/src/Teams/beta/examples/New-MgBetaTeamChannelMessage.md index dd3389ae6c0..26a0f91677a 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamChannelMessage.md +++ b/src/Teams/beta/examples/New-MgBetaTeamChannelMessage.md @@ -1,45 +1,66 @@ -### Example 1: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Send a Hello World message in a channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Body = @{ - Content = "Hello World" + body = @{ + content = "Hello World" } } -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Body = @{ - Content = "Hello World" + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) } -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Subject = $null - Body = @{ - ContentType = "html" - Content = "" + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" } - Attachments = @( + attachments = @( @{ - Id = "74d20c7f34aa4a7fb74e2b30004247c5" - ContentType = "application/vnd.microsoft.card.thumbnail" - ContentUrl = $null - Content = "{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ "title": "This is an example of posting a card", - "subtitle": "

This is the subtitle

", - "text": "Here is some body text.
\r\nAnd a hyperlink.
\r\nAnd below that is some buttons:", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", "buttons": [ { "type": "messageBack", @@ -50,115 +71,87 @@ $params = @{ } ] }" - Name = $null - ThumbnailUrl = $null - TeamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + name = $null + thumbnailUrl = $null } ) } -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Send a message with file attachment in it + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "Hello World Jane Smith" + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" } - Mentions = @( + attachments = @( @{ - Id = 0 - MentionText = "Jane Smith" - Mentioned = @{ - User = @{ - DisplayName = "Jane Smith" - Id = "ef1c916a-3135-4417-ba27-8eb7bd084193" - UserIdentityType = "aadUser" - } - } + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" } ) } -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Subject = $null - Body = @{ - ContentType = "html" - Content = "" + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" } - Attachments = @( + hostedContents = @( @{ - Id = "74d20c7f34aa4a7fb74e2b30004247c5" - ContentType = "application/vnd.microsoft.card.thumbnail" - ContentUrl = $null - Content = "{ - "title": "This is an example of posting a card", - "subtitle": "

This is the subtitle

", - "text": "Here is some body text.
\r\nAnd a hyperlink.
\r\nAnd below that is some buttons:", - "buttons": [ - { - "type": "messageBack", - "title": "Login to FakeBot", - "text": "login", - "displayText": "login", - "value": "login" - } - ] -}" - Name = $null - ThumbnailUrl = $null - } - ) -} -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - Body = @{ - ContentType = "html" - Content = "Here's the latest budget. " - } - Attachments = @( - @{ - Id = "153fa47d-18c9-4179-be08-9879815a9f90" - ContentType = "reference" - ContentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" - Name = "Budget.docx"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svUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" } ) } -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Subject = $null - Body = @{ - ContentType = "html" - Content = "" + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" } - Attachments = @( + attachments = @( @{ - Id = "74d20c7f34aa4a7fb74e2b30004247c5" - ContentType = "application/vnd.microsoft.card.adaptive" - ContentUrl = $null - Content = "{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", @@ -238,103 +231,182 @@ $params = @{ } ] }" - Name = $null - ThumbnailUrl = $null + name = $null + thumbnailUrl = $null } ) - HostedContents = @( + hostedContents = @( @{ "@microsoft.graph.temporaryId" = "1" - ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5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to8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" } @{ "@microsoft.graph.temporaryId" = "2" - ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZccMl/LsWC5zjj2PiBfaGFiHxJwT66iraJ6qAjhG5sz8mLVxgT2fiBfaGKBDRh20Kc1TFcyODS7j180/LaOQkqxoY4AOGXXQNjRPVSA7JlhG0nT+iVFISVa0MUCHjDpoF3pHqBB2LNrOPzEKKcmKNgbokFEH7QqXFpqnGghqb7rMPzEKKcmKNgbokFEH7QOXGJqnygw1N13nnxiFlGRFGwN0yKiDpqB5qkys1vhIS5/5J0YhJVnRxgAdMuqgqWieypnVeN0nBbpSSElWtDFAh4w6aEq4BNGHlBOzmmL+6dy8xh4UUpIVbQzQIaMOmhouRfQxi0SslqnnnxiFlGRFGwN0yKiDetlkry/NWQ095p8YhZRkRRsDdMiog3rCW+RaptCB1a3tZy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YtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") - ContentType = "image/png" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/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bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" } ) } -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 8: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "
General Hello there!
" + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" } - Mentions = @( + mentions = @( @{ - Id = 0 - MentionText = "General" - Mentioned = @{ - Conversation = @{ - Id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" - DisplayName = "General" - ConversationIdentityType = "channel" + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" } } } ) } -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 9: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "
TestTag Testing Tags
" + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" } - Mentions = @( + mentions = @( @{ - Id = 0 - MentionText = "TestTag" - Mentioned = @{ - Tag = @{ - Id = "MjQzMmI1N2ItMGFiZC00M2RiLWFhN2ItMTZlYWRkMTE1ZDM0IyM2OGEzZTM2NS1mN2Q5LTRhNTYtYjQ5OS0yNDMzMmE5Y2M1NzIjI3RTMERJZ1Z1ZQ==" - DisplayName = "TestTag" + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" } } } ) + reactions = @( + ) } -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 10: Using the New-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "
GraphTesting Hello team
" + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" } - Mentions = @( + attachments = @( @{ - Id = 0 - MentionText = "GraphTesting" - Mentioned = @{ - Conversation = @{ - Id = "68a3e365-f7d9-4a56-b499-24332a9cc572" - DisplayName = "GraphTesting" - ConversationIdentityType = "team" - } - } + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" } ) - Reactions = @( +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } } -New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/New-MgBetaTeamChannelMessageHostedContent.md index 34bec110225..242472daf44 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaTeamChannelMessageHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaTeamChannelMessageHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaTeamChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaTeamChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamChannelMessageReply.md b/src/Teams/beta/examples/New-MgBetaTeamChannelMessageReply.md index be8d6c20487..3cf148a9395 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/New-MgBetaTeamChannelMessageReply.md @@ -1,13 +1,16 @@ -### Example 1: Using the New-MgBetaTeamChannelMessageReply Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "Hello World" + body = @{ + contentType = "html" + content = "Hello World" } } -New-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamChannelMessageReply Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/New-MgBetaTeamChannelMessageReplyHostedContent.md index e94810bc168..3feb1649955 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaTeamChannelMessageReplyHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaTeamChannelMessageReplyHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaTeamChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaTeamChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaTeamChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/New-MgBetaTeamChannelSharedWithTeam.md index 9a0cc6850d3..7d383803d5e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/New-MgBetaTeamChannelSharedWithTeam.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the New-MgBetaTeamChannelSharedWithTeam Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgBetaBetaTeamChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamChannelTab.md b/src/Teams/beta/examples/New-MgBetaTeamChannelTab.md index f528eac37de..1d93392d509 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamChannelTab.md +++ b/src/Teams/beta/examples/New-MgBetaTeamChannelTab.md @@ -1,22 +1,18 @@ -### Example 1: List all the tabs in the channel along with associated Teams app +### Example 1: List all the tabs in the channel along with associated Teams app -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -``` -This example shows how to use the New-MgBetaTeamChannelTab Cmdlet. +Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" +``` +This example shows how to use the New-MgBetaBetaTeamChannelTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List all the tabs belonging to a specific app in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the tabs belonging to a specific app in a channel - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" -``` -This example shows how to use the New-MgBetaTeamChannelTab Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" +``` +This example shows how to use the New-MgBetaBetaTeamChannelTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamInstalledApp.md b/src/Teams/beta/examples/New-MgBetaTeamInstalledApp.md index 687d50d22b5..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamInstalledApp.md +++ b/src/Teams/beta/examples/New-MgBetaTeamInstalledApp.md @@ -1,10 +1,17 @@ -### Example 1: Using the New-MgBetaTeamInstalledApp Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" -} -New-MgBetaTeamInstalledApp -TeamId $teamId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgBetaTeamMember.md b/src/Teams/beta/examples/New-MgBetaTeamMember.md index 61cee3b6496..7026cca6bae 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamMember.md +++ b/src/Teams/beta/examples/New-MgBetaTeamMember.md @@ -1,28 +1,34 @@ -### Example 1: Using the New-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Add a member to a team + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" } -New-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" } -New-MgBetaTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMember.md b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMember.md index 37b3a428767..cf8a44d6051 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMember.md @@ -1,11 +1,92 @@ -### Example 1: Code snippet +### Example 1: Add a member to a private channel -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMember Cmdlet. +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member with the owner role to a private channel +```powershell Import-Module Microsoft.Graph.Beta.Teams + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add an owner to a channel using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a user who is part of the same tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Add a user who is part of a different tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" + tenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Add a user who is part of the same or a different tenant as a member to a shared channel using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" +} + +New-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessage.md index 3482ba8ffa1..c26078a42af 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessage.md @@ -1,22 +1,412 @@ -### Example 1: Code snippet +### Example 1: Send a Hello World message in a channel -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMessage Cmdlet. +$params = @{ + body = @{ + content = "Hello World" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message -### Example 2: Code snippet +```powershell Import-Module Microsoft.Graph.Beta.Teams -```powershell -Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} -Get-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMessage Cmdlet. +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Send a message with file attachment in it + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J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t/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBD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Mf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZccMl/LsWC5zjj2PiBfaGFiHxJwT66iraJ6qAjhG5sz8mLVxgT2fiBfaGKBDRh20Kc1TFcyODS7j180/LaOQkqxoY4AOGXXQNjRPVSA7JlhG0nT+iVFISVa0MUCHjDpoF3pHqBB2LNrOPzEKKcmKNgbokFEH7QqXFpqnGghqb7rMPzEKKcmKNgbokFEH7QOXGJqnygw1N13nnxiFlGRFGwN0yKiDpqB5qkys1vhIS5/5J0YhJVnRxgAdMuqgqWieypnVeN0nBbpSSElWtDFAh4w6aEq4BNGHlBOzmmL+6dy8xh4UUpIVbQzQIaMOmhouRfQxi0SslqnnnxiFlGRFGwN0yKiDetlkry/NWQ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EsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } +} + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageHostedContent.md b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageHostedContent.md index d3fa248030e..d0bfa79044e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMessageHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageReply.md b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageReply.md index ae5cd9c0c27..e05484af179 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageReply.md +++ b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageReply.md @@ -1,11 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMessageReply Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} +New-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md index 3017c8e3b8d..a89b68dc773 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelSharedWithTeam.md b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelSharedWithTeam.md index a8c14f3e579..a21c30f5100 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelSharedWithTeam.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelSharedWithTeam Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelTab.md b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelTab.md index 82dac298e99..faf0e86f303 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelTab.md +++ b/src/Teams/beta/examples/New-MgBetaTeamPrimaryChannelTab.md @@ -1,22 +1,18 @@ -### Example 1: List all the tabs in the channel along with associated Teams app +### Example 1: List all the tabs in the channel along with associated Teams app -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelTab Cmdlet. +Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List all the tabs belonging to a specific app in a channel -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the tabs belonging to a specific app in a channel - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" -``` -This example shows how to use the New-MgBetaTeamPrimaryChannelTab Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" +``` +This example shows how to use the New-MgBetaBetaTeamPrimaryChannelTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamScheduleOfferShiftRequest.md b/src/Teams/beta/examples/New-MgBetaTeamScheduleOfferShiftRequest.md index fae89590ac4..2b5b2c85c3b 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamScheduleOfferShiftRequest.md +++ b/src/Teams/beta/examples/New-MgBetaTeamScheduleOfferShiftRequest.md @@ -1,12 +1,9 @@ -### Example 1: Using the New-MgBetaTeamScheduleOfferShiftRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - SenderShiftId = "SHFT_f7e484ed-fdd6-421c-92d9-0bc9e62e2c29" - SenderMessage = "Having a family emergency, could you take this shift for me?" - RecipientUserId = "fe278b61-21ac-4872-8b41-1962bbb98e3c" -} -New-MgBetaTeamScheduleOfferShiftRequest -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamScheduleOfferShiftRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamScheduleOfferShiftRequest -TeamId $teamId +``` +This example shows how to use the New-MgBetaBetaTeamScheduleOfferShiftRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamScheduleOpenShift.md b/src/Teams/beta/examples/New-MgBetaTeamScheduleOpenShift.md index d07996dcad4..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/New-MgBetaTeamScheduleOpenShift.md @@ -1,40 +1,17 @@ -### Example 1: Using the New-MgBetaTeamScheduleOpenShift Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - Id = "OPNSHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" - SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - SharedOpenShift = @{ - Notes = "InventoryManagement" - OpenSlotCount = 2 - DisplayName = "Dayshift" - StartDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z") - EndDateTime = [System.DateTime]::Parse("2018-10-04T09: 50: 45.332Z") - Theme = "white" - Activities = @( - @{ - IsPaid = $true - StartDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z") - EndDateTime = [System.DateTime]::Parse("2018-10-04T01: 58: 45.340Z") - Code = "" - DisplayName = "Lunch" - } - ) - } - DraftOpenShift = $null - CreatedDateTime = [System.DateTime]::Parse("2019-03-14T04: 32: 51.451Z") - LastModifiedDateTime = [System.DateTime]::Parse("2019-03-14T05: 32: 51.451Z") - LastModifiedBy = @{ - Application = $null - Device = $null - Conversation = $null - User = @{ - Id = "366c0b19-49b1-41b5-a03f-9f3887bd0ed8" - DisplayName = "JohnDoe" - } - } -} -New-MgBetaTeamScheduleOpenShift -TeamId $teamId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgBetaTeamScheduleOpenShiftChangeRequest.md b/src/Teams/beta/examples/New-MgBetaTeamScheduleOpenShiftChangeRequest.md index 2e65b6619c7..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/beta/examples/New-MgBetaTeamScheduleOpenShiftChangeRequest.md @@ -1,11 +1,17 @@ -### Example 1: Using the New-MgBetaTeamScheduleOpenShiftChangeRequest Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - SenderMessage = "Can I take this shift?" - OpenShiftId = "577b75d2-a927-48c0-a5d1-dc984894e7b8" -} -New-MgBetaTeamScheduleOpenShiftChangeRequest -TeamId $teamId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaTeamScheduleOpenShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgBetaTeamScheduleSchedulingGroup.md b/src/Teams/beta/examples/New-MgBetaTeamScheduleSchedulingGroup.md index eb919cf8a4d..e76717c6316 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamScheduleSchedulingGroup.md +++ b/src/Teams/beta/examples/New-MgBetaTeamScheduleSchedulingGroup.md @@ -1,15 +1,18 @@ -### Example 1: Using the New-MgBetaTeamScheduleSchedulingGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "Cashiers" - IsActive = $true - UserIds = @( + displayName = "Cashiers" + isActive = $true + userIds = @( "c5d0c76b-80c4-481c-be50-923cd8d680a1" "2a4296b3-a28a-44ba-bc66-0274b9b95851" ) } -New-MgBetaTeamScheduleSchedulingGroup -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamScheduleSchedulingGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamScheduleSchedulingGroup -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamScheduleSchedulingGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamScheduleShift.md b/src/Teams/beta/examples/New-MgBetaTeamScheduleShift.md index 369c0d3cef4..0b77e762c08 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamScheduleShift.md +++ b/src/Teams/beta/examples/New-MgBetaTeamScheduleShift.md @@ -1,44 +1,47 @@ -### Example 1: Using the New-MgBetaTeamScheduleShift Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" - UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" - SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - SharedShift = @{ - DisplayName = "Day shift" - Notes = "Please do inventory as part of your shift." - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") - Theme = "blue" - Activities = @( + id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" + userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedShift = @{ + displayName = "Day shift" + notes = "Please do inventory as part of your shift." + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + theme = "blue" + activities = @( @{ - IsPaid = $true - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") - Code = "" - DisplayName = "Lunch" + isPaid = $true + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") + code = "" + displayName = "Lunch" } ) } - DraftShift = @{ - DisplayName = "Day shift" - Notes = "Please do inventory as part of your shift." - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") - Theme = "blue" - Activities = @( + draftShift = @{ + displayName = "Day shift" + notes = "Please do inventory as part of your shift." + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + theme = "blue" + activities = @( @{ - IsPaid = $true - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") - Code = "" - DisplayName = "Lunch" + isPaid = $true + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") + code = "" + displayName = "Lunch" } ) } } -New-MgBetaTeamScheduleShift -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamScheduleShift -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamScheduleShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamScheduleSwapShiftChangeRequest.md b/src/Teams/beta/examples/New-MgBetaTeamScheduleSwapShiftChangeRequest.md index 28413a21025..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/beta/examples/New-MgBetaTeamScheduleSwapShiftChangeRequest.md @@ -1,13 +1,17 @@ -### Example 1: Using the New-MgBetaTeamScheduleSwapShiftChangeRequest Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - SenderShiftId = "5ad10161-6524-4c7c-9beb-4e8677ba2f6d" - SenderMessage = "I can't make my shift, any chance we can swap?" - RecipientUserId = "567c8ea5-9e32-422a-a663-8270201699cd" - RecipientShiftId = "e73408ca-3ea5-4bbf-96a8-2e06c95f7a2c" -} -New-MgBetaTeamScheduleSwapShiftChangeRequest -TeamId $teamId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgBetaTeamScheduleSwapShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/New-MgBetaTeamScheduleTimeOff.md b/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOff.md index 2b671bb5d95..a4fd3a04575 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOff.md +++ b/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOff.md @@ -1,22 +1,25 @@ -### Example 1: Using the New-MgBetaTeamScheduleTimeOff Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" - SharedTimeOff = @{ - TimeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" - StartDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") - Theme = "white" + userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + sharedTimeOff = @{ + timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + theme = "white" } - DraftTimeOff = @{ - TimeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" - StartDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") - Theme = "pink" + draftTimeOff = @{ + timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + theme = "pink" } } -New-MgBetaTeamScheduleTimeOff -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamScheduleTimeOff Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamScheduleTimeOff -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamScheduleTimeOff Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOffReason.md b/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOffReason.md index f3cf3d1ffcb..0a92d9901e5 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOffReason.md +++ b/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOffReason.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaTeamScheduleTimeOffReason Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "Vacation" - IconType = "plane" - IsActive = $true + displayName = "Vacation" + iconType = "plane" + isActive = $true } -New-MgBetaTeamScheduleTimeOffReason -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamScheduleTimeOffReason Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamScheduleTimeOffReason -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamScheduleTimeOffReason Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOffRequest.md b/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOffRequest.md index 7fce6b47178..93c609ebaa3 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOffRequest.md +++ b/src/Teams/beta/examples/New-MgBetaTeamScheduleTimeOffRequest.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId -``` -This example shows how to use the New-MgBetaTeamScheduleTimeOffRequest Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId +``` +This example shows how to use the New-MgBetaBetaTeamScheduleTimeOffRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamTag.md b/src/Teams/beta/examples/New-MgBetaTeamTag.md index e8c7537419d..76437fa8f52 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamTag.md +++ b/src/Teams/beta/examples/New-MgBetaTeamTag.md @@ -1,18 +1,21 @@ -### Example 1: Using the New-MgBetaTeamTag Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "Finance" - Members = @( + displayName = "Finance" + members = @( @{ - UserId = "92f6952f-61ca-4a94-8910-508a240bc167" + userId = "92f6952f-61ca-4a94-8910-508a240bc167" } @{ - UserId = "085d800c-b86b-4bfc-a857-9371ad1caf29" + userId = "085d800c-b86b-4bfc-a857-9371ad1caf29" } ) } -New-MgBetaTeamTag -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamTag -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamTag Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamTagMember.md b/src/Teams/beta/examples/New-MgBetaTeamTagMember.md index fd31db6692e..11bca4fcc31 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamTagMember.md +++ b/src/Teams/beta/examples/New-MgBetaTeamTagMember.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaTeamTagMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - UserId = "97f62344-57dc-409c-88ad-c4af14158ff5" + userId = "97f62344-57dc-409c-88ad-c4af14158ff5" } -New-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamTagMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamTagMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeam.md b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeam.md +++ b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMember.md b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMember.md +++ b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessage.md b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessage.md +++ b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageReply.md b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelTab.md b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelTab.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelTab.md +++ b/src/Teams/beta/examples/New-MgBetaTeamworkDeletedTeamChannelTab.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/New-MgBetaTeamworkWorkforceIntegration.md b/src/Teams/beta/examples/New-MgBetaTeamworkWorkforceIntegration.md index a8ff87ac86e..6cc458260d1 100644 --- a/src/Teams/beta/examples/New-MgBetaTeamworkWorkforceIntegration.md +++ b/src/Teams/beta/examples/New-MgBetaTeamworkWorkforceIntegration.md @@ -1,18 +1,21 @@ -### Example 1: Using the New-MgBetaTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "displayName-value" - ApiVersion = 99 - Encryption = @{ - Protocol = "protocol-value" - Secret = "secret-value" + displayName = "displayName-value" + apiVersion = 99 + encryption = @{ + protocol = "protocol-value" + secret = "secret-value" } - IsActive = $true - Url = "url-value" - Supports = "supports-value" + isActive = $true + url = "url-value" + supportedEntities = "supportedEntities-value" } -New-MgBetaTeamworkWorkforceIntegration -BodyParameter $params -``` -This example shows how to use the New-MgBetaTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaTeamworkWorkforceIntegration -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaTeamworkWorkforceIntegration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChat.md b/src/Teams/beta/examples/New-MgBetaUserChat.md index 9c4bcdc65b8..a06845dd2bb 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChat.md +++ b/src/Teams/beta/examples/New-MgBetaUserChat.md @@ -1,44 +1,27 @@ -### Example 1: List all chats +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaUserChat -UserId $userId -``` -This example shows how to use the New-MgBetaUserChat Cmdlet. +Get-MgBetaUserChat -UserId $userId +``` +This example shows how to use the New-MgBetaBetaUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List all chats along with the members of each chat +Get-MgBetaUserChat -UserId $userId -ExpandProperty "members" +``` +This example shows how to use the New-MgBetaBetaUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaUserChat -UserId $userId -ExpandProperty "members" -``` -This example shows how to use the New-MgBetaUserChat Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List all chats in order of the most to least recent chat messages - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChat -Sort "lastMessagePreview/createdDateTime desc" -``` -This example shows how to use the New-MgBetaUserChat Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 4: List chats along with the preview of the last message sent in the chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChat -ExpandProperty "lastMessagePreview" -``` -This example shows how to use the New-MgBetaUserChat Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChat -Sort "lastMessagePreview/createdDateTime desc" +``` +This example shows how to use the New-MgBetaBetaUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChatInstalledApp.md b/src/Teams/beta/examples/New-MgBetaUserChatInstalledApp.md index e045e33d146..62393484d36 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatInstalledApp.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatInstalledApp.md @@ -1,33 +1,13 @@ -### Example 1: Get all the apps installed in the specified chat +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatInstalledApp -ChatId $chatId -``` -This example shows how to use the New-MgBetaUserChatInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get the names and other details of apps installed in the specified chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatInstalledApp -ChatId $chatId -ExpandProperty "teamsAppDefinition(`$expand=bot)" -``` -This example shows how to use the New-MgBetaUserChatInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the app installation resource based on the manifest id of the associated app - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatInstalledApp -ChatId $chatId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the New-MgBetaUserChatInstalledApp Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" +} +New-MgBetaChatInstalledApp -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChatMember.md b/src/Teams/beta/examples/New-MgBetaUserChatMember.md index fb0f2c2ed8b..ed60f084a42 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatMember.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatMember.md @@ -1,12 +1,71 @@ -### Example 1: Code snippet +### Example 1: Add a single member to a chat and specify the timespan for the conversation history -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -# A UPN can also be used as -UserId. -Get-MgBetaUserChatMember -UserId $userId -ChatId $chatId -``` -This example shows how to use the New-MgBetaUserChatMember Cmdlet. +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + roles = @( + "owner" + ) +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Adding a single member to a Microsoft Teams chat, sharing no chat history +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + roles = @( + "owner" + ) +} + +New-MgBetaChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Adding a single member to a Microsoft Teams chat, sharing the whole history of the chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + visibleHistoryStartDateTime = [System.DateTime]::Parse("0001-01-01T00:00:00Z") + roles = @( + "owner" + ) +} + +New-MgBetaChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a single member to a chat using user principal name + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/jacob@contoso.com" + visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + roles = @( + "owner" + ) +} + +New-MgBetaChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChatMessage.md b/src/Teams/beta/examples/New-MgBetaUserChatMessage.md index d1db2798256..b16c3245e2c 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatMessage.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatMessage.md @@ -1,33 +1,412 @@ -### Example 1: Code snippet +### Example 1: Send a Hello World message in a channel -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatMessage -ChatId $chatId -Top 2 -``` -This example shows how to use the New-MgBetaUserChatMessage Cmdlet. +$params = @{ + body = @{ + content = "Hello World" + } +} -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message -### Example 2: Code snippet +```powershell Import-Module Microsoft.Graph.Beta.Teams -```powershell -Import-Module Microsoft.Graph.Beta.Teams +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} -Get-MgBetaChatMessage -ChatId $chatId -Top 2 -Sort "createdDateTime desc" -``` -This example shows how to use the New-MgBetaUserChatMessage Cmdlet. +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 3: Code snippet +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} -```powershell -Import-Module Microsoft.Graph.Beta.Teams +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Send a message with file attachment in it -Get-MgBetaChatMessage -ChatId $chatId -Top 2 -Sort "lastModifiedDateTime desc" -Filter "lastModifiedDateTime ge 2022-09-22T00:00:00.000Z and lastModifiedDateTime le 2022-09-24T00:00:00.000Z" -``` -This example shows how to use the New-MgBetaUserChatMessage Cmdlet. +```powershell Import-Module Microsoft.Graph.Beta.Teams -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcy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gcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0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kJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZccMl/LsWC5zjj2PiBfaGFiHxJwT66iraJ6qAjhG5sz8mLVxgT2fiBfaGKBDRh20Kc1TFcyODS7j180/LaOQkqxoY4AOGXXQNjRPVSA7JlhG0nT+iVFISVa0MUCHjDpoF3pHqBB2LNrOPzEKKcmKNgbokFEH7QqXFpqnGghqb7rMPzEKKcmKNgbokFEH7QOXGJqnygw1N13nnxiFlGRFGwN0yKiDpqB5qkys1vhIS5/5J0YhJVnRxgAdMuqgqWieypnVeN0nBbpSSElWtDFAh4w6aEq4BNGHlBOzmmL+6dy8xh4UUpIVbQzQIaMOmhouRfQxi0SslqnnnxiFlGRFGwN0yKiDetlkry/NWQ095p8YhZRkRRsDdMiog3rCW+RaptCB1a3tZyz7UEhJVrQxQIeMOqg3zVO1YLXC/FPuY6SQkqxoY4AOGXXQHDRP1YDVCPNP+Iwkq6EnhZRkRRsDdMiog+akO0EuYbXBrX1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tZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } +} + +New-MgBetaChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChatMessageHostedContent.md b/src/Teams/beta/examples/New-MgBetaUserChatMessageHostedContent.md index 9a2d48a6be8..6b267635599 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatMessageHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatMessageHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaUserChatMessageHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaUserChatMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaUserChatMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaUserChatMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaUserChatMessageHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaUserChatMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChatMessageReply.md b/src/Teams/beta/examples/New-MgBetaUserChatMessageReply.md index aa89d7567dd..27d45920e97 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatMessageReply.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatMessageReply.md @@ -1,11 +1,16 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaUserChatMessageReply Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} +New-MgBetaTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChatMessageReplyHostedContent.md b/src/Teams/beta/examples/New-MgBetaUserChatMessageReplyHostedContent.md index 8057b6a9e7a..5b2363a032e 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatMessageReplyHostedContent.md @@ -1,33 +1,27 @@ -### Example 1: List hosted content for a channel message +### Example 1: List hosted content for a channel message -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaUserChatMessageReplyHostedContent Cmdlet. +Get-MgBetaTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaUserChatMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: List hosted content for reply to a channel message -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams -### Example 2: List hosted content for reply to a channel message +Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the New-MgBetaBetaUserChatMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: List hosted content for message in a chat -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the New-MgBetaUserChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the New-MgBetaUserChatMessageReplyHostedContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the New-MgBetaBetaUserChatMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChatPinnedMessage.md b/src/Teams/beta/examples/New-MgBetaUserChatPinnedMessage.md index 4958e2a654c..fd860b22a54 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatPinnedMessage.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatPinnedMessage.md @@ -1,22 +1,13 @@ -### Example 1: List all the pinned messages in a chat +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams -Get-MgBetaChatPinnedMessage -ChatId $chatId -``` -This example shows how to use the New-MgBetaUserChatPinnedMessage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the pinned messages in a chat along with the associated chat message - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatPinnedMessage -ChatId $chatId -ExpandProperty "message" -``` -This example shows how to use the New-MgBetaUserChatPinnedMessage Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +$params = @{ + "message@odata.bind" = "https://graph.microsoft.com/v1.0/chats/19:2da4c29f6d7041eca70b638b43d45437@thread.v2/messages/1616964509832" +} +New-MgBetaChatPinnedMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatPinnedMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserChatTab.md b/src/Teams/beta/examples/New-MgBetaUserChatTab.md index 7d0ce049bf5..868659fd2f5 100644 --- a/src/Teams/beta/examples/New-MgBetaUserChatTab.md +++ b/src/Teams/beta/examples/New-MgBetaUserChatTab.md @@ -1,22 +1,20 @@ -### Example 1: List all the tabs in the chat along with associated Teams app - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatTab -ChatId $chatId -ExpandProperty "teamsApp" -``` -This example shows how to use the New-MgBetaUserChatTab Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the tabs belonging to a specific app in a chat - -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaChatTab -ChatId $chatId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.web'" -``` -This example shows how to use the New-MgBetaUserChatTab Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + displayName = "My Contoso Tab" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8" + configuration = @{ + entityId = "2DCA2E6C7A10415CAF6B8AB6661B3154" + contentUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView" + websiteUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154" + removeUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/uninstallTab" + } +} + +New-MgBetaChatTab -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserTeamworkAssociatedTeam.md b/src/Teams/beta/examples/New-MgBetaUserTeamworkAssociatedTeam.md index b082bc21df9..a5516b12956 100644 --- a/src/Teams/beta/examples/New-MgBetaUserTeamworkAssociatedTeam.md +++ b/src/Teams/beta/examples/New-MgBetaUserTeamworkAssociatedTeam.md @@ -1,12 +1,10 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams # A UPN can also be used as -UserId. -Get-MgBetaUserTeamworkAssociatedTeam -UserId $userId -``` -This example shows how to use the New-MgBetaUserTeamworkAssociatedTeam Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUserTeamworkAssociatedTeam -UserId $userId +``` +This example shows how to use the New-MgBetaBetaUserTeamworkAssociatedTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/New-MgBetaUserTeamworkInstalledApp.md b/src/Teams/beta/examples/New-MgBetaUserTeamworkInstalledApp.md index 23ddf79588c..959d4300ab4 100644 --- a/src/Teams/beta/examples/New-MgBetaUserTeamworkInstalledApp.md +++ b/src/Teams/beta/examples/New-MgBetaUserTeamworkInstalledApp.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgBetaUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" } -New-MgBetaUserTeamworkInstalledApp -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaUserTeamworkInstalledApp -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserTeamworkInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamApp.md b/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamApp.md index 0face59a6e1..7e7162788ca 100644 --- a/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamApp.md +++ b/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamApp.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaAppCatalogTeamApp -TeamsAppId $teamsAppId -``` -This example shows how to use the Remove-MgBetaAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Remove-MgBetaAppCatalogTeamApp -TeamsAppId $teamsAppId +``` +This example shows how to use the Remove-MgBetaBetaAppCatalogTeamApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamAppDefinition.md b/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamAppDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamAppDefinition.md +++ b/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamAppDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamAppDefinitionBot.md b/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamAppDefinitionBot.md index a15dbe182a6..568ebdd5572 100644 --- a/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamAppDefinitionBot.md +++ b/src/Teams/beta/examples/Remove-MgBetaAppCatalogTeamAppDefinitionBot.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId -``` -This example shows how to use the Remove-MgBetaAppCatalogTeamAppDefinitionBot Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId +``` +This example shows how to use the Remove-MgBetaBetaAppCatalogTeamAppDefinitionBot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaChat.md b/src/Teams/beta/examples/Remove-MgBetaChat.md index e6db5dd59a5..1ac68c2da75 100644 --- a/src/Teams/beta/examples/Remove-MgBetaChat.md +++ b/src/Teams/beta/examples/Remove-MgBetaChat.md @@ -1,15 +1,13 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams $params = @{ - Topic = "Group chat title update" + topic = "Group chat title update" } -Update-MgBetaChat -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaChat Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaChat -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaChatInstalledApp.md b/src/Teams/beta/examples/Remove-MgBetaChatInstalledApp.md index 3db3a5d9267..7bba7d2e2d0 100644 --- a/src/Teams/beta/examples/Remove-MgBetaChatInstalledApp.md +++ b/src/Teams/beta/examples/Remove-MgBetaChatInstalledApp.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId -``` -This example shows how to use the Remove-MgBetaChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Remove-MgBetaBetaChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaChatMember.md b/src/Teams/beta/examples/Remove-MgBetaChatMember.md index 8b5fcf007cc..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaChatMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaChatMember.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaChatMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaChatMessageReplyHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaChatMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaChatMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaChatMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaChatPinnedMessage.md b/src/Teams/beta/examples/Remove-MgBetaChatPinnedMessage.md index 3cedb1134fb..51a49fd7cc8 100644 --- a/src/Teams/beta/examples/Remove-MgBetaChatPinnedMessage.md +++ b/src/Teams/beta/examples/Remove-MgBetaChatPinnedMessage.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaChatPinnedMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaChatPinnedMessage -ChatId $chatId -PinnedChatMessageInfoId $pinnedChatMessageInfoId -``` -This example shows how to use the Remove-MgBetaChatPinnedMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Remove-MgBetaChatPinnedMessage -ChatId $chatId -PinnedChatMessageInfoId $pinnedChatMessageInfoId +``` +This example shows how to use the Remove-MgBetaBetaChatPinnedMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaChatTab.md b/src/Teams/beta/examples/Remove-MgBetaChatTab.md index c3950454e5f..2552028f601 100644 --- a/src/Teams/beta/examples/Remove-MgBetaChatTab.md +++ b/src/Teams/beta/examples/Remove-MgBetaChatTab.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -``` -This example shows how to use the Remove-MgBetaChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update the name of a tab in a chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + displayName = "My Contoso Tab - updated again" +} + +Update-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannel.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannel.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannel.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannel.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessage.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessage.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageReply.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamInstalledApp.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamInstalledApp.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamInstalledApp.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamInstalledApp.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamMember.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannel.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannel.md index 2c9cdebf99a..20ae5c0a987 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannel.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannel.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamPrimaryChannel -TeamId $teamId -``` -This example shows how to use the Remove-MgBetaGroupTeamPrimaryChannel Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamPrimaryChannel -TeamId $teamId +``` +This example shows how to use the Remove-MgBetaBetaGroupTeamPrimaryChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageReply.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageReply.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamSchedule.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamSchedule.md index 3fd080876b0..fec594582b2 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamSchedule.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamSchedule.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamSchedule -TeamId $teamId -``` -This example shows how to use the Remove-MgBetaGroupTeamSchedule Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamSchedule -TeamId $teamId +``` +This example shows how to use the Remove-MgBetaBetaGroupTeamSchedule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOfferShiftRequest.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOfferShiftRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOfferShiftRequest.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOfferShiftRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOpenShift.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOpenShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOpenShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOffRequest.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOffRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOffRequest.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamScheduleTimeOffRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamTag.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamTag.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamTag.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamTag.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaGroupTeamTagMember.md b/src/Teams/beta/examples/Remove-MgBetaGroupTeamTagMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaGroupTeamTagMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaGroupTeamTagMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeam.md b/src/Teams/beta/examples/Remove-MgBetaTeam.md index 2567e8d9c1a..93834f3f8ba 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeam.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeam.md @@ -1,25 +1,23 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +```powershell Import-Module Microsoft.Graph.Beta.Teams $params = @{ - MemberSettings = @{ - AllowCreateUpdateChannels = $true + memberSettings = @{ + allowCreateUpdateChannels = $true } - MessagingSettings = @{ - AllowUserEditMessages = $true - AllowUserDeleteMessages = $true + messagingSettings = @{ + allowUserEditMessages = $true + allowUserDeleteMessages = $true } - FunSettings = @{ - AllowGiphy = $true - GiphyContentRating = "strict" + funSettings = @{ + allowGiphy = $true + giphyContentRating = "strict" } } -Update-MgBetaTeam -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Remove-MgBetaTeam Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaTeam -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamChannel.md b/src/Teams/beta/examples/Remove-MgBetaTeamChannel.md index 8679e4999d0..889c6588c4b 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamChannel.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamChannel.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamChannel -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Remove-MgBetaTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Update-MgBetaTeamChannel -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Remove-MgBetaBetaTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamChannelMember.md b/src/Teams/beta/examples/Remove-MgBetaTeamChannelMember.md index ea9cfa69375..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamChannelMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamChannelMember.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaTeamChannelMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/Remove-MgBetaTeamChannelSharedWithTeam.md index cfec3aab5c7..0434a84a12e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamChannelSharedWithTeam.md @@ -1,14 +1,9 @@ -### Example 1: Using the Remove-MgBetaTeamChannelSharedWithTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId -``` -This example shows how to use the Remove-MgBetaTeamChannelSharedWithTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Remove-MgBetaTeamChannelSharedWithTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId -``` -This example shows how to use the Remove-MgBetaTeamChannelSharedWithTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId +``` +This example shows how to use the Remove-MgBetaBetaTeamChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamInstalledApp.md b/src/Teams/beta/examples/Remove-MgBetaTeamInstalledApp.md index f9fa4db49f4..f8088070445 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamInstalledApp.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamInstalledApp.md @@ -1,7 +1,18 @@ -### Example 1: Using the Remove-MgBetaTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -``` -This example shows how to use the Remove-MgBetaTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get the installed app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Remove-MgBetaBetaTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the names and other details of the installed app + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" +``` +This example shows how to use the Remove-MgBetaBetaTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamMember.md b/src/Teams/beta/examples/Remove-MgBetaTeamMember.md index 44164cd00da..e275d260838 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamMember.md @@ -1,7 +1,16 @@ -### Example 1: Using the Remove-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -``` -This example shows how to use the Remove-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) +} + +Update-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannel.md b/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannel.md index 99a97426ce0..594b97d64aa 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannel.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannel.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamPrimaryChannel -TeamId $teamId -``` -This example shows how to use the Remove-MgBetaTeamPrimaryChannel Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamPrimaryChannel -TeamId $teamId +``` +This example shows how to use the Remove-MgBetaBetaTeamPrimaryChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelSharedWithTeam.md b/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamPrimaryChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamSchedule.md b/src/Teams/beta/examples/Remove-MgBetaTeamSchedule.md index 126a2444549..aaea8f4b8d4 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamSchedule.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamSchedule.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamSchedule -TeamId $teamId -``` -This example shows how to use the Remove-MgBetaTeamSchedule Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamSchedule -TeamId $teamId +``` +This example shows how to use the Remove-MgBetaBetaTeamSchedule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOfferShiftRequest.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOfferShiftRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOfferShiftRequest.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOfferShiftRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShift.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShift.md index 5abebc31221..70604233560 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShift.md @@ -1,7 +1,31 @@ -### Example 1: Using the Remove-MgBetaTeamScheduleOpenShift Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -``` -This example shows how to use the Remove-MgBetaTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedOpenShift = @{ + notes = "Inventory Management" + openSlotCount = 5 + displayName = "Field shift" + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") + theme = "white" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") + code = "" + displayName = "Lunch" + } + ) + } + draftOpenShift = $null +} + +Update-MgBetaTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaTeamScheduleOpenShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShiftChangeRequest.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleOpenShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleSchedulingGroup.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleSchedulingGroup.md index 48d47b20803..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleSchedulingGroup.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleSchedulingGroup.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaTeamScheduleSchedulingGroup Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamScheduleSchedulingGroup -TeamId $teamId -SchedulingGroupId $schedulingGroupId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaTeamScheduleSchedulingGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaTeamScheduleShift.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleShift.md index b9296dc7c62..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleShift.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleShift.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaTeamScheduleShift Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamScheduleShift -TeamId $teamId -ShiftId $shiftId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaTeamScheduleSwapShiftChangeRequest.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleSwapShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOff.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOff.md index 26cc55d1444..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOff.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOff.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaTeamScheduleTimeOff Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamScheduleTimeOff -TeamId $teamId -TimeOffId $timeOffId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaTeamScheduleTimeOff Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaTeamScheduleTimeOffReason.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOffReason.md index b9b23aa6168..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOffReason.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOffReason.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgBetaTeamScheduleTimeOffReason Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamScheduleTimeOffReason -TeamId $teamId -TimeOffReasonId $timeOffReasonId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgBetaTeamScheduleTimeOffReason Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/Remove-MgBetaTeamScheduleTimeOffRequest.md b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOffRequest.md index cc811ba12a1..51ec72f202c 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOffRequest.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamScheduleTimeOffRequest.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaTeamScheduleTimeOffRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId -``` -This example shows how to use the Remove-MgBetaTeamScheduleTimeOffRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId +``` +This example shows how to use the Remove-MgBetaBetaTeamScheduleTimeOffRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamTag.md b/src/Teams/beta/examples/Remove-MgBetaTeamTag.md index d491378dc38..00e00733aa4 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamTag.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamTag.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgBetaTeamTag Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -``` -This example shows how to use the Remove-MgBetaTeamTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + displayName = "Finance" +} + +Update-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaTeamTag Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamTagMember.md b/src/Teams/beta/examples/Remove-MgBetaTeamTagMember.md index bb1ad4e058e..e3395a43f48 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamTagMember.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamTagMember.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaTeamTagMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId -``` -This example shows how to use the Remove-MgBetaTeamTagMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId +``` +This example shows how to use the Remove-MgBetaBetaTeamTagMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessage.md b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessage.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageReply.md b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaTeamworkWorkforceIntegration.md b/src/Teams/beta/examples/Remove-MgBetaTeamworkWorkforceIntegration.md index 1b3aa366d43..1fd664de8a6 100644 --- a/src/Teams/beta/examples/Remove-MgBetaTeamworkWorkforceIntegration.md +++ b/src/Teams/beta/examples/Remove-MgBetaTeamworkWorkforceIntegration.md @@ -1,7 +1,21 @@ -### Example 1: Using the Remove-MgBetaTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -``` -This example shows how to use the Remove-MgBetaTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +$params = @{ + displayName = "displayName-value" + apiVersion = 99 + encryption = @{ + protocol = "protocol-value" + secret = "secret-value" + } + isActive = $true + url = "url-value" + supportedEntities = "supportedEntities-value" +} + +Update-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaTeamworkWorkforceIntegration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Remove-MgBetaUserChat.md b/src/Teams/beta/examples/Remove-MgBetaUserChat.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaUserChat.md +++ b/src/Teams/beta/examples/Remove-MgBetaUserChat.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaUserChatInstalledApp.md b/src/Teams/beta/examples/Remove-MgBetaUserChatInstalledApp.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaUserChatInstalledApp.md +++ b/src/Teams/beta/examples/Remove-MgBetaUserChatInstalledApp.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaUserChatMessage.md b/src/Teams/beta/examples/Remove-MgBetaUserChatMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaUserChatMessage.md +++ b/src/Teams/beta/examples/Remove-MgBetaUserChatMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaUserChatMessageHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaUserChatMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaUserChatMessageHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaUserChatMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaUserChatMessageReply.md b/src/Teams/beta/examples/Remove-MgBetaUserChatMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaUserChatMessageReply.md +++ b/src/Teams/beta/examples/Remove-MgBetaUserChatMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaUserChatMessageReplyHostedContent.md b/src/Teams/beta/examples/Remove-MgBetaUserChatMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaUserChatMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Remove-MgBetaUserChatMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaUserChatPinnedMessage.md b/src/Teams/beta/examples/Remove-MgBetaUserChatPinnedMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaUserChatPinnedMessage.md +++ b/src/Teams/beta/examples/Remove-MgBetaUserChatPinnedMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaUserChatTab.md b/src/Teams/beta/examples/Remove-MgBetaUserChatTab.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Remove-MgBetaUserChatTab.md +++ b/src/Teams/beta/examples/Remove-MgBetaUserChatTab.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Remove-MgBetaUserTeamworkInstalledApp.md b/src/Teams/beta/examples/Remove-MgBetaUserTeamworkInstalledApp.md index ab2a3a8e508..8bee3745f16 100644 --- a/src/Teams/beta/examples/Remove-MgBetaUserTeamworkInstalledApp.md +++ b/src/Teams/beta/examples/Remove-MgBetaUserTeamworkInstalledApp.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -Remove-MgBetaUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId -``` -This example shows how to use the Remove-MgBetaUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId +``` +This example shows how to use the Remove-MgBetaBetaUserTeamworkInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Set-MgBetaGroupTeamChannelFileFolderContent.md b/src/Teams/beta/examples/Set-MgBetaGroupTeamChannelFileFolderContent.md index fafc280890b..68ac9fe0644 100644 --- a/src/Teams/beta/examples/Set-MgBetaGroupTeamChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Set-MgBetaGroupTeamChannelFileFolderContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Set-MgBetaGroupTeamChannelFileFolderContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Set-MgBetaBetaGroupTeamChannelFileFolderContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Set-MgBetaGroupTeamPrimaryChannelFileFolderContent.md b/src/Teams/beta/examples/Set-MgBetaGroupTeamPrimaryChannelFileFolderContent.md index 3031cf3e57f..25c5af2a409 100644 --- a/src/Teams/beta/examples/Set-MgBetaGroupTeamPrimaryChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Set-MgBetaGroupTeamPrimaryChannelFileFolderContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Set-MgBetaGroupTeamPrimaryChannelFileFolderContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Set-MgBetaBetaGroupTeamPrimaryChannelFileFolderContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Set-MgBetaTeamChannelFileFolderContent.md b/src/Teams/beta/examples/Set-MgBetaTeamChannelFileFolderContent.md index 915cbeae939..692ed0d174c 100644 --- a/src/Teams/beta/examples/Set-MgBetaTeamChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Set-MgBetaTeamChannelFileFolderContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Set-MgBetaTeamChannelFileFolderContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Set-MgBetaBetaTeamChannelFileFolderContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Set-MgBetaTeamPrimaryChannelFileFolderContent.md b/src/Teams/beta/examples/Set-MgBetaTeamPrimaryChannelFileFolderContent.md index 26ab4780768..fc0bfe0a993 100644 --- a/src/Teams/beta/examples/Set-MgBetaTeamPrimaryChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Set-MgBetaTeamPrimaryChannelFileFolderContent.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Set-MgBetaTeamPrimaryChannelFileFolderContent Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Set-MgBetaBetaTeamPrimaryChannelFileFolderContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Set-MgBetaTeamworkDeletedTeamChannelFileFolderContent.md b/src/Teams/beta/examples/Set-MgBetaTeamworkDeletedTeamChannelFileFolderContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Set-MgBetaTeamworkDeletedTeamChannelFileFolderContent.md +++ b/src/Teams/beta/examples/Set-MgBetaTeamworkDeletedTeamChannelFileFolderContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamApp.md b/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamApp.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamApp.md +++ b/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamApp.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamAppDefinition.md b/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamAppDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamAppDefinition.md +++ b/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamAppDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamAppDefinitionBot.md b/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamAppDefinitionBot.md index d2036166ad6..4b848edae0d 100644 --- a/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamAppDefinitionBot.md +++ b/src/Teams/beta/examples/Update-MgBetaAppCatalogTeamAppDefinitionBot.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId -``` -This example shows how to use the Update-MgBetaAppCatalogTeamAppDefinitionBot Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId +``` +This example shows how to use the Update-MgBetaBetaAppCatalogTeamAppDefinitionBot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaChat.md b/src/Teams/beta/examples/Update-MgBetaChat.md index 2f57df631e1..9e27e8e7c13 100644 --- a/src/Teams/beta/examples/Update-MgBetaChat.md +++ b/src/Teams/beta/examples/Update-MgBetaChat.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - Topic = "Group chat title update" + topic = "Group chat title update" } -Update-MgBetaChat -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaChat -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaChatMessage.md b/src/Teams/beta/examples/Update-MgBetaChatMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaChatMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaChatMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaChatMessageReply.md b/src/Teams/beta/examples/Update-MgBetaChatMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaChatMessageReply.md +++ b/src/Teams/beta/examples/Update-MgBetaChatMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaChatMessageReplyHostedContent.md b/src/Teams/beta/examples/Update-MgBetaChatMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaChatMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaChatMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaChatPinnedMessage.md b/src/Teams/beta/examples/Update-MgBetaChatPinnedMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaChatPinnedMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaChatPinnedMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaChatTab.md b/src/Teams/beta/examples/Update-MgBetaChatTab.md index 5300fe6c173..174feae4dc5 100644 --- a/src/Teams/beta/examples/Update-MgBetaChatTab.md +++ b/src/Teams/beta/examples/Update-MgBetaChatTab.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Update the name of a tab in a chat + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "My Contoso Tab - updated again" + displayName = "My Contoso Tab - updated again" } -Update-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannel.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannel.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannel.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannel.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessage.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageReply.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamMember.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamMember.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannel.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannel.md index d1c3a7b14ae..f972e0345c2 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannel.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannel.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamPrimaryChannel -TeamId $teamId -``` -This example shows how to use the Update-MgBetaGroupTeamPrimaryChannel Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamPrimaryChannel -TeamId $teamId +``` +This example shows how to use the Update-MgBetaBetaGroupTeamPrimaryChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageReply.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageReply.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamPrimaryChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOfferShiftRequest.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOfferShiftRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOfferShiftRequest.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOfferShiftRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOpenShift.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOpenShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOpenShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleOpenShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleSwapShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOffRequest.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOffRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOffRequest.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamScheduleTimeOffRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamTag.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamTag.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamTag.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamTag.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaGroupTeamTagMember.md b/src/Teams/beta/examples/Update-MgBetaGroupTeamTagMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaGroupTeamTagMember.md +++ b/src/Teams/beta/examples/Update-MgBetaGroupTeamTagMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeam.md b/src/Teams/beta/examples/Update-MgBetaTeam.md index 0c4bb4f82c9..fabad1d51c2 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeam.md +++ b/src/Teams/beta/examples/Update-MgBetaTeam.md @@ -1,24 +1,23 @@ -### Example 1: Using the Update-MgBetaTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - IsMembershipLimitedToOwners = $true - MemberSettings = @{ - AllowCreateUpdateChannels = $true + memberSettings = @{ + allowCreateUpdateChannels = $true } - MessagingSettings = @{ - AllowUserEditMessages = $true - AllowUserDeleteMessages = $true + messagingSettings = @{ + allowUserEditMessages = $true + allowUserDeleteMessages = $true } - FunSettings = @{ - AllowGiphy = $true - GiphyContentRating = "strict" - } - DiscoverySettings = @{ - ShowInTeamsSearchAndSuggestions = $true + funSettings = @{ + allowGiphy = $true + giphyContentRating = "strict" } } -Update-MgBetaTeam -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaTeam -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaTeamChannel.md b/src/Teams/beta/examples/Update-MgBetaTeamChannel.md index 6313974de84..a976aa02b5d 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamChannel.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamChannel.md @@ -1,17 +1,9 @@ -### Example 1: Using the Update-MgBetaTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - DisplayName = "UpdateChannelModeration" - Description = "Update channel moderation." - ModerationSettings = @{ - UserNewMessageRestriction = "moderators" - ReplyRestriction = "everyone" - AllowNewMessageFromBots = $true - AllowNewMessageFromConnectors = $true - } -} -Update-MgBetaTeamChannel -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + +Update-MgBetaTeamChannel -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Update-MgBetaBetaTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaTeamChannelMember.md b/src/Teams/beta/examples/Update-MgBetaTeamChannelMember.md index cbd054d00ba..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamChannelMember.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamChannelMember.md @@ -1,26 +1,17 @@ -### Example 1: Using the Update-MgBetaTeamChannelMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) -} -Update-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaTeamChannelMember Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Beta.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) -} -Update-MgBetaTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgBetaTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/beta/examples/Update-MgBetaTeamChannelMessage.md b/src/Teams/beta/examples/Update-MgBetaTeamChannelMessage.md index b3238254d74..f6646122168 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamChannelMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamChannelMessage.md @@ -1,156 +1,166 @@ -### Example 1: Using the Update-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Update policyViolation property using application permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - PolicyViolation = @{ - PolicyTip = @{ - GeneralText = "This item has been blocked by the administrator." - ComplianceUrl = "https://contoso.com/dlp-policy-page" - MatchedConditionDescriptions = @( + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( "Credit Card Number" ) } - VerdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - DlpAction = "BlockAccess" + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" } } -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Update-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - MessageType = "message" - Subject = $null - Summary = $null - Importance = "normal" - Locale = "en-us" - From = @{ - Application = $null - Device = $null - User = @{ - Id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - DisplayName = "Sumit Gupta" - UserIdentityType = "aadUser" + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" } - Conversation = $null + conversation = $null } - Body = @{ - ContentType = "text" - Content = "Edit text only" + body = @{ + contentType = "text" + content = "Edit text only" } - Attachments = @( + attachments = @( ) - Mentions = @( + mentions = @( ) - Reactions = @( + reactions = @( ) } -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Update-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - MessageType = "message" - DeletedDateTime = $null - Subject = $null - Summary = $null - Importance = "normal" - Locale = "en-us" - From = @{ - Application = $null - Device = $null - Conversation = $null - User = @{ - Id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" - DisplayName = "Sumit Gupta" - UserIdentityType = "aadUser" + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" } } - Body = @{ - ContentType = "html" - Content = "
-
-
-
-
RaghavTestGlobalBot YEAH" + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" } - Attachments = @( + attachments = @( ) - Mentions = @( + mentions = @( @{ - Id = 0 - MentionText = "Raghav" - Mentioned = @{ - Application = $null - Device = $null - Conversation = $null - User = @{ - Id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" - DisplayName = "Raghav Mankad" - UserIdentityType = "aadUser" + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" } } } @{ - Id = 1 - MentionText = "TestGlobalBot" - Mentioned = @{ - Application = @{ - Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - DisplayName = "TestGlobalBot" - ApplicationIdentityType = "bot" + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" } - Device = $null - Conversation = $null - User = $null + device = $null + conversation = $null + user = $null } } ) - Reactions = @( + reactions = @( ) } -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Update-MgBetaTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Update the content with attachments of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - MessageType = "message" - Subject = $null - Summary = $null - Importance = "normal" - Locale = "en-us" - From = @{ - Application = $null - Device = $null - User = @{ - Id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" - DisplayName = "Sumit Gupta" - UserIdentityType = "aadUser" + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" } - Conversation = $null + conversation = $null } - Body = @{ - ContentType = "html" - Content = "

text

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

text

" + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" } - Attachments = @( + attachments = @( @{ - Id = "e8f78756199240b88448ae0fc6db112d" - ContentType = "application/vnd.microsoft.card.hero" - ContentUrl = $null - Content = "{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ "title": "*title*", "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here’s a small sample of some recipes to whet your appetite.", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", "images": [ { "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" @@ -257,13 +270,13 @@ $params = @{ { "type": "openUrl", "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", - "title": "😃😃 click me 😃😃", + "title": "???????? click me ????????", "value": "http://microsoft.com" }, { "type": "imback", - "title": "&i am back& <>= \"", - "value": "&i am back& <>= \"" + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" }, { "type": "openUrl", @@ -272,17 +285,17 @@ $params = @{ } ] }" - Name = $null - ThumbnailUrl = $null + name = $null + thumbnailUrl = $null } @{ - Id = "638464e32834471ea202007da60a5ae6" - ContentType = "application/vnd.microsoft.card.hero" - ContentUrl = $null - Content = "{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ "title": "*title*", "subtitle": "*subtitle*", - "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here’s a small sample of some recipes to whet your appetite.", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", "images": [ { "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" @@ -291,129 +304,131 @@ $params = @{ "buttons": [ { "type": "messageBack", - "title": "&message back& <>= \"", - "text": "text = &message back& <>= \"", - "displayText": "displayText = &message back& <>= \"", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", "value": { "text": "some text 2" } } ] }" - Name = $null - ThumbnailUrl = $null + name = $null + thumbnailUrl = $null } ) - Mentions = @( + mentions = @( ) - Reactions = @( + reactions = @( @{ - ReactionType = "angry" - CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") - User = @{ - Application = $null - Device = $null - User = @{ - Id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - DisplayName = $null - UserIdentityType = "aadUser" + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" } } } @{ - ReactionType = "laugh" - CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") - User = @{ - Application = $null - Device = $null - User = @{ - Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - DisplayName = $null - UserIdentityType = "aadUser" + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" } } } @{ - ReactionType = "like" - CreatedDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") - User = @{ - Application = $null - Device = $null - User = @{ - Id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" - DisplayName = $null - UserIdentityType = "aadUser" + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" } } } @{ - ReactionType = "like" - CreatedDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") - User = @{ - Application = $null - Device = $null - User = @{ - Id = "4c9041b7-449a-40f7-8855-56da239b9fd1" - DisplayName = $null - UserIdentityType = "aadUser" + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" } } } @{ - ReactionType = "like" - CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") - User = @{ - Application = $null - Device = $null - User = @{ - Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - DisplayName = $null - UserIdentityType = "aadUser" + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" } } } @{ - ReactionType = "heart" - CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") - User = @{ - Application = $null - Device = $null - User = @{ - Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - DisplayName = $null - UserIdentityType = "aadUser" + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" } } } @{ - ReactionType = "sad" - CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") - User = @{ - Application = $null - Device = $null - User = @{ - Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - DisplayName = $null - UserIdentityType = "aadUser" + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" } } } @{ - ReactionType = "surprised" - CreatedDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") - User = @{ - Application = $null - Device = $null - User = @{ - Id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" - DisplayName = $null - UserIdentityType = "aadUser" + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" } } } ) } -Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaTeamChannelMessageReply.md b/src/Teams/beta/examples/Update-MgBetaTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Update-MgBetaTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/Update-MgBetaTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamMember.md b/src/Teams/beta/examples/Update-MgBetaTeamMember.md index f882f12448d..d43d25588fa 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamMember.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamMember.md @@ -1,13 +1,16 @@ -### Example 1: Using the Update-MgBetaTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) } -Update-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannel.md b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannel.md index d3ef2edc715..bbf6916ea5b 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannel.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannel.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Teams - -Get-MgBetaTeamPrimaryChannel -TeamId $teamId -``` -This example shows how to use the Update-MgBetaTeamPrimaryChannel Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Teams +Get-MgBetaTeamPrimaryChannel -TeamId $teamId +``` +This example shows how to use the Update-MgBetaBetaTeamPrimaryChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessage.md b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessageReply.md b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessageReply.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelSharedWithTeam.md b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamPrimaryChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamScheduleOfferShiftRequest.md b/src/Teams/beta/examples/Update-MgBetaTeamScheduleOfferShiftRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamScheduleOfferShiftRequest.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamScheduleOfferShiftRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamScheduleOpenShift.md b/src/Teams/beta/examples/Update-MgBetaTeamScheduleOpenShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamScheduleOpenShift.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamScheduleOpenShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamScheduleOpenShiftChangeRequest.md b/src/Teams/beta/examples/Update-MgBetaTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamScheduleOpenShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamScheduleSwapShiftChangeRequest.md b/src/Teams/beta/examples/Update-MgBetaTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamScheduleSwapShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOffRequest.md b/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOffRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOffRequest.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamScheduleTimeOffRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamTag.md b/src/Teams/beta/examples/Update-MgBetaTeamTag.md index 0996f653b27..a5e30db82a1 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamTag.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamTag.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgBetaTeamTag Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "Finance" + displayName = "Finance" } -Update-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaTeamTag Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaTeamTag Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaTeamTagMember.md b/src/Teams/beta/examples/Update-MgBetaTeamTagMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamTagMember.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamTagMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessage.md b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageReply.md b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageReply.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamworkDeletedTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaTeamworkWorkforceIntegration.md b/src/Teams/beta/examples/Update-MgBetaTeamworkWorkforceIntegration.md index 8c7031c3e50..09fbf46cd3b 100644 --- a/src/Teams/beta/examples/Update-MgBetaTeamworkWorkforceIntegration.md +++ b/src/Teams/beta/examples/Update-MgBetaTeamworkWorkforceIntegration.md @@ -1,18 +1,21 @@ -### Example 1: Using the Update-MgBetaTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Teams + $params = @{ - DisplayName = "displayName-value" - ApiVersion = 99 - Encryption = @{ - Protocol = "protocol-value" - Secret = "secret-value" + displayName = "displayName-value" + apiVersion = 99 + encryption = @{ + protocol = "protocol-value" + secret = "secret-value" } - IsActive = $true - Url = "url-value" - Supports = "supports-value" + isActive = $true + url = "url-value" + supportedEntities = "supportedEntities-value" } -Update-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaTeamworkWorkforceIntegration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Update-MgBetaUserChat.md b/src/Teams/beta/examples/Update-MgBetaUserChat.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaUserChat.md +++ b/src/Teams/beta/examples/Update-MgBetaUserChat.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaUserChatMessage.md b/src/Teams/beta/examples/Update-MgBetaUserChatMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaUserChatMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaUserChatMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaUserChatMessageHostedContent.md b/src/Teams/beta/examples/Update-MgBetaUserChatMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaUserChatMessageHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaUserChatMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaUserChatMessageReply.md b/src/Teams/beta/examples/Update-MgBetaUserChatMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaUserChatMessageReply.md +++ b/src/Teams/beta/examples/Update-MgBetaUserChatMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaUserChatMessageReplyHostedContent.md b/src/Teams/beta/examples/Update-MgBetaUserChatMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaUserChatMessageReplyHostedContent.md +++ b/src/Teams/beta/examples/Update-MgBetaUserChatMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaUserChatPinnedMessage.md b/src/Teams/beta/examples/Update-MgBetaUserChatPinnedMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaUserChatPinnedMessage.md +++ b/src/Teams/beta/examples/Update-MgBetaUserChatPinnedMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/beta/examples/Update-MgBetaUserChatTab.md b/src/Teams/beta/examples/Update-MgBetaUserChatTab.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/beta/examples/Update-MgBetaUserChatTab.md +++ b/src/Teams/beta/examples/Update-MgBetaUserChatTab.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Get-MgAppCatalogTeamApp.md b/src/Teams/v1.0/examples/Get-MgAppCatalogTeamApp.md index f561d263263..b9f0737408c 100644 --- a/src/Teams/v1.0/examples/Get-MgAppCatalogTeamApp.md +++ b/src/Teams/v1.0/examples/Get-MgAppCatalogTeamApp.md @@ -1,35 +1,9 @@ -### Example 1: Using the Get-MgAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgAppCatalogTeamApp -Filter "externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgAppCatalogTeamApp -Filter "id eq 'b1c5353a-7aca-41b3-830f-27d5218fe0e5'" -``` -This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgAppCatalogTeamApp -ExpandProperty "appDefinitions(`$expand=bot)" -Filter "appDefinitions/any(a:a/bot ne null)" -``` -This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgAppCatalogTeamApp -Filter "id eq '876df28f-2e78-423b-94a5-44181bd0e225'" -ExpandProperty "appDefinitions" -``` -This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgAppCatalogTeamApp -Filter "distributionMethod eq 'organization'" -``` -This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Remove-MgAppCatalogTeamApp -TeamsAppId $teamsAppId +``` +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgAppCatalogTeamAppDefinition.md b/src/Teams/v1.0/examples/Get-MgAppCatalogTeamAppDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgAppCatalogTeamAppDefinition.md +++ b/src/Teams/v1.0/examples/Get-MgAppCatalogTeamAppDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Get-MgAppCatalogTeamAppDefinitionBot.md b/src/Teams/v1.0/examples/Get-MgAppCatalogTeamAppDefinitionBot.md index b824ccbf164..f7bdaf20589 100644 --- a/src/Teams/v1.0/examples/Get-MgAppCatalogTeamAppDefinitionBot.md +++ b/src/Teams/v1.0/examples/Get-MgAppCatalogTeamAppDefinitionBot.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgAppCatalogTeamAppDefinitionBot Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId -``` -This example shows how to use the Get-MgAppCatalogTeamAppDefinitionBot Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId +``` +This example shows how to use the Get-MgAppCatalogTeamAppDefinitionBot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgChat.md b/src/Teams/v1.0/examples/Get-MgChat.md index 7aba3b16c0c..a61a1a0d739 100644 --- a/src/Teams/v1.0/examples/Get-MgChat.md +++ b/src/Teams/v1.0/examples/Get-MgChat.md @@ -1,28 +1,13 @@ -### Example 1: Using the Get-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChat -ChatId $chatId -ExpandProperty "members" -``` -This example shows how to use the Get-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChat -ChatId $chatId -``` -This example shows how to use the Get-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChat -ChatId $chatId -``` -This example shows how to use the Get-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChat -Sort "lastMessagePreview/createdDateTime desc" -``` -This example shows how to use the Get-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + topic = "Group chat title update" +} + +Update-MgChat -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Get-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgChatInstalledApp.md b/src/Teams/v1.0/examples/Get-MgChatInstalledApp.md index 494295a7604..19dfcf1f0e7 100644 --- a/src/Teams/v1.0/examples/Get-MgChatInstalledApp.md +++ b/src/Teams/v1.0/examples/Get-MgChatInstalledApp.md @@ -1,28 +1,9 @@ -### Example 1: Using the Get-MgChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId -``` -This example shows how to use the Get-MgChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsAppDefinition(`$expand=bot)" -``` -This example shows how to use the Get-MgChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatInstalledApp -ChatId $chatId -``` -This example shows how to use the Get-MgChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Get-MgChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgChatMember.md b/src/Teams/v1.0/examples/Get-MgChatMember.md index d1744db6365..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgChatMember.md +++ b/src/Teams/v1.0/examples/Get-MgChatMember.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgChatMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgChatMember Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatMember -ChatId $chatId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/v1.0/examples/Get-MgChatMessage.md b/src/Teams/v1.0/examples/Get-MgChatMessage.md index abe16ce95cd..cdb2d632080 100644 --- a/src/Teams/v1.0/examples/Get-MgChatMessage.md +++ b/src/Teams/v1.0/examples/Get-MgChatMessage.md @@ -1,14 +1,27 @@ -### Example 1: Using the Get-MgChatMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatMessage -ChatId $chatId -Top 2 -``` -This example shows how to use the Get-MgChatMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgChatMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgChatMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a message in a chat + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgChatMessageHostedContent.md b/src/Teams/v1.0/examples/Get-MgChatMessageHostedContent.md index 7758bbb64e0..5f07ca8f0ea 100644 --- a/src/Teams/v1.0/examples/Get-MgChatMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgChatMessageHostedContent.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgChatMessageHostedContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId -``` -This example shows how to use the Get-MgChatMessageHostedContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgChatMessageHostedContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgChatMessageHostedContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgChatMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgChatMessageReply.md b/src/Teams/v1.0/examples/Get-MgChatMessageReply.md index bc7aa529c50..03010c0c8ff 100644 --- a/src/Teams/v1.0/examples/Get-MgChatMessageReply.md +++ b/src/Teams/v1.0/examples/Get-MgChatMessageReply.md @@ -1,8 +1,26 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgChatMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgChatMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Get-MgChatMessageReplyHostedContent.md index ccdddf525d4..c74820832db 100644 --- a/src/Teams/v1.0/examples/Get-MgChatMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgChatMessageReplyHostedContent.md @@ -1,26 +1,8 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgChatMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgChatMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` This example shows how to use the Get-MgChatMessageReplyHostedContent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgChatPinnedMessage.md b/src/Teams/v1.0/examples/Get-MgChatPinnedMessage.md index f2d4d9707bc..b1049cc706d 100644 --- a/src/Teams/v1.0/examples/Get-MgChatPinnedMessage.md +++ b/src/Teams/v1.0/examples/Get-MgChatPinnedMessage.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgChatPinnedMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatPinnedMessage -ChatId $chatId -ExpandProperty "message" -``` -This example shows how to use the Get-MgChatPinnedMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgChatPinnedMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatPinnedMessage -ChatId $chatId -``` -This example shows how to use the Get-MgChatPinnedMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Remove-MgChatPinnedMessage -ChatId $chatId -PinnedChatMessageInfoId $pinnedChatMessageInfoId +``` +This example shows how to use the Get-MgChatPinnedMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgChatTab.md b/src/Teams/v1.0/examples/Get-MgChatTab.md index 7f0e9194507..13a80806423 100644 --- a/src/Teams/v1.0/examples/Get-MgChatTab.md +++ b/src/Teams/v1.0/examples/Get-MgChatTab.md @@ -1,21 +1,13 @@ -### Example 1: Using the Get-MgChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" -``` -This example shows how to use the Get-MgChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.web'" -``` -This example shows how to use the Get-MgChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" -``` -This example shows how to use the Get-MgChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update the name of a tab in a chat + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + displayName = "My Contoso Tab - updated again" +} + +Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +``` +This example shows how to use the Get-MgChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMember.md b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMember.md index cba883fc79a..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMember.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMember.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgGroupTeamChannelMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/Get-MgGroupTeamChannelMessage.md b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessage.md index e1e26d6cd37..3f87765483f 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessage.md @@ -1,17 +1,433 @@ -### Example 1: Code snippet +### Example 1: Update policyViolation property using application permissions ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 +$params = @{ + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( + "Credit Card Number" + ) + } + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" + } +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "text" + content = "Edit text only" + } + attachments = @( + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" + } + attachments = @( + ) + mentions = @( + @{ + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + } + @{ + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" + } + device = $null + conversation = $null + user = $null + } + } + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 4: Update the content with attachments of a message using delegated permissions ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Update the reactions in a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + @{ + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the Get-MgGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageHostedContent.md b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageHostedContent.md index f90305822b9..92ab2a33e53 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageHostedContent.md @@ -1,26 +1,8 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgGroupTeamChannelMessageHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgGroupTeamChannelMessageHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` This example shows how to use the Get-MgGroupTeamChannelMessageHostedContent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageReply.md b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageReply.md index 8abb35b7745..ca8d6d56160 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageReply.md @@ -1,8 +1,26 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgGroupTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgGroupTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgGroupTeamChannelMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageReplyHostedContent.md index 740dd2a902f..1cb3ec3b343 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelMessageReplyHostedContent.md @@ -1,26 +1,8 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgGroupTeamChannelMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgGroupTeamChannelMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` This example shows how to use the Get-MgGroupTeamChannelMessageReplyHostedContent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelSharedWithTeam.md index fe06194dafc..4c7b3ef70f2 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamChannelSharedWithTeam.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId +Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` This example shows how to use the Get-MgGroupTeamChannelSharedWithTeam Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamIncomingChannel.md b/src/Teams/v1.0/examples/Get-MgGroupTeamIncomingChannel.md index d7ccd98dec2..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamIncomingChannel.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamIncomingChannel.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamIncomingChannel -TeamId $teamId -``` -This example shows how to use the Get-MgGroupTeamIncomingChannel Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/Get-MgGroupTeamInstalledApp.md b/src/Teams/v1.0/examples/Get-MgGroupTeamInstalledApp.md index 6731eebba0a..2f8553de756 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamInstalledApp.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamInstalledApp.md @@ -1,26 +1,17 @@ -### Example 1: List installed apps +### Example 1: Get the installed app ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamInstalledApp -TeamId $teamId +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId ``` This example shows how to use the Get-MgGroupTeamInstalledApp Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Get the names and other details of installed apps +### Example 2: Get the names and other details of the installed app ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsAppDefinition" -``` -This example shows how to use the Get-MgGroupTeamInstalledApp Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the app installation resource based on the manifest ID of the associated app - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" ``` This example shows how to use the Get-MgGroupTeamInstalledApp Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamMember.md b/src/Teams/v1.0/examples/Get-MgGroupTeamMember.md index d1880b9b7e6..a7eaa20bec1 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamMember.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamMember.md @@ -1,26 +1,15 @@ -### Example 1: Get list of members in team +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamMember -TeamId $teamId -``` -This example shows how to use the Get-MgGroupTeamMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Find members of a team by their Azure AD user object ID - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/userId eq '73761f06-2ac9-469c-9f10-279a8cc267f9')" -``` -This example shows how to use the Get-MgGroupTeamMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Find members of a team by their names or email - -```powershell Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) +} -Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/displayName eq 'Harry Johnson' or microsoft.graph.aadUserConversationMember/email eq 'admin@M365x987948.OnMicrosoft.com')" +Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params ``` This example shows how to use the Get-MgGroupTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMember.md b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMember.md index b89ab9e2aec..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMember.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMember.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgGroupTeamPrimaryChannelMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessage.md index 5c60629b813..fe90d47292f 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessage.md @@ -1,17 +1,433 @@ -### Example 1: Code snippet +### Example 1: Update policyViolation property using application permissions ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 +$params = @{ + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( + "Credit Card Number" + ) + } + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" + } +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "text" + content = "Edit text only" + } + attachments = @( + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" + } + attachments = @( + ) + mentions = @( + @{ + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + } + @{ + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" + } + device = $null + conversation = $null + user = $null + } + } + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 4: Update the content with attachments of a message using delegated permissions ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Update the reactions in a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + @{ + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the Get-MgGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageHostedContent.md b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageHostedContent.md index f66f53bdd43..1d67c14ca9f 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageHostedContent.md @@ -1,26 +1,8 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgGroupTeamPrimaryChannelMessageHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgGroupTeamPrimaryChannelMessageHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` This example shows how to use the Get-MgGroupTeamPrimaryChannelMessageHostedContent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageReply.md b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageReply.md index 8a58a9cd1fa..1d33c4cc6e2 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageReply.md @@ -1,8 +1,26 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgGroupTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgGroupTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgGroupTeamPrimaryChannelMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md index 9eb13ba6368..3191de3f941 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,26 +1,8 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` This example shows how to use the Get-MgGroupTeamPrimaryChannelMessageReplyHostedContent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelSharedWithTeam.md index 89ff5ba987f..c415b9732c9 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamPrimaryChannelSharedWithTeam.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId +Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` This example shows how to use the Get-MgGroupTeamPrimaryChannelSharedWithTeam Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOfferShiftRequest.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOfferShiftRequest.md index b0244c9f387..08ebcbb17b8 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOfferShiftRequest.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOfferShiftRequest.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId +Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId -OfferShiftRequestId $offerShiftRequestId ``` This example shows how to use the Get-MgGroupTeamScheduleOfferShiftRequest Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShift.md index e482d635396..8049cef8685 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShift.md @@ -2,7 +2,29 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleOpenShift -TeamId $teamId +$params = @{ + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedOpenShift = @{ + notes = "Inventory Management" + openSlotCount = 5 + displayName = "Field shift" + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") + theme = "white" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") + code = "" + displayName = "Lunch" + } + ) + } + draftOpenShift = $null +} + +Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params ``` This example shows how to use the Get-MgGroupTeamScheduleOpenShift Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShiftChangeRequest.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShiftChangeRequest.md index 9d68bfc07ad..d3e1ee911a7 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleOpenShiftChangeRequest.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId +Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -OpenShiftChangeRequestId $openShiftChangeRequestId ``` This example shows how to use the Get-MgGroupTeamScheduleOpenShiftChangeRequest Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleSchedulingGroup.md index 22e5da3136e..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleSchedulingGroup.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamScheduleSchedulingGroup -TeamId $teamId -``` -This example shows how to use the Get-MgGroupTeamScheduleSchedulingGroup Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/Get-MgGroupTeamScheduleShift.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleShift.md index 8660dfb67be..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleShift.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamScheduleShift -TeamId $teamId -Filter "sharedShift/startDateTime ge 2019-03-11T00:00:00.000Z and sharedShift/endDateTime le 2019-03-18T00:00:00.000Z and draftShift/startDateTime ge 2019-03-11T00:00:00.000Z and draftShift/endDateTime le 2019-03-18T00:00:00.000Z" -``` -This example shows how to use the Get-MgGroupTeamScheduleShift Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/Get-MgGroupTeamScheduleSwapShiftChangeRequest.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleSwapShiftChangeRequest.md index fc70da2482a..f166cab966c 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleSwapShiftChangeRequest.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId +Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -SwapShiftsChangeRequestId $swapShiftsChangeRequestId ``` This example shows how to use the Get-MgGroupTeamScheduleSwapShiftChangeRequest Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOff.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOff.md index 881bb724ee1..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOff.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOff.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamScheduleTimeOff -TeamId $teamId -Filter "sharedTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and sharedTimeOff/endDateTime le 2019-03-18T00:00:00.000Z and draftTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and draftTimeOff/endDateTime le 2019-03-18T00:00:00.000Z" -``` -This example shows how to use the Get-MgGroupTeamScheduleTimeOff Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/Get-MgGroupTeamScheduleTimeOffReason.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOffReason.md index d1c751379e1..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOffReason.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOffReason.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamScheduleTimeOffReason -TeamId $teamId -``` -This example shows how to use the Get-MgGroupTeamScheduleTimeOffReason Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/Get-MgGroupTeamScheduleTimeOffRequest.md b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOffRequest.md index 2449dd00417..e05f6348aee 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOffRequest.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamScheduleTimeOffRequest.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleTimeOffRequest -TeamId $teamId +Get-MgTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId ``` This example shows how to use the Get-MgGroupTeamScheduleTimeOffRequest Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamTag.md b/src/Teams/v1.0/examples/Get-MgGroupTeamTag.md index 8744da2389e..c41a614e49d 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamTag.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamTag.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamTag -TeamId $teamId +$params = @{ + displayName = "Finance" +} + +Update-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params ``` This example shows how to use the Get-MgGroupTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamTagMember.md b/src/Teams/v1.0/examples/Get-MgGroupTeamTagMember.md index 648b686e3f3..330f448ec9d 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamTagMember.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamTagMember.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId +Get-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId ``` This example shows how to use the Get-MgGroupTeamTagMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeam.md b/src/Teams/v1.0/examples/Get-MgTeam.md index c5775d5c57f..f929a9b4331 100644 --- a/src/Teams/v1.0/examples/Get-MgTeam.md +++ b/src/Teams/v1.0/examples/Get-MgTeam.md @@ -1,7 +1,23 @@ -### Example 1: Using the Get-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeam -TeamId $teamId -``` -This example shows how to use the Get-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + memberSettings = @{ + allowCreateUpdateChannels = $true + } + messagingSettings = @{ + allowUserEditMessages = $true + allowUserDeleteMessages = $true + } + funSettings = @{ + allowGiphy = $true + giphyContentRating = "strict" + } +} + +Update-MgTeam -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Get-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelFileFolder.md b/src/Teams/v1.0/examples/Get-MgTeamChannelFileFolder.md index 3a0a9e0f4e1..cb621c9acca 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamChannelFileFolder.md +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelFileFolder.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgTeamChannelFileFolder Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgTeamChannelFileFolder Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Get-MgTeamChannelFileFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelMember.md b/src/Teams/v1.0/examples/Get-MgTeamChannelMember.md index 5cace31bf2d..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamChannelMember.md +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelMember.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgTeamChannelMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamChannelMember Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelMessage.md b/src/Teams/v1.0/examples/Get-MgTeamChannelMessage.md index 87b3587b2d6..d860b54765b 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelMessage.md @@ -1,21 +1,434 @@ -### Example 1: Using the Get-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -Filter "lastModifiedDateTime gt 2019-11-01T00:00:00Z and lastModifiedDateTime lt 2021-11-01T00:00:00Z" -``` -This example shows how to use the Get-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 -``` -This example shows how to use the Get-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update policyViolation property using application permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( + "Credit Card Number" + ) + } + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" + } +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "text" + content = "Edit text only" + } + attachments = @( + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" + } + attachments = @( + ) + mentions = @( + @{ + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + } + @{ + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" + } + device = $null + conversation = $null + user = $null + } + } + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Update the content with attachments of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Update the reactions in a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + @{ + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelMessageHostedContent.md b/src/Teams/v1.0/examples/Get-MgTeamChannelMessageHostedContent.md index e9e6185b450..e052cd9eb62 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamChannelMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelMessageHostedContent.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgTeamChannelMessageHostedContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgTeamChannelMessageHostedContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgTeamChannelMessageHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelMessageReply.md b/src/Teams/v1.0/examples/Get-MgTeamChannelMessageReply.md index bacc45a32ae..86902b3634d 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelMessageReply.md @@ -1,7 +1,27 @@ -### Example 1: Using the Get-MgTeamChannelMessageReply Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgTeamChannelMessageReply Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a message in a chat + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 +``` +This example shows how to use the Get-MgTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Get-MgTeamChannelMessageReplyHostedContent.md index f876d7a2d53..2bd8081293b 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelMessageReplyHostedContent.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgTeamChannelMessageReplyHostedContent Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgTeamChannelMessageReplyHostedContent Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId +``` +This example shows how to use the Get-MgTeamChannelMessageReplyHostedContent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Get-MgTeamChannelSharedWithTeam.md index 5d2198e61df..65231f868e5 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Get-MgTeamChannelSharedWithTeam.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgTeamChannelSharedWithTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId -``` -This example shows how to use the Get-MgTeamChannelSharedWithTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamChannelSharedWithTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgTeamChannelSharedWithTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId +``` +This example shows how to use the Get-MgTeamChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamIncomingChannel.md b/src/Teams/v1.0/examples/Get-MgTeamIncomingChannel.md index 89fe35c9364..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamIncomingChannel.md +++ b/src/Teams/v1.0/examples/Get-MgTeamIncomingChannel.md @@ -1,7 +1,17 @@ -### Example 1: Using the Get-MgTeamIncomingChannel Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamIncomingChannel -TeamId $teamId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamIncomingChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Get-MgTeamInstalledApp.md b/src/Teams/v1.0/examples/Get-MgTeamInstalledApp.md index 2b8be82e065..62e4d369c8d 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamInstalledApp.md +++ b/src/Teams/v1.0/examples/Get-MgTeamInstalledApp.md @@ -1,35 +1,18 @@ -### Example 1: Using the Get-MgTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" -``` -This example shows how to use the Get-MgTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -``` -This example shows how to use the Get-MgTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamInstalledApp -TeamId $teamId -``` -This example shows how to use the Get-MgTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the Get-MgTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsAppDefinition" -``` -This example shows how to use the Get-MgTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get the installed app + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the names and other details of the installed app + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" +``` +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamMember.md b/src/Teams/v1.0/examples/Get-MgTeamMember.md index ba822ca71cd..1fb9b13963c 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamMember.md +++ b/src/Teams/v1.0/examples/Get-MgTeamMember.md @@ -1,28 +1,16 @@ -### Example 1: Using the Get-MgTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/userId eq '73761f06-2ac9-469c-9f10-279a8cc267f9')" -``` -This example shows how to use the Get-MgTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/displayName eq 'Harry Johnson' or microsoft.graph.aadUserConversationMember/email eq 'admin@M365x987948.OnMicrosoft.com')" -``` -This example shows how to use the Get-MgTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamMember -TeamId $teamId -``` -This example shows how to use the Get-MgTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -``` -This example shows how to use the Get-MgTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) +} + +Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannel.md b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannel.md index 64ad86680d5..02ae625e306 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannel.md +++ b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannel.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgTeamPrimaryChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamPrimaryChannel -TeamId $teamId -``` -This example shows how to use the Get-MgTeamPrimaryChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamPrimaryChannel -TeamId $teamId +``` +This example shows how to use the Get-MgTeamPrimaryChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMember.md b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMember.md index b151724fc01..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMember.md +++ b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMember.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Get-MgTeamPrimaryChannelMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/Get-MgTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessage.md index 97cd080f163..e9f987a3bfd 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessage.md @@ -1,17 +1,433 @@ -### Example 1: Code snippet +### Example 1: Update policyViolation property using application permissions ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 +$params = @{ + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( + "Credit Card Number" + ) + } + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" + } +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "text" + content = "Edit text only" + } + attachments = @( + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" + } + attachments = @( + ) + mentions = @( + @{ + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + } + @{ + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" + } + device = $null + conversation = $null + user = $null + } + } + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 4: Update the content with attachments of a message using delegated permissions ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Update the reactions in a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + @{ + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the Get-MgTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageHostedContent.md b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageHostedContent.md index 1b9fdd1efd0..b2cfb3df241 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageHostedContent.md @@ -1,26 +1,8 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgTeamPrimaryChannelMessageHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgTeamPrimaryChannelMessageHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` This example shows how to use the Get-MgTeamPrimaryChannelMessageHostedContent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageReply.md b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageReply.md index 399527d05dd..eb7a9200b4f 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageReply.md @@ -1,8 +1,26 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgTeamPrimaryChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgTeamPrimaryChannelMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageReplyHostedContent.md index ad869d6646d..1b672385206 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,26 +1,8 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgTeamPrimaryChannelMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` This example shows how to use the Get-MgTeamPrimaryChannelMessageReplyHostedContent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelSharedWithTeam.md index 8672634ae07..fbd50b43bc3 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Get-MgTeamPrimaryChannelSharedWithTeam.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId +Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` This example shows how to use the Get-MgTeamPrimaryChannelSharedWithTeam Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamSchedule.md b/src/Teams/v1.0/examples/Get-MgTeamSchedule.md index 5233393eb90..9c0d21576ab 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamSchedule.md +++ b/src/Teams/v1.0/examples/Get-MgTeamSchedule.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgTeamSchedule Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamSchedule -TeamId $teamId -``` -This example shows how to use the Get-MgTeamSchedule Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamSchedule -TeamId $teamId +``` +This example shows how to use the Get-MgTeamSchedule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleOfferShiftRequest.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleOfferShiftRequest.md index 4201e583e31..e9111ac2973 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleOfferShiftRequest.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleOfferShiftRequest.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgTeamScheduleOfferShiftRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId -OfferShiftRequestId $offerShiftRequestId -``` -This example shows how to use the Get-MgTeamScheduleOfferShiftRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamScheduleOfferShiftRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId -``` -This example shows how to use the Get-MgTeamScheduleOfferShiftRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId -OfferShiftRequestId $offerShiftRequestId +``` +This example shows how to use the Get-MgTeamScheduleOfferShiftRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShift.md index c171548a5af..6c922b232d7 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShift.md @@ -1,14 +1,31 @@ -### Example 1: Using the Get-MgTeamScheduleOpenShift Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -``` -This example shows how to use the Get-MgTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamScheduleOpenShift Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleOpenShift -TeamId $teamId -``` -This example shows how to use the Get-MgTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedOpenShift = @{ + notes = "Inventory Management" + openSlotCount = 5 + displayName = "Field shift" + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") + theme = "white" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") + code = "" + displayName = "Lunch" + } + ) + } + draftOpenShift = $null +} + +Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamScheduleOpenShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShiftChangeRequest.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShiftChangeRequest.md index 5f9c485ee64..07da4e25bc4 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleOpenShiftChangeRequest.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -OpenShiftChangeRequestId $openShiftChangeRequestId -``` -This example shows how to use the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -``` -This example shows how to use the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -OpenShiftChangeRequestId $openShiftChangeRequestId +``` +This example shows how to use the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleSchedulingGroup.md index 9aa3e33a34d..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleSchedulingGroup.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgTeamScheduleSchedulingGroup Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleSchedulingGroup -TeamId $teamId -SchedulingGroupId $schedulingGroupId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamScheduleSchedulingGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamScheduleSchedulingGroup Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleSchedulingGroup -TeamId $teamId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamScheduleSchedulingGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md index 5856cd5487a..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleShift.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgTeamScheduleShift Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleShift -TeamId $teamId -Filter "sharedShift/startDateTime ge 2019-03-11T00:00:00.000Z and sharedShift/endDateTime le 2019-03-18T00:00:00.000Z and draftShift/startDateTime ge 2019-03-11T00:00:00.000Z and draftShift/endDateTime le 2019-03-18T00:00:00.000Z" + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamScheduleShift Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleSwapShiftChangeRequest.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleSwapShiftChangeRequest.md index 426030f97e3..e49e0593365 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleSwapShiftChangeRequest.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -SwapShiftsChangeRequestId $swapShiftsChangeRequestId -``` -This example shows how to use the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -``` -This example shows how to use the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -SwapShiftsChangeRequestId $swapShiftsChangeRequestId +``` +This example shows how to use the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOff.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOff.md index c68ca73e003..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOff.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOff.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgTeamScheduleTimeOff Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleTimeOff -TeamId $teamId -Filter "sharedTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and sharedTimeOff/endDateTime le 2019-03-18T00:00:00.000Z and draftTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and draftTimeOff/endDateTime le 2019-03-18T00:00:00.000Z" + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamScheduleTimeOff Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamScheduleTimeOff Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleTimeOff -TeamId $teamId -TimeOffId $timeOffId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamScheduleTimeOff Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffReason.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffReason.md index 0d3610ebf81..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffReason.md @@ -1,14 +1,17 @@ -### Example 1: Using the Get-MgTeamScheduleTimeOffReason Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleTimeOffReason -TeamId $teamId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamScheduleTimeOffReason Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamScheduleTimeOffReason Cmdlet + +{{ Add description here }} + +### Example 2: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleTimeOffReason -TeamId $teamId -TimeOffReasonId $timeOffReasonId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgTeamScheduleTimeOffReason Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ Add description here }} diff --git a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffRequest.md b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffRequest.md index 64509cad0c8..20efe48120e 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffRequest.md +++ b/src/Teams/v1.0/examples/Get-MgTeamScheduleTimeOffRequest.md @@ -1,14 +1,9 @@ -### Example 1: Using the Get-MgTeamScheduleTimeOffRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId -``` -This example shows how to use the Get-MgTeamScheduleTimeOffRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamScheduleTimeOffRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleTimeOffRequest -TeamId $teamId -``` -This example shows how to use the Get-MgTeamScheduleTimeOffRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId +``` +This example shows how to use the Get-MgTeamScheduleTimeOffRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgTeamTag.md b/src/Teams/v1.0/examples/Get-MgTeamTag.md index cd98bb60c67..a260514b9f1 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamTag.md +++ b/src/Teams/v1.0/examples/Get-MgTeamTag.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamTag -TeamId $teamId +$params = @{ + displayName = "Finance" +} + +Update-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params ``` This example shows how to use the Get-MgTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamTagMember.md b/src/Teams/v1.0/examples/Get-MgTeamTagMember.md index f8958d0890c..06044de891d 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamTagMember.md +++ b/src/Teams/v1.0/examples/Get-MgTeamTagMember.md @@ -2,7 +2,7 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId +Get-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -TeamworkTagMemberId $teamworkTagMemberId ``` This example shows how to use the Get-MgTeamTagMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgTeamworkWorkforceIntegration.md b/src/Teams/v1.0/examples/Get-MgTeamworkWorkforceIntegration.md index c68b8ea2fb2..ff95ce6f8ba 100644 --- a/src/Teams/v1.0/examples/Get-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/v1.0/examples/Get-MgTeamworkWorkforceIntegration.md @@ -1,14 +1,21 @@ -### Example 1: Using the Get-MgTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -``` -This example shows how to use the Get-MgTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgTeamworkWorkforceIntegration -``` -This example shows how to use the Get-MgTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + displayName = "displayName-value" + apiVersion = 99 + encryption = @{ + protocol = "protocol-value" + secret = "secret-value" + } + isActive = $true + url = "url-value" + supportedEntities = "supportedEntities-value" +} + +Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +``` +This example shows how to use the Get-MgTeamworkWorkforceIntegration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgUserChat.md b/src/Teams/v1.0/examples/Get-MgUserChat.md index b9ae90daa5c..51eefef3a02 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChat.md +++ b/src/Teams/v1.0/examples/Get-MgUserChat.md @@ -1,21 +1,45 @@ -### Example 1: Using the Get-MgUserChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgUserChat -UserId $userId -ChatId $chatId -``` -This example shows how to use the Get-MgUserChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgUserChat -UserId $userId -ExpandProperty "members" -``` -This example shows how to use the Get-MgUserChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgUserChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgUserChat -UserId $userId -``` -This example shows how to use the Get-MgUserChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a group chat + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Get-MgUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a user's one on one chat + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgUserChat -UserId $userId -ChatId $chatId +``` +This example shows how to use the Get-MgUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get a chat and all its members + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId -ExpandProperty "members" +``` +This example shows how to use the Get-MgUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Get the meeting details of a chat associated with a Microsoft Teams meeting + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Get-MgUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Get the chat along with the preview of the last message sent in the chat + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChat -ChatId $chatId -ExpandProperty "lastMessagePreview" +``` +This example shows how to use the Get-MgUserChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgUserChatInstalledApp.md b/src/Teams/v1.0/examples/Get-MgUserChatInstalledApp.md index 2625ae0a730..f4d9378860c 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChatInstalledApp.md +++ b/src/Teams/v1.0/examples/Get-MgUserChatInstalledApp.md @@ -1,26 +1,8 @@ -### Example 1: Get all the apps installed in the specified chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatInstalledApp -ChatId $chatId -``` -This example shows how to use the Get-MgUserChatInstalledApp Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get the names and other details of apps installed in the specified chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsAppDefinition(`$expand=bot)" -``` -This example shows how to use the Get-MgUserChatInstalledApp Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the app installation resource based on the manifest id of the associated app - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" +Get-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId ``` This example shows how to use the Get-MgUserChatInstalledApp Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgUserChatMember.md b/src/Teams/v1.0/examples/Get-MgUserChatMember.md index 17c02b1a7bc..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChatMember.md +++ b/src/Teams/v1.0/examples/Get-MgUserChatMember.md @@ -1,8 +1,17 @@ -### Example 1: Using the Get-MgUserChatMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -# A UPN can also be used as -UserId. -Get-MgUserChatMember -UserId $userId -ChatId $chatId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Get-MgUserChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Get-MgUserChatMessage.md b/src/Teams/v1.0/examples/Get-MgUserChatMessage.md index f176f8992d8..bfc527e4415 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChatMessage.md +++ b/src/Teams/v1.0/examples/Get-MgUserChatMessage.md @@ -1,26 +1,26 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatMessage -ChatId $chatId -Top 2 +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgUserChatMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 2: Get a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatMessage -ChatId $chatId -Top 2 -Sort "createdDateTime desc" +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` This example shows how to use the Get-MgUserChatMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Code snippet +### Example 3: Get reply to a message in a channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatMessage -ChatId $chatId -Top 2 -Sort "lastModifiedDateTime desc" -Filter "lastModifiedDateTime ge 2022-09-22T00:00:00.000Z and lastModifiedDateTime le 2022-09-24T00:00:00.000Z" +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgUserChatMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgUserChatMessageHostedContent.md b/src/Teams/v1.0/examples/Get-MgUserChatMessageHostedContent.md index 9966e569e9a..04192976b99 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChatMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgUserChatMessageHostedContent.md @@ -1,26 +1,8 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgUserChatMessageHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgUserChatMessageHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` This example shows how to use the Get-MgUserChatMessageHostedContent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgUserChatMessageReply.md b/src/Teams/v1.0/examples/Get-MgUserChatMessageReply.md index 146f4d42a3f..9e16214eae2 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChatMessageReply.md +++ b/src/Teams/v1.0/examples/Get-MgUserChatMessageReply.md @@ -1,8 +1,26 @@ -### Example 1: Code snippet +### Example 1: Get a message in a chat ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgUserChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +``` +This example shows how to use the Get-MgUserChatMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Get reply to a message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` This example shows how to use the Get-MgUserChatMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgUserChatMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Get-MgUserChatMessageReplyHostedContent.md index c04d38a37d1..d61035c7f26 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChatMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Get-MgUserChatMessageReplyHostedContent.md @@ -1,26 +1,8 @@ -### Example 1: List hosted content for a channel message +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -``` -This example shows how to use the Get-MgUserChatMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List hosted content for reply to a channel message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 -``` -This example shows how to use the Get-MgUserChatMessageReplyHostedContent Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: List hosted content for message in a chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` This example shows how to use the Get-MgUserChatMessageReplyHostedContent Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgUserChatPinnedMessage.md b/src/Teams/v1.0/examples/Get-MgUserChatPinnedMessage.md index bc9780c8f16..e1bd85eb675 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChatPinnedMessage.md +++ b/src/Teams/v1.0/examples/Get-MgUserChatPinnedMessage.md @@ -1,17 +1,8 @@ -### Example 1: List all the pinned messages in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatPinnedMessage -ChatId $chatId -``` -This example shows how to use the Get-MgUserChatPinnedMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the pinned messages in a chat along with the associated chat message - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatPinnedMessage -ChatId $chatId -ExpandProperty "message" +Remove-MgChatPinnedMessage -ChatId $chatId -PinnedChatMessageInfoId $pinnedChatMessageInfoId ``` This example shows how to use the Get-MgUserChatPinnedMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgUserChatTab.md b/src/Teams/v1.0/examples/Get-MgUserChatTab.md index 0e6c854a373..5cbca70dbe3 100644 --- a/src/Teams/v1.0/examples/Get-MgUserChatTab.md +++ b/src/Teams/v1.0/examples/Get-MgUserChatTab.md @@ -1,17 +1,12 @@ -### Example 1: List all the tabs in the chat along with associated Teams app +### Example 1: Update the name of a tab in a chat ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" -``` -This example shows how to use the Get-MgUserChatTab Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the tabs belonging to a specific app in a chat - -```powershell Import-Module Microsoft.Graph.Teams +$params = @{ + displayName = "My Contoso Tab - updated again" +} -Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.web'" +Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params ``` This example shows how to use the Get-MgUserChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/Get-MgUserTeamworkInstalledApp.md b/src/Teams/v1.0/examples/Get-MgUserTeamworkInstalledApp.md index 622f8cedbc9..6e5a667bdb9 100644 --- a/src/Teams/v1.0/examples/Get-MgUserTeamworkInstalledApp.md +++ b/src/Teams/v1.0/examples/Get-MgUserTeamworkInstalledApp.md @@ -1,28 +1,9 @@ -### Example 1: Using the Get-MgUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId -``` -This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgUserTeamworkInstalledApp -UserId $userId -``` -This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgUserTeamworkInstalledApp -UserId $userId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the Get-MgUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgUserTeamworkInstalledApp -UserId $userId -ExpandProperty "teamsAppDefinition" -``` -This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId +``` +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Get-MgUserTeamworkInstalledAppChat.md b/src/Teams/v1.0/examples/Get-MgUserTeamworkInstalledAppChat.md index 8a1104237c5..0bda06afaa7 100644 --- a/src/Teams/v1.0/examples/Get-MgUserTeamworkInstalledAppChat.md +++ b/src/Teams/v1.0/examples/Get-MgUserTeamworkInstalledAppChat.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgUserTeamworkInstalledAppChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Get-MgUserTeamworkInstalledAppChat -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId -``` -This example shows how to use the Get-MgUserTeamworkInstalledAppChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgUserTeamworkInstalledAppChat -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId +``` +This example shows how to use the Get-MgUserTeamworkInstalledAppChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgAppCatalogTeamApp.md b/src/Teams/v1.0/examples/New-MgAppCatalogTeamApp.md index ef5f8789a92..3105b899b96 100644 --- a/src/Teams/v1.0/examples/New-MgAppCatalogTeamApp.md +++ b/src/Teams/v1.0/examples/New-MgAppCatalogTeamApp.md @@ -1,7 +1,9 @@ -### Example 1: Using the New-MgAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -New-MgAppCatalogTeamApp -Requiresreview true -``` -This example shows how to use the New-MgAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +New-MgAppCatalogTeamApp -Requiresreview true +``` +This example shows how to use the New-MgAppCatalogTeamApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgChat.md b/src/Teams/v1.0/examples/New-MgChat.md index 37c4169c6c9..b984ddb9d2b 100644 --- a/src/Teams/v1.0/examples/New-MgChat.md +++ b/src/Teams/v1.0/examples/New-MgChat.md @@ -1,181 +1,162 @@ -### Example 1: Using the New-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Create a one-on-one chat + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - ChatType = "group" - Topic = "Group chat title" - Members = @( + chatType = "oneOnOne" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" - } - @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "guest" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" } ) } -New-MgChat -BodyParameter $params -``` -This example shows how to use the New-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create a group chat + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - ChatType = "group" - Topic = "Group chat title" - Members = @( + chatType = "group" + topic = "Group chat title" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "guest" + roles = @( + "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('3626a173-f2bc-4883-bcf7-01514c3bfb82')" } ) } -New-MgChat -BodyParameter $params -``` -This example shows how to use the New-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create a one-on-one chat using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - ChatType = "group" - Topic = "Group chat title" - Members = @( - @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" - } + chatType = "oneOnOne" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" + "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('3626a173-f2bc-4883-bcf7-01514c3bfb82')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" } ) } -New-MgChat -BodyParameter $params -``` -This example shows how to use the New-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create a group chat with tenant guest user + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - ChatType = "oneOnOne" - Members = @( + chatType = "group" + topic = "Group chat title" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" - TenantId = "4dc1fe35-8ac6-4f0d-904a-7ebcd364bea1" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" } - ) -} -New-MgChat -BodyParameter $params -``` -This example shows how to use the New-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - ChatType = "oneOnOne" - Members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" - } - @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" + roles = @( + "guest" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" } ) } -New-MgChat -BodyParameter $params -``` -This example shows how to use the New-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create a one-on-one chat with a federated user (outside of own organization) + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - ChatType = "oneOnOne" - Members = @( + chatType = "oneOnOne" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" } @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" + tenantId = "4dc1fe35-8ac6-4f0d-904a-7ebcd364bea1" } ) } -New-MgChat -BodyParameter $params -``` -This example shows how to use the New-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgChatInstalledApp.md b/src/Teams/v1.0/examples/New-MgChatInstalledApp.md index b6dd816d25f..99c42aaca22 100644 --- a/src/Teams/v1.0/examples/New-MgChatInstalledApp.md +++ b/src/Teams/v1.0/examples/New-MgChatInstalledApp.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" } -New-MgChatInstalledApp -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgChatInstalledApp -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgChatMember.md b/src/Teams/v1.0/examples/New-MgChatMember.md index 8c6924e5762..42f9d289f25 100644 --- a/src/Teams/v1.0/examples/New-MgChatMember.md +++ b/src/Teams/v1.0/examples/New-MgChatMember.md @@ -1,59 +1,71 @@ -### Example 1: Using the New-MgChatMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Add a single member to a chat and specify the timespan for the conversation history + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/jacob@contoso.com" - VisibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + roles = @( "owner" ) } -New-MgChatMember -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgChatMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Adding a single member to a Microsoft Teams chat, sharing no chat history + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" - VisibleHistoryStartDateTime = [System.DateTime]::Parse("0001-01-01T00:00:00Z") - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + roles = @( "owner" ) } -New-MgChatMember -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgChatMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Adding a single member to a Microsoft Teams chat, sharing the whole history of the chat + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + visibleHistoryStartDateTime = [System.DateTime]::Parse("0001-01-01T00:00:00Z") + roles = @( "owner" ) } -New-MgChatMember -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgChatMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a single member to a chat using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" - VisibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/jacob@contoso.com" + visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + roles = @( "owner" ) } -New-MgChatMember -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgChatMessage.md b/src/Teams/v1.0/examples/New-MgChatMessage.md index b63d3653478..86d4f233560 100644 --- a/src/Teams/v1.0/examples/New-MgChatMessage.md +++ b/src/Teams/v1.0/examples/New-MgChatMessage.md @@ -1,36 +1,412 @@ -### Example 1: Using the New-MgChatMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Send a Hello World message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "
-
-
-
-
" + body = @{ + content = "Hello World" } - HostedContents = @( +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Send a message with file attachment in it + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7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bSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOh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L/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZccMl/LsWC5zjj2PiBfaGFiHxJwT66iraJ6qAjhG5sz8mLVxgT2fiBfaGKBDRh20Kc1TFcyODS7j180/LaOQkqxoY4AOGXXQNjRPVSA7JlhG0nT+iVFISVa0MUCHjDpoF3pHqBB2LNrOPzEKKcmKNgbokFEH7QqXFpqnGghqb7rMPzEKKcmKNgbokFEH7QOXGJqnygw1N13nnxiFlGRFGwN0yKiDpqB5qkys1vhIS5/5J0YhJVnRxgAdMuqgqWieypnVeN0nBbpSSElWtDFAh4w6aEq4BNGHlBOzmmL+6dy8xh4UUpIVbQzQIaMOmhouRfQxi0SslqnnnxiFlGR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vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( @{ "@microsoft.graph.temporaryId" = "1" - ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9V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VV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") - ContentType = "image/png" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" } ) } -New-MgChatMessage -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgChatMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgChatMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Body = @{ - Content = "Hello world" + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" } } -New-MgChatMessage -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgChatMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgChatMessageReply.md b/src/Teams/v1.0/examples/New-MgChatMessageReply.md index f1b8d89d042..2029574d27f 100644 --- a/src/Teams/v1.0/examples/New-MgChatMessageReply.md +++ b/src/Teams/v1.0/examples/New-MgChatMessageReply.md @@ -2,7 +2,14 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} + +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the New-MgChatMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgChatPinnedMessage.md b/src/Teams/v1.0/examples/New-MgChatPinnedMessage.md index d1c7d82debd..dd5627551ec 100644 --- a/src/Teams/v1.0/examples/New-MgChatPinnedMessage.md +++ b/src/Teams/v1.0/examples/New-MgChatPinnedMessage.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgChatPinnedMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "Message@odata.bind" = "https://graph.microsoft.com/v1.0/chats/19:2da4c29f6d7041eca70b638b43d45437@thread.v2/messages/1616964509832" + "message@odata.bind" = "https://graph.microsoft.com/v1.0/chats/19:2da4c29f6d7041eca70b638b43d45437@thread.v2/messages/1616964509832" } -New-MgChatPinnedMessage -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgChatPinnedMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgChatPinnedMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatPinnedMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgChatTab.md b/src/Teams/v1.0/examples/New-MgChatTab.md index d3b2d1e153f..cc9c652c0ef 100644 --- a/src/Teams/v1.0/examples/New-MgChatTab.md +++ b/src/Teams/v1.0/examples/New-MgChatTab.md @@ -1,17 +1,20 @@ -### Example 1: Using the New-MgChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - DisplayName = "My Contoso Tab" - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8" - Configuration = @{ - EntityId = "2DCA2E6C7A10415CAF6B8AB6661B3154" - ContentUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView" - WebsiteUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154" - RemoveUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/uninstallTab" + displayName = "My Contoso Tab" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8" + configuration = @{ + entityId = "2DCA2E6C7A10415CAF6B8AB6661B3154" + contentUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView" + websiteUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154" + removeUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/uninstallTab" } } -New-MgChatTab -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the New-MgChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgChatTab -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamChannel.md b/src/Teams/v1.0/examples/New-MgGroupTeamChannel.md index 9dc902a9108..e0be632f5f1 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamChannel.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamChannel.md @@ -1,26 +1,104 @@ -### Example 1: List all channels +### Example 1: Create a standard channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannel -TeamId $teamId +$params = @{ + displayName = "Architecture Discussion" + description = "This channel is where we debate all future architecture plans" + membershipType = "standard" +} + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create private channel on behalf of user + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#Microsoft.Graph.channel" + membershipType = "private" + displayName = "My First Private Channel" + description = "This is my first private channels" + members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('62855810-484b-4823-9e01-60667f8b12ae')" + roles = @( + "owner" + ) + } + ) +} + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamChannel Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: List all private channels +### Example 3: Create a channel in migration mode ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannel -TeamId $teamId -Filter "membershipType eq 'private'" +$params = @{ + "@microsoft.graph.channelCreationMode" = "migration" + displayName = "Import_150958_99z" + description = "Import_150958_99z" + createdDateTime = [System.DateTime]::Parse("2020-03-14T11:22:17.067Z") +} + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamChannel Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: List all shared channels +### Example 4: Create private channel on behalf of user using user principal name ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'" +$params = @{ + "@odata.type" = "#Microsoft.Graph.channel" + membershipType = "private" + displayName = "My First Private Channel" + description = "This is my first private channels" + members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + roles = @( + "owner" + ) + } + ) +} + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create a shared channel on behalf of a user + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + displayName = "My First Shared Channel" + description = "This is my first shared channel" + membershipType = "shared" + members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('7640023f-fe43-573f-9ff4-84a9efe4acd6')" + roles = @( + "owner" + ) + } + ) +} + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamChannel Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamChannelMember.md b/src/Teams/v1.0/examples/New-MgGroupTeamChannelMember.md index 1a14b87206e..415b228d136 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamChannelMember.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamChannelMember.md @@ -1,8 +1,91 @@ -### Example 1: Code snippet +### Example 1: Add a member to a private channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member with the owner role to a private channel + +```powershell Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add an owner to a channel using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a user who is part of the same tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Add a user who is part of a different tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" + tenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Add a user who is part of the same or a different tenant as a member to a shared channel using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamChannelMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessage.md b/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessage.md index 270882c0d84..b716b57e025 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessage.md @@ -1,17 +1,411 @@ -### Example 1: Code snippet +### Example 1: Send a Hello World message in a channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 +$params = @{ + body = @{ + content = "Hello World" + } +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 4: Send a message with file attachment in it ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAA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sWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9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Jviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZccMl/LsWC5zjj2PiBfa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VBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessageReply.md b/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessageReply.md index 9f9fe4bcd04..aed45aab328 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessageReply.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamChannelMessageReply.md @@ -2,7 +2,14 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} + +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamChannelMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamInstalledApp.md b/src/Teams/v1.0/examples/New-MgGroupTeamInstalledApp.md index 7fc7efd44b3..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamInstalledApp.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamInstalledApp.md @@ -1,27 +1,17 @@ -### Example 1: List installed apps +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamInstalledApp -TeamId $teamId -``` -This example shows how to use the New-MgGroupTeamInstalledApp Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get the names and other details of installed apps +{{ Add description here }} -```powershell Import-Module Microsoft.Graph.Teams +### Example 2: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsAppDefinition" -``` -This example shows how to use the New-MgGroupTeamInstalledApp Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the app installation resource based on the manifest ID of the associated app +{{ Add output here }} +``` -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" -``` -This example shows how to use the New-MgGroupTeamInstalledApp Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ Add description here }} diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamMember.md b/src/Teams/v1.0/examples/New-MgGroupTeamMember.md index 06a5a265ccb..6c512c5b3ca 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamMember.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamMember.md @@ -1,26 +1,33 @@ -### Example 1: Get list of members in team +### Example 1: Add a member to a team ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamMember -TeamId $teamId -``` -This example shows how to use the New-MgGroupTeamMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Find members of a team by their Azure AD user object ID +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/userId eq '73761f06-2ac9-469c-9f10-279a8cc267f9')" +New-MgTeamMember -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Find members of a team by their names or email +### Example 2: Add a member to a team using user principal name ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/displayName eq 'Harry Johnson' or microsoft.graph.aadUserConversationMember/email eq 'admin@M365x987948.OnMicrosoft.com')" +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} + +New-MgTeamMember -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMember.md b/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMember.md index 1e9cd9709de..9a47fecdf62 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMember.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMember.md @@ -1,8 +1,91 @@ -### Example 1: Code snippet +### Example 1: Add a member to a private channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member with the owner role to a private channel + +```powershell Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add an owner to a channel using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a user who is part of the same tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Add a user who is part of a different tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" + tenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Add a user who is part of the same or a different tenant as a member to a shared channel using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamPrimaryChannelMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessage.md index 53e1e4ada4e..f1a246081af 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessage.md @@ -1,17 +1,411 @@ -### Example 1: Code snippet +### Example 1: Send a Hello World message in a channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 +$params = @{ + body = @{ + content = "Hello World" + } +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 4: Send a message with file attachment in it ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCA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79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yf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2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZ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YCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessageReply.md b/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessageReply.md index 77a6dadbfa3..5ecb545089a 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessageReply.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamPrimaryChannelMessageReply.md @@ -2,7 +2,14 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} + +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamPrimaryChannelMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleOpenShift.md index 64f447ff5fa..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleOpenShift.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamScheduleOpenShift -TeamId $teamId -``` -This example shows how to use the New-MgGroupTeamScheduleOpenShift Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/New-MgGroupTeamScheduleOpenShiftChangeRequest.md b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleOpenShiftChangeRequest.md index 224f631ea30..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleOpenShiftChangeRequest.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -``` -This example shows how to use the New-MgGroupTeamScheduleOpenShiftChangeRequest Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/New-MgGroupTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleSchedulingGroup.md index 43e278d5790..1935ef294dc 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleSchedulingGroup.md @@ -2,7 +2,16 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleSchedulingGroup -TeamId $teamId +$params = @{ + displayName = "Cashiers" + isActive = $true + userIds = @( + "c5d0c76b-80c4-481c-be50-923cd8d680a1" + "2a4296b3-a28a-44ba-bc66-0274b9b95851" + ) +} + +New-MgTeamScheduleSchedulingGroup -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamScheduleSchedulingGroup Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleShift.md b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleShift.md index dc3c71b8698..49637e1295f 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleShift.md @@ -2,7 +2,45 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleShift -TeamId $teamId -Filter "sharedShift/startDateTime ge 2019-03-11T00:00:00.000Z and sharedShift/endDateTime le 2019-03-18T00:00:00.000Z and draftShift/startDateTime ge 2019-03-11T00:00:00.000Z and draftShift/endDateTime le 2019-03-18T00:00:00.000Z" +$params = @{ + id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" + userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedShift = @{ + displayName = "Day shift" + notes = "Please do inventory as part of your shift." + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + theme = "blue" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") + code = "" + displayName = "Lunch" + } + ) + } + draftShift = @{ + displayName = "Day shift" + notes = "Please do inventory as part of your shift." + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + theme = "blue" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") + code = "" + displayName = "Lunch" + } + ) + } +} + +New-MgTeamScheduleShift -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamScheduleShift Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleSwapShiftChangeRequest.md b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleSwapShiftChangeRequest.md index 40f84534275..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleSwapShiftChangeRequest.md @@ -1,9 +1,17 @@ -### Example 1: Code snippet +### Example 1: {{ Add title here }} +```powershell + PS C:\> {{ Add code here }} -```powershell Import-Module Microsoft.Graph.Teams +{{ Add output here }} +``` -Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -``` -This example shows how to use the New-MgGroupTeamScheduleSwapShiftChangeRequest Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +{{ 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/v1.0/examples/New-MgGroupTeamScheduleTimeOff.md b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleTimeOff.md index 6289977037e..44b5bdfbe08 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleTimeOff.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleTimeOff.md @@ -2,7 +2,23 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleTimeOff -TeamId $teamId -Filter "sharedTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and sharedTimeOff/endDateTime le 2019-03-18T00:00:00.000Z and draftTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and draftTimeOff/endDateTime le 2019-03-18T00:00:00.000Z" +$params = @{ + userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + sharedTimeOff = @{ + timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + theme = "white" + } + draftTimeOff = @{ + timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + theme = "pink" + } +} + +New-MgTeamScheduleTimeOff -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamScheduleTimeOff Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleTimeOffReason.md b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleTimeOffReason.md index c4303b7b3ba..5720d6c5a63 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamScheduleTimeOffReason.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamScheduleTimeOffReason.md @@ -2,7 +2,13 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamScheduleTimeOffReason -TeamId $teamId +$params = @{ + displayName = "Vacation" + iconType = "plane" + isActive = $true +} + +New-MgTeamScheduleTimeOffReason -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamScheduleTimeOffReason Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamTag.md b/src/Teams/v1.0/examples/New-MgGroupTeamTag.md index 501adf25d34..2bc60be9497 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamTag.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamTag.md @@ -2,7 +2,19 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamTag -TeamId $teamId +$params = @{ + displayName = "Finance" + members = @( + @{ + userId = "92f6952f-61ca-4a94-8910-508a240bc167" + } + @{ + userId = "085d800c-b86b-4bfc-a857-9371ad1caf29" + } + ) +} + +New-MgTeamTag -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgGroupTeamTagMember.md b/src/Teams/v1.0/examples/New-MgGroupTeamTagMember.md index a9d3ecbdd63..a24bc48114a 100644 --- a/src/Teams/v1.0/examples/New-MgGroupTeamTagMember.md +++ b/src/Teams/v1.0/examples/New-MgGroupTeamTagMember.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId +$params = @{ + userId = "97f62344-57dc-409c-88ad-c4af14158ff5" +} + +New-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params ``` This example shows how to use the New-MgGroupTeamTagMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgTeam.md b/src/Teams/v1.0/examples/New-MgTeam.md index b761ac785bf..ae304e4fb59 100644 --- a/src/Teams/v1.0/examples/New-MgTeam.md +++ b/src/Teams/v1.0/examples/New-MgTeam.md @@ -1,233 +1,257 @@ -### Example 1: Using the New-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" - "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups('dbd8de4f-5d47-48da-87f1-594bed003375')" - Channels = @( + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + displayName = "My Sample Team" + description = "My Sample Team???s Description" +} + +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + displayName = "My Sample Team" + description = "My Sample Team???s Description" + members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('0040b377-61d8-43db-94f5-81374122dc7e')" + } + ) +} + +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + visibility = "Private" + displayName = "Sample Engineering Team" + description = "This is a sample engineering team, used to showcase the range of properties supported by this API" + channels = @( + @{ + displayName = "Announcements ????" + isFavoriteByDefault = $true + description = "This is a sample announcements channel that is favorited by default. Use this channel to make important team, product, and service announcements." + } @{ - DisplayName = "Class Announcements 📢" - IsFavoriteByDefault = $true + displayName = "Training ???????" + isFavoriteByDefault = $true + description = "This is a sample training channel, that is favorited by default, and contains an example of pinned website and YouTube tabs." + tabs = @( + @{ + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.web')" + displayName = "A Pinned Website" + configuration = @{ + contentUrl = "https://learn.microsoft.com/microsoftteams/microsoft-teams" + } + } + @{ + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.youtube')" + displayName = "A Pinned YouTube Video" + configuration = @{ + contentUrl = "https://tabs.teams.microsoft.com/Youtube/Home/YoutubeTab?videoId=X8krAMdGvCQ" + websiteUrl = "https://www.youtube.com/watch?v=X8krAMdGvCQ" + } + } + ) + } + @{ + displayName = "Planning ???? " + description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." + isFavoriteByDefault = $false } @{ - DisplayName = "Homework ðŸ‹ï¸" - IsFavoriteByDefault = $true + displayName = "Issues and Feedback ????" + description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." } ) - MemberSettings = @{ - AllowCreateUpdateChannels = $false - AllowDeleteChannels = $false - AllowAddRemoveApps = $false - AllowCreateUpdateRemoveTabs = $false - AllowCreateUpdateRemoveConnectors = $false + memberSettings = @{ + allowCreateUpdateChannels = $true + allowDeleteChannels = $true + allowAddRemoveApps = $true + allowCreateUpdateRemoveTabs = $true + allowCreateUpdateRemoveConnectors = $true + } + guestSettings = @{ + allowCreateUpdateChannels = $false + allowDeleteChannels = $false + } + funSettings = @{ + allowGiphy = $true + giphyContentRating = "Moderate" + allowStickersAndMemes = $true + allowCustomMemes = $true + } + messagingSettings = @{ + allowUserEditMessages = $true + allowUserDeleteMessages = $true + allowOwnerDeleteMessages = $true + allowTeamMentions = $true + allowChannelMentions = $true } - InstalledApps = @( + installedApps = @( @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" } @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" } ) } -New-MgTeam -BodyParameter $params -``` -This example shows how to use the New-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')" - DisplayName = "My Class Team" - Description = "My Class Team’s Description" + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + "group@odata.bind" = "https://graph.microsoft.com/v1.0/groups('71392b2f-1765-406e-86af-5907d9bdb2ab')" } -New-MgTeam -BodyParameter $params -``` -This example shows how to use the New-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')" - DisplayName = "My Class Team" - Description = "My Class Team’s Description" - Channels = @( + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + "group@odata.bind" = "https://graph.microsoft.com/v1.0/groups('dbd8de4f-5d47-48da-87f1-594bed003375')" + channels = @( @{ - DisplayName = "Class Announcements 📢" - IsFavoriteByDefault = $true + displayName = "Class Announcements ????" + isFavoriteByDefault = $true } @{ - DisplayName = "Homework ðŸ‹ï¸" - IsFavoriteByDefault = $true + displayName = "Homework ???????" + isFavoriteByDefault = $true } ) - MemberSettings = @{ - AllowCreateUpdateChannels = $false - AllowDeleteChannels = $false - AllowAddRemoveApps = $false - AllowCreateUpdateRemoveTabs = $false - AllowCreateUpdateRemoveConnectors = $false + memberSettings = @{ + allowCreateUpdateChannels = $false + allowDeleteChannels = $false + allowAddRemoveApps = $false + allowCreateUpdateRemoveTabs = $false + allowCreateUpdateRemoveConnectors = $false } - InstalledApps = @( + installedApps = @( @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" } @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" } ) } -New-MgTeam -BodyParameter $params -``` -This example shows how to use the New-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" - "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups('71392b2f-1765-406e-86af-5907d9bdb2ab')" + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')" + displayName = "My Class Team" + description = "My Class Team???s Description" } -New-MgTeam -BodyParameter $params -``` -This example shows how to use the New-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" - Visibility = "Private" - DisplayName = "Sample Engineering Team" - Description = "This is a sample engineering team, used to showcase the range of properties supported by this API" - Channels = @( + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')" + displayName = "My Class Team" + description = "My Class Team???s Description" + channels = @( @{ - DisplayName = "Announcements 📢" - IsFavoriteByDefault = $true - Description = "This is a sample announcements channel that is favorited by default. Use this channel to make important team, product, and service announcements." + displayName = "Class Announcements ????" + isFavoriteByDefault = $true } @{ - DisplayName = "Training ðŸ‹ï¸" - IsFavoriteByDefault = $true - Description = "This is a sample training channel, that is favorited by default, and contains an example of pinned website and YouTube tabs." - Tabs = @( - @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.web')" - DisplayName = "A Pinned Website" - Configuration = @{ - ContentUrl = "https://docs.microsoft.com/microsoftteams/microsoft-teams" - } - } - @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.youtube')" - DisplayName = "A Pinned YouTube Video" - Configuration = @{ - ContentUrl = "https://tabs.teams.microsoft.com/Youtube/Home/YoutubeTab?videoId=X8krAMdGvCQ" - WebsiteUrl = "https://www.youtube.com/watch?v=X8krAMdGvCQ" - } - } - ) - } - @{ - DisplayName = "Planning 📅 " - Description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." - IsFavoriteByDefault = $false - } - @{ - DisplayName = "Issues and Feedback ðŸž" - Description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." + displayName = "Homework ???????" + isFavoriteByDefault = $true } ) - MemberSettings = @{ - AllowCreateUpdateChannels = $true - AllowDeleteChannels = $true - AllowAddRemoveApps = $true - AllowCreateUpdateRemoveTabs = $true - AllowCreateUpdateRemoveConnectors = $true - } - GuestSettings = @{ - AllowCreateUpdateChannels = $false - AllowDeleteChannels = $false + memberSettings = @{ + allowCreateUpdateChannels = $false + allowDeleteChannels = $false + allowAddRemoveApps = $false + allowCreateUpdateRemoveTabs = $false + allowCreateUpdateRemoveConnectors = $false } - FunSettings = @{ - AllowGiphy = $true - GiphyContentRating = "Moderate" - AllowStickersAndMemes = $true - AllowCustomMemes = $true - } - MessagingSettings = @{ - AllowUserEditMessages = $true - AllowUserDeleteMessages = $true - AllowOwnerDeleteMessages = $true - AllowTeamMentions = $true - AllowChannelMentions = $true - } - InstalledApps = @( - @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" - } + installedApps = @( @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" } - ) -} -New-MgTeam -BodyParameter $params -``` -This example shows how to use the New-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" - DisplayName = "My Sample Team" - Description = "My Sample Team’s Description" - Members = @( @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('0040b377-61d8-43db-94f5-81374122dc7e')" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" } ) } -New-MgTeam -BodyParameter $params -``` -This example shows how to use the New-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the New-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" - DisplayName = "My Sample Team" - Description = "My Sample Team’s Description" -} -New-MgTeam -BodyParameter $params -``` -This example shows how to use the New-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 8: Using the New-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" - DisplayName = "My Sample Team" - Description = "My Sample Team’s Description" - Members = @( + "template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + displayName = "My Sample Team" + description = "My Sample Team???s Description" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" } ) } -New-MgTeam -BodyParameter $params -``` -This example shows how to use the New-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamChannel.md b/src/Teams/v1.0/examples/New-MgTeamChannel.md index bc0b86b38a8..ac4fbeb5254 100644 --- a/src/Teams/v1.0/examples/New-MgTeamChannel.md +++ b/src/Teams/v1.0/examples/New-MgTeamChannel.md @@ -1,90 +1,105 @@ -### Example 1: Using the New-MgTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Create a standard channel + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "@microsoft.graph.channelCreationMode" = "migration" - DisplayName = "Import_150958_99z" - Description = "Import_150958_99z" - CreatedDateTime = [System.DateTime]::Parse("2020-03-14T11:22:17.067Z") -} -New-MgTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - DisplayName = "Architecture Discussion" - Description = "This channel is where we debate all future architecture plans" - MembershipType = "standard" + displayName = "Architecture Discussion" + description = "This channel is where we debate all future architecture plans" + membershipType = "standard" } -New-MgTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create private channel on behalf of user + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#Microsoft.Graph.channel" - MembershipType = "private" - DisplayName = "My First Private Channel" - Description = "This is my first private channels" - Members = @( + membershipType = "private" + displayName = "My First Private Channel" + description = "This is my first private channels" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('62855810-484b-4823-9e01-60667f8b12ae')" - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('62855810-484b-4823-9e01-60667f8b12ae')" + roles = @( "owner" ) } ) } -New-MgTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Create a channel in migration mode + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@microsoft.graph.channelCreationMode" = "migration" + displayName = "Import_150958_99z" + description = "Import_150958_99z" + createdDateTime = [System.DateTime]::Parse("2020-03-14T11:22:17.067Z") +} + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Create private channel on behalf of user using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#Microsoft.Graph.channel" - MembershipType = "private" - DisplayName = "My First Private Channel" - Description = "This is my first private channels" - Members = @( + membershipType = "private" + displayName = "My First Private Channel" + description = "This is my first private channels" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + roles = @( "owner" ) } ) } -New-MgTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Create a shared channel on behalf of a user + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - DisplayName = "My First Shared Channel" - Description = "This is my first shared channel" - MembershipType = "shared" - Members = @( + displayName = "My First Shared Channel" + description = "This is my first shared channel" + membershipType = "shared" + members = @( @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('7640023f-fe43-573f-9ff4-84a9efe4acd6')" - Roles = @( + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('7640023f-fe43-573f-9ff4-84a9efe4acd6')" + roles = @( "owner" ) } ) } -New-MgTeamChannel -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamChannelMember.md b/src/Teams/v1.0/examples/New-MgTeamChannelMember.md index b54f2b0b4b6..76edde631bb 100644 --- a/src/Teams/v1.0/examples/New-MgTeamChannelMember.md +++ b/src/Teams/v1.0/examples/New-MgTeamChannelMember.md @@ -1,88 +1,92 @@ -### Example 1: Using the New-MgTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Add a member to a private channel + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" } -New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the New-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member with the owner role to a private channel + +```powershell Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add an owner to a channel using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" } -New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a user who is part of the same tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" } -New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Add a user who is part of a different tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" + tenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" } -New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Add a user who is part of the same or a different tenant as a member to a shared channel using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" + "user@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" } -New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the New-MgTeamChannelMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" - TenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" -} -New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md b/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md index 706fd97793a..ec498baceb7 100644 --- a/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/New-MgTeamChannelMessage.md @@ -1,71 +1,66 @@ -### Example 1: Using the New-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Send a Hello World message in a channel + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Body = @{ - Content = "Hello World" + body = @{ + content = "Hello World" } } -New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Body = @{ - Content = "Hello World" + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" } -} -New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the New-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - Body = @{ - ContentType = "html" - Content = "Hello World Jane Smith" - } - Mentions = @( + mentions = @( @{ - Id = 0 - MentionText = "Jane Smith" - Mentioned = @{ - User = @{ - DisplayName = "Jane Smith" - Id = "ef1c916a-3135-4417-ba27-8eb7bd084193" - UserIdentityType = "aadUser" + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" } } } ) } -New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: Using the New-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Subject = $null - Body = @{ - ContentType = "html" - Content = "" + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" } - Attachments = @( + attachments = @( @{ - Id = "74d20c7f34aa4a7fb74e2b30004247c5" - ContentType = "application/vnd.microsoft.card.thumbnail" - ContentUrl = $null - Content = "{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ "title": "This is an example of posting a card", - "subtitle": "

This is the subtitle

", - "text": "Here is some body text.
\r\nAnd a hyperlink.
\r\nAnd below that is some buttons:", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", "buttons": [ { "type": "messageBack", @@ -76,51 +71,87 @@ $params = @{ } ] }" - Name = $null - ThumbnailUrl = $null + name = $null + thumbnailUrl = $null } ) } -New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 5: Using the New-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Send a message with file attachment in it + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "Here's the latest budget. " + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" } - Attachments = @( + attachments = @( @{ - Id = "153fa47d-18c9-4179-be08-9879815a9f90" - ContentType = "reference" - ContentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" - Name = "Budget.docx" + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" } ) } -New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 6: Using the New-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Subject = $null - Body = @{ - ContentType = "html" - Content = "" + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" } - Attachments = @( + hostedContents = @( @{ - Id = "74d20c7f34aa4a7fb74e2b30004247c5" - ContentType = "application/vnd.microsoft.card.adaptive" - ContentUrl = $null - Content = "{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh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RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", @@ -200,78 +231,182 @@ $params = @{ } ] }" - Name = $null - ThumbnailUrl = $null + name = $null + thumbnailUrl = $null } ) - HostedContents = @( + hostedContents = @( @{ "@microsoft.graph.temporaryId" = "1" - ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBO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0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" } @{ "@microsoft.graph.temporaryId" = "2" - ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZccMl/LsWC5zjj2PiBfaGFiHxJwT66iraJ6qAjhG5sz8mLVxgT2fiBfaGKBDRh20Kc1TFcyODS7j180/LaOQkqxoY4AOGXXQNjRPVSA7JlhG0nT+iVFISVa0MUCHjDpoF3pHqBB2LNrOPzEKKcmKNgbokFEH7QqXFpqnGghqb7rMPzEKKcmKNgbokFEH7QOXGJqnygw1N13nnxiFlGRFGwN0yKiDpqB5qkys1vhIS5/5J0YhJVnRxgAdMuqgqWieypnVeN0nBbpSSElWtDFAh4w6aEq4BNGHlBOzmmL+6dy8xh4UUpIVbQzQIaMOmhouRfQxi0SslqnnnxiFlGRFGwN0yKiDetlkry/NWQ095p8YhZRkRRsDdMiog3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q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") - ContentType = "image/png" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1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GnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" } ) } -New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 7: Using the New-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "
General Hello there!
" + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" } - Mentions = @( + mentions = @( @{ - Id = 0 - MentionText = "General" - Mentioned = @{ - Conversation = @{ - Id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" - DisplayName = "General" - ConversationIdentityType = "channel" + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" } } } ) } -New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 8: Using the New-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "
GraphTesting Hello team
" + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" } - Mentions = @( + mentions = @( @{ - Id = 0 - MentionText = "GraphTesting" - Mentioned = @{ - Conversation = @{ - Id = "68a3e365-f7d9-4a56-b499-24332a9cc572" - DisplayName = "GraphTesting" - ConversationIdentityType = "team" + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" } } } ) - Reactions = @( + reactions = @( ) } -New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamChannelMessageReply.md b/src/Teams/v1.0/examples/New-MgTeamChannelMessageReply.md index 148720384ee..60c31a02fb7 100644 --- a/src/Teams/v1.0/examples/New-MgTeamChannelMessageReply.md +++ b/src/Teams/v1.0/examples/New-MgTeamChannelMessageReply.md @@ -1,26 +1,16 @@ -### Example 1: Using the New-MgTeamChannelMessageReply Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Body = @{ - ContentType = "html" - Content = "Hello World" + body = @{ + contentType = "html" + content = "Hello World" } } -New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessageReply Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgTeamChannelMessageReply Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - Body = @{ - ContentType = "html" - Content = "Hello World" - } -} -New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the New-MgTeamChannelMessageReply Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md b/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md index 2f1e30fcb97..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md +++ b/src/Teams/v1.0/examples/New-MgTeamInstalledApp.md @@ -1,10 +1,17 @@ -### Example 1: Using the New-MgTeamInstalledApp Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" -} -New-MgTeamInstalledApp -TeamId $teamId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/New-MgTeamMember.md b/src/Teams/v1.0/examples/New-MgTeamMember.md index 9c9e8d3623e..f2f0c842924 100644 --- a/src/Teams/v1.0/examples/New-MgTeamMember.md +++ b/src/Teams/v1.0/examples/New-MgTeamMember.md @@ -1,28 +1,34 @@ -### Example 1: Using the New-MgTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Add a member to a team + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" } -New-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams + +New-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) - "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" } -New-MgTeamMember -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMember.md b/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMember.md index c2f2d58b86f..db8d68674af 100644 --- a/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMember.md +++ b/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMember.md @@ -1,8 +1,91 @@ -### Example 1: Code snippet +### Example 1: Add a member to a private channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add a member with the owner role to a private channel + +```powershell Import-Module Microsoft.Graph.Teams + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add an owner to a channel using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a user who is part of the same tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Add a user who is part of a different tenant as a member to a shared channel + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" + tenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Add a user who is part of the same or a different tenant as a member to a shared channel using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + ) + "user@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" +} + +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` This example shows how to use the New-MgTeamPrimaryChannelMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessage.md index d3d6b673aba..618f7f13ac5 100644 --- a/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessage.md @@ -1,17 +1,411 @@ -### Example 1: Code snippet +### Example 1: Send a Hello World message in a channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 +$params = @{ + body = @{ + content = "Hello World" + } +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 4: Send a message with file attachment in it ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 1 -ExpandProperty "replies" +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQA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XtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJ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Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZccMl/LsWC5zjj2PiBfaGFiHxJwT66iraJ6qAjhG5sz8mLVxgT2fiBfaGKBDRh20Kc1TFcyODS7j180/La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4O7hHVQfbUJ5SZYSJWwDqqv1HWS6xzG0c7dGVhIVTUPtUyTvzmdr6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 7: @mention a channel in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 9: Send message that contains cards that are attributed to a Teams app + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params ``` This example shows how to use the New-MgTeamPrimaryChannelMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessageReply.md b/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessageReply.md index dd9891e8e66..9249fdd5f67 100644 --- a/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessageReply.md +++ b/src/Teams/v1.0/examples/New-MgTeamPrimaryChannelMessageReply.md @@ -2,7 +2,14 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} + +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the New-MgTeamPrimaryChannelMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgTeamScheduleOfferShiftRequest.md b/src/Teams/v1.0/examples/New-MgTeamScheduleOfferShiftRequest.md index 5b52d6fde3c..0910bb93258 100644 --- a/src/Teams/v1.0/examples/New-MgTeamScheduleOfferShiftRequest.md +++ b/src/Teams/v1.0/examples/New-MgTeamScheduleOfferShiftRequest.md @@ -1,12 +1,9 @@ -### Example 1: Using the New-MgTeamScheduleOfferShiftRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - SenderShiftId = "SHFT_f7e484ed-fdd6-421c-92d9-0bc9e62e2c29" - SenderMessage = "Having a family emergency, could you take this shift for me?" - RecipientUserId = "fe278b61-21ac-4872-8b41-1962bbb98e3c" -} -New-MgTeamScheduleOfferShiftRequest -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamScheduleOfferShiftRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId +``` +This example shows how to use the New-MgTeamScheduleOfferShiftRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/New-MgTeamScheduleOpenShift.md index 5e48c4e3cca..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/New-MgTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/New-MgTeamScheduleOpenShift.md @@ -1,40 +1,17 @@ -### Example 1: Using the New-MgTeamScheduleOpenShift Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - Id = "OPNSHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" - SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - SharedOpenShift = @{ - Notes = "InventoryManagement" - OpenSlotCount = 2 - DisplayName = "Dayshift" - StartDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z") - EndDateTime = [System.DateTime]::Parse("2018-10-04T09: 50: 45.332Z") - Theme = "white" - Activities = @( - @{ - IsPaid = $true - StartDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z") - EndDateTime = [System.DateTime]::Parse("2018-10-04T01: 58: 45.340Z") - Code = "" - DisplayName = "Lunch" - } - ) - } - DraftOpenShift = $null - CreatedDateTime = [System.DateTime]::Parse("2019-03-14T04: 32: 51.451Z") - LastModifiedDateTime = [System.DateTime]::Parse("2019-03-14T05: 32: 51.451Z") - LastModifiedBy = @{ - Application = $null - Device = $null - Conversation = $null - User = @{ - Id = "366c0b19-49b1-41b5-a03f-9f3887bd0ed8" - DisplayName = "JohnDoe" - } - } -} -New-MgTeamScheduleOpenShift -TeamId $teamId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/New-MgTeamScheduleOpenShiftChangeRequest.md b/src/Teams/v1.0/examples/New-MgTeamScheduleOpenShiftChangeRequest.md index e49ac34efd1..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/New-MgTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/New-MgTeamScheduleOpenShiftChangeRequest.md @@ -1,11 +1,17 @@ -### Example 1: Using the New-MgTeamScheduleOpenShiftChangeRequest Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - SenderMessage = "Can I take this shift?" - OpenShiftId = "577b75d2-a927-48c0-a5d1-dc984894e7b8" -} -New-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgTeamScheduleOpenShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/New-MgTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/New-MgTeamScheduleSchedulingGroup.md index c2fef1a223f..cec63a5cc17 100644 --- a/src/Teams/v1.0/examples/New-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/New-MgTeamScheduleSchedulingGroup.md @@ -1,15 +1,18 @@ -### Example 1: Using the New-MgTeamScheduleSchedulingGroup Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - DisplayName = "Cashiers" - IsActive = $true - UserIds = @( + displayName = "Cashiers" + isActive = $true + userIds = @( "c5d0c76b-80c4-481c-be50-923cd8d680a1" "2a4296b3-a28a-44ba-bc66-0274b9b95851" ) } -New-MgTeamScheduleSchedulingGroup -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamScheduleSchedulingGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamScheduleSchedulingGroup -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamScheduleSchedulingGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamScheduleShift.md b/src/Teams/v1.0/examples/New-MgTeamScheduleShift.md index 00ae35bfce1..b4ad0607759 100644 --- a/src/Teams/v1.0/examples/New-MgTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/New-MgTeamScheduleShift.md @@ -1,44 +1,47 @@ -### Example 1: Using the New-MgTeamScheduleShift Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" - UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" - SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - SharedShift = @{ - DisplayName = "Day shift" - Notes = "Please do inventory as part of your shift." - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") - Theme = "blue" - Activities = @( + id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" + userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedShift = @{ + displayName = "Day shift" + notes = "Please do inventory as part of your shift." + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + theme = "blue" + activities = @( @{ - IsPaid = $true - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") - Code = "" - DisplayName = "Lunch" + isPaid = $true + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") + code = "" + displayName = "Lunch" } ) } - DraftShift = @{ - DisplayName = "Day shift" - Notes = "Please do inventory as part of your shift." - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") - Theme = "blue" - Activities = @( + draftShift = @{ + displayName = "Day shift" + notes = "Please do inventory as part of your shift." + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + theme = "blue" + activities = @( @{ - IsPaid = $true - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") - Code = "" - DisplayName = "Lunch" + isPaid = $true + startDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") + code = "" + displayName = "Lunch" } ) } } -New-MgTeamScheduleShift -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamScheduleShift -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamScheduleShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamScheduleSwapShiftChangeRequest.md b/src/Teams/v1.0/examples/New-MgTeamScheduleSwapShiftChangeRequest.md index 6871b318d41..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/New-MgTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/New-MgTeamScheduleSwapShiftChangeRequest.md @@ -1,13 +1,17 @@ -### Example 1: Using the New-MgTeamScheduleSwapShiftChangeRequest Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - SenderShiftId = "5ad10161-6524-4c7c-9beb-4e8677ba2f6d" - SenderMessage = "I can't make my shift, any chance we can swap?" - RecipientUserId = "567c8ea5-9e32-422a-a663-8270201699cd" - RecipientShiftId = "e73408ca-3ea5-4bbf-96a8-2e06c95f7a2c" -} -New-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the New-MgTeamScheduleSwapShiftChangeRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/New-MgTeamScheduleTimeOff.md b/src/Teams/v1.0/examples/New-MgTeamScheduleTimeOff.md index 09f871a00b9..c328ac00153 100644 --- a/src/Teams/v1.0/examples/New-MgTeamScheduleTimeOff.md +++ b/src/Teams/v1.0/examples/New-MgTeamScheduleTimeOff.md @@ -1,22 +1,25 @@ -### Example 1: Using the New-MgTeamScheduleTimeOff Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" - SharedTimeOff = @{ - TimeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" - StartDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") - Theme = "white" + userId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + sharedTimeOff = @{ + timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + theme = "white" } - DraftTimeOff = @{ - TimeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" - StartDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") - Theme = "pink" + draftTimeOff = @{ + timeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + startDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + endDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + theme = "pink" } } -New-MgTeamScheduleTimeOff -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamScheduleTimeOff Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamScheduleTimeOff -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamScheduleTimeOff Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamScheduleTimeOffReason.md b/src/Teams/v1.0/examples/New-MgTeamScheduleTimeOffReason.md index 3452d478074..d3641a9da70 100644 --- a/src/Teams/v1.0/examples/New-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/v1.0/examples/New-MgTeamScheduleTimeOffReason.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgTeamScheduleTimeOffReason Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - DisplayName = "Vacation" - IconType = "plane" - IsActive = $true + displayName = "Vacation" + iconType = "plane" + isActive = $true } -New-MgTeamScheduleTimeOffReason -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the New-MgTeamScheduleTimeOffReason Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamScheduleTimeOffReason -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamScheduleTimeOffReason Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgTeamTag.md b/src/Teams/v1.0/examples/New-MgTeamTag.md index a5b62c7aa1a..e7a5d30eb7a 100644 --- a/src/Teams/v1.0/examples/New-MgTeamTag.md +++ b/src/Teams/v1.0/examples/New-MgTeamTag.md @@ -2,7 +2,19 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamTag -TeamId $teamId +$params = @{ + displayName = "Finance" + members = @( + @{ + userId = "92f6952f-61ca-4a94-8910-508a240bc167" + } + @{ + userId = "085d800c-b86b-4bfc-a857-9371ad1caf29" + } + ) +} + +New-MgTeamTag -TeamId $teamId -BodyParameter $params ``` This example shows how to use the New-MgTeamTag Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgTeamTagMember.md b/src/Teams/v1.0/examples/New-MgTeamTagMember.md index 4744475d353..f1ba3817847 100644 --- a/src/Teams/v1.0/examples/New-MgTeamTagMember.md +++ b/src/Teams/v1.0/examples/New-MgTeamTagMember.md @@ -2,7 +2,11 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId +$params = @{ + userId = "97f62344-57dc-409c-88ad-c4af14158ff5" +} + +New-MgTeamTagMember -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params ``` This example shows how to use the New-MgTeamTagMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgTeamworkWorkforceIntegration.md b/src/Teams/v1.0/examples/New-MgTeamworkWorkforceIntegration.md index 81bf71d74ab..978f376b539 100644 --- a/src/Teams/v1.0/examples/New-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/v1.0/examples/New-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,21 @@ -### Example 1: Using the New-MgTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - DisplayName = "displayName-value" - ApiVersion = 99 - Encryption = @{ - Protocol = "protocol-value" - Secret = "secret-value" + displayName = "displayName-value" + apiVersion = 99 + encryption = @{ + protocol = "protocol-value" + secret = "secret-value" } - IsActive = $true - Url = "url-value" - SupportedEntities = "supportedEntities-value" + isActive = $true + url = "url-value" + supportedEntities = "supportedEntities-value" } -New-MgTeamworkWorkforceIntegration -BodyParameter $params -``` -This example shows how to use the New-MgTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgTeamworkWorkforceIntegration -BodyParameter $params +``` +This example shows how to use the New-MgTeamworkWorkforceIntegration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/New-MgUserChat.md b/src/Teams/v1.0/examples/New-MgUserChat.md index 4cc79c4baf7..b97c38e70cd 100644 --- a/src/Teams/v1.0/examples/New-MgUserChat.md +++ b/src/Teams/v1.0/examples/New-MgUserChat.md @@ -1,4 +1,4 @@ -### Example 1: List all chats +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams @@ -7,7 +7,7 @@ Get-MgUserChat -UserId $userId This example shows how to use the New-MgUserChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: List all chats along with the members of each chat +### Example 2: Code snippet ```powershell Import-Module Microsoft.Graph.Teams @@ -16,7 +16,7 @@ Get-MgUserChat -UserId $userId -ExpandProperty "members" This example shows how to use the New-MgUserChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: List all chats in order of the most to least recent chat messages +### Example 3: Code snippet ```powershell Import-Module Microsoft.Graph.Teams @@ -25,12 +25,3 @@ Get-MgChat -Sort "lastMessagePreview/createdDateTime desc" This example shows how to use the New-MgUserChat Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 4: List chats along with the preview of the last message sent in the chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChat -ExpandProperty "lastMessagePreview" -``` -This example shows how to use the New-MgUserChat Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/v1.0/examples/New-MgUserChatInstalledApp.md b/src/Teams/v1.0/examples/New-MgUserChatInstalledApp.md index 4503a06de2f..aa439612525 100644 --- a/src/Teams/v1.0/examples/New-MgUserChatInstalledApp.md +++ b/src/Teams/v1.0/examples/New-MgUserChatInstalledApp.md @@ -1,26 +1,12 @@ -### Example 1: Get all the apps installed in the specified chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatInstalledApp -ChatId $chatId -``` -This example shows how to use the New-MgUserChatInstalledApp Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get the names and other details of apps installed in the specified chat - -```powershell Import-Module Microsoft.Graph.Teams - -Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsAppDefinition(`$expand=bot)" -``` -This example shows how to use the New-MgUserChatInstalledApp Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 3: Get the app installation resource based on the manifest id of the associated app - -```powershell Import-Module Microsoft.Graph.Teams +$params = @{ + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" +} -Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" +New-MgChatInstalledApp -ChatId $chatId -BodyParameter $params ``` This example shows how to use the New-MgUserChatInstalledApp Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgUserChatMember.md b/src/Teams/v1.0/examples/New-MgUserChatMember.md index 759a8fde4cc..54b9413ec73 100644 --- a/src/Teams/v1.0/examples/New-MgUserChatMember.md +++ b/src/Teams/v1.0/examples/New-MgUserChatMember.md @@ -1,9 +1,70 @@ -### Example 1: Code snippet +### Example 1: Add a single member to a chat and specify the timespan for the conversation history ```powershell Import-Module Microsoft.Graph.Teams -# A UPN can also be used as -UserId. -Get-MgUserChatMember -UserId $userId -ChatId $chatId +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + roles = @( + "owner" + ) +} + +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Adding a single member to a Microsoft Teams chat, sharing no chat history + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + roles = @( + "owner" + ) +} + +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Adding a single member to a Microsoft Teams chat, sharing the whole history of the chat + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + visibleHistoryStartDateTime = [System.DateTime]::Parse("0001-01-01T00:00:00Z") + roles = @( + "owner" + ) +} + +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Add a single member to a chat using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "user@odata.bind" = "https://graph.microsoft.com/v1.0/users/jacob@contoso.com" + visibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + roles = @( + "owner" + ) +} + +New-MgChatMember -ChatId $chatId -BodyParameter $params ``` This example shows how to use the New-MgUserChatMember Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgUserChatMessage.md b/src/Teams/v1.0/examples/New-MgUserChatMessage.md index 4e4a1418825..2a2d0f83b58 100644 --- a/src/Teams/v1.0/examples/New-MgUserChatMessage.md +++ b/src/Teams/v1.0/examples/New-MgUserChatMessage.md @@ -1,26 +1,411 @@ -### Example 1: Code snippet +### Example 1: Send a Hello World message in a channel ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatMessage -ChatId $chatId -Top 2 +$params = @{ + body = @{ + content = "Hello World" + } +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: @mentions a user in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Hello World <at id="0">Jane Smith</at>" + } + mentions = @( + @{ + id = 0 + mentionText = "Jane Smith" + mentioned = @{ + user = @{ + displayName = "Jane Smith" + id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + userIdentityType = "aadUser" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Send message containing cards + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Send a message with file attachment in it + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "Here's the latest budget. <attachment id="153fa47d-18c9-4179-be08-9879815a9f90"></attachment>" + } + attachments = @( + @{ + id = "153fa47d-18c9-4179-be08-9879815a9f90" + contentType = "reference" + contentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + name = "Budget.docx" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Send inline images along with the message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div> +<div><span><img height="297" src="../hostedContents/1/$value" width="297" style="vertical-align:bottom; width:297px; height:297px"></span> + +</div> + + +</div> +</div>" + } + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0UXKiVlNMf90YV5jDwopyYo2BuiQUQdNDaciuswiEatl6vknRiElWdHGAB0y6qBejrHXl+ashh7zT4xCSrKijQE6ZNRBPeEjci1T6MDq1vYayz4UUpIVbQzQIaMO6k3zVC1YrTD/lHsfKaQkK9oYoENGHTQH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QUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + ) +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 6: Send a card with inline images + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.adaptive" + contentUrl = $null + content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0l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Tn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/k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02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` This example shows how to use the New-MgUserChatMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Code snippet +### Example 7: @mention a channel in a channel message ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatMessage -ChatId $chatId -Top 2 -Sort "createdDateTime desc" +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">General</at>&nbsp;Hello there!</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "General" + mentioned = @{ + conversation = @{ + id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + displayName = "General" + conversationIdentityType = "channel" + } + } + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 8: @mention a team in a channel message + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<div><div><at id="0">GraphTesting</at>&nbsp;Hello team</div></div>" + } + mentions = @( + @{ + id = 0 + mentionText = "GraphTesting" + mentioned = @{ + conversation = @{ + id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + displayName = "GraphTesting" + conversationIdentityType = "team" + } + } + } + ) + reactions = @( + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` This example shows how to use the New-MgUserChatMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Code snippet +### Example 9: Send message that contains cards that are attributed to a Teams app ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatMessage -ChatId $chatId -Top 2 -Sort "lastModifiedDateTime desc" -Filter "lastModifiedDateTime ge 2022-09-22T00:00:00.000Z and lastModifiedDateTime le 2022-09-24T00:00:00.000Z" +$params = @{ + subject = $null + body = @{ + contentType = "html" + content = "<attachment id="74d20c7f34aa4a7fb74e2b30004247c5"></attachment>" + } + attachments = @( + @{ + id = "74d20c7f34aa4a7fb74e2b30004247c5" + contentType = "application/vnd.microsoft.card.thumbnail" + contentUrl = $null + content = "{ + "title": "This is an example of posting a card", + "subtitle": "<h3>This is the subtitle</h3>", + "text": "Here is some body text. <br>\r\nAnd a <a href=\"http://microsoft.com/\">hyperlink</a>. <br>\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + name = $null + thumbnailUrl = $null + teamsAppId = "881b8843-fd91-49e5-9ac2-47ec497ffbe5" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 10: Send a message that contains an announcement + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + subject = "Announcement Subheading" + body = @{ + contentType = "text" + content = "<attachment id="d7ddbf876ae340c3a03bada395ec7da7"></attachment>Announcement text" + } + attachments = @( + @{ + id = "d7ddbf876ae340c3a03bada395ec7da7" + contentType = "application/vnd.microsoft.teams.messaging-announcementBanner" + contentUrl = $null + content = "{"title":"Announcement heading","cardImageType":"uploadedImage","cardImageDetails":{"uploadedImageDetail":{"originalImage":{"source":"../hostedContents/1/$value","width":1379,"height":268,"croppedWidth":918.0,"croppedHeight":178.4075416968818,"leftMargin":0.0,"topMargin":90.7962291515591,"imageContentType":"image/png"},"croppedImage":{"source":"../hostedContents/2/$value"}}}}" + name = $null + thumbnailUrl = $null + } + ) + hostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAABWMAAAEMCAYAAAChuaTsAAAAAXNSR0IArs4") + contentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + contentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAA5YAAAB4CAYAAACJrW0RAAAAAXNSR0IArs4") + contentType = "image/png" + } + ) +} + +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgUserChatMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 11: Send a message with an emoji + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + body = @{ + contentType = "html" + content = "<emoji alt="??????????????"></emoji>" + } +} + +New-MgChatMessage -ChatId $chatId -BodyParameter $params ``` This example shows how to use the New-MgUserChatMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgUserChatMessageReply.md b/src/Teams/v1.0/examples/New-MgUserChatMessageReply.md index 7e22505cce2..45b0c9d3c47 100644 --- a/src/Teams/v1.0/examples/New-MgUserChatMessageReply.md +++ b/src/Teams/v1.0/examples/New-MgUserChatMessageReply.md @@ -2,7 +2,14 @@ ```powershell Import-Module Microsoft.Graph.Teams -Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId +$params = @{ + body = @{ + contentType = "html" + content = "Hello World" + } +} + +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` This example shows how to use the New-MgUserChatMessageReply Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgUserChatPinnedMessage.md b/src/Teams/v1.0/examples/New-MgUserChatPinnedMessage.md index 645b0c63ba5..eeb394e0cf2 100644 --- a/src/Teams/v1.0/examples/New-MgUserChatPinnedMessage.md +++ b/src/Teams/v1.0/examples/New-MgUserChatPinnedMessage.md @@ -1,17 +1,12 @@ -### Example 1: List all the pinned messages in a chat +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatPinnedMessage -ChatId $chatId -``` -This example shows how to use the New-MgUserChatPinnedMessage Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the pinned messages in a chat along with the associated chat message - -```powershell Import-Module Microsoft.Graph.Teams +$params = @{ + "message@odata.bind" = "https://graph.microsoft.com/v1.0/chats/19:2da4c29f6d7041eca70b638b43d45437@thread.v2/messages/1616964509832" +} -Get-MgChatPinnedMessage -ChatId $chatId -ExpandProperty "message" +New-MgChatPinnedMessage -ChatId $chatId -BodyParameter $params ``` This example shows how to use the New-MgUserChatPinnedMessage Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgUserChatTab.md b/src/Teams/v1.0/examples/New-MgUserChatTab.md index 6af3b8e55db..2635cd4e9f8 100644 --- a/src/Teams/v1.0/examples/New-MgUserChatTab.md +++ b/src/Teams/v1.0/examples/New-MgUserChatTab.md @@ -1,17 +1,19 @@ -### Example 1: List all the tabs in the chat along with associated Teams app +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Teams -Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" -``` -This example shows how to use the New-MgUserChatTab Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: List all the tabs belonging to a specific app in a chat - -```powershell Import-Module Microsoft.Graph.Teams +$params = @{ + displayName = "My Contoso Tab" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8" + configuration = @{ + entityId = "2DCA2E6C7A10415CAF6B8AB6661B3154" + contentUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView" + websiteUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154" + removeUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/uninstallTab" + } +} -Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.web'" +New-MgChatTab -ChatId $chatId -BodyParameter $params ``` This example shows how to use the New-MgUserChatTab Cmdlet. To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/v1.0/examples/New-MgUserTeamworkInstalledApp.md b/src/Teams/v1.0/examples/New-MgUserTeamworkInstalledApp.md index d628d59ee6e..3f7815c3b7b 100644 --- a/src/Teams/v1.0/examples/New-MgUserTeamworkInstalledApp.md +++ b/src/Teams/v1.0/examples/New-MgUserTeamworkInstalledApp.md @@ -1,10 +1,13 @@ -### Example 1: Using the New-MgUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" + "teamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" } -New-MgUserTeamworkInstalledApp -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgUserTeamworkInstalledApp -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserTeamworkInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgAppCatalogTeamApp.md b/src/Teams/v1.0/examples/Remove-MgAppCatalogTeamApp.md index 772453c5e48..70b998d45c8 100644 --- a/src/Teams/v1.0/examples/Remove-MgAppCatalogTeamApp.md +++ b/src/Teams/v1.0/examples/Remove-MgAppCatalogTeamApp.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgAppCatalogTeamApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgAppCatalogTeamApp -TeamsAppId $teamsAppId -``` -This example shows how to use the Remove-MgAppCatalogTeamApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Remove-MgAppCatalogTeamApp -TeamsAppId $teamsAppId +``` +This example shows how to use the Remove-MgAppCatalogTeamApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgAppCatalogTeamAppDefinition.md b/src/Teams/v1.0/examples/Remove-MgAppCatalogTeamAppDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgAppCatalogTeamAppDefinition.md +++ b/src/Teams/v1.0/examples/Remove-MgAppCatalogTeamAppDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgChat.md b/src/Teams/v1.0/examples/Remove-MgChat.md index 5692b293885..b7f64b685e6 100644 --- a/src/Teams/v1.0/examples/Remove-MgChat.md +++ b/src/Teams/v1.0/examples/Remove-MgChat.md @@ -3,7 +3,7 @@ ```powershell Import-Module Microsoft.Graph.Teams $params = @{ - Topic = "Group chat title update" + topic = "Group chat title update" } Update-MgChat -ChatId $chatId -BodyParameter $params diff --git a/src/Teams/v1.0/examples/Remove-MgChatInstalledApp.md b/src/Teams/v1.0/examples/Remove-MgChatInstalledApp.md index c9b09294f71..66c1e3b522c 100644 --- a/src/Teams/v1.0/examples/Remove-MgChatInstalledApp.md +++ b/src/Teams/v1.0/examples/Remove-MgChatInstalledApp.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgChatInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId -``` -This example shows how to use the Remove-MgChatInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Remove-MgChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgChatMember.md b/src/Teams/v1.0/examples/Remove-MgChatMember.md index f488c163441..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgChatMember.md +++ b/src/Teams/v1.0/examples/Remove-MgChatMember.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgChatMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgChatMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Remove-MgChatMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Remove-MgChatMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgChatMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Remove-MgChatMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgChatPinnedMessage.md b/src/Teams/v1.0/examples/Remove-MgChatPinnedMessage.md index 98f049818d3..fb8075d884e 100644 --- a/src/Teams/v1.0/examples/Remove-MgChatPinnedMessage.md +++ b/src/Teams/v1.0/examples/Remove-MgChatPinnedMessage.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgChatPinnedMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgChatPinnedMessage -ChatId $chatId -PinnedChatMessageInfoId $pinnedChatMessageInfoId -``` -This example shows how to use the Remove-MgChatPinnedMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Remove-MgChatPinnedMessage -ChatId $chatId -PinnedChatMessageInfoId $pinnedChatMessageInfoId +``` +This example shows how to use the Remove-MgChatPinnedMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgChatTab.md b/src/Teams/v1.0/examples/Remove-MgChatTab.md index fd001facd28..b28059be6e5 100644 --- a/src/Teams/v1.0/examples/Remove-MgChatTab.md +++ b/src/Teams/v1.0/examples/Remove-MgChatTab.md @@ -1,7 +1,13 @@ -### Example 1: Using the Remove-MgChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -``` -This example shows how to use the Remove-MgChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Update the name of a tab in a chat + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + displayName = "My Contoso Tab - updated again" +} + +Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +``` +This example shows how to use the Remove-MgChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannel.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannel.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannel.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannel.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessage.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageHostedContent.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageReply.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamInstalledApp.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamInstalledApp.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamInstalledApp.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamInstalledApp.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamMember.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamMember.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageHostedContent.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageReply.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamPrimaryChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOfferShiftRequest.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOfferShiftRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOfferShiftRequest.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOfferShiftRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOpenShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOpenShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOpenShiftChangeRequest.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleOpenShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleSwapShiftChangeRequest.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleSwapShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOffRequest.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOffRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOffRequest.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamScheduleTimeOffRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamTag.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamTag.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamTag.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamTag.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgGroupTeamTagMember.md b/src/Teams/v1.0/examples/Remove-MgGroupTeamTagMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgGroupTeamTagMember.md +++ b/src/Teams/v1.0/examples/Remove-MgGroupTeamTagMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeam.md b/src/Teams/v1.0/examples/Remove-MgTeam.md index d987c0f6911..eba29921540 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeam.md +++ b/src/Teams/v1.0/examples/Remove-MgTeam.md @@ -3,16 +3,16 @@ ```powershell Import-Module Microsoft.Graph.Teams $params = @{ - MemberSettings = @{ - AllowCreateUpdateChannels = $true + memberSettings = @{ + allowCreateUpdateChannels = $true } - MessagingSettings = @{ - AllowUserEditMessages = $true - AllowUserDeleteMessages = $true + messagingSettings = @{ + allowUserEditMessages = $true + allowUserDeleteMessages = $true } - FunSettings = @{ - AllowGiphy = $true - GiphyContentRating = "strict" + funSettings = @{ + allowGiphy = $true + giphyContentRating = "strict" } } diff --git a/src/Teams/v1.0/examples/Remove-MgTeamChannel.md b/src/Teams/v1.0/examples/Remove-MgTeamChannel.md index 8a8ef994ba2..6f6ef1728d7 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamChannel.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamChannel.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamChannel -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Remove-MgTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Remove-MgTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgTeamChannelMember.md b/src/Teams/v1.0/examples/Remove-MgTeamChannelMember.md index 85c27485640..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamChannelMember.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamChannelMember.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgTeamChannelMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Remove-MgTeamChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Remove-MgTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Remove-MgTeamChannelSharedWithTeam.md index f02708aff2b..59fd34fe35a 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamChannelSharedWithTeam.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgTeamChannelSharedWithTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId -``` -This example shows how to use the Remove-MgTeamChannelSharedWithTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId +``` +This example shows how to use the Remove-MgTeamChannelSharedWithTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgTeamInstalledApp.md b/src/Teams/v1.0/examples/Remove-MgTeamInstalledApp.md index adc66855ad1..66a78d6be34 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamInstalledApp.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamInstalledApp.md @@ -1,7 +1,18 @@ -### Example 1: Using the Remove-MgTeamInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -``` -This example shows how to use the Remove-MgTeamInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get the installed app + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Remove-MgTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get the names and other details of the installed app + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" +``` +This example shows how to use the Remove-MgTeamInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgTeamMember.md b/src/Teams/v1.0/examples/Remove-MgTeamMember.md index 6b8152c9664..1ea1117a222 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamMember.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamMember.md @@ -1,7 +1,16 @@ -### Example 1: Using the Remove-MgTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -``` -This example shows how to use the Remove-MgTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + roles = @( + "owner" + ) +} + +Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +``` +This example shows how to use the Remove-MgTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamPrimaryChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamScheduleOfferShiftRequest.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleOfferShiftRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleOfferShiftRequest.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleOfferShiftRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShift.md index 589613a7e42..d1e4ac79cf3 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShift.md @@ -1,7 +1,31 @@ -### Example 1: Using the Remove-MgTeamScheduleOpenShift Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -``` -This example shows how to use the Remove-MgTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedOpenShift = @{ + notes = "Inventory Management" + openSlotCount = 5 + displayName = "Field shift" + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") + theme = "white" + activities = @( + @{ + isPaid = $true + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") + code = "" + displayName = "Lunch" + } + ) + } + draftOpenShift = $null +} + +Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +``` +This example shows how to use the Remove-MgTeamScheduleOpenShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShiftChangeRequest.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleOpenShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamScheduleSchedulingGroup.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleSchedulingGroup.md index 8d6489822f4..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleSchedulingGroup.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgTeamScheduleSchedulingGroup Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamScheduleSchedulingGroup -TeamId $teamId -SchedulingGroupId $schedulingGroupId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgTeamScheduleSchedulingGroup Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Remove-MgTeamScheduleShift.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleShift.md index ae7c5ad23a8..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleShift.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgTeamScheduleShift Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Remove-MgTeamScheduleSwapShiftChangeRequest.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleSwapShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOff.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOff.md index f239484debf..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOff.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOff.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgTeamScheduleTimeOff Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamScheduleTimeOff -TeamId $teamId -TimeOffId $timeOffId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgTeamScheduleTimeOff Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Remove-MgTeamScheduleTimeOffReason.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOffReason.md index ccb9258089d..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOffReason.md @@ -1,7 +1,17 @@ -### Example 1: Using the Remove-MgTeamScheduleTimeOffReason Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamScheduleTimeOffReason -TeamId $teamId -TimeOffReasonId $timeOffReasonId + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Remove-MgTeamScheduleTimeOffReason Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Remove-MgTeamScheduleTimeOffRequest.md b/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOffRequest.md index dc587b1ac9a..8dc50edbdb8 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOffRequest.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamScheduleTimeOffRequest.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgTeamScheduleTimeOffRequest Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId -``` -This example shows how to use the Remove-MgTeamScheduleTimeOffRequest Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId +``` +This example shows how to use the Remove-MgTeamScheduleTimeOffRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgTeamTag.md b/src/Teams/v1.0/examples/Remove-MgTeamTag.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamTag.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamTag.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamTagMember.md b/src/Teams/v1.0/examples/Remove-MgTeamTagMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamTagMember.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamTagMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgTeamworkWorkforceIntegration.md b/src/Teams/v1.0/examples/Remove-MgTeamworkWorkforceIntegration.md index f857bac3fb1..744e4de7391 100644 --- a/src/Teams/v1.0/examples/Remove-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/v1.0/examples/Remove-MgTeamworkWorkforceIntegration.md @@ -1,7 +1,21 @@ -### Example 1: Using the Remove-MgTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -``` -This example shows how to use the Remove-MgTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + displayName = "displayName-value" + apiVersion = 99 + encryption = @{ + protocol = "protocol-value" + secret = "secret-value" + } + isActive = $true + url = "url-value" + supportedEntities = "supportedEntities-value" +} + +Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +``` +This example shows how to use the Remove-MgTeamworkWorkforceIntegration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Remove-MgUserChat.md b/src/Teams/v1.0/examples/Remove-MgUserChat.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgUserChat.md +++ b/src/Teams/v1.0/examples/Remove-MgUserChat.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgUserChatInstalledApp.md b/src/Teams/v1.0/examples/Remove-MgUserChatInstalledApp.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgUserChatInstalledApp.md +++ b/src/Teams/v1.0/examples/Remove-MgUserChatInstalledApp.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgUserChatMessage.md b/src/Teams/v1.0/examples/Remove-MgUserChatMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgUserChatMessage.md +++ b/src/Teams/v1.0/examples/Remove-MgUserChatMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgUserChatMessageHostedContent.md b/src/Teams/v1.0/examples/Remove-MgUserChatMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgUserChatMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Remove-MgUserChatMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgUserChatMessageReply.md b/src/Teams/v1.0/examples/Remove-MgUserChatMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgUserChatMessageReply.md +++ b/src/Teams/v1.0/examples/Remove-MgUserChatMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgUserChatMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Remove-MgUserChatMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgUserChatMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Remove-MgUserChatMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgUserChatPinnedMessage.md b/src/Teams/v1.0/examples/Remove-MgUserChatPinnedMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgUserChatPinnedMessage.md +++ b/src/Teams/v1.0/examples/Remove-MgUserChatPinnedMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgUserChatTab.md b/src/Teams/v1.0/examples/Remove-MgUserChatTab.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Remove-MgUserChatTab.md +++ b/src/Teams/v1.0/examples/Remove-MgUserChatTab.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Remove-MgUserTeamworkInstalledApp.md b/src/Teams/v1.0/examples/Remove-MgUserTeamworkInstalledApp.md index b6fe582e58c..883ae9c30d6 100644 --- a/src/Teams/v1.0/examples/Remove-MgUserTeamworkInstalledApp.md +++ b/src/Teams/v1.0/examples/Remove-MgUserTeamworkInstalledApp.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgUserTeamworkInstalledApp Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Remove-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId -``` -This example shows how to use the Remove-MgUserTeamworkInstalledApp Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Get-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId +``` +This example shows how to use the Remove-MgUserTeamworkInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgAppCatalogTeamApp.md b/src/Teams/v1.0/examples/Update-MgAppCatalogTeamApp.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgAppCatalogTeamApp.md +++ b/src/Teams/v1.0/examples/Update-MgAppCatalogTeamApp.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgAppCatalogTeamAppDefinition.md b/src/Teams/v1.0/examples/Update-MgAppCatalogTeamAppDefinition.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgAppCatalogTeamAppDefinition.md +++ b/src/Teams/v1.0/examples/Update-MgAppCatalogTeamAppDefinition.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgChat.md b/src/Teams/v1.0/examples/Update-MgChat.md index 7d3d89e4caf..332cc75c2b0 100644 --- a/src/Teams/v1.0/examples/Update-MgChat.md +++ b/src/Teams/v1.0/examples/Update-MgChat.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgChat Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - Topic = "Group chat title update" + topic = "Group chat title update" } -Update-MgChat -ChatId $chatId -BodyParameter $params -``` -This example shows how to use the Update-MgChat Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgChat -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Update-MgChat Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgChatMessage.md b/src/Teams/v1.0/examples/Update-MgChatMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgChatMessage.md +++ b/src/Teams/v1.0/examples/Update-MgChatMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgChatMessageReply.md b/src/Teams/v1.0/examples/Update-MgChatMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgChatMessageReply.md +++ b/src/Teams/v1.0/examples/Update-MgChatMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgChatMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Update-MgChatMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgChatMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Update-MgChatMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgChatPinnedMessage.md b/src/Teams/v1.0/examples/Update-MgChatPinnedMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgChatPinnedMessage.md +++ b/src/Teams/v1.0/examples/Update-MgChatPinnedMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgChatTab.md b/src/Teams/v1.0/examples/Update-MgChatTab.md index 81a3376c7ea..6d5b180b17e 100644 --- a/src/Teams/v1.0/examples/Update-MgChatTab.md +++ b/src/Teams/v1.0/examples/Update-MgChatTab.md @@ -1,10 +1,13 @@ -### Example 1: Using the Update-MgChatTab Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Update the name of a tab in a chat + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - DisplayName = "My Contoso Tab - updated again" + displayName = "My Contoso Tab - updated again" } -Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params -``` -This example shows how to use the Update-MgChatTab Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params +``` +This example shows how to use the Update-MgChatTab Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamChannel.md b/src/Teams/v1.0/examples/Update-MgGroupTeamChannel.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamChannel.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamChannel.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessage.md b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageHostedContent.md b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageReply.md b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamMember.md b/src/Teams/v1.0/examples/Update-MgGroupTeamMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamMember.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageHostedContent.md b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageReply.md b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamPrimaryChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOfferShiftRequest.md b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOfferShiftRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOfferShiftRequest.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOfferShiftRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOpenShift.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOpenShift.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOpenShiftChangeRequest.md b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleOpenShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleSwapShiftChangeRequest.md b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleSwapShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOffRequest.md b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOffRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOffRequest.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamScheduleTimeOffRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamTag.md b/src/Teams/v1.0/examples/Update-MgGroupTeamTag.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamTag.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamTag.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgGroupTeamTagMember.md b/src/Teams/v1.0/examples/Update-MgGroupTeamTagMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgGroupTeamTagMember.md +++ b/src/Teams/v1.0/examples/Update-MgGroupTeamTagMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeam.md b/src/Teams/v1.0/examples/Update-MgTeam.md index 7bde45ee6c4..41638a9e200 100644 --- a/src/Teams/v1.0/examples/Update-MgTeam.md +++ b/src/Teams/v1.0/examples/Update-MgTeam.md @@ -1,20 +1,23 @@ -### Example 1: Using the Update-MgTeam Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - MemberSettings = @{ - AllowCreateUpdateChannels = $true + memberSettings = @{ + allowCreateUpdateChannels = $true } - MessagingSettings = @{ - AllowUserEditMessages = $true - AllowUserDeleteMessages = $true + messagingSettings = @{ + allowUserEditMessages = $true + allowUserDeleteMessages = $true } - FunSettings = @{ - AllowGiphy = $true - GiphyContentRating = "strict" + funSettings = @{ + allowGiphy = $true + giphyContentRating = "strict" } } -Update-MgTeam -TeamId $teamId -BodyParameter $params -``` -This example shows how to use the Update-MgTeam Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgTeam -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Update-MgTeam Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgTeamChannel.md b/src/Teams/v1.0/examples/Update-MgTeamChannel.md index d8e8a20f2a0..9b0fc3bb554 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannel.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannel.md @@ -1,7 +1,9 @@ -### Example 1: Using the Update-MgTeamChannel Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams -Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId -``` -This example shows how to use the Update-MgTeamChannel Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + +Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Update-MgTeamChannel Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgTeamChannelMember.md b/src/Teams/v1.0/examples/Update-MgTeamChannelMember.md index 0b2d2bba171..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannelMember.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannelMember.md @@ -1,13 +1,17 @@ -### Example 1: Using the Update-MgTeamChannelMember Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( - "owner" - ) -} -Update-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgTeamChannelMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Update-MgTeamChannelMessage.md b/src/Teams/v1.0/examples/Update-MgTeamChannelMessage.md index 73c9c8450e7..1222e90d1df 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannelMessage.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannelMessage.md @@ -1,20 +1,434 @@ -### Example 1: Using the Update-MgTeamChannelMessage Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Update policyViolation property using application permissions + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - PolicyViolation = @{ - PolicyTip = @{ - GeneralText = "This item has been blocked by the administrator." - ComplianceUrl = "https://contoso.com/dlp-policy-page" - MatchedConditionDescriptions = @( + policyViolation = @{ + policyTip = @{ + generalText = "This item has been blocked by the administrator." + complianceUrl = "https://contoso.com/dlp-policy-page" + matchedConditionDescriptions = @( "Credit Card Number" ) } - VerdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" - DlpAction = "BlockAccess" + verdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + dlpAction = "BlockAccess" } } -Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params -``` -This example shows how to use the Update-MgTeamChannelMessage Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Update any property of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "text" + content = "Edit text only" + } + attachments = @( + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Update the mentions of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + deletedDateTime = $null + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "6b3f3c54-d09c-4fdd-b146-9b514a8a4f40" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + body = @{ + contentType = "html" + content = "<div><div> +<div> +<div> +<div> +<div><at id="0">Raghav</at><at id="1">TestGlobalBot</at> YEAH" + } + attachments = @( + ) + mentions = @( + @{ + id = 0 + mentionText = "Raghav" + mentioned = @{ + application = $null + device = $null + conversation = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10234c818e" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + } + } + @{ + id = 1 + mentionText = "TestGlobalBot" + mentioned = @{ + application = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = "TestGlobalBot" + applicationIdentityType = "bot" + } + device = $null + conversation = $null + user = $null + } + } + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Update the content with attachments of a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 5: Update the reactions in a message using delegated permissions + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + messageType = "message" + subject = $null + summary = $null + importance = "normal" + locale = "en-us" + from = @{ + application = $null + device = $null + user = @{ + id = "3b102402-813e-4e17-a6b2-f841aef1fdfc" + displayName = "Lam Cong" + userIdentityType = "aadUser" + } + conversation = $null + } + body = @{ + contentType = "html" + content = "<p><em>text</em></p><attachment id="e8f78756199240b88448ae0fc6db112d"></attachment><attachment id="638464e32834471ea202007da60a5ae6"></attachment>" + } + attachments = @( + @{ + id = "e8f78756199240b88448ae0fc6db112d" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "openUrl", + "image": "https://urlp.asm.skype.com/v1/url/content?url=https%3a%2f%2fcdn2.iconfinder.com%2fdata%2ficons%2fsocial-icons-33%2f128%2fTrello-128.png", + "title": "???????? click me ????????", + "value": "http://microsoft.com" + }, + { + "type": "imback", + "title": "&i am back& <>= \"", + "value": "&i am back& <>= \"" + }, + { + "type": "openUrl", + "title": "Open URL", + "value": "http://google.com" + } + ] +}" + name = $null + thumbnailUrl = $null + } + @{ + id = "638464e32834471ea202007da60a5ae6" + contentType = "application/vnd.microsoft.card.hero" + contentUrl = $null + content = "{ + "title": "*title*", + "subtitle": "*subtitle*", + "text": "Have you found yourself scratching your head trying to figure these questions out? Frustrated trying to access some of the goodies unique to the Microsoft Teams platform? Well, fear not, Bot Builder SDK Extension for Teams in .NET and Node flavors is here! Just head on over to Nuget or NPM to download our tasty helpers, sure to speed up your prep time so you can spend more time maximizing the flavor of the bots you're cooking up.Here???s a small sample of some recipes to whet your appetite.", + "images": [ + { + "url": "https://us-api.asm.skype.com/v1/objects/0-eus-d8-ced0c9567ee7b0b233b987bd32f9eacd/views/img_preview" + } + ], + "buttons": [ + { + "type": "messageBack", + "title": "&message back& <>= \"", + "text": "text = &message back& <>= \"", + "displayText": "displayText = &message back& <>= \"", + "value": { + "text": "some text 2" + } + } + ] +}" + name = $null + thumbnailUrl = $null + } + ) + mentions = @( + ) + reactions = @( + @{ + reactionType = "angry" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:30.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "laugh" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:32.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:17:14.67Z") + user = @{ + application = $null + device = $null + user = @{ + id = "f1b66449-b46d-49b0-9c3c-53c10a5c818e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T02:34:40.3Z") + user = @{ + application = $null + device = $null + user = @{ + id = "4c9041b7-449a-40f7-8855-56da239b9fd1" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "like" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:25.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "heart" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:31.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "sad" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:33.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + @{ + reactionType = "surprised" + createdDateTime = [System.DateTime]::Parse("2018-10-21T08:10:34.489Z") + user = @{ + application = $null + device = $null + user = @{ + id = "03a02232-d8f5-4970-a77e-6e8c76ce7a4e" + displayName = $null + userIdentityType = "aadUser" + } + } + } + ) +} + +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgTeamChannelMessageReply.md b/src/Teams/v1.0/examples/Update-MgTeamChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Update-MgTeamChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Update-MgTeamChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Update-MgTeamChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamMember.md b/src/Teams/v1.0/examples/Update-MgTeamMember.md index 83b8cbdcd60..6c925ae7e9f 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamMember.md +++ b/src/Teams/v1.0/examples/Update-MgTeamMember.md @@ -1,13 +1,16 @@ -### Example 1: Using the Update-MgTeamMember Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ "@odata.type" = "#microsoft.graph.aadUserConversationMember" - Roles = @( + roles = @( "owner" ) } -Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params -``` -This example shows how to use the Update-MgTeamMember Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessage.md b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessage.md +++ b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessageReply.md b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessageReply.md +++ b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelSharedWithTeam.md b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelSharedWithTeam.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelSharedWithTeam.md +++ b/src/Teams/v1.0/examples/Update-MgTeamPrimaryChannelSharedWithTeam.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamScheduleOfferShiftRequest.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleOfferShiftRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleOfferShiftRequest.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleOfferShiftRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShift.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShift.md index f17df55b110..72c4a1953ab 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShift.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShift.md @@ -1,28 +1,31 @@ -### Example 1: Using the Update-MgTeamScheduleOpenShift Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - SharedOpenShift = @{ - Notes = "Inventory Management" - OpenSlotCount = 5 - DisplayName = "Field shift" - StartDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - EndDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") - Theme = "white" - Activities = @( + schedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + sharedOpenShift = @{ + notes = "Inventory Management" + openSlotCount = 5 + displayName = "Field shift" + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") + theme = "white" + activities = @( @{ - IsPaid = $true - StartDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") - EndDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") - Code = "" - DisplayName = "Lunch" + isPaid = $true + startDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + endDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") + code = "" + displayName = "Lunch" } ) } - DraftOpenShift = $null + draftOpenShift = $null } -Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params -``` -This example shows how to use the Update-MgTeamScheduleOpenShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamScheduleOpenShift Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShiftChangeRequest.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleOpenShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamScheduleShift.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleShift.md index 252b9100683..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleShift.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleShift.md @@ -1,55 +1,17 @@ -### Example 1: Using the Update-MgTeamScheduleShift Cmdlet +### Example 1: {{ Add title here }} ```powershell -Import-Module Microsoft.Graph.Teams -$params = @{ - Id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" - CreatedDateTime = [System.DateTime]::Parse("2019-03-14T04:32:51.451Z") - LastModifiedDateTime = [System.DateTime]::Parse("2019-03-14T05:32:51.451Z") - UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" - SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" - LastModifiedBy = @{ - Application = $null - Device = $null - Conversation = $null - User = @{ - Id = "366c0b19-49b1-41b5-a03f-9f3887bd0ed8" - DisplayName = "John Doe" - } - } - SharedShift = @{ - DisplayName = "Day shift" - Notes = "Please do inventory as part of your shift." - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") - Theme = "blue" - Activities = @( - @{ - IsPaid = $true - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") - Code = "" - DisplayName = "Lunch" - } - ) - } - DraftShift = @{ - DisplayName = "Day shift" - Notes = "Please do inventory as part of your shift." - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") - Theme = "blue" - Activities = @( - @{ - IsPaid = $true - StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") - EndDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") - Code = "" - DisplayName = "Lunch" - } - ) - } -} -Update-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId -BodyParameter $params + PS C:\> {{ Add code here }} + +{{ Add output here }} ``` -This example shows how to use the Update-MgTeamScheduleShift Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +{{ 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/v1.0/examples/Update-MgTeamScheduleSwapShiftChangeRequest.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleSwapShiftChangeRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOffRequest.md b/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOffRequest.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOffRequest.md +++ b/src/Teams/v1.0/examples/Update-MgTeamScheduleTimeOffRequest.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamTag.md b/src/Teams/v1.0/examples/Update-MgTeamTag.md index 093355d11d5..31445b220da 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamTag.md +++ b/src/Teams/v1.0/examples/Update-MgTeamTag.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + displayName = "Finance" +} +Update-MgTeamTag -TeamId $teamId -TeamworkTagId $teamworkTagId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamTag Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgTeamTagMember.md b/src/Teams/v1.0/examples/Update-MgTeamTagMember.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamTagMember.md +++ b/src/Teams/v1.0/examples/Update-MgTeamTagMember.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgTeamworkWorkforceIntegration.md b/src/Teams/v1.0/examples/Update-MgTeamworkWorkforceIntegration.md index e8fc8ee8ad4..93760cad8f0 100644 --- a/src/Teams/v1.0/examples/Update-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/v1.0/examples/Update-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,21 @@ -### Example 1: Using the Update-MgTeamworkWorkforceIntegration Cmdlet -```powershell -Import-Module Microsoft.Graph.Teams +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Teams + $params = @{ - DisplayName = "displayName-value" - ApiVersion = 99 - Encryption = @{ - Protocol = "protocol-value" - Secret = "secret-value" + displayName = "displayName-value" + apiVersion = 99 + encryption = @{ + protocol = "protocol-value" + secret = "secret-value" } - IsActive = $true - Url = "url-value" - SupportedEntities = "supportedEntities-value" + isActive = $true + url = "url-value" + supportedEntities = "supportedEntities-value" } -Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params -``` -This example shows how to use the Update-MgTeamworkWorkforceIntegration Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params +``` +This example shows how to use the Update-MgTeamworkWorkforceIntegration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/v1.0/examples/Update-MgUserChat.md b/src/Teams/v1.0/examples/Update-MgUserChat.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgUserChat.md +++ b/src/Teams/v1.0/examples/Update-MgUserChat.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgUserChatMessage.md b/src/Teams/v1.0/examples/Update-MgUserChatMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgUserChatMessage.md +++ b/src/Teams/v1.0/examples/Update-MgUserChatMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgUserChatMessageHostedContent.md b/src/Teams/v1.0/examples/Update-MgUserChatMessageHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgUserChatMessageHostedContent.md +++ b/src/Teams/v1.0/examples/Update-MgUserChatMessageHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgUserChatMessageReply.md b/src/Teams/v1.0/examples/Update-MgUserChatMessageReply.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgUserChatMessageReply.md +++ b/src/Teams/v1.0/examples/Update-MgUserChatMessageReply.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgUserChatMessageReplyHostedContent.md b/src/Teams/v1.0/examples/Update-MgUserChatMessageReplyHostedContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgUserChatMessageReplyHostedContent.md +++ b/src/Teams/v1.0/examples/Update-MgUserChatMessageReplyHostedContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgUserChatPinnedMessage.md b/src/Teams/v1.0/examples/Update-MgUserChatPinnedMessage.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgUserChatPinnedMessage.md +++ b/src/Teams/v1.0/examples/Update-MgUserChatPinnedMessage.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Update-MgUserChatTab.md b/src/Teams/v1.0/examples/Update-MgUserChatTab.md index 093355d11d5..f6c6949389e 100644 --- a/src/Teams/v1.0/examples/Update-MgUserChatTab.md +++ b/src/Teams/v1.0/examples/Update-MgUserChatTab.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/beta/examples/Get-MgBetaUserManagerByRef.md b/src/Users/beta/examples/Get-MgBetaUserManagerByRef.md index b2abd266f8b..68dc157870c 100644 --- a/src/Users/beta/examples/Get-MgBetaUserManagerByRef.md +++ b/src/Users/beta/examples/Get-MgBetaUserManagerByRef.md @@ -1,23 +1,19 @@ -### Example 1: Get manager +### Example 1: Get manager -```powershell -Import-Module Microsoft.Graph.Beta.Users +```powershell Import-Module Microsoft.Graph.Beta.Users -Get-MgBetaUserManager -UserId $userId -``` -This example shows how to use the Get-MgBetaUserManagerByRef Cmdlet. +Get-MgBetaUserManager -UserId $userId +``` +This example shows how to use the Get-MgBetaBetaUserManagerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get manager chain up to the root level -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get manager chain up to the root level - -```powershell -Import-Module Microsoft.Graph.Beta.Users +```powershell Import-Module Microsoft.Graph.Beta.Users # A UPN can also be used as -UserId. -Get-MgBetaUser -UserId $userId -ExpandProperty "manager(`$levels=max;`$select=id,displayName)" -Property "id,displayName" -CountVariable CountVar -ConsistencyLevel eventual -``` -This example shows how to use the Get-MgBetaUserManagerByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUser -UserId $userId -ExpandProperty "manager(`$levels=max;`$select=id,displayName)" -Property "id,displayName" -ConsistencyLevel eventual +``` +This example shows how to use the Get-MgBetaBetaUserManagerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Get-MgBetaUserOutlookMasterCategory.md b/src/Users/beta/examples/Get-MgBetaUserOutlookMasterCategory.md index b54b8dea919..fdfb8cabb64 100644 --- a/src/Users/beta/examples/Get-MgBetaUserOutlookMasterCategory.md +++ b/src/Users/beta/examples/Get-MgBetaUserOutlookMasterCategory.md @@ -1,16 +1,14 @@ -### Example 1: Using the Get-MgBetaUserOutlookMasterCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + color = "preset15" +} + # A UPN can also be used as -UserId. -Get-MgBetaUserOutlookMasterCategory -UserId $userId -``` -This example shows how to use the Get-MgBetaUserOutlookMasterCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserOutlookMasterCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users -# A UPN can also be used as -UserId. -Get-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -``` -This example shows how to use the Get-MgBetaUserOutlookMasterCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserOutlookMasterCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Get-MgBetaUserSettingShiftPreference.md b/src/Users/beta/examples/Get-MgBetaUserSettingShiftPreference.md index 88047204e6b..29ba885a6dd 100644 --- a/src/Users/beta/examples/Get-MgBetaUserSettingShiftPreference.md +++ b/src/Users/beta/examples/Get-MgBetaUserSettingShiftPreference.md @@ -1,7 +1,34 @@ -### Example 1: Using the Get-MgBetaUserSettingShiftPreference Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users -Get-MgBetaUserSettingShiftPreference -UserId $userId -``` -This example shows how to use the Get-MgBetaUserSettingShiftPreference Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7" + "@odata.etag" = "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa" + availability = @( + @{ + recurrence = @{ + pattern = @{ + type = "Weekly" + daysOfWeek = @( + "Monday" + "Wednesday" + "Friday" + ) + interval = 1 + } + range = @{ + type = "noEnd" + } + } + timeZone = "Pacific Standard Time" + timeSlots = $null + } + ) +} + +Update-MgBetaUserSettingShiftPreference -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserSettingShiftPreference Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoList.md b/src/Users/beta/examples/Get-MgBetaUserTodoList.md index 4354aed6d64..829cb4223af 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoList.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoList.md @@ -1,16 +1,14 @@ -### Example 1: Using the Get-MgBetaUserTodoList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + displayName = "Vacation Plan" +} + # A UPN can also be used as -UserId. -Get-MgBetaUserTodoList -UserId $userId -``` -This example shows how to use the Get-MgBetaUserTodoList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserTodoList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users -# A UPN can also be used as -UserId. -Get-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -``` -This example shows how to use the Get-MgBetaUserTodoList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserTodoList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoListTask.md b/src/Users/beta/examples/Get-MgBetaUserTodoListTask.md index 4090c4918d9..fe40951b3d6 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoListTask.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoListTask.md @@ -1,16 +1,17 @@ -### Example 1: Using the Get-MgBetaUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + dueDateTime = @{ + dateTime = "2020-07-25T16:00:00" + timeZone = "Eastern Standard Time" + } +} + # A UPN can also be used as -UserId. -Get-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -``` -This example shows how to use the Get-MgBetaUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users -# A UPN can also be used as -UserId. -Get-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -``` -This example shows how to use the Get-MgBetaUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserTodoListTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskAttachment.md b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskAttachment.md index 1ec613cc312..284ab479b43 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskAttachment.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskAttachment.md @@ -1,16 +1,10 @@ -### Example 1: Using the Get-MgBetaUserTodoListTaskAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + # A UPN can also be used as -UserId. -Get-MgBetaUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -AttachmentBaseId $attachmentBaseId -``` -This example shows how to use the Get-MgBetaUserTodoListTaskAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserTodoListTaskAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users -# A UPN can also be used as -UserId. -Get-MgBetaUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -``` -This example shows how to use the Get-MgBetaUserTodoListTaskAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgBetaUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -AttachmentBaseId $attachmentBaseId +``` +This example shows how to use the Get-MgBetaBetaUserTodoListTaskAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskAttachmentContent.md b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskAttachmentContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskAttachmentContent.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskAttachmentContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskChecklistItem.md b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskChecklistItem.md index 5a521880153..d10724a6e60 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskChecklistItem.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskChecklistItem.md @@ -1,24 +1,14 @@ -### Example 1: Using the Get-MgBetaUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + displayName = "buy cake" +} + # A UPN can also be used as -UserId. -Get-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -``` -This example shows how to use the Get-MgBetaUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users -# A UPN can also be used as -UserId. -Get-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -``` -This example shows how to use the Get-MgBetaUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users -# A UPN can also be used as -UserId. -Get-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -OutFile $outFileId -``` -This example shows how to use the Get-MgBetaUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserTodoListTaskChecklistItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskLinkedResource.md b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskLinkedResource.md index 1dc21b63c8e..ebe05ffb9b2 100644 --- a/src/Users/beta/examples/Get-MgBetaUserTodoListTaskLinkedResource.md +++ b/src/Users/beta/examples/Get-MgBetaUserTodoListTaskLinkedResource.md @@ -1,16 +1,17 @@ -### Example 1: Using the Get-MgBetaUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + "@odata.type" = "#microsoft.graph.linkedResource" + webUrl = "http://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" +} + # A UPN can also be used as -UserId. -Get-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -``` -This example shows how to use the Get-MgBetaUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users -# A UPN can also be used as -UserId. -Get-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -``` -This example shows how to use the Get-MgBetaUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +``` +This example shows how to use the Get-MgBetaBetaUserTodoListTaskLinkedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/New-MgBetaUserOutlookMasterCategory.md b/src/Users/beta/examples/New-MgBetaUserOutlookMasterCategory.md index 0692ca2f763..345c1ebf973 100644 --- a/src/Users/beta/examples/New-MgBetaUserOutlookMasterCategory.md +++ b/src/Users/beta/examples/New-MgBetaUserOutlookMasterCategory.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgBetaUserOutlookMasterCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ - DisplayName = "Project expenses" - Color = "preset9" + displayName = "Project expenses" + color = "preset9" } + # A UPN can also be used as -UserId. -New-MgBetaUserOutlookMasterCategory -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserOutlookMasterCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserOutlookMasterCategory -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserOutlookMasterCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/New-MgBetaUserTodoList.md b/src/Users/beta/examples/New-MgBetaUserTodoList.md index 24685b21710..7e611883e24 100644 --- a/src/Users/beta/examples/New-MgBetaUserTodoList.md +++ b/src/Users/beta/examples/New-MgBetaUserTodoList.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgBetaUserTodoList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ - DisplayName = "Travel items" + displayName = "Travel items" } + # A UPN can also be used as -UserId. -New-MgBetaUserTodoList -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserTodoList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserTodoList -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserTodoList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/New-MgBetaUserTodoListTask.md b/src/Users/beta/examples/New-MgBetaUserTodoListTask.md index 94dfbe46eb8..25f6f7d0635 100644 --- a/src/Users/beta/examples/New-MgBetaUserTodoListTask.md +++ b/src/Users/beta/examples/New-MgBetaUserTodoListTask.md @@ -1,21 +1,24 @@ -### Example 1: Using the New-MgBetaUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ - Title = "A new task" - Categories = @( + title = "A new task" + categories = @( "Important" ) - LinkedResources = @( + linkedResources = @( @{ - WebUrl = "http://microsoft.com" - ApplicationName = "Microsoft" - DisplayName = "Microsoft" + webUrl = "http://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" } ) } + # A UPN can also be used as -UserId. -New-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserTodoListTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/New-MgBetaUserTodoListTaskAttachment.md b/src/Users/beta/examples/New-MgBetaUserTodoListTaskAttachment.md index ea7b63402f0..dd2bae32aeb 100644 --- a/src/Users/beta/examples/New-MgBetaUserTodoListTaskAttachment.md +++ b/src/Users/beta/examples/New-MgBetaUserTodoListTaskAttachment.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaUserTodoListTaskAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ "@odata.type" = "#microsoft.graph.taskFileAttachment" - Name = "smile" - ContentBytes = "a0b1c76de9f7=" - ContentType = "image/gif" + name = "smile" + contentBytes = "a0b1c76de9f7=" + contentType = "image/gif" } + # A UPN can also be used as -UserId. -New-MgBetaUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserTodoListTaskAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserTodoListTaskAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/New-MgBetaUserTodoListTaskChecklistItem.md b/src/Users/beta/examples/New-MgBetaUserTodoListTaskChecklistItem.md index d1e0cdc2a8f..b3d76a4e3cd 100644 --- a/src/Users/beta/examples/New-MgBetaUserTodoListTaskChecklistItem.md +++ b/src/Users/beta/examples/New-MgBetaUserTodoListTaskChecklistItem.md @@ -1,22 +1,14 @@ -### Example 1: Using the New-MgBetaUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ - DisplayName = "Final sign-off from the team" + displayName = "Final sign-off from the team" } + # A UPN can also be used as -UserId. -New-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the New-MgBetaUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users -$params = @{ - DisplayName = "Final sign-off from the team" -} -# A UPN can also be used as -UserId. -New-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserTodoListTaskChecklistItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/New-MgBetaUserTodoListTaskLinkedResource.md b/src/Users/beta/examples/New-MgBetaUserTodoListTaskLinkedResource.md index b025a3a03d5..c3bf1039efe 100644 --- a/src/Users/beta/examples/New-MgBetaUserTodoListTaskLinkedResource.md +++ b/src/Users/beta/examples/New-MgBetaUserTodoListTaskLinkedResource.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgBetaUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ - WebUrl = "https://microsoft.com" - ApplicationName = "Microsoft" - DisplayName = "Microsoft" - ExternalId = "dk9cddce2-dce2-f9dd-e2dc-cdf9e2dccdf9" + webUrl = "https://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" + externalId = "dk9cddce2-dce2-f9dd-e2dc-cdf9e2dccdf9" } + # A UPN can also be used as -UserId. -New-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params -``` -This example shows how to use the New-MgBetaUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the New-MgBetaBetaUserTodoListTaskLinkedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Remove-MgBetaUserManagerByRef.md b/src/Users/beta/examples/Remove-MgBetaUserManagerByRef.md index 47cf39623f7..905ad308296 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserManagerByRef.md +++ b/src/Users/beta/examples/Remove-MgBetaUserManagerByRef.md @@ -1,23 +1,19 @@ -### Example 1: Get manager +### Example 1: Get manager -```powershell -Import-Module Microsoft.Graph.Beta.Users +```powershell Import-Module Microsoft.Graph.Beta.Users -Get-MgBetaUserManager -UserId $userId -``` -This example shows how to use the Remove-MgBetaUserManagerByRef Cmdlet. +Get-MgBetaUserManager -UserId $userId +``` +This example shows how to use the Remove-MgBetaBetaUserManagerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get manager chain up to the root level -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Get manager chain up to the root level - -```powershell -Import-Module Microsoft.Graph.Beta.Users +```powershell Import-Module Microsoft.Graph.Beta.Users # A UPN can also be used as -UserId. -Get-MgBetaUser -UserId $userId -ExpandProperty "manager(`$levels=max;`$select=id,displayName)" -Property "id,displayName" -CountVariable CountVar -ConsistencyLevel eventual -``` -This example shows how to use the Remove-MgBetaUserManagerByRef Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgBetaUser -UserId $userId -ExpandProperty "manager(`$levels=max;`$select=id,displayName)" -Property "id,displayName" -ConsistencyLevel eventual +``` +This example shows how to use the Remove-MgBetaBetaUserManagerByRef Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Remove-MgBetaUserOutlookMasterCategory.md b/src/Users/beta/examples/Remove-MgBetaUserOutlookMasterCategory.md index 262d509d8b4..cec2b65de64 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserOutlookMasterCategory.md +++ b/src/Users/beta/examples/Remove-MgBetaUserOutlookMasterCategory.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgBetaUserOutlookMasterCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + color = "preset15" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -``` -This example shows how to use the Remove-MgBetaUserOutlookMasterCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserOutlookMasterCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Remove-MgBetaUserSettingShiftPreference.md b/src/Users/beta/examples/Remove-MgBetaUserSettingShiftPreference.md index 093355d11d5..f6c6949389e 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserSettingShiftPreference.md +++ b/src/Users/beta/examples/Remove-MgBetaUserSettingShiftPreference.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/beta/examples/Remove-MgBetaUserTodoList.md b/src/Users/beta/examples/Remove-MgBetaUserTodoList.md index d810b3dff6e..69f0f3e0562 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserTodoList.md +++ b/src/Users/beta/examples/Remove-MgBetaUserTodoList.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgBetaUserTodoList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + displayName = "Vacation Plan" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -``` -This example shows how to use the Remove-MgBetaUserTodoList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserTodoList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Remove-MgBetaUserTodoListTask.md b/src/Users/beta/examples/Remove-MgBetaUserTodoListTask.md index 6bc1ebe5222..b2ead41faaf 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserTodoListTask.md +++ b/src/Users/beta/examples/Remove-MgBetaUserTodoListTask.md @@ -1,8 +1,17 @@ -### Example 1: Using the Remove-MgBetaUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + dueDateTime = @{ + dateTime = "2020-07-25T16:00:00" + timeZone = "Eastern Standard Time" + } +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -``` -This example shows how to use the Remove-MgBetaUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserTodoListTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskAttachment.md b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskAttachment.md index 398f408b3d1..60b0a1c4a0f 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskAttachment.md +++ b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskAttachment.md @@ -1,8 +1,10 @@ -### Example 1: Using the Remove-MgBetaUserTodoListTaskAttachment Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + # A UPN can also be used as -UserId. -Remove-MgBetaUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -AttachmentBaseId $attachmentBaseId -``` -This example shows how to use the Remove-MgBetaUserTodoListTaskAttachment Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Remove-MgBetaUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -AttachmentBaseId $attachmentBaseId +``` +This example shows how to use the Remove-MgBetaBetaUserTodoListTaskAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskChecklistItem.md b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskChecklistItem.md index 4d6e97211fe..38748cb1774 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskChecklistItem.md +++ b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskChecklistItem.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgBetaUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + displayName = "buy cake" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -``` -This example shows how to use the Remove-MgBetaUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserTodoListTaskChecklistItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskLinkedResource.md b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskLinkedResource.md index 776d3e14ccf..82d31bd501b 100644 --- a/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskLinkedResource.md +++ b/src/Users/beta/examples/Remove-MgBetaUserTodoListTaskLinkedResource.md @@ -1,8 +1,17 @@ -### Example 1: Using the Remove-MgBetaUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + +$params = @{ + "@odata.type" = "#microsoft.graph.linkedResource" + webUrl = "http://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" +} + # A UPN can also be used as -UserId. -Remove-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -``` -This example shows how to use the Remove-MgBetaUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +``` +This example shows how to use the Remove-MgBetaBetaUserTodoListTaskLinkedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Set-MgBetaUserTodoListTaskAttachmentContent.md b/src/Users/beta/examples/Set-MgBetaUserTodoListTaskAttachmentContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Users/beta/examples/Set-MgBetaUserTodoListTaskAttachmentContent.md +++ b/src/Users/beta/examples/Set-MgBetaUserTodoListTaskAttachmentContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/beta/examples/Update-MgBetaUserOutlookMasterCategory.md b/src/Users/beta/examples/Update-MgBetaUserOutlookMasterCategory.md index 3d91f17ca7a..f227c5f6c2c 100644 --- a/src/Users/beta/examples/Update-MgBetaUserOutlookMasterCategory.md +++ b/src/Users/beta/examples/Update-MgBetaUserOutlookMasterCategory.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaUserOutlookMasterCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ - Color = "preset15" + color = "preset15" } + # A UPN can also be used as -UserId. -Update-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserOutlookMasterCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserOutlookMasterCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Update-MgBetaUserSettingShiftPreference.md b/src/Users/beta/examples/Update-MgBetaUserSettingShiftPreference.md index 093355d11d5..f6c6949389e 100644 --- a/src/Users/beta/examples/Update-MgBetaUserSettingShiftPreference.md +++ b/src/Users/beta/examples/Update-MgBetaUserSettingShiftPreference.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/beta/examples/Update-MgBetaUserTodoList.md b/src/Users/beta/examples/Update-MgBetaUserTodoList.md index 15b903ca70a..cd3870378a0 100644 --- a/src/Users/beta/examples/Update-MgBetaUserTodoList.md +++ b/src/Users/beta/examples/Update-MgBetaUserTodoList.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaUserTodoList Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ - DisplayName = "Vacation Plan" + displayName = "Vacation Plan" } + # A UPN can also be used as -UserId. -Update-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserTodoList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserTodoList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Update-MgBetaUserTodoListTask.md b/src/Users/beta/examples/Update-MgBetaUserTodoListTask.md index 24b6d87d8e7..a39c43cee03 100644 --- a/src/Users/beta/examples/Update-MgBetaUserTodoListTask.md +++ b/src/Users/beta/examples/Update-MgBetaUserTodoListTask.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ - DueDateTime = @{ - DateTime = "2020-07-25T16:00:00" - TimeZone = "Eastern Standard Time" + dueDateTime = @{ + dateTime = "2020-07-25T16:00:00" + timeZone = "Eastern Standard Time" } } + # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserTodoListTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Update-MgBetaUserTodoListTaskChecklistItem.md b/src/Users/beta/examples/Update-MgBetaUserTodoListTaskChecklistItem.md index 8864704be30..16748c42b2c 100644 --- a/src/Users/beta/examples/Update-MgBetaUserTodoListTaskChecklistItem.md +++ b/src/Users/beta/examples/Update-MgBetaUserTodoListTaskChecklistItem.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgBetaUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ - DisplayName = "buy cake" + displayName = "buy cake" } + # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserTodoListTaskChecklistItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/beta/examples/Update-MgBetaUserTodoListTaskLinkedResource.md b/src/Users/beta/examples/Update-MgBetaUserTodoListTaskLinkedResource.md index 9ef76538ccf..096682149d9 100644 --- a/src/Users/beta/examples/Update-MgBetaUserTodoListTaskLinkedResource.md +++ b/src/Users/beta/examples/Update-MgBetaUserTodoListTaskLinkedResource.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgBetaUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Users + $params = @{ "@odata.type" = "#microsoft.graph.linkedResource" - WebUrl = "http://microsoft.com" - ApplicationName = "Microsoft" - DisplayName = "Microsoft" + webUrl = "http://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" } + # A UPN can also be used as -UserId. -Update-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgBetaUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaBetaUserTodoListTaskLinkedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Get-MgUserManagerByRef.md b/src/Users/v1.0/examples/Get-MgUserManagerByRef.md index 093355d11d5..f6c6949389e 100644 --- a/src/Users/v1.0/examples/Get-MgUserManagerByRef.md +++ b/src/Users/v1.0/examples/Get-MgUserManagerByRef.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md b/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md index 1e7da3ce532..75a4b7e37ef 100644 --- a/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md +++ b/src/Users/v1.0/examples/Get-MgUserOutlookMasterCategory.md @@ -1,16 +1,14 @@ -### Example 1: Using the Get-MgUserOutlookMasterCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + color = "preset15" +} + # A UPN can also be used as -UserId. -Get-MgUserOutlookMasterCategory -UserId $userId -``` -This example shows how to use the Get-MgUserOutlookMasterCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserOutlookMasterCategory Cmdlet -```powershell -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). +Update-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +``` +This example shows how to use the Get-MgUserOutlookMasterCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md b/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md index ba6b419dae4..8cd1fe7c3d3 100644 --- a/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md +++ b/src/Users/v1.0/examples/Get-MgUserSettingShiftPreference.md @@ -1,7 +1,34 @@ -### Example 1: Using the Get-MgUserSettingShiftPreference Cmdlet -```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). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7" + "@odata.etag" = "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa" + availability = @( + @{ + recurrence = @{ + pattern = @{ + type = "Weekly" + daysOfWeek = @( + "Monday" + "Wednesday" + "Friday" + ) + interval = 1 + } + range = @{ + type = "noEnd" + } + } + timeZone = "Pacific Standard Time" + timeSlots = $null + } + ) +} + +Update-MgUserSettingShiftPreference -UserId $userId -BodyParameter $params +``` +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 07c42e0a05b..24e5c383feb 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoList.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoList.md @@ -1,16 +1,14 @@ -### Example 1: Using the Get-MgUserTodoList Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + displayName = "Vacation Plan" +} + # A UPN can also be used as -UserId. -Get-MgUserTodoList -UserId $userId -``` -This example shows how to use the Get-MgUserTodoList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserTodoList Cmdlet -```powershell -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). +Update-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +``` +This example shows how to use the Get-MgUserTodoList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Get-MgUserTodoListTask.md b/src/Users/v1.0/examples/Get-MgUserTodoListTask.md index 2ccbc553c27..db90702ee3d 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoListTask.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoListTask.md @@ -1,16 +1,17 @@ -### Example 1: Using the Get-MgUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + dueDateTime = @{ + dateTime = "2020-07-25T16:00:00" + timeZone = "Eastern Standard Time" + } +} + # A UPN can also be used as -UserId. -Get-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -``` -This example shows how to use the Get-MgUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Users -# A UPN can also be used as -UserId. -Get-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -``` -This example shows how to use the Get-MgUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the Get-MgUserTodoListTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Get-MgUserTodoListTaskAttachment.md b/src/Users/v1.0/examples/Get-MgUserTodoListTaskAttachment.md index 093355d11d5..f6c6949389e 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoListTaskAttachment.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoListTaskAttachment.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/v1.0/examples/Get-MgUserTodoListTaskAttachmentContent.md b/src/Users/v1.0/examples/Get-MgUserTodoListTaskAttachmentContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoListTaskAttachmentContent.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoListTaskAttachmentContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/v1.0/examples/Get-MgUserTodoListTaskChecklistItem.md b/src/Users/v1.0/examples/Get-MgUserTodoListTaskChecklistItem.md index 245e9dab25b..1aa7eff4753 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoListTaskChecklistItem.md @@ -1,16 +1,14 @@ -### Example 1: Using the Get-MgUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + displayName = "buy cake" +} + # A UPN can also be used as -UserId. -Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -``` -This example shows how to use the Get-MgUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Users -# A UPN can also be used as -UserId. -Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -``` -This example shows how to use the Get-MgUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +``` +This example shows how to use the Get-MgUserTodoListTaskChecklistItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Get-MgUserTodoListTaskLinkedResource.md b/src/Users/v1.0/examples/Get-MgUserTodoListTaskLinkedResource.md index b96401fbcbf..335b6ee1a82 100644 --- a/src/Users/v1.0/examples/Get-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/v1.0/examples/Get-MgUserTodoListTaskLinkedResource.md @@ -1,16 +1,17 @@ -### Example 1: Using the Get-MgUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + "@odata.type" = "#microsoft.graph.linkedResource" + webUrl = "http://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" +} + # A UPN can also be used as -UserId. -Get-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -``` -This example shows how to use the Get-MgUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Users -# A UPN can also be used as -UserId. -Get-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -``` -This example shows how to use the Get-MgUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +``` +This example shows how to use the Get-MgUserTodoListTaskLinkedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/New-MgUserOutlookMasterCategory.md b/src/Users/v1.0/examples/New-MgUserOutlookMasterCategory.md index 29b84411e73..46e5217fc27 100644 --- a/src/Users/v1.0/examples/New-MgUserOutlookMasterCategory.md +++ b/src/Users/v1.0/examples/New-MgUserOutlookMasterCategory.md @@ -1,12 +1,15 @@ -### Example 1: Using the New-MgUserOutlookMasterCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - DisplayName = "Project expenses" - Color = "preset9" + displayName = "Project expenses" + color = "preset9" } + # A UPN can also be used as -UserId. -New-MgUserOutlookMasterCategory -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserOutlookMasterCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserOutlookMasterCategory -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserOutlookMasterCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/New-MgUserTodoList.md b/src/Users/v1.0/examples/New-MgUserTodoList.md index 968f5aca2ad..08f496b30cd 100644 --- a/src/Users/v1.0/examples/New-MgUserTodoList.md +++ b/src/Users/v1.0/examples/New-MgUserTodoList.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserTodoList Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - DisplayName = "Travel items" + displayName = "Travel items" } + # A UPN can also be used as -UserId. -New-MgUserTodoList -UserId $userId -BodyParameter $params -``` -This example shows how to use the New-MgUserTodoList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserTodoList -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserTodoList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/New-MgUserTodoListTask.md b/src/Users/v1.0/examples/New-MgUserTodoListTask.md index 2f4c7f25573..1e91e1ce651 100644 --- a/src/Users/v1.0/examples/New-MgUserTodoListTask.md +++ b/src/Users/v1.0/examples/New-MgUserTodoListTask.md @@ -1,21 +1,24 @@ -### Example 1: Using the New-MgUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - Title = "A new task" - Categories = @( + title = "A new task" + categories = @( "Important" ) - LinkedResources = @( + linkedResources = @( @{ - WebUrl = "http://microsoft.com" - ApplicationName = "Microsoft" - DisplayName = "Microsoft" + webUrl = "http://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" } ) } + # A UPN can also be used as -UserId. -New-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params -``` -This example shows how to use the New-MgUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +``` +This example shows how to use the New-MgUserTodoListTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/New-MgUserTodoListTaskAttachment.md b/src/Users/v1.0/examples/New-MgUserTodoListTaskAttachment.md index 093355d11d5..3d6385b76cf 100644 --- a/src/Users/v1.0/examples/New-MgUserTodoListTaskAttachment.md +++ b/src/Users/v1.0/examples/New-MgUserTodoListTaskAttachment.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + "@odata.type" = "#microsoft.graph.taskFileAttachment" + name = "smile" + contentBytes = "a0b1c76de9f7=" + contentType = "image/gif" +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the New-MgUserTodoListTaskAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/New-MgUserTodoListTaskChecklistItem.md b/src/Users/v1.0/examples/New-MgUserTodoListTaskChecklistItem.md index 1fec86600c5..96653086fad 100644 --- a/src/Users/v1.0/examples/New-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/v1.0/examples/New-MgUserTodoListTaskChecklistItem.md @@ -1,11 +1,14 @@ -### Example 1: Using the New-MgUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - DisplayName = "Final sign-off from the team" + displayName = "Final sign-off from the team" } + # A UPN can also be used as -UserId. -New-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params -``` -This example shows how to use the New-MgUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the New-MgUserTodoListTaskChecklistItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/New-MgUserTodoListTaskLinkedResource.md b/src/Users/v1.0/examples/New-MgUserTodoListTaskLinkedResource.md index aa024556e9d..177db33f653 100644 --- a/src/Users/v1.0/examples/New-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/v1.0/examples/New-MgUserTodoListTaskLinkedResource.md @@ -1,14 +1,17 @@ -### Example 1: Using the New-MgUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - WebUrl = "https://microsoft.com" - ApplicationName = "Microsoft" - DisplayName = "Microsoft" - ExternalId = "dk9cddce2-dce2-f9dd-e2dc-cdf9e2dccdf9" + webUrl = "https://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" + externalId = "dk9cddce2-dce2-f9dd-e2dc-cdf9e2dccdf9" } + # A UPN can also be used as -UserId. -New-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params -``` -This example shows how to use the New-MgUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +New-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the New-MgUserTodoListTaskLinkedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Remove-MgUserOutlookMasterCategory.md b/src/Users/v1.0/examples/Remove-MgUserOutlookMasterCategory.md index be11c037c74..9286371bf1e 100644 --- a/src/Users/v1.0/examples/Remove-MgUserOutlookMasterCategory.md +++ b/src/Users/v1.0/examples/Remove-MgUserOutlookMasterCategory.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgUserOutlookMasterCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + color = "preset15" +} + # A UPN can also be used as -UserId. -Remove-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -``` -This example shows how to use the Remove-MgUserOutlookMasterCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserOutlookMasterCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Remove-MgUserSettingShiftPreference.md b/src/Users/v1.0/examples/Remove-MgUserSettingShiftPreference.md index 093355d11d5..f6c6949389e 100644 --- a/src/Users/v1.0/examples/Remove-MgUserSettingShiftPreference.md +++ b/src/Users/v1.0/examples/Remove-MgUserSettingShiftPreference.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/v1.0/examples/Remove-MgUserTodoList.md b/src/Users/v1.0/examples/Remove-MgUserTodoList.md index 409d70e637f..862566c3062 100644 --- a/src/Users/v1.0/examples/Remove-MgUserTodoList.md +++ b/src/Users/v1.0/examples/Remove-MgUserTodoList.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgUserTodoList Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + displayName = "Vacation Plan" +} + # A UPN can also be used as -UserId. -Remove-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -``` -This example shows how to use the Remove-MgUserTodoList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserTodoList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Remove-MgUserTodoListTask.md b/src/Users/v1.0/examples/Remove-MgUserTodoListTask.md index d8856b7fac6..a3f812363a4 100644 --- a/src/Users/v1.0/examples/Remove-MgUserTodoListTask.md +++ b/src/Users/v1.0/examples/Remove-MgUserTodoListTask.md @@ -1,8 +1,17 @@ -### Example 1: Using the Remove-MgUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + dueDateTime = @{ + dateTime = "2020-07-25T16:00:00" + timeZone = "Eastern Standard Time" + } +} + # A UPN can also be used as -UserId. -Remove-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -``` -This example shows how to use the Remove-MgUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserTodoListTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskAttachment.md b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskAttachment.md index 093355d11d5..c14401b57b3 100644 --- a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskAttachment.md +++ b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskAttachment.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoListTaskAttachment -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -AttachmentBaseId $attachmentBaseId +``` +This example shows how to use the Remove-MgUserTodoListTaskAttachment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskChecklistItem.md b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskChecklistItem.md index 9cc123bcd0c..1eee8d3aef2 100644 --- a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskChecklistItem.md @@ -1,8 +1,14 @@ -### Example 1: Using the Remove-MgUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + displayName = "buy cake" +} + # A UPN can also be used as -UserId. -Remove-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -``` -This example shows how to use the Remove-MgUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserTodoListTaskChecklistItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskLinkedResource.md b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskLinkedResource.md index b2f28e07467..2e2df5b6a09 100644 --- a/src/Users/v1.0/examples/Remove-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/v1.0/examples/Remove-MgUserTodoListTaskLinkedResource.md @@ -1,8 +1,17 @@ -### Example 1: Using the Remove-MgUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + +$params = @{ + "@odata.type" = "#microsoft.graph.linkedResource" + webUrl = "http://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" +} + # A UPN can also be used as -UserId. -Remove-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -``` -This example shows how to use the Remove-MgUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +``` +This example shows how to use the Remove-MgUserTodoListTaskLinkedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Set-MgUserTodoListTaskAttachmentContent.md b/src/Users/v1.0/examples/Set-MgUserTodoListTaskAttachmentContent.md index 093355d11d5..f6c6949389e 100644 --- a/src/Users/v1.0/examples/Set-MgUserTodoListTaskAttachmentContent.md +++ b/src/Users/v1.0/examples/Set-MgUserTodoListTaskAttachmentContent.md @@ -1,6 +1,6 @@ ### Example 1: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }} ### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} + PS C:\> {{ Add code here }} {{ Add output here }} ``` {{ Add description here }} - diff --git a/src/Users/v1.0/examples/Update-MgUserOutlookMasterCategory.md b/src/Users/v1.0/examples/Update-MgUserOutlookMasterCategory.md index 8b9ee3dc9aa..3e16b74b19b 100644 --- a/src/Users/v1.0/examples/Update-MgUserOutlookMasterCategory.md +++ b/src/Users/v1.0/examples/Update-MgUserOutlookMasterCategory.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgUserOutlookMasterCategory Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - Color = "preset15" + color = "preset15" } + # A UPN can also be used as -UserId. -Update-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params -``` -This example shows how to use the Update-MgUserOutlookMasterCategory Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params +``` +This example shows how to use the Update-MgUserOutlookMasterCategory Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Update-MgUserSettingShiftPreference.md b/src/Users/v1.0/examples/Update-MgUserSettingShiftPreference.md index b1cb0acf99b..96815045773 100644 --- a/src/Users/v1.0/examples/Update-MgUserSettingShiftPreference.md +++ b/src/Users/v1.0/examples/Update-MgUserSettingShiftPreference.md @@ -1,31 +1,34 @@ -### Example 1: Using the Update-MgUserSettingShiftPreference Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - Id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7" + id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7" "@odata.etag" = "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa" - Availability = @( + availability = @( @{ - Recurrence = @{ - Pattern = @{ - Type = "Weekly" - DaysOfWeek = @( + recurrence = @{ + pattern = @{ + type = "Weekly" + daysOfWeek = @( "Monday" "Wednesday" "Friday" ) - Interval = 1 + interval = 1 } - Range = @{ - Type = "noEnd" + range = @{ + type = "noEnd" } } - TimeZone = "Pacific Standard Time" - TimeSlots = $null + timeZone = "Pacific Standard Time" + timeSlots = $null } ) } -Update-MgUserSettingShiftPreference -UserId $userId -BodyParameter $params -``` -This example shows how to use the Update-MgUserSettingShiftPreference Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgUserSettingShiftPreference -UserId $userId -BodyParameter $params +``` +This example shows how to use the Update-MgUserSettingShiftPreference Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Update-MgUserTodoList.md b/src/Users/v1.0/examples/Update-MgUserTodoList.md index ea0f86bd3da..e7019c92233 100644 --- a/src/Users/v1.0/examples/Update-MgUserTodoList.md +++ b/src/Users/v1.0/examples/Update-MgUserTodoList.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgUserTodoList Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - DisplayName = "Vacation Plan" + displayName = "Vacation Plan" } + # A UPN can also be used as -UserId. -Update-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params -``` -This example shows how to use the Update-MgUserTodoList Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params +``` +This example shows how to use the Update-MgUserTodoList Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Update-MgUserTodoListTask.md b/src/Users/v1.0/examples/Update-MgUserTodoListTask.md index 725862a4aea..42500d585c7 100644 --- a/src/Users/v1.0/examples/Update-MgUserTodoListTask.md +++ b/src/Users/v1.0/examples/Update-MgUserTodoListTask.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgUserTodoListTask Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - DueDateTime = @{ - DateTime = "2020-07-25T16:00:00" - TimeZone = "Eastern Standard Time" + dueDateTime = @{ + dateTime = "2020-07-25T16:00:00" + timeZone = "Eastern Standard Time" } } + # A UPN can also be used as -UserId. -Update-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params -``` -This example shows how to use the Update-MgUserTodoListTask Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params +``` +This example shows how to use the Update-MgUserTodoListTask Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Update-MgUserTodoListTaskChecklistItem.md b/src/Users/v1.0/examples/Update-MgUserTodoListTaskChecklistItem.md index 32fb98c75a3..3c1b4d48c3a 100644 --- a/src/Users/v1.0/examples/Update-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/v1.0/examples/Update-MgUserTodoListTaskChecklistItem.md @@ -1,11 +1,14 @@ -### Example 1: Using the Update-MgUserTodoListTaskChecklistItem Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ - DisplayName = "buy cake" + displayName = "buy cake" } + # A UPN can also be used as -UserId. -Update-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params -``` -This example shows how to use the Update-MgUserTodoListTaskChecklistItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params +``` +This example shows how to use the Update-MgUserTodoListTaskChecklistItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Users/v1.0/examples/Update-MgUserTodoListTaskLinkedResource.md b/src/Users/v1.0/examples/Update-MgUserTodoListTaskLinkedResource.md index c98c7a11e0a..f47faf4056f 100644 --- a/src/Users/v1.0/examples/Update-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/v1.0/examples/Update-MgUserTodoListTaskLinkedResource.md @@ -1,14 +1,17 @@ -### Example 1: Using the Update-MgUserTodoListTaskLinkedResource Cmdlet -```powershell -Import-Module Microsoft.Graph.Users +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Users + $params = @{ "@odata.type" = "#microsoft.graph.linkedResource" - WebUrl = "http://microsoft.com" - ApplicationName = "Microsoft" - DisplayName = "Microsoft" + webUrl = "http://microsoft.com" + applicationName = "Microsoft" + displayName = "Microsoft" } + # A UPN can also be used as -UserId. -Update-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params -``` -This example shows how to use the Update-MgUserTodoListTaskLinkedResource Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +Update-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params +``` +This example shows how to use the Update-MgUserTodoListTaskLinkedResource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/tools/ExamplesGenerator.ps1 b/tools/ExamplesGenerator.ps1 index 6244f125032..1a0dace973b 100644 --- a/tools/ExamplesGenerator.ps1 +++ b/tools/ExamplesGenerator.ps1 @@ -332,6 +332,11 @@ function Update-ExampleFile { $Code = "``````powershell`r$CodeValue`r`n``````" $TotalText = "$TitleValue`r`n`n$Code`r`n$Description`r`n" + if($GraphProfile -eq "beta"){ + #Replace examples to match the new beta naming convention + $TotalText = $TotalText.Replace("-Mg", "-MgBeta") + $TotalText = $TotalText.Replace("Microsoft.Graph", "Microsoft.Graph.Beta") + } Add-Content -Path $ExampleFile -Value $TotalText }else{ $WrongExamplesCount++ @@ -340,9 +345,6 @@ function Update-ExampleFile { } } $PatternToSearch = "Import-Module Microsoft.Graph.$Module" - if($GraphProfile -eq "beta"){ - $PatternToSearch = "Import-Module Microsoft.Graph.Beta.$Module" - } if(($Content | Select-String -pattern $SearchText) -and ($Content | Select-String -pattern "This example shows")){ $ContainsPatternToSearch = $False foreach($List in $ExampleList){ @@ -359,6 +361,11 @@ function Update-ExampleFile { $Code = "``````powershell`r$CodeValue`r`n``````" $TotalText = "$TitleValue`r`n`n$Code`r`n$Description`r`n" + if($GraphProfile -eq "beta"){ + #Replace examples to match the new beta naming convention + $TotalText = $TotalText.Replace("-Mg", "-MgBeta") + $TotalText = $TotalText.Replace("Microsoft.Graph", "Microsoft.Graph.Beta") + } Add-Content -Path $ExampleFile -Value $TotalText } @@ -447,6 +454,9 @@ Start-Generator -ModulesToGenerate $ModulesToGenerate -GenerationMode "auto" #2. Test for ensuring that a handwritten example is not tampered with #Start-Generator -GenerationMode "manual" -ManualExternalDocsUrl "https://docs.microsoft.com/graph/api/user-get?view=graph-rest-1.0" -GraphCommand "Get-MgUser" -GraphModule "Users" -Profile "v1.0" -#3. Test for updates from api reference -#Start-Generator -GenerationMode "manual" -ManualExternalDocsUrl "https://docs.microsoft.com/graph/api/serviceprincipal-post-approleassignedto?view=graph-rest-1.0" -GraphCommand "New-MgServicePrincipalAppRoleAssignedTo" -GraphModule "Applications" -Profile "v1.0" -Write-Host -ForegroundColor Green "-------------Done-------------" \ No newline at end of file +#3. Test for v1.0 updates from api reference +#Start-Generator -GenerationMode "manual" -ManualExternalDocsUrl "https://docs.microsoft.com/graph/api/serviceprincipal-post-approleassignedto?view=graph-rest-v1.0" -GraphCommand "New-MgServicePrincipalAppRoleAssignedTo" -GraphModule "Applications" -Profile "v1.0" + +#4. Test for beta updates from api reference +#Start-Generator -GenerationMode "manual" -ManualExternalDocsUrl "https://docs.microsoft.com/graph/api/serviceprincipal-post-approleassignedto?view=graph-rest-beta" -GraphCommand "New-MgBetaServicePrincipalAppRoleAssignedTo" -GraphModule "Applications" -Profile "beta" +#Write-Host -ForegroundColor Green "-------------Done-------------" \ No newline at end of file