cloudPC resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Represents a cloud-managed virtual desktop. This Cloud PC is also enrolled into Intune and managed through the Microsoft Endpoint Manager portal, so the Cloud PC also has a corresponding Intune managed device ID.

Methods

Method Return type Description
List cloudPCs cloudPC collection List properties and relationships of the Cloud PC objects.
Get cloudPC cloudPC Read the properties and relationships of a Cloud PC object.
Get provisioned Cloud PCs cloudPC collection Get all provisioned Cloud PCs of a specific service plan for users under a Microsoft Entra user group.
Change user account type None Change the account type of the user on a specific Cloud PC.
End grace period None End the grace period for a Cloud PC object.
Get remote action results cloudPcRemoteActionResult Check the Cloud PC-specified remote action results for a Cloud PC device.
Power on None Power on a specific Windows Frontline Cloud PC object. This action supports MEM admin scenarios.
Power off None Power off a specific Windows Frontline Cloud PC object. This action supports MEM admin scenarios.
Reboot None Reboot a specific Cloud PC object.
Rename None Rename a specific Cloud PC object. Use this API to update the displayName for the Cloud PC entity.
Reprovision None Reprovision a Cloud PC object.
Bulk reprovision remote action None Bulk reprovision a set of Cloud PC devices with Intune managed device IDs.
Resize remote action None Upgrade or downgrade an existing Cloud PC to another configuration with new vCPU and storage size through Intune managed device ID.
Start None Start a specific Cloud PC for a user. Currently, only Windows 365 Frontline Cloud PCs are supported.
Stop None Stop a specific Cloud PC for a user. Currently, only Windows 365 Frontline Cloud PCs are supported.
Troubleshoot None Troubleshoot a specific Cloud PC object. Use this API to check the health status of the Cloud PC and the session host.
Restore None Restore a Cloud PC object to a previous state from a snapshot.
Bulk restore remote action cloudPcBulkRemoteActionResult Restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time.
Set review status None Set the review status of a specific Cloud PC device.
Get review status cloudPcReviewStatus Get the review status of a specific Cloud PC device.
Bulk set review status cloudPcBulkRemoteActionResult Set the review status of multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices.
List for user cloudPC collection List the Cloud PC devices that are attributed to the signed-in user.
Get launch info for user cloudPcLaunchInfo Get the cloudPcLaunchInfo for the signed-in user.
Get connectivity history cloudPcConnectivityEvent collection Get the Cloud PC connectivity history.
Get supported remote actions cloudPcRemoteActionCapability collection Get a list of supported Cloud PC remote actions for a specific Cloud PC device, including the action names and capabilities.
Retry partner agent installation None Retry installation for the partner agents that failed to install on the Cloud PC.
Bulk resize cloudPcRemoteActionResult collection Perform a bulk resize action to resize a group of Cloud PCs that have successfully passed validation (cloudPC: validateBulkResize). If any devices can't be resized, they're labeled as "resize failed", while the remaining devices are provisioned for the resize process.
Validate bulk resize cloudPcResizeValidateResult collection Validate that a set of Cloud PC devices meet the requirements to be bulk resized.
Get frontline access state frontlineCloudPcAccessState Get the access state of the frontline Cloud PC. The possible values are: unassigned, noLicensesAvailable, activationFailed, active, activating, standbyMode, unknownFutureValue.
Get shift work access state (deprecated) shiftWorkCloudPcAccessState Get the access state of the shift work Cloud PC. The possible values are: unassigned, noLicensesAvailable, activationFailed, active, activating, waitlisted, unknownFutureValue, standbyMode. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: standbyMode. This API is deprecated and will stop returning data on December 31, 2023. Going forward, use the getFrontlineCloudPcAccessState API.
Reprovision remote action (deprecated) None Reprovision a Cloud PC with an Intune managed device ID. This API is deprecated and will stop returning data on September 30, 2023. Going forward, use the reprovision API.
Restore remote action (deprecated) None Restore a Cloud PC device to a previous state with an Intune managed device ID. This API is deprecated and will stop returning data on September 30, 2023. Going forward, use the restore API.

