From 8dc85c7d7dc2bbe75a02b68a018b1de1e0998de1 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 9 Aug 2024 04:47:15 +0000 Subject: [PATCH] Updating examples --- ...ServicePrincipalSynchronizationTemplate.md | 11 ++ ...aVirtualEventWebinarRegistrationSession.md | 11 ++ ...taBackupRestoreExchangeProtectionPolicy.md | 6 +- ...toreOneDriveForBusinessProtectionPolicy.md | 6 +- ...w-MgBetaVirtualEventWebinarRegistration.md | 88 ++++++++++++ ...taBackupRestoreExchangeProtectionPolicy.md | 4 +- ...toreOneDriveForBusinessProtectionPolicy.md | 4 +- .../Get-MgVirtualEventWebinarRegistration.md | 2 +- ...gVirtualEventWebinarRegistrationByEmail.md | 1 + ...VirtualEventWebinarRegistrationByUserId.md | 1 + ...gBetaInviteCommunicationCallParticipant.md | 133 +++++++++++++++++- ...anagementVirtualEndpointCloudPcSnapshot.md | 11 ++ ...aDeviceManagementVirtualEndpointCloudPc.md | 15 ++ ...gementVirtualEndpointProvisioningPolicy.md | 7 + ...BetaRoleManagementCloudPcRoleDefinition.md | 1 + ...BetaRoleManagementCloudPcRoleDefinition.md | 1 + ...ManagementDeviceEnrollmentConfiguration.md | 49 ++----- ...ManagementDeviceEnrollmentConfiguration.md | 38 ++++- ...gDeviceManagementDeviceCompliancePolicy.md | 27 ++-- ...w-MgDeviceManagementDeviceConfiguration.md | 124 +++++++++++----- ...gDeviceManagementDeviceCompliancePolicy.md | 11 +- ...e-MgDeviceManagementDeviceConfiguration.md | 111 +++------------ ...viceAppManagementManagedEBookAssignment.md | 4 +- .../New-MgDeviceAppManagementMobileApp.md | 19 +-- .../examples/Update-MgDeviceAppManagement.md | 4 + ...viceAppManagementManagedEBookAssignment.md | 4 +- .../Update-MgDeviceAppManagementMobileApp.md | 21 +-- .../examples/Update-MgBetaEducationUser.md | 20 +-- .../beta/examples/Get-MgBetaShareDriveItem.md | 10 +- ...Grant-MgBetaDriveItemListItemPermission.md | 1 + .../Grant-MgBetaDriveListItemPermission.md | 1 + .../Grant-MgBetaDriveListPermission.md | 1 + ...Grant-MgBetaDriveRootListItemPermission.md | 1 + .../Grant-MgBetaShareListPermission.md | 1 + .../Remove-MgBetaDriveItemRetentionLabel.md | 11 ++ ...-MgBetaDriveItemListItemPermissionGrant.md | 1 + ...voke-MgBetaDriveListItemPermissionGrant.md | 1 + .../Revoke-MgBetaDriveListPermissionGrant.md | 1 + ...-MgBetaDriveRootListItemPermissionGrant.md | 1 + .../Revoke-MgBetaShareListPermissionGrant.md | 1 + .../Update-MgBetaDriveItemRetentionLabel.md | 17 +++ .../Update-MgDriveItemRetentionLabel.md | 4 +- .../Invoke-MgBetaArchiveGroupPlannerPlan.md | 1 + .../Invoke-MgBetaUnarchiveGroupPlannerPlan.md | 1 + .../v1.0/examples/New-MgGroupConversation.md | 43 +++--- .../examples/Get-MgDirectorySubscription.md | 11 ++ ...orySubscriptionByCommerceSubscriptionId.md | 1 + .../Update-MgAdminPeopleItemInsight.md | 15 ++ ...gBetaPolicyAuthenticationStrengthPolicy.md | 22 ++- .../Invoke-MgBetaArchivePlannerPlan.md | 15 ++ .../Invoke-MgBetaUnarchivePlannerPlan.md | 15 ++ ...New-MgBetaExternalIndustryDataConnector.md | 22 +-- ...e-MgBetaExternalIndustryDataInboundFlow.md | 2 +- .../examples/Set-MgExternalConnectionItem.md | 22 ++- .../New-MgBetaSecurityAuditLogQuery.md | 40 +++--- ...atIntelligenceSslCertificateRelatedHost.md | 11 ++ src/Sites/beta/examples/Get-MgBetaSite.md | 13 +- .../Invoke-MgBetaArchiveUserPlannerPlan.md | 1 + .../Invoke-MgBetaUnarchiveUserPlannerPlan.md | 1 + .../v1.0/examples/Set-MgUserPhotoContent.md | 16 +-- ...etaWindowsUpdatesPolicyComplianceChange.md | 2 +- 61 files changed, 712 insertions(+), 328 deletions(-) create mode 100644 src/Bookings/beta/examples/Get-MgBetaVirtualEventWebinarRegistrationSession.md create mode 100644 src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistration.md create mode 100644 src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByEmail.md create mode 100644 src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByUserId.md create mode 100644 src/DeviceManagement.Actions/beta/examples/New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot.md create mode 100644 src/DeviceManagement.Actions/beta/examples/Resize-MgBetaDeviceManagementVirtualEndpointCloudPc.md create mode 100644 src/Files/beta/examples/Grant-MgBetaDriveItemListItemPermission.md create mode 100644 src/Files/beta/examples/Grant-MgBetaDriveListItemPermission.md create mode 100644 src/Files/beta/examples/Grant-MgBetaDriveListPermission.md create mode 100644 src/Files/beta/examples/Grant-MgBetaDriveRootListItemPermission.md create mode 100644 src/Files/beta/examples/Grant-MgBetaShareListPermission.md create mode 100644 src/Files/beta/examples/Remove-MgBetaDriveItemRetentionLabel.md create mode 100644 src/Files/beta/examples/Revoke-MgBetaDriveItemListItemPermissionGrant.md create mode 100644 src/Files/beta/examples/Revoke-MgBetaDriveListItemPermissionGrant.md create mode 100644 src/Files/beta/examples/Revoke-MgBetaDriveListPermissionGrant.md create mode 100644 src/Files/beta/examples/Revoke-MgBetaDriveRootListItemPermissionGrant.md create mode 100644 src/Files/beta/examples/Revoke-MgBetaShareListPermissionGrant.md create mode 100644 src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md create mode 100644 src/Groups/beta/examples/Invoke-MgBetaArchiveGroupPlannerPlan.md create mode 100644 src/Groups/beta/examples/Invoke-MgBetaUnarchiveGroupPlannerPlan.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectorySubscription.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectorySubscriptionByCommerceSubscriptionId.md create mode 100644 src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleItemInsight.md create mode 100644 src/Planner/beta/examples/Invoke-MgBetaArchivePlannerPlan.md create mode 100644 src/Planner/beta/examples/Invoke-MgBetaUnarchivePlannerPlan.md create mode 100644 src/Security/v1.0/examples/Get-MgSecurityThreatIntelligenceSslCertificateRelatedHost.md create mode 100644 src/Users.Actions/beta/examples/Invoke-MgBetaArchiveUserPlannerPlan.md create mode 100644 src/Users.Actions/beta/examples/Invoke-MgBetaUnarchiveUserPlannerPlan.md diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index e69de29bb2d..3f1ed3342cb 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md @@ -0,0 +1,11 @@ +### Example + +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId + +``` +This example will### example + diff --git a/src/Bookings/beta/examples/Get-MgBetaVirtualEventWebinarRegistrationSession.md b/src/Bookings/beta/examples/Get-MgBetaVirtualEventWebinarRegistrationSession.md new file mode 100644 index 00000000000..0ded7bb47c8 --- /dev/null +++ b/src/Bookings/beta/examples/Get-MgBetaVirtualEventWebinarRegistrationSession.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaVirtualEventWebinarRegistrationSession -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventRegistrationId $virtualEventRegistrationId + +``` +This example shows how to use the Get-MgBetaVirtualEventWebinarRegistrationSession Cmdlet. + diff --git a/src/Bookings/beta/examples/New-MgBetaBackupRestoreExchangeProtectionPolicy.md b/src/Bookings/beta/examples/New-MgBetaBackupRestoreExchangeProtectionPolicy.md index 4c85fb145b9..f0194ca32aa 100644 --- a/src/Bookings/beta/examples/New-MgBetaBackupRestoreExchangeProtectionPolicy.md +++ b/src/Bookings/beta/examples/New-MgBetaBackupRestoreExchangeProtectionPolicy.md @@ -8,13 +8,13 @@ $params = @{ displayName = "Exchange Protection Policy" mailboxProtectionUnits = @( @{ - userId = "cdd3a849-dcaf-4a85-af82-7e39fc14019a" + directoryObjectId = "cdd3a849-dcaf-4a85-af82-7e39fc14019a" } @{ - userId = "9bc069da-b746-41a4-89ab-26125c6373c7" + directoryObjectId = "9bc069da-b746-41a4-89ab-26125c6373c7" } @{ - userId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7" + directoryObjectId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7" } ) } diff --git a/src/Bookings/beta/examples/New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md b/src/Bookings/beta/examples/New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md index 155640ab68d..866a264cf7f 100644 --- a/src/Bookings/beta/examples/New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md +++ b/src/Bookings/beta/examples/New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md @@ -8,13 +8,13 @@ $params = @{ displayName = "OneDrive For Business Protection Policy" driveProtectionUnits = @( @{ - userId = "cdd3a849-dcaf-4a85-af82-7e39fc14019" + directoryObjectId = "cdd3a849-dcaf-4a85-af82-7e39fc14019" } @{ - userId = "9bc069da-b746-41a4-89ab-26125c6373c7" + directoryObjectId = "9bc069da-b746-41a4-89ab-26125c6373c7" } @{ - userId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7" + directoryObjectId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7" } ) } diff --git a/src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistration.md b/src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistration.md new file mode 100644 index 00000000000..de4ec7ba036 --- /dev/null +++ b/src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistration.md @@ -0,0 +1,88 @@ +### Example 1: Creating registration record with delegated permission + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + preferredTimezone = "Pacific Standard Time" + preferredLanguage = "en-us" + registrationQuestionAnswers = @( + @{ + questionId = "95320781-96b3-4b8f-8cf8-e6561d23447a" + value = $null + booleanValue = $null + multiChoiceValues = @( + "Seattle" + ) + } + @{ + questionId = "4577afdb-8bee-4219-b482-04b52c6b855c" + value = $null + booleanValue = $true + multiChoiceValues = @( + ) + } + @{ + questionId = "80fefcf1-caf7-4cd3-b8d7-159e17c47f20" + value = $null + booleanValue = $null + multiChoiceValues = @( + "Cancun" + "Hoboken" +"Beijing" +) +} +) +} + +New-MgBetaVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params + +``` +This example shows creating registration record with delegated permission + +### Example 2: Creating registration record with application permission + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + firstName = "Diane" + lastName = "Demoss" + email = "DianeDemoss@contoso.com" + preferredTimezone = "Pacific Standard Time" + preferredLanguage = "en-us" + registrationQuestionAnswers = @( + @{ + questionId = "95320781-96b3-4b8f-8cf8-e6561d23447a" + value = $null + booleanValue = $null + multiChoiceValues = @( + "Seattle" + ) + } + @{ + questionId = "4577afdb-8bee-4219-b482-04b52c6b855c" + value = $null + booleanValue = $true + multiChoiceValues = @( + ) + } + @{ + questionId = "80fefcf1-caf7-4cd3-b8d7-159e17c47f20" + value = $null + booleanValue = $null + multiChoiceValues = @( + "London" + "New York City" +) +} +) +} + +New-MgBetaVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -BodyParameter $params + +``` +This example shows creating registration record with application permission + diff --git a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeProtectionPolicy.md b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeProtectionPolicy.md index cf0bdd1c311..0e149942651 100644 --- a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeProtectionPolicy.md +++ b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeProtectionPolicy.md @@ -8,10 +8,10 @@ $params = @{ displayName = "Exchange Policy - Inadvertent data loss" "mailboxProtectionUnits@delta" = @( @{ - userId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c" + directoryObjectId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c" } @{ - userId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c" + directoryObjectId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c" } @{ "@removed" = @{ diff --git a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md index c20ddeee8f5..d46b3395028 100644 --- a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md +++ b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md @@ -8,10 +8,10 @@ $params = @{ displayName = "One Drive Policy - Inadvertent data loss" "driveProtectionUnits@delta" = @( @{ - userId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c" + directoryObjectId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c" } @{ - userId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c" + directoryObjectId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c" } @{ "@removed" = @{ diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistration.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistration.md index b0565f9a494..e0083d87fb2 100644 --- a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistration.md +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistration.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Bookings -Get-MgVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId +Get-MgVirtualEventWebinarRegistration -VirtualEventWebinarId $virtualEventWebinarId -VirtualEventRegistrationId $virtualEventRegistrationId ``` This example shows how to use the Get-MgVirtualEventWebinarRegistration Cmdlet. diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByEmail.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByEmail.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByEmail.md @@ -0,0 +1 @@ + diff --git a/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByUserId.md b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByUserId.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Bookings/v1.0/examples/Get-MgVirtualEventWebinarRegistrationByUserId.md @@ -0,0 +1 @@ + diff --git a/src/CloudCommunications/beta/examples/Invoke-MgBetaInviteCommunicationCallParticipant.md b/src/CloudCommunications/beta/examples/Invoke-MgBetaInviteCommunicationCallParticipant.md index 02ed11e743d..dadde490bdc 100644 --- a/src/CloudCommunications/beta/examples/Invoke-MgBetaInviteCommunicationCallParticipant.md +++ b/src/CloudCommunications/beta/examples/Invoke-MgBetaInviteCommunicationCallParticipant.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Invite one participant to an existing call ```powershell @@ -8,6 +8,7 @@ $params = @{ participants = @( @{ "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" identity = @{ "@odata.type" = "#microsoft.graph.identitySet" user = @{ @@ -16,7 +17,6 @@ $params = @{ identityProvider = "AAD" } } - participantId = "a7ebfb2d-871e-419c-87af-27290b22e8db" } ) clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" @@ -25,5 +25,132 @@ $params = @{ Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params ``` -This example shows how to use the Invoke-MgBetaInviteCommunicationCallParticipant Cmdlet. +This example will invite one participant to an existing call + +### Example 2: Invite multiple participants to an existing group call + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications + +$params = @{ + participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe" + identityProvider = "AAD" + } + } + } + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "1e126418-44a0-4a94-a6f8-0efe1ad71acb" + identityProvider = "AAD" + } + } + } + ) + clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} + +Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params + +``` +This example will invite multiple participants to an existing group call + +### Example 3: Invite participants to an existing group call, replacing an existing Peer-to-Peer call + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications + +$params = @{ + participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe" + identityProvider = "AAD" + } + } + } + ) + clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} + +Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params + +``` +This example will invite participants to an existing group call, replacing an existing peer-to-peer call + +### Example 4: Invite one PSTN participant to an existing call + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications + +$params = @{ + participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + phone = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "+12345678901" + } + } + } + ) + clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} + +Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params + +``` +This example will invite one pstn participant to an existing call + +### Example 5: Move one participant from one meeting to another + +```powershell + +Import-Module Microsoft.Graph.Beta.CloudCommunications + +$params = @{ + participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + replacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + participantId = "7d501bf1-5ee4-4605-ba92-0ae4513c611c" + identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + user = @{ + "@odata.type" = "#microsoft.graph.identity" + id = "682b6c37-0729-4fab-ace6-d730d5d9137e" + identityProvider = "AAD" + } + } + } + ) + clientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} + +Invoke-MgBetaInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params + +``` +This example will move one participant from one meeting to another diff --git a/src/DeviceManagement.Actions/beta/examples/New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot.md b/src/DeviceManagement.Actions/beta/examples/New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot.md new file mode 100644 index 00000000000..01f54134a90 --- /dev/null +++ b/src/DeviceManagement.Actions/beta/examples/New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.DeviceManagement.Actions + +New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot -CloudPCId $cloudPCId + +``` +This example shows how to use the New-MgBetaDeviceManagementVirtualEndpointCloudPcSnapshot Cmdlet. + diff --git a/src/DeviceManagement.Actions/beta/examples/Resize-MgBetaDeviceManagementVirtualEndpointCloudPc.md b/src/DeviceManagement.Actions/beta/examples/Resize-MgBetaDeviceManagementVirtualEndpointCloudPc.md new file mode 100644 index 00000000000..6998d3fa3ab --- /dev/null +++ b/src/DeviceManagement.Actions/beta/examples/Resize-MgBetaDeviceManagementVirtualEndpointCloudPc.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.DeviceManagement.Actions + +$params = @{ + targetServicePlanId = "30d0e128-de93-41dc-89ec-33d84bb662a0" +} + +Resize-MgBetaDeviceManagementVirtualEndpointCloudPc -CloudPCId $cloudPCId -BodyParameter $params + +``` +This example shows how to use the Resize-MgBetaDeviceManagementVirtualEndpointCloudPc Cmdlet. + diff --git a/src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy.md b/src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy.md index a52eea45d18..2b251cf1cff 100644 --- a/src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy.md +++ b/src/DeviceManagement.Administration/beta/examples/Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy.md @@ -18,6 +18,13 @@ $params = @{ windowsSetting = @{ locale = "en-US" } + microsoftManagedDesktop = @{ + managedType = "starterManaged" + profile = $null + } + autopatch = @{ + autopatchGroupId = "91197a0b-3a74-408d-ba88-bce3fdc4e5eb" + } } Update-MgBetaDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId -BodyParameter $params diff --git a/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md index e6096e40cf0..29e20e59596 100644 --- a/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md @@ -6,6 +6,7 @@ Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment $params = @{ description = "An example custom role" +### Example 2 rolePermissions = @( @{ allowedResourceActions = @( diff --git a/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md index 8c8958172b0..f6d8a763d09 100644 --- a/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md @@ -6,6 +6,7 @@ Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment $params = @{ description = "Update basic properties and permission of application registrations" +### Example 2 rolePermissions = @( @{ allowedResourceActions = @( diff --git a/src/DeviceManagement.Enrollment/v1.0/examples/New-MgDeviceManagementDeviceEnrollmentConfiguration.md b/src/DeviceManagement.Enrollment/v1.0/examples/New-MgDeviceManagementDeviceEnrollmentConfiguration.md index e0798e80e5e..d0d0ebf4069 100644 --- a/src/DeviceManagement.Enrollment/v1.0/examples/New-MgDeviceManagementDeviceEnrollmentConfiguration.md +++ b/src/DeviceManagement.Enrollment/v1.0/examples/New-MgDeviceManagementDeviceEnrollmentConfiguration.md @@ -5,46 +5,23 @@ Import-Module Microsoft.Graph.DeviceManagement.Enrollment $params = @{ - "@odata.type" = "#microsoft.graph.deviceEnrollmentPlatformRestrictionsConfiguration" + "@odata.type" = "#microsoft.graph.deviceEnrollmentWindowsHelloForBusinessConfiguration" displayName = "Display Name value" description = "Description value" priority = 8 version = 7 - iosRestriction = @{ - "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" - platformBlocked = $true - personalDeviceEnrollmentBlocked = $true - osMinimumVersion = "Os Minimum Version value" - osMaximumVersion = "Os Maximum Version value" - } - windowsRestriction = @{ - "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" - platformBlocked = $true - personalDeviceEnrollmentBlocked = $true - osMinimumVersion = "Os Minimum Version value" - osMaximumVersion = "Os Maximum Version value" - } - windowsMobileRestriction = @{ - "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" - platformBlocked = $true - personalDeviceEnrollmentBlocked = $true - osMinimumVersion = "Os Minimum Version value" - osMaximumVersion = "Os Maximum Version value" - } - androidRestriction = @{ - "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" - platformBlocked = $true - personalDeviceEnrollmentBlocked = $true - osMinimumVersion = "Os Minimum Version value" - osMaximumVersion = "Os Maximum Version value" - } - macOSRestriction = @{ - "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" - platformBlocked = $true - personalDeviceEnrollmentBlocked = $true - osMinimumVersion = "Os Minimum Version value" - osMaximumVersion = "Os Maximum Version value" - } + pinMinimumLength = + pinMaximumLength = + pinUppercaseCharactersUsage = "required" + pinLowercaseCharactersUsage = "required" + pinSpecialCharactersUsage = "required" + state = "enabled" + securityDeviceRequired = $true + unlockWithBiometricsEnabled = $true + remotePassportEnabled = $true + pinPreviousBlockCount = + pinExpirationInDays = + enhancedBiometricsState = "enabled" } New-MgDeviceManagementDeviceEnrollmentConfiguration -BodyParameter $params diff --git a/src/DeviceManagement.Enrollment/v1.0/examples/Update-MgDeviceManagementDeviceEnrollmentConfiguration.md b/src/DeviceManagement.Enrollment/v1.0/examples/Update-MgDeviceManagementDeviceEnrollmentConfiguration.md index 44daf97fc49..85cdda458a1 100644 --- a/src/DeviceManagement.Enrollment/v1.0/examples/Update-MgDeviceManagementDeviceEnrollmentConfiguration.md +++ b/src/DeviceManagement.Enrollment/v1.0/examples/Update-MgDeviceManagementDeviceEnrollmentConfiguration.md @@ -5,12 +5,46 @@ Import-Module Microsoft.Graph.DeviceManagement.Enrollment $params = @{ - "@odata.type" = "#microsoft.graph.deviceEnrollmentLimitConfiguration" + "@odata.type" = "#microsoft.graph.deviceEnrollmentPlatformRestrictionsConfiguration" displayName = "Display Name value" description = "Description value" priority = 8 version = 7 - limit = + iosRestriction = @{ + "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" + platformBlocked = $true + personalDeviceEnrollmentBlocked = $true + osMinimumVersion = "Os Minimum Version value" + osMaximumVersion = "Os Maximum Version value" + } + windowsRestriction = @{ + "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" + platformBlocked = $true + personalDeviceEnrollmentBlocked = $true + osMinimumVersion = "Os Minimum Version value" + osMaximumVersion = "Os Maximum Version value" + } + windowsMobileRestriction = @{ + "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" + platformBlocked = $true + personalDeviceEnrollmentBlocked = $true + osMinimumVersion = "Os Minimum Version value" + osMaximumVersion = "Os Maximum Version value" + } + androidRestriction = @{ + "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" + platformBlocked = $true + personalDeviceEnrollmentBlocked = $true + osMinimumVersion = "Os Minimum Version value" + osMaximumVersion = "Os Maximum Version value" + } + macOSRestriction = @{ + "@odata.type" = "microsoft.graph.deviceEnrollmentPlatformRestriction" + platformBlocked = $true + personalDeviceEnrollmentBlocked = $true + osMinimumVersion = "Os Minimum Version value" + osMaximumVersion = "Os Maximum Version value" + } } Update-MgDeviceManagementDeviceEnrollmentConfiguration -DeviceEnrollmentConfigurationId $deviceEnrollmentConfigurationId -BodyParameter $params diff --git a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md index 233369e0100..67a6685dd18 100644 --- a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md +++ b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md @@ -5,26 +5,31 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.windows10MobileCompliancePolicy" + "@odata.type" = "#microsoft.graph.androidWorkProfileCompliancePolicy" description = "Description value" displayName = "Display Name value" version = 7 passwordRequired = $true - passwordBlockSimple = $true passwordMinimumLength = - passwordMinimumCharacterSetCount = - passwordRequiredType = "alphanumeric" - passwordPreviousPasswordBlockCount = - passwordExpirationDays = + passwordRequiredType = "alphabetic" passwordMinutesOfInactivityBeforeLock = - passwordRequireToUnlockFromIdle = $true + passwordExpirationDays = + passwordPreviousPasswordBlockCount = + securityPreventInstallAppsFromUnknownSources = $true + securityDisableUsbDebugging = $true + securityRequireVerifyApps = $true + deviceThreatProtectionEnabled = $true + deviceThreatProtectionRequiredSecurityLevel = "secured" + securityBlockJailbrokenDevices = $true osMinimumVersion = "Os Minimum Version value" osMaximumVersion = "Os Maximum Version value" - earlyLaunchAntiMalwareDriverEnabled = $true - bitLockerEnabled = $true - secureBootEnabled = $true - codeIntegrityEnabled = $true + minAndroidSecurityPatchLevel = "Min Android Security Patch Level value" storageRequireEncryption = $true + securityRequireSafetyNetAttestationBasicIntegrity = $true + securityRequireSafetyNetAttestationCertifiedDevice = $true + securityRequireGooglePlayServices = $true + securityRequireUpToDateSecurityProviders = $true + securityRequireCompanyPortalAppIntegrity = $true } New-MgDeviceManagementDeviceCompliancePolicy -BodyParameter $params diff --git a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md index 0e03e8b353c..90c7bfbc5e3 100644 --- a/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md +++ b/src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md @@ -5,43 +5,99 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.windows81GeneralConfiguration" + "@odata.type" = "#microsoft.graph.windows10EndpointProtectionConfiguration" description = "Description value" displayName = "Display Name value" version = 7 - accountsBlockAddingNonMicrosoftAccountEmail = $true - applyOnlyToWindows81 = $true - browserBlockAutofill = $true - browserBlockAutomaticDetectionOfIntranetSites = $true - browserBlockEnterpriseModeAccess = $true - browserBlockJavaScript = $true - browserBlockPlugins = $true - browserBlockPopups = $true - browserBlockSendingDoNotTrackHeader = $true - browserBlockSingleWordEntryOnIntranetSites = $true - browserRequireSmartScreen = $true - browserEnterpriseModeSiteListLocation = "Browser Enterprise Mode Site List Location value" - browserInternetSecurityLevel = "medium" - browserIntranetSecurityLevel = "low" - browserLoggingReportLocation = "Browser Logging Report Location value" - browserRequireHighSecurityForRestrictedSites = $true - browserRequireFirewall = $true - browserRequireFraudWarning = $true - browserTrustedSitesSecurityLevel = "low" - cellularBlockDataRoaming = $true - diagnosticsBlockDataSubmission = $true - passwordBlockPicturePasswordAndPin = $true - passwordExpirationDays = - passwordMinimumLength = - passwordMinutesOfInactivityBeforeScreenTimeout = - passwordMinimumCharacterSetCount = - passwordPreviousPasswordBlockCount = - passwordRequiredType = "alphanumeric" - passwordSignInFailureCountBeforeFactoryReset = - storageRequireDeviceEncryption = $true - updatesRequireAutomaticUpdates = $true - userAccountControlSettings = "alwaysNotify" - workFoldersUrl = "https://example.com/workFoldersUrl/" + firewallBlockStatefulFTP = $true + firewallIdleTimeoutForSecurityAssociationInSeconds = + firewallPreSharedKeyEncodingMethod = "none" + firewallIPSecExemptionsAllowNeighborDiscovery = $true + firewallIPSecExemptionsAllowICMP = $true + firewallIPSecExemptionsAllowRouterDiscovery = $true + firewallIPSecExemptionsAllowDHCP = $true + firewallCertificateRevocationListCheckMethod = "none" + firewallMergeKeyingModuleSettings = $true + firewallPacketQueueingMethod = "disabled" + firewallProfileDomain = @{ + "@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile" + firewallEnabled = "blocked" + stealthModeBlocked = $true + incomingTrafficBlocked = $true + unicastResponsesToMulticastBroadcastsBlocked = $true + inboundNotificationsBlocked = $true + authorizedApplicationRulesFromGroupPolicyMerged = $true + globalPortRulesFromGroupPolicyMerged = $true + connectionSecurityRulesFromGroupPolicyMerged = $true + outboundConnectionsBlocked = $true + inboundConnectionsBlocked = $true + securedPacketExemptionAllowed = $true + policyRulesFromGroupPolicyMerged = $true + } + firewallProfilePublic = @{ + "@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile" + firewallEnabled = "blocked" + stealthModeBlocked = $true + incomingTrafficBlocked = $true + unicastResponsesToMulticastBroadcastsBlocked = $true + inboundNotificationsBlocked = $true + authorizedApplicationRulesFromGroupPolicyMerged = $true + globalPortRulesFromGroupPolicyMerged = $true + connectionSecurityRulesFromGroupPolicyMerged = $true + outboundConnectionsBlocked = $true + inboundConnectionsBlocked = $true + securedPacketExemptionAllowed = $true + policyRulesFromGroupPolicyMerged = $true + } + firewallProfilePrivate = @{ + "@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile" + firewallEnabled = "blocked" + stealthModeBlocked = $true + incomingTrafficBlocked = $true + unicastResponsesToMulticastBroadcastsBlocked = $true + inboundNotificationsBlocked = $true + authorizedApplicationRulesFromGroupPolicyMerged = $true + globalPortRulesFromGroupPolicyMerged = $true + connectionSecurityRulesFromGroupPolicyMerged = $true + outboundConnectionsBlocked = $true + inboundConnectionsBlocked = $true + securedPacketExemptionAllowed = $true + policyRulesFromGroupPolicyMerged = $true + } + defenderAttackSurfaceReductionExcludedPaths = @( + "Defender Attack Surface Reduction Excluded Paths value" +) +defenderGuardedFoldersAllowedAppPaths = @( +"Defender Guarded Folders Allowed App Paths value" +) +defenderAdditionalGuardedFolders = @( +"Defender Additional Guarded Folders value" +) +defenderExploitProtectionXml = "ZGVmZW5kZXJFeHBsb2l0UHJvdGVjdGlvblhtbA==" +defenderExploitProtectionXmlFileName = "Defender Exploit Protection Xml File Name value" +defenderSecurityCenterBlockExploitProtectionOverride = $true +appLockerApplicationControl = "enforceComponentsAndStoreApps" +smartScreenEnableInShell = $true +smartScreenBlockOverrideForFiles = $true +applicationGuardEnabled = $true +applicationGuardBlockFileTransfer = "blockImageAndTextFile" +applicationGuardBlockNonEnterpriseContent = $true +applicationGuardAllowPersistence = $true +applicationGuardForceAuditing = $true +applicationGuardBlockClipboardSharing = "blockBoth" +applicationGuardAllowPrintToPDF = $true +applicationGuardAllowPrintToXPS = $true +applicationGuardAllowPrintToLocalPrinters = $true +applicationGuardAllowPrintToNetworkPrinters = $true +bitLockerDisableWarningForOtherDiskEncryption = $true +bitLockerEnableStorageCardEncryptionOnMobile = $true +bitLockerEncryptDevice = $true +bitLockerRemovableDrivePolicy = @{ +"@odata.type" = "microsoft.graph.bitLockerRemovableDrivePolicy" +encryptionMethod = "aesCbc256" +requireEncryptionForWriteAccess = $true +blockCrossOrganizationWriteAccess = $true +} } New-MgDeviceManagementDeviceConfiguration -BodyParameter $params diff --git a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md index 917f4b15e53..47bf580e429 100644 --- a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md +++ b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md @@ -5,21 +5,24 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.windows10MobileCompliancePolicy" + "@odata.type" = "#microsoft.graph.windows10CompliancePolicy" description = "Description value" displayName = "Display Name value" version = 7 passwordRequired = $true passwordBlockSimple = $true + passwordRequiredToUnlockFromIdle = $true + passwordMinutesOfInactivityBeforeLock = + passwordExpirationDays = passwordMinimumLength = passwordMinimumCharacterSetCount = passwordRequiredType = "alphanumeric" passwordPreviousPasswordBlockCount = - passwordExpirationDays = - passwordMinutesOfInactivityBeforeLock = - passwordRequireToUnlockFromIdle = $true + requireHealthyDeviceReport = $true osMinimumVersion = "Os Minimum Version value" osMaximumVersion = "Os Maximum Version value" + mobileOsMinimumVersion = "Mobile Os Minimum Version value" + mobileOsMaximumVersion = "Mobile Os Maximum Version value" earlyLaunchAntiMalwareDriverEnabled = $true bitLockerEnabled = $true secureBootEnabled = $true diff --git a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md index 78ec3fe7baa..cd7630598eb 100644 --- a/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md +++ b/src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceConfiguration.md @@ -5,99 +5,32 @@ Import-Module Microsoft.Graph.DeviceManagement $params = @{ - "@odata.type" = "#microsoft.graph.windows10EndpointProtectionConfiguration" + "@odata.type" = "#microsoft.graph.macOSGeneralDeviceConfiguration" description = "Description value" displayName = "Display Name value" version = 7 - firewallBlockStatefulFTP = $true - firewallIdleTimeoutForSecurityAssociationInSeconds = - firewallPreSharedKeyEncodingMethod = "none" - firewallIPSecExemptionsAllowNeighborDiscovery = $true - firewallIPSecExemptionsAllowICMP = $true - firewallIPSecExemptionsAllowRouterDiscovery = $true - firewallIPSecExemptionsAllowDHCP = $true - firewallCertificateRevocationListCheckMethod = "none" - firewallMergeKeyingModuleSettings = $true - firewallPacketQueueingMethod = "disabled" - firewallProfileDomain = @{ - "@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile" - firewallEnabled = "blocked" - stealthModeBlocked = $true - incomingTrafficBlocked = $true - unicastResponsesToMulticastBroadcastsBlocked = $true - inboundNotificationsBlocked = $true - authorizedApplicationRulesFromGroupPolicyMerged = $true - globalPortRulesFromGroupPolicyMerged = $true - connectionSecurityRulesFromGroupPolicyMerged = $true - outboundConnectionsBlocked = $true - inboundConnectionsBlocked = $true - securedPacketExemptionAllowed = $true - policyRulesFromGroupPolicyMerged = $true - } - firewallProfilePublic = @{ - "@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile" - firewallEnabled = "blocked" - stealthModeBlocked = $true - incomingTrafficBlocked = $true - unicastResponsesToMulticastBroadcastsBlocked = $true - inboundNotificationsBlocked = $true - authorizedApplicationRulesFromGroupPolicyMerged = $true - globalPortRulesFromGroupPolicyMerged = $true - connectionSecurityRulesFromGroupPolicyMerged = $true - outboundConnectionsBlocked = $true - inboundConnectionsBlocked = $true - securedPacketExemptionAllowed = $true - policyRulesFromGroupPolicyMerged = $true - } - firewallProfilePrivate = @{ - "@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile" - firewallEnabled = "blocked" - stealthModeBlocked = $true - incomingTrafficBlocked = $true - unicastResponsesToMulticastBroadcastsBlocked = $true - inboundNotificationsBlocked = $true - authorizedApplicationRulesFromGroupPolicyMerged = $true - globalPortRulesFromGroupPolicyMerged = $true - connectionSecurityRulesFromGroupPolicyMerged = $true - outboundConnectionsBlocked = $true - inboundConnectionsBlocked = $true - securedPacketExemptionAllowed = $true - policyRulesFromGroupPolicyMerged = $true - } - defenderAttackSurfaceReductionExcludedPaths = @( - "Defender Attack Surface Reduction Excluded Paths value" + compliantAppsList = @( + @{ + "@odata.type" = "microsoft.graph.appListItem" + name = "Name value" + publisher = "Publisher value" + appStoreUrl = "https://example.com/appStoreUrl/" + appId = "App Id value" + } + ) + compliantAppListType = "appsInListCompliant" + emailInDomainSuffixes = @( + "Email In Domain Suffixes value" ) -defenderGuardedFoldersAllowedAppPaths = @( -"Defender Guarded Folders Allowed App Paths value" -) -defenderAdditionalGuardedFolders = @( -"Defender Additional Guarded Folders value" -) -defenderExploitProtectionXml = "ZGVmZW5kZXJFeHBsb2l0UHJvdGVjdGlvblhtbA==" -defenderExploitProtectionXmlFileName = "Defender Exploit Protection Xml File Name value" -defenderSecurityCenterBlockExploitProtectionOverride = $true -appLockerApplicationControl = "enforceComponentsAndStoreApps" -smartScreenEnableInShell = $true -smartScreenBlockOverrideForFiles = $true -applicationGuardEnabled = $true -applicationGuardBlockFileTransfer = "blockImageAndTextFile" -applicationGuardBlockNonEnterpriseContent = $true -applicationGuardAllowPersistence = $true -applicationGuardForceAuditing = $true -applicationGuardBlockClipboardSharing = "blockBoth" -applicationGuardAllowPrintToPDF = $true -applicationGuardAllowPrintToXPS = $true -applicationGuardAllowPrintToLocalPrinters = $true -applicationGuardAllowPrintToNetworkPrinters = $true -bitLockerDisableWarningForOtherDiskEncryption = $true -bitLockerEnableStorageCardEncryptionOnMobile = $true -bitLockerEncryptDevice = $true -bitLockerRemovableDrivePolicy = @{ -"@odata.type" = "microsoft.graph.bitLockerRemovableDrivePolicy" -encryptionMethod = "aesCbc256" -requireEncryptionForWriteAccess = $true -blockCrossOrganizationWriteAccess = $true -} +passwordBlockSimple = $true +passwordExpirationDays = +passwordMinimumCharacterSetCount = +passwordMinimumLength = +passwordMinutesOfInactivityBeforeLock = +passwordMinutesOfInactivityBeforeScreenTimeout = +passwordPreviousPasswordBlockCount = +passwordRequiredType = "alphanumeric" +passwordRequired = $true } Update-MgDeviceManagementDeviceConfiguration -DeviceConfigurationId $deviceConfigurationId -BodyParameter $params diff --git a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementManagedEBookAssignment.md b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementManagedEBookAssignment.md index 5375680d306..07a29075ba1 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementManagedEBookAssignment.md +++ b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementManagedEBookAssignment.md @@ -5,9 +5,9 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.managedEBookAssignment" + "@odata.type" = "#microsoft.graph.iosVppEBookAssignment" target = @{ - "@odata.type" = "microsoft.graph.allLicensedUsersAssignmentTarget" + "@odata.type" = "microsoft.graph.deviceAndAppManagementAssignmentTarget" } installIntent = "required" } diff --git a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md index 5a7a9098c16..b4b71b81d7d 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md +++ b/src/Devices.CorporateManagement/v1.0/examples/New-MgDeviceAppManagementMobileApp.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.windowsAppX" + "@odata.type" = "#microsoft.graph.iosiPadOSWebClip" displayName = "Display Name value" description = "Description value" publisher = "Publisher value" @@ -21,21 +21,8 @@ $params = @{ developer = "Developer value" notes = "Notes value" publishingState = "processing" - committedContentVersion = "Committed Content Version value" - fileName = "File Name value" - size = - applicableArchitectures = "x86" - identityName = "Identity Name value" - identityPublisherHash = "Identity Publisher Hash value" - identityResourceIdentifier = "Identity Resource Identifier value" - isBundle = $true - minimumSupportedOperatingSystem = @{ - "@odata.type" = "microsoft.graph.windowsMinimumOperatingSystem" - v8_0 = $true - v8_1 = $true - v10_0 = $true - } - identityVersion = "Identity Version value" + appUrl = "https://example.com/appUrl/" + useManagedBrowser = $true } New-MgDeviceAppManagementMobileApp -BodyParameter $params diff --git a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagement.md b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagement.md index 383de5fcb93..080b5371f8f 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagement.md +++ b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagement.md @@ -6,6 +6,10 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ "@odata.type" = "#microsoft.graph.deviceAppManagement" + microsoftStoreForBusinessLastSuccessfulSyncDateTime = [System.DateTime]::Parse("2016-12-31T23:57:45.2453148-08:00") + isEnabledForMicrosoftStoreForBusiness = $true + microsoftStoreForBusinessLanguage = "Microsoft Store For Business Language value" + microsoftStoreForBusinessLastCompletedApplicationSyncTime = [System.DateTime]::Parse("2017-01-01T00:02:00.0421137-08:00") } Update-MgDeviceAppManagement -BodyParameter $params diff --git a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementManagedEBookAssignment.md b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementManagedEBookAssignment.md index c7d18f2c70d..cccce087c1b 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementManagedEBookAssignment.md +++ b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementManagedEBookAssignment.md @@ -5,9 +5,9 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.managedEBookAssignment" + "@odata.type" = "#microsoft.graph.iosVppEBookAssignment" target = @{ - "@odata.type" = "microsoft.graph.allLicensedUsersAssignmentTarget" + "@odata.type" = "microsoft.graph.deviceAndAppManagementAssignmentTarget" } installIntent = "required" } diff --git a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md index b5d015f295c..a103174d429 100644 --- a/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md +++ b/src/Devices.CorporateManagement/v1.0/examples/Update-MgDeviceAppManagementMobileApp.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Devices.CorporateManagement $params = @{ - "@odata.type" = "#microsoft.graph.iosStoreApp" + "@odata.type" = "#microsoft.graph.windowsWebApp" displayName = "Display Name value" description = "Description value" publisher = "Publisher value" @@ -21,24 +21,7 @@ $params = @{ developer = "Developer value" notes = "Notes value" publishingState = "processing" - bundleId = "Bundle Id value" - appStoreUrl = "https://example.com/appStoreUrl/" - applicableDeviceType = @{ - "@odata.type" = "microsoft.graph.iosDeviceType" - iPad = $true - iPhoneAndIPod = $true - } - minimumSupportedOperatingSystem = @{ - "@odata.type" = "microsoft.graph.iosMinimumOperatingSystem" - v8_0 = $true - v9_0 = $true - v10_0 = $true - v11_0 = $true - v12_0 = $true - v13_0 = $true - v14_0 = $true - v15_0 = $true - } + appUrl = "https://example.com/appUrl/" } Update-MgDeviceAppManagementMobileApp -MobileAppId $mobileAppId -BodyParameter $params diff --git a/src/Education/beta/examples/Update-MgBetaEducationUser.md b/src/Education/beta/examples/Update-MgBetaEducationUser.md index 9754e620d10..33c8acafbef 100644 --- a/src/Education/beta/examples/Update-MgBetaEducationUser.md +++ b/src/Education/beta/examples/Update-MgBetaEducationUser.md @@ -5,22 +5,10 @@ Import-Module Microsoft.Graph.Beta.Education $params = @{ - relatedContacts = @( - @{ - displayName = "Father Time" - emailAddress = "father@time.com" - mobilePhone = "4251231234" - relationship = "guardian" - accessConsent = $true - } - @{ - displayName = "Mother Nature" - emailAddress = "mother@nature.co.uk" - mobilePhone = "3251231234" - relationship = "parent" - accessConsent = $true - } - ) + displayName = "Rogelio Cazares" + givenName = "Rogelio" + middleName = "Fernando" + surname = "Cazares" } Update-MgBetaEducationUser -EducationUserId $educationUserId -BodyParameter $params diff --git a/src/Files/beta/examples/Get-MgBetaShareDriveItem.md b/src/Files/beta/examples/Get-MgBetaShareDriveItem.md index fe18b3d7151..f1c0a49554f 100644 --- a/src/Files/beta/examples/Get-MgBetaShareDriveItem.md +++ b/src/Files/beta/examples/Get-MgBetaShareDriveItem.md @@ -1,22 +1,22 @@ ### Example 1: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.Files Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId + ``` This example shows how to use the Get-MgBetaShareDriveItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - ### Example 2: Code snippet ```powershell + Import-Module Microsoft.Graph.Beta.Files -Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" +Get-MgBetaShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" + ``` This example shows how to use the Get-MgBetaShareDriveItem Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Files/beta/examples/Grant-MgBetaDriveItemListItemPermission.md b/src/Files/beta/examples/Grant-MgBetaDriveItemListItemPermission.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Grant-MgBetaDriveItemListItemPermission.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Grant-MgBetaDriveListItemPermission.md b/src/Files/beta/examples/Grant-MgBetaDriveListItemPermission.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Grant-MgBetaDriveListItemPermission.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Grant-MgBetaDriveListPermission.md b/src/Files/beta/examples/Grant-MgBetaDriveListPermission.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Grant-MgBetaDriveListPermission.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Grant-MgBetaDriveRootListItemPermission.md b/src/Files/beta/examples/Grant-MgBetaDriveRootListItemPermission.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Grant-MgBetaDriveRootListItemPermission.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Grant-MgBetaShareListPermission.md b/src/Files/beta/examples/Grant-MgBetaShareListPermission.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Grant-MgBetaShareListPermission.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Remove-MgBetaDriveItemRetentionLabel.md b/src/Files/beta/examples/Remove-MgBetaDriveItemRetentionLabel.md new file mode 100644 index 00000000000..8ff460e2871 --- /dev/null +++ b/src/Files/beta/examples/Remove-MgBetaDriveItemRetentionLabel.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Files + +Remove-MgBetaDriveItemRetentionLabel -DriveId $driveId -DriveItemId $driveItemId + +``` +This example shows how to use the Remove-MgBetaDriveItemRetentionLabel Cmdlet. + diff --git a/src/Files/beta/examples/Revoke-MgBetaDriveItemListItemPermissionGrant.md b/src/Files/beta/examples/Revoke-MgBetaDriveItemListItemPermissionGrant.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Revoke-MgBetaDriveItemListItemPermissionGrant.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Revoke-MgBetaDriveListItemPermissionGrant.md b/src/Files/beta/examples/Revoke-MgBetaDriveListItemPermissionGrant.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Revoke-MgBetaDriveListItemPermissionGrant.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Revoke-MgBetaDriveListPermissionGrant.md b/src/Files/beta/examples/Revoke-MgBetaDriveListPermissionGrant.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Revoke-MgBetaDriveListPermissionGrant.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Revoke-MgBetaDriveRootListItemPermissionGrant.md b/src/Files/beta/examples/Revoke-MgBetaDriveRootListItemPermissionGrant.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Revoke-MgBetaDriveRootListItemPermissionGrant.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Revoke-MgBetaShareListPermissionGrant.md b/src/Files/beta/examples/Revoke-MgBetaShareListPermissionGrant.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Files/beta/examples/Revoke-MgBetaShareListPermissionGrant.md @@ -0,0 +1 @@ + diff --git a/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md b/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md new file mode 100644 index 00000000000..f87bb75b398 --- /dev/null +++ b/src/Files/beta/examples/Update-MgBetaDriveItemRetentionLabel.md @@ -0,0 +1,17 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Files + +$params = @{ + retentionSettings = @{ + isRecordLocked = $true + } +} + +Update-MgBetaDriveItemRetentionLabel -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDriveItemRetentionLabel Cmdlet. + diff --git a/src/Files/v1.0/examples/Update-MgDriveItemRetentionLabel.md b/src/Files/v1.0/examples/Update-MgDriveItemRetentionLabel.md index 0315a90f95f..19d864c9ee6 100644 --- a/src/Files/v1.0/examples/Update-MgDriveItemRetentionLabel.md +++ b/src/Files/v1.0/examples/Update-MgDriveItemRetentionLabel.md @@ -5,9 +5,7 @@ Import-Module Microsoft.Graph.Files $params = @{ - retentionSettings = @{ - isRecordLocked = $true - } + name = "Retention label for Contracts" } Update-MgDriveItemRetentionLabel -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params diff --git a/src/Groups/beta/examples/Invoke-MgBetaArchiveGroupPlannerPlan.md b/src/Groups/beta/examples/Invoke-MgBetaArchiveGroupPlannerPlan.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Invoke-MgBetaArchiveGroupPlannerPlan.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaUnarchiveGroupPlannerPlan.md b/src/Groups/beta/examples/Invoke-MgBetaUnarchiveGroupPlannerPlan.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Groups/beta/examples/Invoke-MgBetaUnarchiveGroupPlannerPlan.md @@ -0,0 +1 @@ + diff --git a/src/Groups/v1.0/examples/New-MgGroupConversation.md b/src/Groups/v1.0/examples/New-MgGroupConversation.md index 84313e141ae..c6556e39451 100644 --- a/src/Groups/v1.0/examples/New-MgGroupConversation.md +++ b/src/Groups/v1.0/examples/New-MgGroupConversation.md @@ -1,35 +1,40 @@ -### Example 1: Code snippet +### Example 1: Create an extension in a new group post using POST operation ```powershell Import-Module Microsoft.Graph.Groups $params = @{ - topic = "Take your wellness days and rest" - threads = @( + Topic = "Does anyone have a second?" + Threads = @( @{ - posts = @( + Posts = @( @{ - body = @{ - contentType = "html" - content = "Contoso cares about you: Rest and Recharge" + Body = @{ + ContentType = "HTML" + Content = "This is urgent!" } - newParticipants = @( + Extensions = @( @{ - emailAddress = @{ - name = "Adele Vance" - address = "AdeleV@contoso.com" - } - } - ) - } - ) - } - ) + "@odata.type" = "microsoft.graph.openTypeExtension" + extensionName = "Com.Contoso.Benefits" + companyName = "Contoso" + expirationDate = "2016-08-03T11:00:00.000Z" + topPicks = @( + "Employees only" + "Add spouse or guest" + "Add family" + ) + } + ) + } +) +} +) } New-MgGroupConversation -GroupId $groupId -BodyParameter $params ``` -This example shows how to use the New-MgGroupConversation Cmdlet. +This example will create an extension in a new group post using post operation diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectorySubscription.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectorySubscription.md new file mode 100644 index 00000000000..f6d2d8f96d8 --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectorySubscription.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +Get-MgDirectorySubscription + +``` +This example shows how to use the Get-MgDirectorySubscription Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectorySubscriptionByCommerceSubscriptionId.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectorySubscriptionByCommerceSubscriptionId.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectorySubscriptionByCommerceSubscriptionId.md @@ -0,0 +1 @@ + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleItemInsight.md b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleItemInsight.md new file mode 100644 index 00000000000..b88bef31a88 --- /dev/null +++ b/src/Identity.DirectoryManagement/v1.0/examples/Update-MgAdminPeopleItemInsight.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.DirectoryManagement + +$params = @{ + disabledForGroup = "edbfe4fb-ec70-4300-928f-dbb2ae86c981" +} + +Update-MgAdminPeopleItemInsight -BodyParameter $params + +``` +This example shows how to use the Update-MgAdminPeopleItemInsight Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md index 68c1ff344a7..90c24a3f7f7 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyAuthenticationStrengthPolicy.md @@ -5,12 +5,24 @@ Import-Module Microsoft.Graph.Beta.Identity.SignIns $params = @{ - "@odata.type" = "#microsoft.graph.authenticationStrengthPolicy" - displayName = "Contoso authentication level" - description = "The only authentication level allowed to access our secret apps" + displayName = "Example" + requirementsSatisfied = "mfa" allowedCombinations = @( - "password, hardwareOath" -"password, sms" + "fido2" +) +"combinationConfigurations@odata.context" = "https://graph.microsoft.com/beta/$metadata#policies/authenticationStrengthPolicies('5790842a-5bab-44c2-9cf1-b38d675b70ea')/combinationConfigurations" +combinationConfigurations = @( + @{ + "@odata.type" = "#microsoft.graph.fido2CombinationConfiguration" + id = "42235320-c8db-4d8c-9344-8f1ce87f734b" + appliesToCombinations = @( + "fido2" + ) + allowedAAGUIDs = @( + "de1e552d-db1d-4423-a619-566b625cdc84" +"90a3ccdf-635c-4729-a248-9b709135078f" +) +} ) } diff --git a/src/Planner/beta/examples/Invoke-MgBetaArchivePlannerPlan.md b/src/Planner/beta/examples/Invoke-MgBetaArchivePlannerPlan.md new file mode 100644 index 00000000000..53568e3fa38 --- /dev/null +++ b/src/Planner/beta/examples/Invoke-MgBetaArchivePlannerPlan.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + justification = "String" +} + +Invoke-MgBetaArchivePlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params + +``` +This example shows how to use the Invoke-MgBetaArchivePlannerPlan Cmdlet. + diff --git a/src/Planner/beta/examples/Invoke-MgBetaUnarchivePlannerPlan.md b/src/Planner/beta/examples/Invoke-MgBetaUnarchivePlannerPlan.md new file mode 100644 index 00000000000..1004707c862 --- /dev/null +++ b/src/Planner/beta/examples/Invoke-MgBetaUnarchivePlannerPlan.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + justification = "String" +} + +Invoke-MgBetaUnarchivePlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params + +``` +This example shows how to use the Invoke-MgBetaUnarchivePlannerPlan Cmdlet. + diff --git a/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md b/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md index 2dfd81cbf13..13ad37982f3 100644 --- a/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md +++ b/src/Search/beta/examples/New-MgBetaExternalIndustryDataConnector.md @@ -5,23 +5,13 @@ Import-Module Microsoft.Graph.Beta.Search $params = @{ - "@odata.type" = "#microsoft.graph.industryData.oneRosterApiDataConnector" - displayName = "Generic OAuth2 Connector" - "sourceSystem@odata.bind" = "https://graph.microsoft.com/beta/external/industryData/sourceSystems('c93a6e02-aeb7-437f-cc52-08dc3fc158af')" - apiFormat = "oneRoster" - baseUrl = "https://fakeProvider.net/ims/oneroster/v1p1" - apiVersion = "1.1" - credential = @{ - "@odata.type" = "#microsoft.graph.industryData.oAuth2ClientCredential" - displayName = "One Roster API Credentials" - clientId = "530be723-6af3-4952-8658-668fb2598ad7" - clientSecret = "thisIsASecret" - tokenUrl = "https://login.microsoftonline.com/c27f982b-f7ee-4b8b-bb0e-3c55bd1dc02c/oauth2/token" - scope = $null + "@odata.type" = "#microsoft.graph.industryData.azureDataLakeConnector" + displayName = "CSV connector" + "sourceSystem@odata.bind" = "https://graph.microsoft.com/beta/external/industryData/sourceSystems('aa050107-5784-4a8e-1876-08daddab21bc')" + fileFormat = @{ + "@odata.type" = "microsoft.graph.industryData.fileFormatReferenceValue" + code = "schoolDataSyncV1" } - isDemographicsEnabled = $false - isFlagsEnabled = $false - isContactsEnabled = $false } New-MgBetaExternalIndustryDataConnector -BodyParameter $params diff --git a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md index 99168322581..86a8a458b2f 100644 --- a/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md +++ b/src/Search/beta/examples/Update-MgBetaExternalIndustryDataInboundFlow.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Beta.Search $params = @{ - "@odata.type" = "#microsoft.graph.industryData.inboundFileFlow" + "@odata.type" = "#microsoft.graph.industryData.inboundApiFlow" displayName = "Updated flow name" } diff --git a/src/Search/v1.0/examples/Set-MgExternalConnectionItem.md b/src/Search/v1.0/examples/Set-MgExternalConnectionItem.md index 6859400440f..f6461ab995a 100644 --- a/src/Search/v1.0/examples/Set-MgExternalConnectionItem.md +++ b/src/Search/v1.0/examples/Set-MgExternalConnectionItem.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example: Create a custom item ```powershell @@ -7,15 +7,29 @@ Import-Module Microsoft.Graph.Search $params = @{ acl = @( @{ - type = "everyone" - value = "67a141d8-cf4e-4528-ba07-bed21bfacd2d" + type = "user" + value = "e811976d-83df-4cbd-8b9b-5215b18aa874" accessType = "grant" } + @{ + type = "externalGroup" + value = "14m1b9c38qe647f6a" + accessType = "deny" + } ) + properties = @{ + title = "Error in the payment gateway" + priority = + assignee = "john@contoso.com" + } + content = @{ + value = "Error in payment gateway..." + type = "text" + } } Set-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId -BodyParameter $params ``` -This example shows how to use the Set-MgExternalConnectionItem Cmdlet. +This example will### example: create a custom item diff --git a/src/Security/beta/examples/New-MgBetaSecurityAuditLogQuery.md b/src/Security/beta/examples/New-MgBetaSecurityAuditLogQuery.md index 0939054f983..1a4778d7d55 100644 --- a/src/Security/beta/examples/New-MgBetaSecurityAuditLogQuery.md +++ b/src/Security/beta/examples/New-MgBetaSecurityAuditLogQuery.md @@ -10,26 +10,26 @@ $params = @{ filterStartDateTime = [System.DateTime]::Parse("String (timestamp)") filterEndDateTime = [System.DateTime]::Parse("String (timestamp)") recordTypeFilters = @( - "String" - ) - keywordFilter = "String" - serviceFilter = "String" - operationFilters = @( - "String" - ) - userPrincipalNameFilters = @( - "String" - ) - ipAddressFilters = @( - "String" - ) - objectIdFilters = @( - "String" - ) - administrativeUnitIdFilters = @( - "String" - ) - status = "String" + "String" +) +keywordFilter = "String" +serviceFilter = "String" +operationFilters = @( +"String" +) +userPrincipalNameFilters = @( +"String" +) +ipAddressFilters = @( +"String" +) +objectIdFilters = @( +"String" +) +administrativeUnitIdFilters = @( +"String" +) +status = "String" } New-MgBetaSecurityAuditLogQuery -BodyParameter $params diff --git a/src/Security/v1.0/examples/Get-MgSecurityThreatIntelligenceSslCertificateRelatedHost.md b/src/Security/v1.0/examples/Get-MgSecurityThreatIntelligenceSslCertificateRelatedHost.md new file mode 100644 index 00000000000..c0bd7bbd981 --- /dev/null +++ b/src/Security/v1.0/examples/Get-MgSecurityThreatIntelligenceSslCertificateRelatedHost.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityThreatIntelligenceSslCertificateRelatedHost -SslCertificateId $sslCertificateId + +``` +This example shows how to use the Get-MgSecurityThreatIntelligenceSslCertificateRelatedHost Cmdlet. + diff --git a/src/Sites/beta/examples/Get-MgBetaSite.md b/src/Sites/beta/examples/Get-MgBetaSite.md index 4cd9c250e8c..eb5b687d85c 100644 --- a/src/Sites/beta/examples/Get-MgBetaSite.md +++ b/src/Sites/beta/examples/Get-MgBetaSite.md @@ -4,7 +4,18 @@ Import-Module Microsoft.Graph.Beta.Sites -Get-MgBetaSite -Search '"{query}"' +Get-MgBetaSite -Property "siteCollection,webUrl" -Filter "siteCollection/root ne null" + +``` +This example shows how to use the Get-MgBetaSite Cmdlet. + +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSite ``` This example shows how to use the Get-MgBetaSite Cmdlet. diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaArchiveUserPlannerPlan.md b/src/Users.Actions/beta/examples/Invoke-MgBetaArchiveUserPlannerPlan.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaArchiveUserPlannerPlan.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaUnarchiveUserPlannerPlan.md b/src/Users.Actions/beta/examples/Invoke-MgBetaUnarchiveUserPlannerPlan.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaUnarchiveUserPlannerPlan.md @@ -0,0 +1 @@ + diff --git a/src/Users/v1.0/examples/Set-MgUserPhotoContent.md b/src/Users/v1.0/examples/Set-MgUserPhotoContent.md index 5a8dc61a339..3a0654e671c 100644 --- a/src/Users/v1.0/examples/Set-MgUserPhotoContent.md +++ b/src/Users/v1.0/examples/Set-MgUserPhotoContent.md @@ -1,8 +1,8 @@ -### Example 1: Set a user's photo properties - -```powershell -Set-MgUserPhotoContent -UserId f38d9efd-2743-42c9-b1a8-3623c5aba666 -InFile "C:\Pictures\MyProfile.png" - -``` - -This example sets the profile photo properties for the specified user. +### Example 1: Set a user's photo properties + +```powershell +Set-MgUserPhotoContent -UserId f38d9efd-2743-42c9-b1a8-3623c5aba666 -InFile "C:\Pictures\MyProfile.png" + +``` + +This example sets the profile photo properties for the specified user. diff --git a/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyComplianceChange.md b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyComplianceChange.md index bbadd7d3786..4d655ad5404 100644 --- a/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyComplianceChange.md +++ b/src/WindowsUpdates/beta/examples/Update-MgBetaWindowsUpdatesPolicyComplianceChange.md @@ -5,7 +5,7 @@ Import-Module Microsoft.Graph.Beta.WindowsUpdates $params = @{ - "@odata.type" = "#microsoft.graph.windowsUpdates.contentApproval" + "@odata.type" = "#microsoft.graph.windowsUpdates.complianceChange" isRevoked = $true }