cloudPcDeviceImage 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 the image resource on a Cloud PC.

Methods

Method Return type Description
List deviceImages cloudPcDeviceImage collection List the properties and relationships of cloudPcDeviceImage objects.
Get cloudPcDeviceImage cloudPcDeviceImage Read the properties and relationships of a cloudPcDeviceImage object.
Create cloudPcDeviceImage cloudPcDeviceImage Create a new cloudPcDeviceImage object.
Delete cloudPcDeviceImage None Delete a cloudPcDeviceImage object.
getSourceImages cloudPcSourceDeviceImage collection Get cloudPcSourceDeviceImage objects.
Reupload cloudPcDeviceImage None Reupload a cloudPcDeviceImage object that failed to upload.

Properties

Property Type Description
displayName String The display name of the associated device image. The device image display name and the version are used to uniquely identify the Cloud PC device image. Read-only.
errorCode cloudPcDeviceImageErrorCode The error code of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, sourceImageNotGeneralized, unknownFutureValue, vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Read-only.
expirationDate Date The date when the image became unavailable. Read-only.
id String The unique identifier (ID) of the image resource on the Cloud PC. Read-only.
lastModifiedDateTime DateTimeOffset The data and time when the image was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
operatingSystem String The operating system of the image. For example, Windows 10 Enterprise. Read-only.
osBuildNumber String The OS build version of the image. For example, 1909. Read-only.
osStatus cloudPcDeviceImageOsStatus The OS status of this image. Possible values are: supported, supportedWithWarning, unknown, unknownFutureValue. The default value is unknown. Read-only.
sourceImageResourceId String The unique identifier (ID) of the source image resource on Azure. The required ID format is: "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}". Read-only.
status cloudPcDeviceImageStatus The status of the image on the Cloud PC. Possible values are: pending, ready, failed, unknownFutureValue. Read-only.
version String The image version. For example, 0.0.1 and 1.5.13. Read-only.
statusDetails (deprecated) cloudPcDeviceImageStatusDetails The details of the status of the image that indicates why the upload failed, if applicable. Possible values are: internalServerError, sourceImageNotFound, osVersionNotSupported, sourceImageInvalid, sourceImageNotGeneralized, unknownFutureValue, vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values from this evolvable enum: vmAlreadyAzureAdJoined, paidSourceImageNotSupport, sourceImageNotSupportCustomizeVMName, sourceImageSizeExceedsLimitation. Read-only. The statusDetails property is deprecated and will stop returning data on January 31, 2024. Going forward, use the errorCode property.

cloudPcDeviceImageErrorCode values

Member Description
internalServerError An internal server error occurred during the processing of the image.
sourceImageNotFound The source image is inaccessible or not found.
osVersionNotSupported The OS version isn't supported.
sourceImageInvalid The source image is invalid for provisioning a Windows virtual machine (VM).
sourceImageNotGeneralized The uploaded image hasn’t been generalized. Reupload the image after running the sysprep/generalize command. To learn more, see Remove machine specific information by deprovisioning or generalizing a VM before creating an image.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.
vmAlreadyAzureAdJoined The VM that generates a source image for creating a device image has already been joined to Microsoft Entra. This prevents the validation process from allowing the creation of a device image using such a source image.
paidSourceImageNotSupport This source image is built from another paid image from the Azure Marketplace and isn't supported; use another source to proceed.
sourceImageNotSupportCustomizeVMName A computer name setting issue exists on the resultant generalized image, which prevents the customization of the VM name with the provided image.
sourceImageSizeExceedsLimitation The size of the customer-uploaded source image exceeds the shared image gallery (SIG) limitations, which results in image creation failure.

cloudPcDeviceImageOsStatus values

Member Description
supported Indicates the Cloud PC device image operating system is active and ready to be used for provisioning.
supportedWithWarning Indicates that the Cloud PC device image operating system is expired, but Cloud PC continues support. If users continue to use, they may not be able to get security updates.
unknown Default. Indicates that the status of the operating system image for the Cloud PC device is unknown.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.

cloudPcDeviceImageStatus values

Member Description
pending The image upload is in progress.
ready The image is ready for use on Cloud PCs.
failed Indicates that the image failed to upload.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.

cloudPcDeviceImageStatusDetails values

Member Description
internalServerError An internal server error occurred during the processing of the image.
sourceImageNotFound The source image is inaccessible or not found.
osVersionNotSupported The OS version isn't supported.
sourceImageInvalid The source image is invalid for provisioning a Windows virtual machine (VM).
sourceImageNotGeneralized The uploaded image isn’t been generalized. Reupload the image after running the sysprep/generalize command. To learn more, see Remove machine specific information by deprovisioning or generalizing a VM before creating an image.
unknownFutureValue Evolvable enumeration sentinel value. Don't use.
vmAlreadyAzureAdJoined The VM that generates a source image for creating a device image has already been joined to Microsoft Entra. This prevents the validation process from allowing the creation of a device image using such a source image.
paidSourceImageNotSupport This source image is built from another paid image from the Azure Marketplace and isn't supported; use another source to proceed.
sourceImageNotSupportCustomizeVMName A computer name setting issue exists on the resultant generalized image, which prevents the customization of the VM name with the provided image.
sourceImageSizeExceedsLimitation The size of the customer-uploaded source image exceeds the shared image gallery (SIG) limitations, which results in image creation failure.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.cloudPcDeviceImage",
  "displayName": "String",
  "errorCode": "String",
  "expirationDate": "String (timestamp)",
  "id": "String (identifier)",
  "lastModifiedDateTime": "String (timestamp)",
  "operatingSystem": "String",
  "osBuildNumber": "String",
  "osStatus": "String",
  "sourceImageResourceId": "String",
  "status": "String",
  "statusDetails": "String",
  "version": "String"
}