Properties

Property Type Description
aadDeviceId String The Microsoft Entra device ID of the Cloud PC.
allotmentDisplayName String The allotment name divides tenant licenses into smaller batches or groups that helps restrict the number of licenses available for use in a specific assignment. When the provisioningType is dedicated, the allotment name is null. Read-only.
connectivityResult cloudPcConnectivityResult The connectivity health check result of a Cloud PC, including the updated timestamp and whether the Cloud PC can be connected.
diskEncryptionState cloudPcDiskEncryptionState The disk encryption applied to the Cloud PC. Possible values: notAvailable, notEncrypted, encryptedUsingPlatformManagedKey, encryptedUsingCustomerManagedKey, and unknownFutureValue.
displayName String The display name of the Cloud PC.
gracePeriodEndDateTime DateTimeOffset The date and time when the grace period ends and reprovisioning or deprovisioning happen. Required only if the status is inGracePeriod. The timestamp is shown in ISO 8601 format and Coordinated Universal Time (UTC). For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
id String The unique identifier for the Cloud PC. Read-only.
imageDisplayName String Name of the OS image that's on the Cloud PC.
lastLoginResult cloudPcLoginResult The last login result of the Cloud PC. For example, { "time": "2014-01-01T00:00:00Z"}.
lastModifiedDateTime DateTimeOffset The last modified date and time of the Cloud PC. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
lastRemoteActionResult cloudPcRemoteActionResult The last remote action result of the enterprise Cloud PCs. The supported remote actions are: Reboot, Rename, Reprovision, Restore, Troubleshoot.
managedDeviceId String The Intune device ID of the Cloud PC.
managedDeviceName String The Intune device name of the Cloud PC.
onPremisesConnectionName String The Azure network connection that is applied during the provisioning of Cloud PCs.
osVersion cloudPcOperatingSystem The version of the operating system (OS) to provision on Cloud PCs. Possible values are: windows10, windows11, unknownFutureValue.
partnerAgentInstallResults cloudPcPartnerAgentInstallResult collection The results of every partner agent's installation status on Cloud PC.
powerState cloudPcPowerState The power state of a Cloud PC. The possible values are: running, poweredOff, unknown. This property only supports shift work Cloud PCs.
provisioningPolicyId String The provisioning policy ID of the Cloud PC.
provisioningPolicyName String The provisioning policy that is applied during the provisioning of Cloud PCs.
provisioningType cloudPcProvisioningType The type of licenses to be used when provisioning Cloud PCs using this policy. Possible values are: dedicated, shared, unknownFutureValue. Default value is dedicated.
servicePlanId String The service plan ID of the Cloud PC.
servicePlanName String The service plan name of the Cloud PC.
servicePlanType cloudPcServicePlanType The service plan type of the Cloud PC.
status microsoft.graph.cloudPcStatus The status of the Cloud PC. Possible values are: notProvisioned, provisioning, provisioned, inGracePeriod, deprovisioning, failed, provisionedWithWarnings, resizing, restoring, pendingProvision, unknownFutureValue, movingRegion, resizePendingLicense. You must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: movingRegion, resizePendingLicense.
statusDetails cloudPcStatusDetails The details of the Cloud PC status.
userAccountType cloudPcUserAccountType The account type of the user on provisioned Cloud PCs. Possible values are: standardUser, administrator, unknownFutureValue.
userPrincipalName String The user principal name (UPN) of the user assigned to the Cloud PC.

cloudPcDiskEncryptionState values

Member Description
notAvailable The Cloud PC isn't provisioned, or is in a state where encryption isn't available.
notEncrypted The Cloud PC should be encrypted, but the encryption isn't done so yet (reserved, shouldn't happen).
encryptedUsingPlatformManagedKey The Cloud PC is encrypted using a platform managed key. This member is the default value if the customer-managed key isn't enabled.
encryptedUsingCustomerManagedKey The Cloud PC is encrypted using the customer-managed key.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.

