Set-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus

Set the review status of a specific Cloud PC device. Use this API to set the review status of a Cloud PC to in review if you consider a Cloud PC as suspicious. After the review is completed, use this API again to set the Cloud PC back to a normal state.

Syntax

Set-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus
   -ManagedDeviceId <String>
   [-ResponseHeadersVariable <String>]
   [-AdditionalProperties <Hashtable>]
   [-ReviewStatus <IMicrosoftGraphCloudPcReviewStatus>]
   [-Headers <IDictionary>]
   [-PassThru]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus
   -ManagedDeviceId <String>
   -BodyParameter <IPaths1K3P959DevicemanagementManageddevicesManageddeviceIdMicrosoftGraphSetcloudpcreviewstatusPostRequestbodyContentApplicationJsonSchema>
   [-ResponseHeadersVariable <String>]
   [-Headers <IDictionary>]
   [-PassThru]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus
   -InputObject <IDeviceManagementActionsIdentity>
   [-ResponseHeadersVariable <String>]
   [-AdditionalProperties <Hashtable>]
   [-ReviewStatus <IMicrosoftGraphCloudPcReviewStatus>]
   [-Headers <IDictionary>]
   [-PassThru]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus
   -InputObject <IDeviceManagementActionsIdentity>
   -BodyParameter <IPaths1K3P959DevicemanagementManageddevicesManageddeviceIdMicrosoftGraphSetcloudpcreviewstatusPostRequestbodyContentApplicationJsonSchema>
   [-ResponseHeadersVariable <String>]
   [-Headers <IDictionary>]
   [-PassThru]
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Set the review status of a specific Cloud PC device. Use this API to set the review status of a Cloud PC to in review if you consider a Cloud PC as suspicious. After the review is completed, use this API again to set the Cloud PC back to a normal state.

Permissions

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) CloudPC.ReadWrite.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application CloudPC.ReadWrite.All Not available.

Examples

Example 1: Code snippet

Import-Module Microsoft.Graph.Beta.DeviceManagement.Actions

$params = @{
	reviewStatus = @{
		inReview = $true
		userAccessLevel = "restricted"
		azureStorageAccountId = "/subscriptions/f68bd846-16ad-4b51-a7c6-c84944a3367c/resourceGroups/Review/providers/Microsoft.Storage/storageAccounts/snapshotsUnderReview"
	}
}

Set-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus -ManagedDeviceId $managedDeviceId -BodyParameter $params

This example shows how to use the Set-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus Cmdlet.

Parameters

-AdditionalProperties

Additional Parameters

Type:Hashtable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-BodyParameter

. To construct, see NOTES section for BODYPARAMETER properties and create a hash table.

Type:IPaths1K3P959DevicemanagementManageddevicesManageddeviceIdMicrosoftGraphSetcloudpcreviewstatusPostRequestbodyContentApplicationJsonSchema
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Headers

Optional headers that will be added to the request.

Type:IDictionary
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IDeviceManagementActionsIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ManagedDeviceId

The unique identifier of managedDevice

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PassThru

Returns true when the command succeeds

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProgressAction

{{ Fill ProgressAction Description }}

Type:ActionPreference
Aliases:proga
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResponseHeadersVariable

Optional Response Headers Variable.

Type:String
Aliases:RHV
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ReviewStatus

cloudPcReviewStatus To construct, see NOTES section for REVIEWSTATUS properties and create a hash table.

Type:IMicrosoftGraphCloudPcReviewStatus
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.Beta.PowerShell.Models.IDeviceManagementActionsIdentity

Microsoft.Graph.Beta.PowerShell.Models.IPaths1K3P959DevicemanagementManageddevicesManageddeviceIdMicrosoftGraphSetcloudpcreviewstatusPostRequestbodyContentApplicationJsonSchema

System.Collections.IDictionary

Outputs

System.Boolean

Notes

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

