Invoke-MgBetaBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus
Set the review status of multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices.
Syntax
Invoke-MgBetaBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-ManagedDeviceIds <String[]>]
[-ReviewStatus <IMicrosoftGraphCloudPcReviewStatus>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Invoke-MgBetaBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus
-BodyParameter <IPaths19Pmn9HDevicemanagementManageddevicesMicrosoftGraphBulksetcloudpcreviewstatusPostRequestbodyContentApplicationJsonSchema>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Set the review status of multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices.
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 = @{
managedDeviceIds = @(
"30d0e128-de93-41dc-89ec-33d84bb662a0"
"7c82a3e3-9459-44e4-94d9-b92f93bf78dd"
)
reviewStatus = @{
inReview = $true
userAccessLevel = "restricted"
azureStorageAccountId = "/subscriptions/f68bd846-16ad-4b51-a7c6-c84944a3367c/resourceGroups/Review/providers/Microsoft.Storage/storageAccounts/snapshotsUnderReview"
}
}
Invoke-MgBetaBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus -BodyParameter $params
This example shows how to use the Invoke-MgBetaBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus 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: | IPaths19Pmn9HDevicemanagementManageddevicesMicrosoftGraphBulksetcloudpcreviewstatusPostRequestbodyContentApplicationJsonSchema |
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 |
-ManagedDeviceIds
.
Type: | String[] |
Position: | Named |
Default value: | None |
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.IPaths19Pmn9HDevicemanagementManageddevicesMicrosoftGraphBulksetcloudpcreviewstatusPostRequestbodyContentApplicationJsonSchema
System.Collections.IDictionary
Outputs
Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphCloudPcBulkRemoteActionResult
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 <IPaths19Pmn9HDevicemanagementManageddevicesMicrosoftGraphBulksetcloudpcreviewstatusPostRequestbodyContentApplicationJsonSchema>
: .
[(Any) <Object>]
: This indicates any property can be added to this object.[ManagedDeviceIds <String-
[]>]
:[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
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