diff --git a/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationJobSchema.md b/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationJobSchema.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationJobSchema.md +++ b/src/Applications/beta/examples/Get-MgBetaApplicationSynchronizationJobSchema.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index 74cd0f2a694..fb90e24fd52 100644 --- a/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/v1.0/examples/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Applications +```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/Calendar/beta/examples/Get-MgBetaUserEventExtension.md b/src/Calendar/beta/examples/Get-MgBetaUserEventExtension.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Calendar/beta/examples/Get-MgBetaUserEventExtension.md +++ b/src/Calendar/beta/examples/Get-MgBetaUserEventExtension.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceExtension.md b/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceExtension.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceExtension.md +++ b/src/Calendar/v1.0/examples/Get-MgGroupEventInstanceExtension.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresence.md b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresence.md index 00680f6d9a4..799d9b2a5c6 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresence.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaCommunicationPresence.md @@ -1,4 +1,4 @@ -### Example 1: Get the presence information of another user +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications diff --git a/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md b/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md index 28107bd7389..44e6fd14e2d 100644 --- a/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md +++ b/src/CloudCommunications/beta/examples/Get-MgBetaUserPresence.md @@ -1,4 +1,4 @@ -### Example 1: Get your own presence information +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.CloudCommunications @@ -10,14 +10,3 @@ 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: 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-MgBetaUserPresence Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendeeReport.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendeeReport.md index f6c6949389e..e69de29bb2d 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendeeReport.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationOnlineMeetingAttendeeReport.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md b/src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md index bafe936a1be..05c15cb5dd6 100644 --- a/src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md +++ b/src/CrossDeviceExperiences/v1.0/examples/Get-MgUserActivity.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.CrossDeviceExperiences +```powershell +Import-Module Microsoft.Graph.CrossDeviceExperiences # A UPN can also be used as -UserId. -Get-MgUserActivity -UserId $userId -``` -This example shows how to use the Get-MgUserActivity Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserActivity -UserId $userId +``` +This example shows how to use the Get-MgUserActivity Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/DeviceManagement.Administration/beta/examples/Remove-MgBetaDeviceManagementTelecomExpenseManagementPartner.md b/src/DeviceManagement.Administration/beta/examples/Remove-MgBetaDeviceManagementTelecomExpenseManagementPartner.md index 093355d11d5..e69de29bb2d 100644 --- a/src/DeviceManagement.Administration/beta/examples/Remove-MgBetaDeviceManagementTelecomExpenseManagementPartner.md +++ b/src/DeviceManagement.Administration/beta/examples/Remove-MgBetaDeviceManagementTelecomExpenseManagementPartner.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md index f0cb7d839fb..ec1bc44e603 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintPrinter.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Devices.CloudPrint - -Remove-MgPrintPrinter -PrinterId $printerId -``` -This example shows how to use the Remove-MgPrintPrinter Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintPrinter -PrinterId $printerId +``` +This example shows how to use the Remove-MgPrintPrinter Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShare.md b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShare.md index d2afa7265ca..c682e095c26 100644 --- a/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShare.md +++ b/src/Devices.CloudPrint/v1.0/examples/Remove-MgPrintShare.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Devices.CloudPrint +```powershell +Import-Module Microsoft.Graph.Devices.CloudPrint + +Remove-MgPrintShare -PrinterShareId $printerShareId +``` +This example shows how to use the Remove-MgPrintShare Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Remove-MgPrintShare -PrinterShareId $printerShareId -``` -This example shows how to use the Remove-MgPrintShare Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmission.md b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmission.md index 828451e40ec..255fa8102be 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmission.md +++ b/src/Education/beta/examples/Get-MgBetaEducationClassAssignmentSubmission.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Request without optional Prefer header ```powershell Import-Module Microsoft.Graph.Beta.Education @@ -7,7 +7,16 @@ Get-MgBetaEducationClassAssignmentSubmission -EducationClassId $educationClassId 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: Code snippet +### Example 2: Request with optional Prefer header + +```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: Get submission with $expand options ```powershell Import-Module Microsoft.Graph.Beta.Education diff --git a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionSubmittedResource.md b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionSubmittedResource.md index 090cbdcdbda..e69de29bb2d 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionSubmittedResource.md +++ b/src/Education/beta/examples/Get-MgBetaEducationMeAssignmentSubmissionSubmittedResource.md @@ -1,11 +0,0 @@ -### 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 Get-MgBetaEducationMeAssignmentSubmissionSubmittedResource 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 2d0556fac91..1e0a499197f 100644 --- a/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md +++ b/src/Education/v1.0/examples/Get-MgEducationClassAssignment.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell +Import-Module Microsoft.Graph.Education + +Get-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). -Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -``` -This example shows how to use the Get-MgEducationClassAssignment Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Get-MgEducationMeUser.md b/src/Education/v1.0/examples/Get-MgEducationMeUser.md index ea01944c67b..6060321b768 100644 --- a/src/Education/v1.0/examples/Get-MgEducationMeUser.md +++ b/src/Education/v1.0/examples/Get-MgEducationMeUser.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Education +```powershell +Import-Module Microsoft.Graph.Education + +Get-MgEducationMeUser +``` +This example shows how to use the Get-MgEducationMeUser Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Get-MgEducationMeUser -``` -This example shows how to use the Get-MgEducationMeUser Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubricByRef.md b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubricByRef.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubricByRef.md +++ b/src/Education/v1.0/examples/Get-MgEducationUserAssignmentRubricByRef.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemChildContent.md b/src/Files/beta/examples/Get-MgBetaDriveItemChildContent.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Files/beta/examples/Get-MgBetaDriveItemChildContent.md +++ b/src/Files/beta/examples/Get-MgBetaDriveItemChildContent.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Files/v1.0/examples/Get-MgDriveItemChildContent.md b/src/Files/v1.0/examples/Get-MgDriveItemChildContent.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Files/v1.0/examples/Get-MgDriveItemChildContent.md +++ b/src/Files/v1.0/examples/Get-MgDriveItemChildContent.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Groups/beta/examples/Get-MgBetaGroupThreadPostInReplyToExtension.md b/src/Groups/beta/examples/Get-MgBetaGroupThreadPostInReplyToExtension.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Groups/beta/examples/Get-MgBetaGroupThreadPostInReplyToExtension.md +++ b/src/Groups/beta/examples/Get-MgBetaGroupThreadPostInReplyToExtension.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Groups/v1.0/examples/Get-MgGroupMemberOf.md b/src/Groups/v1.0/examples/Get-MgGroupMemberOf.md index eba3fec8b22..a142ab10517 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupMemberOf.md +++ b/src/Groups/v1.0/examples/Get-MgGroupMemberOf.md @@ -1,18 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Groups +```powershell +Import-Module Microsoft.Graph.Groups -Get-MgGroupMemberOf -GroupId $groupId -``` -This example shows how to use the Get-MgGroupMemberOf Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - -### Example 2: Code snippet +Get-MgGroupMemberOf -GroupId $groupId +``` +This example shows how to use the Get-MgGroupMemberOf Cmdlet. -```powershell Import-Module Microsoft.Graph.Groups +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Get-MgGroupMemberOfAsGroup -GroupId $groupId -CountVariable CountVar -Sort "displayName" -Filter "startswith(displayName, 'A')" -ConsistencyLevel eventual -``` -This example shows how to use the Get-MgGroupMemberOf Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Groups/v1.0/examples/Get-MgGroupThreadPostInReplyToExtension.md b/src/Groups/v1.0/examples/Get-MgGroupThreadPostInReplyToExtension.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Groups/v1.0/examples/Get-MgGroupThreadPostInReplyToExtension.md +++ b/src/Groups/v1.0/examples/Get-MgGroupThreadPostInReplyToExtension.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContract.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContract.md index 2466b24ce70..3f4c2fccfae 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaContract.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-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 Get-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 Get-MgBetaContract 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 4bf51a67f03..5a1e4f6e985 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBranding.md @@ -20,14 +20,3 @@ 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: Code snippet - -```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). - diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationSquareLogoDark.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationSquareLogoDark.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationSquareLogoDark.md +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganizationBrandingLocalizationSquareLogoDark.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDeviceRegisteredOwnerByRef.md index 1fd308866b7..fc534e365ae 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgDeviceRegisteredOwnerByRef.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement +```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-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgOrganizationBrandingLocalization.md index f2be9f1c91d..c47a93573ac 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgOrganizationBrandingLocalization.md @@ -1,6 +1,7 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.DirectoryManagement +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement $params = @{ backgroundColor = "#00000F" @@ -8,8 +9,9 @@ $params = @{ 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/Update-MgOrganization.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md index cc125809fc9..905ae9eb52b 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgOrganization.md @@ -3,22 +3,8 @@ ```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" - ) + "@odata.type" = "#microsoft.graph.organization" + mobileDeviceManagementAuthority = "intune" } Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md b/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md index e69de29bb2d..aa149fbea1f 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaAgreementFile.md @@ -0,0 +1,11 @@ +### Example 1: Get the agreement file for a specific language + +```powershell +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaAgreementFile -AgreementId $agreementId +``` +This example shows how to use the Get-MgBetaAgreementFile Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md index b9999b65d0d..732f87bd4e4 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md @@ -1,4 +1,13 @@ -### Example 1: Code snippet +### Example 1: Get a deleted workflow + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow -WorkflowId $workflowId +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get specific properties of a deleted workflow ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRun.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRun.md index a6defc87a40..d32f3260205 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRun.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRun.md @@ -1,21 +1,18 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowRun -WorkflowId $workflowId -RunId $runId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowRun -WorkflowId $workflowId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowRun -WorkflowId $workflowId -RunId $runId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a run report for a workflow + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowRun -WorkflowId $workflowId -RunId $runId +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get specific properties of a run report for a workflow + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowRun -WorkflowId $workflowId -RunId $runId -Property "id,failedTasksCount,failedUsersCount,processingStatus,totalTasksCount,totalUnprocessedTasksCount,totalUsersCount" +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRun Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.md index 18ace388d74..a4584162af3 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult -WorkflowId $workflowId -RunId $runId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult -WorkflowId $workflowId -RunId $runId -UserProcessingResultId $userProcessingResultId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a user processing result in a run report + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult -WorkflowId $workflowId -RunId $runId -UserProcessingResultId $userProcessingResultId +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get a user processing results for a workflow run + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult -WorkflowId $workflowId -RunId $runId -UserProcessingResultId $userProcessingResultId -Property "id,failedTasksCount,processingStatus,totalTasksCount,totalUnprocessedTasksCount,subject" +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowRunUserProcessingResult Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md index 382ba41b5b5..3f0dc5e5ad0 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md @@ -1,7 +1,9 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition.md index 3d3aa0b5c86..4c758843b95 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition -TaskDefinitionId $taskDefinitionId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition -Filter "category eq 'joiner,leaver' OR category eq 'joiner'" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition 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-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition -TaskDefinitionId $taskDefinitionId +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTaskDefinition Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate.md index 004c83e38bd..8c35e2c6710 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate.md @@ -1,21 +1,9 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate -WorkflowTemplateId $workflowTemplateId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate -Filter "category eq 'leaver'" -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 3: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate 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-MgBetaIdentityGovernanceLifecycleWorkflowTemplate -WorkflowTemplateId $workflowTemplateId +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowTemplate Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion.md b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion.md index 0fac08b9435..a4881c36528 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion.md @@ -1,14 +1,18 @@ -### Example 1: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion -WorkflowId $workflowId -WorkflowVersionVersionNumber $workflowVersionVersionNumber -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -### Example 2: Using the Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion -WorkflowId $workflowId -``` -This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 1: Get a workflow version + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion -WorkflowId $workflowId -WorkflowVersionVersionNumber $workflowVersionVersionNumber +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Get specific properties of a version of a workflow + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion -WorkflowId $workflowId -WorkflowVersionVersionNumber $workflowVersionVersionNumber -Property "category,displayName,versionNumber,executionConditions" -ExpandProperty "tasks" +``` +This example shows how to use the Get-MgBetaIdentityGovernanceLifecycleWorkflowVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganization.md index 72509e0620d..ad4f81c6856 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaEntitlementManagementConnectedOrganization.md @@ -2,8 +2,21 @@ ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance -Get-MgBetaEntitlementManagementConnectedOrganization +$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-MgBetaBetaEntitlementManagementConnectedOrganization Cmdlet. +This example shows how to use the New-MgBetaEntitlementManagementConnectedOrganization 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 c550656c3b0..efc98b4c197 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceAccessReviewDefinition.md @@ -1,4 +1,4 @@ -### Example 1: Create an access review on a group +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance @@ -43,66 +43,7 @@ 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: 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-MgBetaIdentityGovernanceAccessReviewDefinition 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 +### Example 2: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance @@ -174,7 +115,7 @@ 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: Create an access review on a group with multiple stages +### Example 3: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance @@ -246,7 +187,7 @@ 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: Create an access review on a group with insights about user-to-group affiliation and user sign in for recommendations +### Example 4: Code snippet ```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflow.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflow.md index 5928b894327..287c5712fc3 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflow.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflow.md @@ -1,46 +1,114 @@ -### Example 1: Using the New-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Create a new workflow + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - Category = "joiner" - Description = "Configure new hire tasks for onboarding employees on their first day" - DisplayName = "Australia Onboard new hire employee" - IsEnabled = $true - IsSchedulingEnabled = $false - ExecutionConditions = @{ + category = "joiner" + description = "Configure new hire tasks for onboarding employees on their first day" + displayName = "Australia Onboard new hire employee" + isEnabled = $true + isSchedulingEnabled = $true + executionConditions = @{ "@odata.type" = "#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions" - Scope = @{ + scope = @{ "@odata.type" = "#microsoft.graph.identityGovernance.ruleBasedSubjectSet" - Rule = "(country eq 'Australia')" + rule = "(country eq 'Australia')" } - Trigger = @{ + trigger = @{ "@odata.type" = "#microsoft.graph.identityGovernance.timeBasedAttributeTrigger" - TimeBasedAttribute = "employeeHireDate" - OffsetInDays = + timeBasedAttribute = "employeeHireDate" + offsetInDays = } } - Tasks = @( + tasks = @( @{ - ContinueOnError = $false - Description = "Enable user account in the directory" - DisplayName = "Enable User Account" - IsEnabled = $true - TaskDefinitionId = "6fc52c9d-398b-4305-9763-15f42c1676fc" - Arguments = @( + continueOnError = $false + description = "Enable user account in the directory" + displayName = "Enable User Account" + isEnabled = $true + taskDefinitionId = "6fc52c9d-398b-4305-9763-15f42c1676fc" + arguments = @( ) } @{ - ContinueOnError = $false - Description = "Send welcome email to new hire" - DisplayName = "Send Welcome Email" - IsEnabled = $true - TaskDefinitionId = "70b29d51-b59a-4773-9280-8841dfd3f2ea" - Arguments = @( + continueOnError = $false + description = "Send welcome email to new hire" + displayName = "Send Welcome Email" + isEnabled = $true + taskDefinitionId = "70b29d51-b59a-4773-9280-8841dfd3f2ea" + arguments = @( ) } ) } -New-MgBetaIdentityGovernanceLifecycleWorkflow -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaIdentityGovernanceLifecycleWorkflow -BodyParameter $params +``` +This example shows how to use the New-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create a new version of a task with customized email + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + +$params = @{ + category = "joiner" + description = "Configure new hire tasks for onboarding employees on their first day" + displayName = "custom email marketing API test" + isEnabled = $true + isSchedulingEnabled = $false + executionConditions = @{ + "@odata.type" = "#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions" + scope = @{ + "@odata.type" = "#microsoft.graph.identityGovernance.ruleBasedSubjectSet" + rule = "(department eq 'Marketing')" + } + trigger = @{ + "@odata.type" = "#microsoft.graph.identityGovernance.timeBasedAttributeTrigger" + timeBasedAttribute = "employeeHireDate" + offsetInDays = + } + } + tasks = @( + @{ + continueOnError = $false + description = "Enable user account in the directory" + displayName = "Enable User Account" + isEnabled = $true + taskDefinitionId = "6fc52c9d-398b-4305-9763-15f42c1676fc" + arguments = @( + ) + } + @{ + continueOnError = $false + description = "Send welcome email to new hire" + displayName = "Send Welcome Email" + isEnabled = $true + taskDefinitionId = "70b29d51-b59a-4773-9280-8841dfd3f2ea" + arguments = @( + @{ + name = "cc" + value = "1baa57fa-3c4e-4526-ba5a-db47a9df95f0" + } + @{ + name = "customSubject" + value = "Welcome to the organization {{userDisplayName}}!" + } + @{ + name = "customBody" + value = "Welcome to our organization {{userGivenName}}!" + } + @{ + name = "locale" + value = "en-us" + } + ) + } + ) +} + +New-MgBetaIdentityGovernanceLifecycleWorkflow -BodyParameter $params +``` +This example shows how to use the New-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md index ec1286b0240..722942204e0 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md @@ -1,30 +1,33 @@ -### Example 1: Using the New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - DisplayName = "Grant manager access to mailbox and OneDrive" - Description = "Grant manager access to mailbox and OneDrive" - EndpointConfiguration = @{ + displayName = "Grant manager access to mailbox and OneDrive" + description = "Grant manager access to mailbox and OneDrive" + endpointConfiguration = @{ "@odata.type" = "#microsoft.graph.logicAppTriggerEndpointConfiguration" - SubscriptionId = "c500b67c-e9b7-4ad2-a90d-77d41385ae55" - ResourceGroupName = "RG-LCM" - LogicAppWorkflowName = "ManagerAccess" + subscriptionId = "c500b67c-e9b7-4ad2-a90d-77d41385ae55" + resourceGroupName = "RG-LCM" + logicAppWorkflowName = "ManagerAccess" } - AuthenticationConfiguration = @{ + authenticationConfiguration = @{ "@odata.type" = "#microsoft.graph.azureAdTokenAuthentication" - ResourceId = "542dc01a-0b5d-4edc-b3f9-5cfe6393f557" + resourceId = "542dc01a-0b5d-4edc-b3f9-5cfe6393f557" } - ClientConfiguration = @{ + clientConfiguration = @{ "@odata.type" = "#microsoft.graph.customExtensionClientConfiguration" - MaximumRetries = - TimeoutInMilliseconds = 1000 + maximumRetries = + timeoutInMilliseconds = 1000 } - CallbackConfiguration = @{ + callbackConfiguration = @{ "@odata.type" = "#microsoft.graph.identityGovernance.customTaskExtensionCallbackConfiguration" - TimeoutDuration = "PT5M" + timeoutDuration = "PT5M" } } -New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension -BodyParameter $params -``` -This example shows how to use the New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension -BodyParameter $params +``` +This example shows how to use the New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflow.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflow.md index dcff5f08e5b..a21c4959eb4 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflow.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflow.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Remove-MgBetaIdentityGovernanceLifecycleWorkflow -WorkflowId $workflowId -``` -This example shows how to use the Remove-MgBetaIdentityGovernanceLifecycleWorkflow 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-MgBetaIdentityGovernanceLifecycleWorkflow -WorkflowId $workflowId +``` +This example shows how to use the Remove-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md index cc66392440d..57a1ca353be 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Remove-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension -CustomTaskExtensionId $customTaskExtensionId -``` -This example shows how to use the Remove-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension 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-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension -CustomTaskExtensionId $customTaskExtensionId +``` +This example shows how to use the Remove-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md index 0a0ff0d9edf..443b7f0d981 100644 --- a/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md +++ b/src/Identity.Governance/beta/examples/Remove-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md @@ -1,7 +1,9 @@ -### Example 1: Using the Remove-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance -Remove-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow -WorkflowId $workflowId -``` -This example shows how to use the Remove-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow 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-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow -WorkflowId $workflowId +``` +This example shows how to use the Remove-MgBetaIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow 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 bd96b4776be..341203dc9f7 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,6 +1,7 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance +```powershell +Import-Module Microsoft.Graph.Beta.Identity.Governance $params = @{ scope = @{ @@ -43,8 +44,9 @@ $params = @{ ) } -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-MgBetaIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflow.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflow.md index d7cedae5f1c..d0c23383566 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflow.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflow.md @@ -1,13 +1,16 @@ -### Example 1: Using the Update-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - Description = "Configure new hire tasks for onboarding employees on their first day" - DisplayName = "Australia Onboard new hire employee" - IsEnabled = $true - IsSchedulingEnabled = $false + description = "Configure new hire tasks for onboarding employees on their first day" + displayName = "Australia Onboard new hire employee" + isEnabled = $true + isSchedulingEnabled = $false } -Update-MgBetaIdentityGovernanceLifecycleWorkflow -WorkflowId $workflowId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaIdentityGovernanceLifecycleWorkflow -WorkflowId $workflowId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaIdentityGovernanceLifecycleWorkflow Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md index 95f88afc314..eeeaf19ae41 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md @@ -1,30 +1,33 @@ -### Example 1: Using the Update-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ - DisplayName = "Grant manager access to mailbox and OneDrive" - Description = "Grant manager access to mailbox and OneDrive" - EndpointConfiguration = @{ + displayName = "Grant manager access to mailbox and OneDrive" + description = "Grant manager access to mailbox and OneDrive" + endpointConfiguration = @{ "@odata.type" = "#microsoft.graph.logicAppTriggerEndpointConfiguration" - SubscriptionId = "c500b67c-e9b7-4ad2-a90d-77d41385ae55" - ResourceGroupName = "RG-LCM" - LogicAppWorkflowName = "ManagerAccess" + subscriptionId = "c500b67c-e9b7-4ad2-a90d-77d41385ae55" + resourceGroupName = "RG-LCM" + logicAppWorkflowName = "ManagerAccess" } - AuthenticationConfiguration = @{ + authenticationConfiguration = @{ "@odata.type" = "#microsoft.graph.azureAdTokenAuthentication" - ResourceId = "542dc01a-0b5d-4edc-b3f9-5cfe6393f557" + resourceId = "542dc01a-0b5d-4edc-b3f9-5cfe6393f557" } - ClientConfiguration = @{ + clientConfiguration = @{ "@odata.type" = "#microsoft.graph.customExtensionClientConfiguration" - MaximumRetries = - TimeoutInMilliseconds = 1000 + maximumRetries = + timeoutInMilliseconds = 1000 } - CallbackConfiguration = @{ + callbackConfiguration = @{ "@odata.type" = "#microsoft.graph.identityGovernance.customTaskExtensionCallbackConfiguration" - TimeoutDuration = "PT20M" + timeoutDuration = "PT20M" } } -Update-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension -CustomTaskExtensionId $customTaskExtensionId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension -CustomTaskExtensionId $customTaskExtensionId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md index 680187e294f..fbebfb364ee 100644 --- a/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md +++ b/src/Identity.Governance/beta/examples/Update-MgBetaIdentityGovernanceLifecycleWorkflowSetting.md @@ -1,11 +1,18 @@ -### Example 1: Using the Update-MgBetaIdentityGovernanceLifecycleWorkflowSetting Cmdlet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.Governance +### Example 1: Code snippet + +```powershell Import-Module Microsoft.Graph.Beta.Identity.Governance + $params = @{ "@odata.context" = "https://graph.microsoft.com/beta/$metadata#identityGovernance/lifecycleWorkflows/settings/$entity" - WorkflowScheduleIntervalInHours = 3 + workflowScheduleIntervalInHours = 3 + emailSettings = @{ + senderDomain = "ContosoIndustries.net" + useCompanyBranding = $true + } } -Update-MgBetaIdentityGovernanceLifecycleWorkflowSetting -BodyParameter $params -``` -This example shows how to use the Update-MgBetaIdentityGovernanceLifecycleWorkflowSetting Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +Update-MgBetaIdentityGovernanceLifecycleWorkflowSetting -BodyParameter $params +``` +This example shows how to use the Update-MgBetaIdentityGovernanceLifecycleWorkflowSetting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgAgreementFile.md b/src/Identity.Governance/v1.0/examples/Get-MgAgreementFile.md index e69de29bb2d..ea568cfe2a0 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgAgreementFile.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgAgreementFile.md @@ -0,0 +1,11 @@ +### Example 1: Get the agreement file for a specific language + +```powershell +Import-Module Microsoft.Graph.Identity.Governance + +Get-MgAgreementFile -AgreementId $agreementId +``` +This example shows how to use the Get-MgAgreementFile Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgAgreementFileLocalization.md b/src/Identity.Governance/v1.0/examples/Get-MgAgreementFileLocalization.md index 093355d11d5..2c0df3e6f46 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgAgreementFileLocalization.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgAgreementFileLocalization.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 +Get-MgAgreementFileLocalization -AgreementId $agreementId +``` +This example shows how to use the Get-MgAgreementFileLocalization Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Get-MgUserAgreementAcceptance.md b/src/Identity.Governance/v1.0/examples/Get-MgUserAgreementAcceptance.md index 2f0b101a0d2..b159612dea0 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgUserAgreementAcceptance.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgUserAgreementAcceptance.md @@ -1,10 +1,12 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell +Import-Module Microsoft.Graph.Identity.Governance # A UPN can also be used as -UserId. -Get-MgUserAgreementAcceptance -UserId $userId -``` -This example shows how to use the Get-MgUserAgreementAcceptance Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Get-MgUserAgreementAcceptance -UserId $userId +``` +This example shows how to use the Get-MgUserAgreementAcceptance Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md index f502ec22f5b..93643aa0ead 100644 --- a/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/v1.0/examples/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,6 +1,7 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.Governance +```powershell +Import-Module Microsoft.Graph.Identity.Governance $params = @{ scope = @{ @@ -43,8 +44,9 @@ $params = @{ ) } -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.SignIns/beta/examples/Get-MgBetaIdentityProvider.md b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md index abdac09f399..cd7c2682349 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaIdentityProvider.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Retrieve a specific social identity provider (Azure AD or Azure AD B2C) ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns @@ -7,7 +7,7 @@ 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: Code snippet +### Example 2: Retrieve a specific built-in identity provider (only for Azure AD) ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns @@ -16,7 +16,16 @@ 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: Code snippet +### Example 3: Retrieve a specific OpenID Connect identity provider (only for Azure AD B2C) + +```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 4: Retrieves Apple identity provider(only for Azure AD B2C) ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaOrganizationCertificateBasedAuthConfiguration.md b/src/Identity.SignIns/beta/examples/Get-MgBetaOrganizationCertificateBasedAuthConfiguration.md index b3e066abd72..28c277a215b 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaOrganizationCertificateBasedAuthConfiguration.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaOrganizationCertificateBasedAuthConfiguration.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +```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). -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). - diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAdminConsentRequestPolicy.md index aca090d7b8d..ff099f7f029 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyAdminConsentRequestPolicy.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Identity.SignIns - -Get-MgBetaPolicyAdminConsentRequestPolicy -``` -This example shows how to use the Get-MgBetaPolicyAdminConsentRequestPolicy Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns +Get-MgBetaPolicyAdminConsentRequestPolicy +``` +This example shows how to use the Get-MgBetaPolicyAdminConsentRequestPolicy 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 ebdadcb1bb8..3da3e654c90 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartner.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```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). +```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). + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md index 3136c1dd1c2..417787a5f13 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyRoleManagementPolicyRule.md @@ -1,4 +1,13 @@ -### Example 1: Code snippet +### Example 1: Retrieve a rule defined for a policy in PIM for Azure AD roles + +```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: Retrieve a rule defined for a policy in PIM for groups ```powershell Import-Module Microsoft.Graph.Beta.Identity.SignIns diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md index 59cb75988f0..0c8db224ace 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md @@ -1,6 +1,7 @@ -### 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.type" = "#microsoft.graph.authenticationStrengthPolicy" @@ -12,8 +13,9 @@ $params = @{ ) } -New-MgBetaPolicyAuthenticationStrengthPolicy -BodyParameter $params -``` -This example shows how to use the New-MgBetaPolicyAuthenticationStrengthPolicy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +New-MgBetaPolicyAuthenticationStrengthPolicy -BodyParameter $params +``` +This example shows how to use the New-MgBetaPolicyAuthenticationStrengthPolicy 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 b136a694428..7ac13ed1de3 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityApiConnector.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```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). +```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). + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationSoftwareOathMethod.md index ab6dd13ddb2..2badedd4d5a 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaUserAuthenticationSoftwareOathMethod.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### 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-MgBetaUserAuthenticationSoftwareOathMethod Cmdlet. - -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +```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). + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationStrengthPolicy.md index ade56584b7b..ac7c26ea686 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationStrengthPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyAuthenticationStrengthPolicy.md @@ -1,6 +1,7 @@ -### 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.type" = "#microsoft.graph.authenticationStrengthPolicy" @@ -8,8 +9,9 @@ $params = @{ description = "An auth strength allowing only FIDO2 security keys." } -Update-MgBetaPolicyAuthenticationStrengthPolicy -AuthenticationStrengthPolicyId $authenticationStrengthPolicyId -BodyParameter $params -``` -This example shows how to use the Update-MgBetaPolicyAuthenticationStrengthPolicy Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - +Update-MgBetaPolicyAuthenticationStrengthPolicy -AuthenticationStrengthPolicyId $authenticationStrengthPolicyId -BodyParameter $params +``` +This example shows how to use the Update-MgBetaPolicyAuthenticationStrengthPolicy Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md index d72e9aed74b..d747366b0de 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgInformationProtectionThreatAssessmentRequest.md @@ -1,4 +1,4 @@ -### Example 1: Get the properties of a mail assessment request +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns @@ -7,7 +7,7 @@ Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $t 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 +### Example 2: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns @@ -16,7 +16,7 @@ Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $t 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 +### Example 3: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns @@ -25,16 +25,7 @@ Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $t 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 +### Example 4: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md index 478e53f66a7..a1c46ed9416 100644 --- a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyRoleManagementPolicy.md @@ -1,4 +1,13 @@ -### Example 1: Code snippet +### 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 diff --git a/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md b/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md index 4a239bf692e..ca776aa0b65 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgIdentityProvider.md @@ -1,4 +1,4 @@ -### Example 1: Create a specific social identity provider (Azure AD and Azure AD B2C) +### Example 1: Code snippet ```powershell Import-Module Microsoft.Graph.Identity.SignIns @@ -15,21 +15,3 @@ 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.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). - diff --git a/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md index d2ad2ee6c3d..64d3e5cb520 100644 --- a/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/v1.0/examples/New-MgPolicyClaimMappingPolicy.md @@ -1,7 +1,6 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Identity.SignIns +```powershell Import-Module Microsoft.Graph.Identity.SignIns $params = @{ definition = @( @@ -10,9 +9,8 @@ $params = @{ 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/Remove-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md index 7df8e34c053..4e9b61b78c2 100644 --- a/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/v1.0/examples/Remove-MgIdentityB2XUserFlow.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Identity.SignIns +```powershell +Import-Module Microsoft.Graph.Identity.SignIns + +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). -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). - diff --git a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageExtension.md b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageExtension.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageExtension.md +++ b/src/Mail/beta/examples/Get-MgBetaUserMailFolderChildFolderMessageExtension.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageContent.md b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageContent.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageContent.md +++ b/src/Mail/v1.0/examples/Get-MgUserMailFolderChildFolderMessageContent.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Notes/beta/examples/Remove-MgBetaGroupOnenotePage.md b/src/Notes/beta/examples/Remove-MgBetaGroupOnenotePage.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Notes/beta/examples/Remove-MgBetaGroupOnenotePage.md +++ b/src/Notes/beta/examples/Remove-MgBetaGroupOnenotePage.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Notes/v1.0/examples/Get-MgGroupOnenotePageContent.md b/src/Notes/v1.0/examples/Get-MgGroupOnenotePageContent.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Notes/v1.0/examples/Get-MgGroupOnenotePageContent.md +++ b/src/Notes/v1.0/examples/Get-MgGroupOnenotePageContent.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md b/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md index 04bc14266ad..c2689c25953 100644 --- a/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/beta/examples/Get-MgBetaPlannerTaskProgressTaskBoardFormat.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```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). +```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). + diff --git a/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md b/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md index 99739203254..b763453cd53 100644 --- a/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md +++ b/src/Planner/beta/examples/Remove-MgBetaPlannerTask.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Planner +```powershell +Import-Module Microsoft.Graph.Beta.Planner + +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). -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). - diff --git a/src/Planner/v1.0/examples/Update-MgPlannerPlan.md b/src/Planner/v1.0/examples/Update-MgPlannerPlan.md index d6b9e47d5ae..4e4b6ab255d 100644 --- a/src/Planner/v1.0/examples/Update-MgPlannerPlan.md +++ b/src/Planner/v1.0/examples/Update-MgPlannerPlan.md @@ -1,13 +1,15 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Planner +```powershell +Import-Module Microsoft.Graph.Planner $params = @{ 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/Search/beta/examples/New-MgBetaExternalConnectionGroupMember.md b/src/Search/beta/examples/New-MgBetaExternalConnectionGroupMember.md index 3f611566bbc..0488f2c8f51 100644 --- a/src/Search/beta/examples/New-MgBetaExternalConnectionGroupMember.md +++ b/src/Search/beta/examples/New-MgBetaExternalConnectionGroupMember.md @@ -17,7 +17,7 @@ This example shows how to use the New-MgBetaExternalConnectionGroupMember Cmdlet ```powershell Import-Module Microsoft.Graph.Beta.Search $params = @{ - id = "e5477431-1038-484e-bf69-1dfedb97a110" + id = "1431b9c38ee647f6a" type = "externalGroup" } diff --git a/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md b/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md index a3b9b2990ca..274d7bc8df9 100644 --- a/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md +++ b/src/Search/v1.0/examples/Remove-MgExternalConnectionGroup.md @@ -1,11 +1,9 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```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). +```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). + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md index 11637eb0601..2d1b4944f99 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCase.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell +Import-Module Microsoft.Graph.Beta.Security + +Get-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). -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). - diff --git a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md index 16b7845118a..5f9850c906b 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityCaseEdiscoveryCaseSearch.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell +Import-Module Microsoft.Graph.Beta.Security + +Get-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). -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). - diff --git a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCase.md b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCase.md index 30c41589ca1..f1f3f234d7f 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCase.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCase.md @@ -1,6 +1,7 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Security +```powershell +Import-Module Microsoft.Graph.Beta.Security $params = @{ displayName = "CONTOSO LITIGATION-005" @@ -8,8 +9,9 @@ $params = @{ 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-MgBetaSecurityCaseEdiscoveryCase 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 3a6927a5436..d096bf5c52c 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,16 +1,14 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Beta.Security +```powershell Import-Module Microsoft.Graph.Beta.Security $params = @{ 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-MgBetaSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 7ef19fd5a6f..e08eb39b1d2 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell +Import-Module Microsoft.Graph.Security + +Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. + +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). -Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -``` -This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md index 4f86a97c275..b0e453ac390 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/v1.0/examples/Get-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Security +```powershell +Import-Module Microsoft.Graph.Security + +Get-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). -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). - diff --git a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 378ea75a625..92c9b1df909 100644 --- a/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,4 +1,20 @@ -### Example 1: Code snippet +### Example 1: Create unifiedGroupSource with group SMTP address + +```powershell Import-Module Microsoft.Graph.Security + +$params = @{ + group = @{ + mail = "SOCTeam@M365x809305.onmicrosoft.com" + } + includedSources = "mailbox, site" +} + +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create unifiedGroupSource with group@odata.bind ```powershell Import-Module Microsoft.Graph.Security diff --git a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md index a3724be9e8c..6455b525628 100644 --- a/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/v1.0/examples/Update-MgSecurityCaseEdiscoveryCase.md @@ -1,16 +1,14 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell -Import-Module Microsoft.Graph.Security +```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 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/Sites/beta/examples/Get-MgBetaGroupSiteList.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteList.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Sites/beta/examples/Get-MgBetaGroupSiteList.md +++ b/src/Sites/beta/examples/Get-MgBetaGroupSiteList.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Sites/v1.0/examples/Get-MgGroupSiteContentTypeColumn.md b/src/Sites/v1.0/examples/Get-MgGroupSiteContentTypeColumn.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Sites/v1.0/examples/Get-MgGroupSiteContentTypeColumn.md +++ b/src/Sites/v1.0/examples/Get-MgGroupSiteContentTypeColumn.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMember.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMember.md index f6c6949389e..e69de29bb2d 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMember.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPrimaryChannelMember.md @@ -1,17 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell - PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Teams/v1.0/examples/Get-MgGroupTeamPhoto.md b/src/Teams/v1.0/examples/Get-MgGroupTeamPhoto.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Teams/v1.0/examples/Get-MgGroupTeamPhoto.md +++ b/src/Teams/v1.0/examples/Get-MgGroupTeamPhoto.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} -