BODYPARAMETER <IPaths1K3P959DevicemanagementManageddevicesManageddeviceIdMicrosoftGraphSetcloudpcreviewstatusPostRequestbodyContentApplicationJsonSchema>: .

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [ReviewStatus <IMicrosoftGraphCloudPcReviewStatus>]: cloudPcReviewStatus
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [AzureStorageAccountId <String>]: The resource ID of the Azure Storage account in which the Cloud PC snapshot is being saved.
    • [AzureStorageAccountName <String>]: The name of the Azure Storage account in which the Cloud PC snapshot is being saved.
    • [AzureStorageContainerName <String>]: The name of the container in an Azure Storage account in which the Cloud PC snapshot is being saved.
    • [InReview <Boolean?>]: True if the Cloud PC is set to in review by the administrator.
    • [RestorePointDateTime <DateTime?>]: The specific date and time of the Cloud PC snapshot that was taken and saved automatically, when the Cloud PC is set to in review. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 appears as 2014-01-01T00:00:00Z.
    • [ReviewStartDateTime <DateTime?>]: The specific date and time when the Cloud PC was set to in review. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 appears as 2014-01-01T00:00:00Z.
    • [SubscriptionId <String>]: The ID of the Azure subscription in which the Cloud PC snapshot is being saved, in GUID format.
    • [SubscriptionName <String>]: The name of the Azure subscription in which the Cloud PC snapshot is being saved.
    • [UserAccessLevel <String>]: cloudPcUserAccessLevel