cloudPcPowerState values

Member Description
running The Cloud PC status is running.
poweredOff The Cloud PC status is power off.
unknown The Cloud PC status is unknown.

cloudPcStatus values

The following table lists the members of an evolvable enumeration. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: movingRegion, resizePendingLicense.

Member Description
notProvisioned The Cloud PC hasn't been provisioned yet.
provisioning Cloud PC provisioning is in progress.
provisioned The Cloud PC is provisioned and users can access it.
inGracePeriod The Cloud PC is in the one week grace period before deprovision.
deprovisioning The Cloud PC is deprovisioning.
failed The operation on Cloud PC failed.
provisionedWithWarnings The Cloud PC is provisioned and end users can access it with some warnings. The user can continue to use this Cloud PC.
resizing The Cloud PC is resizing.
pendingProvision The provisioning is pending on the Cloud PC. In this case, the number of Cloud PCs in grace period is more than the number of total available licenses.
restoring The Cloud PC is restoring.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.
movingRegion Indicates that the Cloud PC is being moved from one region to another.
resizePendingLicense Indicates that the Cloud PC resize process was initiated but can't be completed because the target license hasn't been identified. It's currently awaiting customer action to resolve the licensing issue.

frontlineCloudPcAccessState values

Member Description
unassigned Set to unassigned if the Cloud PC doesn't consume any shared-use licenses. The default value is unassigned.
noLicensesAvailable Indicates that all shared-use licenses are in use.
activationFailed Indicates that the frontline Cloud PC activation failed after the user requested a frontline Cloud PC.
active Indicates that the frontline Cloud PC is in an active state with a shared-use license assigned, and the user can connect to the Cloud PC.
activating Indicates that a user requested to connect the Cloud PC and the service is starting.
standbyMode Indicates that the frontline Cloud PC is in a standby state before it's shut down and deallocated. A frontline Cloud PC in standby state is still accessible by the user.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.

shiftWorkCloudPcAccessState values (deprecated)

The following table lists the members of an evolvable enumeration. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: standbyMode.

Member Description
unassigned Set to unassigned if the Cloud PC isn't consuming any shared-use licenses. The default value is unassigned.
noLicensesAvailable Indicates that all shared-use licenses are in use.
activationFailed Indicates that the shift work Cloud PC activation failed after the user requested a shift work Cloud PC.
active Indicates that the shift work Cloud PC is in an active state with a shared-use license assigned, and the user can connect to the Cloud PC.
activating Indicates that a user requested to connect the Cloud PC and the service is starting.
waitlisted (deprecated) Indicates that the shift work Cloud PC is in waitlisted state after the user requests to connect this Cloud PC and all shared use licenses are being actively used. This value is deprecated and will stop returning on May 17, 2023.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.
standbyMode Indicates that the shift work Cloud PC is in a standby state before it's shut down and deallocated. A shift work Cloud PC in standby state is still accessible by the user.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.cloudPC",
  "aadDeviceId": "String",
  "allotmentDisplayName": "String",
  "connectivityResult": "String",
  "diskEncryptionState": "String",
  "displayName": "String",
  "gracePeriodEndDateTime": "String (timestamp)",
  "id": "String (identifier)",
  "imageDisplayName": "String",
  "lastLoginResult": "String",
  "lastModifiedDateTime": "String (timestamp)",
  "lastRemoteActionResult": "String",
  "managedDeviceId": "String",
  "managedDeviceName": "String",
  "onPremisesConnectionName": "String",
  "powerState": "String",
  "osVersion": "String",
  "partnerAgentInstallResults": "String",
  "provisioningPolicyId": "String",
  "provisioningPolicyName": "String",
  "provisioningType": "String",
  "servicePlanId": "String",
  "servicePlanName": "String",
  "servicePlanType": "String",
  "status": "String",
  "userAccountType": "String",
  "userPrincipalName": "String"
}