INPUTOBJECT <IDeviceManagementActionsIdentity>: Identity Parameter

  • [AlertRecordId <String>]: The unique identifier of alertRecord
  • [AndroidDeviceOwnerEnrollmentProfileId <String>]: The unique identifier of androidDeviceOwnerEnrollmentProfile
  • [AndroidForWorkEnrollmentProfileId <String>]: The unique identifier of androidForWorkEnrollmentProfile
  • [AppLogCollectionRequestId <String>]: The unique identifier of appLogCollectionRequest
  • [AppleUserInitiatedEnrollmentProfileId <String>]: The unique identifier of appleUserInitiatedEnrollmentProfile
  • [CertificateConnectorDetailsId <String>]: The unique identifier of certificateConnectorDetails
  • [CloudPcDeviceImageId <String>]: The unique identifier of cloudPcDeviceImage
  • [CloudPcId <String>]: The unique identifier of cloudPC
  • [CloudPcOnPremisesConnectionId <String>]: The unique identifier of cloudPcOnPremisesConnection
  • [CloudPcProvisioningPolicyId <String>]: The unique identifier of cloudPcProvisioningPolicy
  • [CloudPcUserSettingId <String>]: The unique identifier of cloudPcUserSetting
  • [DataSharingConsentId <String>]: The unique identifier of dataSharingConsent
  • [DepOnboardingSettingId <String>]: The unique identifier of depOnboardingSetting
  • [DeviceCompliancePolicyId <String>]: The unique identifier of deviceCompliancePolicy
  • [DeviceComplianceScriptId <String>]: The unique identifier of deviceComplianceScript
  • [DeviceConfigurationId <String>]: The unique identifier of deviceConfiguration
  • [DeviceCustomAttributeShellScriptId <String>]: The unique identifier of deviceCustomAttributeShellScript
  • [DeviceEnrollmentConfigurationId <String>]: The unique identifier of deviceEnrollmentConfiguration
  • [DeviceHealthScriptId <String>]: The unique identifier of deviceHealthScript
  • [DeviceLogCollectionResponseId <String>]: The unique identifier of deviceLogCollectionResponse
  • [DeviceManagementCompliancePolicyId <String>]: The unique identifier of deviceManagementCompliancePolicy
  • [DeviceManagementConfigurationPolicyId <String>]: The unique identifier of deviceManagementConfigurationPolicy
  • [DeviceManagementExchangeConnectorId <String>]: The unique identifier of deviceManagementExchangeConnector
  • [DeviceManagementIntentId <String>]: The unique identifier of deviceManagementIntent
  • [DeviceManagementPartnerId <String>]: The unique identifier of deviceManagementPartner
  • [DeviceManagementResourceAccessProfileBaseId <String>]: The unique identifier of deviceManagementResourceAccessProfileBase
  • [DeviceManagementReusablePolicySettingId <String>]: The unique identifier of deviceManagementReusablePolicySetting
  • [DeviceManagementScriptId <String>]: The unique identifier of deviceManagementScript
  • [DeviceManagementTemplateId <String>]: The unique identifier of deviceManagementTemplate
  • [DeviceManagementTemplateId1 <String>]: The unique identifier of deviceManagementTemplate
  • [DeviceShellScriptId <String>]: The unique identifier of deviceShellScript
  • [EmbeddedSimActivationCodePoolId <String>]: The unique identifier of embeddedSIMActivationCodePool
  • [EnrollmentProfileId <String>]: The unique identifier of enrollmentProfile
  • [GroupPolicyConfigurationId <String>]: The unique identifier of groupPolicyConfiguration
  • [GroupPolicyMigrationReportId <String>]: The unique identifier of groupPolicyMigrationReport
  • [GroupPolicyUploadedDefinitionFileId <String>]: The unique identifier of groupPolicyUploadedDefinitionFile
  • [HardwareConfigurationId <String>]: The unique identifier of hardwareConfiguration
  • [IntuneBrandingProfileId <String>]: The unique identifier of intuneBrandingProfile
  • [ManagedDeviceId <String>]: The unique identifier of managedDevice
  • [MicrosoftTunnelServerId <String>]: The unique identifier of microsoftTunnelServer
  • [MicrosoftTunnelServerLogCollectionResponseId <String>]: The unique identifier of microsoftTunnelServerLogCollectionResponse
  • [MicrosoftTunnelSiteId <String>]: The unique identifier of microsoftTunnelSite
  • [MobileAppTroubleshootingEventId <String>]: The unique identifier of mobileAppTroubleshootingEvent
  • [NotificationMessageTemplateId <String>]: The unique identifier of notificationMessageTemplate
  • [OperationApprovalRequestId <String>]: The unique identifier of operationApprovalRequest
  • [PrivilegeManagementElevationRequestId <String>]: The unique identifier of privilegeManagementElevationRequest
  • [RemoteAssistancePartnerId <String>]: The unique identifier of remoteAssistancePartner
  • [RoleScopeTagId <String>]: The unique identifier of roleScopeTag
  • [WindowsAutopilotDeploymentProfileId <String>]: The unique identifier of windowsAutopilotDeploymentProfile
  • [WindowsAutopilotDeviceIdentityId <String>]: The unique identifier of windowsAutopilotDeviceIdentity
  • [WindowsDriverUpdateProfileId <String>]: The unique identifier of windowsDriverUpdateProfile
  • [WindowsFeatureUpdateProfileId <String>]: The unique identifier of windowsFeatureUpdateProfile
  • [WindowsQualityUpdatePolicyId <String>]: The unique identifier of windowsQualityUpdatePolicy
  • [WindowsQualityUpdateProfileId <String>]: The unique identifier of windowsQualityUpdateProfile
  • [ZebraFotaDeploymentId <String>]: The unique identifier of zebraFotaDeployment

REVIEWSTATUS <IMicrosoftGraphCloudPcReviewStatus>: cloudPcReviewStatus

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [AzureStorageAccountId <String>]: The resource ID of the Azure Storage account in which the Cloud PC snapshot is being saved.
  • [AzureStorageAccountName <String>]: The name of the Azure Storage account in which the Cloud PC snapshot is being saved.
  • [AzureStorageContainerName <String>]: The name of the container in an Azure Storage account in which the Cloud PC snapshot is being saved.
  • [InReview <Boolean?>]: True if the Cloud PC is set to in review by the administrator.
  • [RestorePointDateTime <DateTime?>]: The specific date and time of the Cloud PC snapshot that was taken and saved automatically, when the Cloud PC is set to in review. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 appears as 2014-01-01T00:00:00Z.
  • [ReviewStartDateTime <DateTime?>]: The specific date and time when the Cloud PC was set to in review. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 appears as 2014-01-01T00:00:00Z.
  • [SubscriptionId <String>]: The ID of the Azure subscription in which the Cloud PC snapshot is being saved, in GUID format.
  • [SubscriptionName <String>]: The name of the Azure subscription in which the Cloud PC snapshot is being saved.
  • [UserAccessLevel <String>]: cloudPcUserAccessLevel