Share via


Snapshots - Create Or Update

Creates or updates a snapshot.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}?api-version=2024-03-02

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

minLength: 1
maxLength: 90

The name of the resource group. The name is case insensitive.

snapshotName
path True

string

The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name length is 80 characters.

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Body

Name Required Type Description
location True

string

The geo-location where the resource lives

properties.creationData True

CreationData

Disk source information. CreationData information cannot be changed after the disk has been created.

extendedLocation

ExtendedLocation

The extended location where the snapshot will be created. Extended location cannot be changed.

properties.completionPercent

number (float)

Percentage complete for the background copy when a resource is created via the CopyStart operation.

properties.copyCompletionError

CopyCompletionError

Indicates the error details if the background copy of a resource created via the CopyStart operation fails.

properties.dataAccessAuthMode

DataAccessAuthMode

Additional authentication requirements when exporting or uploading to a disk or snapshot.

properties.diskAccessId

string

ARM id of the DiskAccess resource for using private endpoints on disks.

properties.diskSizeGB

integer (int32)

If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.

properties.encryption

Encryption

Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.

properties.encryptionSettingsCollection

EncryptionSettingsCollection

Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.

properties.hyperVGeneration

HyperVGeneration

The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

properties.incremental

boolean

Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.

properties.networkAccessPolicy

NetworkAccessPolicy

Policy for accessing the disk via network.

properties.osType

OperatingSystemTypes

The Operating System type.

properties.publicNetworkAccess

PublicNetworkAccess

Policy for controlling export on the disk.

properties.purchasePlan

DiskPurchasePlan

Purchase plan information for the image from which the source disk for the snapshot was originally created.

properties.securityProfile

DiskSecurityProfile

Contains the security related information for the resource.

properties.supportedCapabilities

SupportedCapabilities

List of supported capabilities for the image from which the source disk from the snapshot was originally created.

properties.supportsHibernation

boolean

Indicates the OS on a snapshot supports hibernation.

sku

SnapshotSku

The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot

tags

object

Resource tags.

Responses

Name Type Description
200 OK

Snapshot

Resource 'Snapshot' update operation succeeded

202 Accepted

Snapshot

The request has been accepted for processing, but processing has not yet completed.

Headers

  • Location: string
  • Retry-After: integer
Other Status Codes

CloudError

An unexpected error response.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Create a snapshot by importing an unmanaged blob from a different subscription.
Create a snapshot by importing an unmanaged blob from the same subscription.
Create a snapshot from an elastic san volume snapshot.
Create a snapshot from an existing snapshot in the same or a different subscription in a different region with quicker copy speed.
Create a snapshot from an existing snapshot in the same or a different subscription in a different region.
Create a snapshot from an existing snapshot in the same or a different subscription.

Create a snapshot by importing an unmanaged blob from a different subscription.

Sample request

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1?api-version=2024-03-02

{
  "location": "West US",
  "properties": {
    "creationData": {
      "createOption": "Import",
      "storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
      "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
    }
  }
}

Sample response

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
  "properties": {
    "creationData": {
      "createOption": "Import",
      "storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
      "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
    },
    "provisioningState": "Updating"
  },
  "location": "West US",
  "name": "mySnapshot1"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
  "properties": {
    "creationData": {
      "createOption": "Import",
      "storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
      "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
    },
    "provisioningState": "Updating"
  },
  "location": "West US",
  "name": "mySnapshot1"
}

Create a snapshot by importing an unmanaged blob from the same subscription.

Sample request

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1?api-version=2024-03-02

{
  "location": "West US",
  "properties": {
    "creationData": {
      "createOption": "Import",
      "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
    }
  }
}

Sample response

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
  "properties": {
    "creationData": {
      "createOption": "Import",
      "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
    },
    "provisioningState": "Updating"
  },
  "location": "West US",
  "name": "mySnapshot1"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
  "properties": {
    "creationData": {
      "createOption": "Import",
      "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"
    },
    "provisioningState": "Updating"
  },
  "location": "West US",
  "name": "mySnapshot1"
}

Create a snapshot from an elastic san volume snapshot.

Sample request

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot?api-version=2024-03-02

{
  "location": "West US",
  "properties": {
    "creationData": {
      "createOption": "CopyFromSanSnapshot",
      "elasticSanResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot"
    }
  }
}

Sample response

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
  "name": "mySnapshot",
  "location": "West US",
  "properties": {
    "provisioningState": "Updating",
    "creationData": {
      "createOption": "CopyFromSanSnapshot",
      "elasticSanResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot"
    }
  }
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
  "name": "mySnapshot",
  "location": "West US",
  "properties": {
    "provisioningState": "Updating",
    "creationData": {
      "createOption": "CopyFromSanSnapshot",
      "elasticSanResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot"
    }
  }
}

Create a snapshot from an existing snapshot in the same or a different subscription in a different region with quicker copy speed.

Sample request

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2?api-version=2024-03-02

{
  "location": "West US",
  "properties": {
    "creationData": {
      "createOption": "CopyStart",
      "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1",
      "provisionedBandwidthCopySpeed": "Enhanced"
    }
  }
}

Sample response

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2",
  "name": "mySnapshot2",
  "location": "West US",
  "properties": {
    "provisioningState": "Updating",
    "creationData": {
      "createOption": "CopyStart",
      "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1",
      "provisionedBandwidthCopySpeed": "Enhanced"
    }
  }
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2",
  "name": "mySnapshot2",
  "location": "West US",
  "properties": {
    "provisioningState": "Updating",
    "creationData": {
      "createOption": "CopyStart",
      "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1",
      "provisionedBandwidthCopySpeed": "Enhanced"
    }
  }
}

Create a snapshot from an existing snapshot in the same or a different subscription in a different region.

Sample request

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2?api-version=2024-03-02

{
  "location": "West US",
  "properties": {
    "creationData": {
      "createOption": "CopyStart",
      "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
    }
  }
}

Sample response

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2",
  "name": "mySnapshot2",
  "location": "West US",
  "properties": {
    "provisioningState": "Updating",
    "creationData": {
      "createOption": "CopyStart",
      "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
    }
  }
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2",
  "name": "mySnapshot2",
  "location": "West US",
  "properties": {
    "provisioningState": "Updating",
    "creationData": {
      "createOption": "CopyStart",
      "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
    }
  }
}

Create a snapshot from an existing snapshot in the same or a different subscription.

Sample request

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2?api-version=2024-03-02

{
  "location": "West US",
  "properties": {
    "creationData": {
      "createOption": "Copy",
      "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
    }
  }
}

Sample response

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2",
  "name": "mySnapshot2",
  "location": "West US",
  "properties": {
    "provisioningState": "Updating",
    "creationData": {
      "createOption": "Copy",
      "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
    }
  }
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2",
  "name": "mySnapshot2",
  "location": "West US",
  "properties": {
    "provisioningState": "Updating",
    "creationData": {
      "createOption": "Copy",
      "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1"
    }
  }
}

Definitions

Name Description
ApiError

Api error.

ApiErrorBase

Api error base.

Architecture

CPU architecture supported by an OS disk.

CloudError

An error response from the Compute service.

CopyCompletionError

Indicates the error details if the background copy of a resource created via the CopyStart operation fails.

CopyCompletionErrorReason

Indicates the error code if the background copy of a resource created via the CopyStart operation fails.

createdByType

The type of identity that created the resource.

CreationData

Data used when creating a disk.

DataAccessAuthMode

Additional authentication requirements when exporting or uploading to a disk or snapshot.

DiskCreateOption

This enumerates the possible sources of a disk's creation.

DiskPurchasePlan

Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.

DiskSecurityProfile

Contains the security related information for the resource.

DiskSecurityTypes

Specifies the SecurityType of the VM. Applicable for OS disks only.

DiskState

This enumerates the possible state of the disk.

Encryption

Encryption at rest settings for disk or snapshot

EncryptionSettingsCollection

Encryption settings for disk or snapshot

EncryptionSettingsElement

Encryption settings for one disk volume.

EncryptionType

The type of key used to encrypt the data of the disk.

ExtendedLocation

The complex type of the extended location.

ExtendedLocationTypes

The type of the extended location.

HyperVGeneration

The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

ImageDiskReference

The source image used for creating the disk.

InnerError

Inner error details.

KeyVaultAndKeyReference

Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey

KeyVaultAndSecretReference

Key Vault Secret Url and vault id of the encryption key

NetworkAccessPolicy

Policy for accessing the disk via network.

OperatingSystemTypes

The Operating System type.

ProvisionedBandwidthCopyOption

If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.

PublicNetworkAccess

Policy for controlling export on the disk.

Snapshot

Snapshot resource.

SnapshotSku

The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot

SnapshotStorageAccountTypes

The sku name.

SourceVault

The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}

SupportedCapabilities

List of supported capabilities persisted on the disk resource for VM use.

systemData

Metadata pertaining to creation and last modification of the resource.

ApiError

Api error.

Name Type Description
code

string

The error code.

details

ApiErrorBase[]

The Api error details

innererror

InnerError

The Api inner error

message

string

The error message.

target

string

The target of the particular error.

ApiErrorBase

Api error base.

Name Type Description
code

string

The error code.

message

string

The error message.

target

string

The target of the particular error.

Architecture

CPU architecture supported by an OS disk.

Value Description
x64
Arm64

CloudError

An error response from the Compute service.

Name Type Description
error

ApiError

Api error.

CopyCompletionError

Indicates the error details if the background copy of a resource created via the CopyStart operation fails.

Name Type Description
errorCode

CopyCompletionErrorReason

Indicates the error code if the background copy of a resource created via the CopyStart operation fails.

errorMessage

string

Indicates the error message if the background copy of a resource created via the CopyStart operation fails.

CopyCompletionErrorReason

Indicates the error code if the background copy of a resource created via the CopyStart operation fails.

Value Description
CopySourceNotFound

Indicates that the source snapshot was deleted while the background copy of the resource created via CopyStart operation was in progress.

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

CreationData

Data used when creating a disk.

Name Type Description
createOption

DiskCreateOption

This enumerates the possible sources of a disk's creation.

elasticSanResourceId

string

Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.

galleryImageReference

ImageDiskReference

Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.

imageReference

ImageDiskReference

Disk source information for PIR or user images.

logicalSectorSize

integer (int32)

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

performancePlus

boolean

Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.

provisionedBandwidthCopySpeed

ProvisionedBandwidthCopyOption

If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.

securityDataUri

string

If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.

sourceResourceId

string

If createOption is Copy, this is the ARM id of the source snapshot or disk.

sourceUniqueId

string

If this field is set, this is the unique id identifying the source of this resource.

sourceUri

string

If createOption is Import, this is the URI of a blob to be imported into a managed disk.

storageAccountId

string

Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.

uploadSizeBytes

integer (int64)

If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).

DataAccessAuthMode

Additional authentication requirements when exporting or uploading to a disk or snapshot.

Value Description
AzureActiveDirectory

When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth.

None

No additional authentication would be performed when accessing export/upload URL.

DiskCreateOption

This enumerates the possible sources of a disk's creation.

Value Description
Empty

Create an empty data disk of a size given by diskSizeGB.

Attach

Disk will be attached to a VM.

FromImage

Create a new disk from a platform image specified by the given imageReference or galleryImageReference.

Import

Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId.

Copy

Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.

Restore

Create a new disk by copying from a backup recovery point.

Upload

Create a new disk by obtaining a write token and using it to directly upload the contents of the disk.

CopyStart

Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source.

ImportSecure

Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blobs for VM guest state specified by securityDataUri and VM metadata specified by securityMetadataUri in storage account specified by storageAccountId. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM.

UploadPreparedSecure

Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in disk, VM guest state and VM metadata. The VM metadata is optional and only required for certain Confidential VM configurations and not required for Trusted Launch VM.

CopyFromSanSnapshot

Create a new disk by exporting from elastic san volume snapshot

DiskPurchasePlan

Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.

Name Type Description
name

string

The plan ID.

product

string

Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.

promotionCode

string

The Offer Promotion Code.

publisher

string

The publisher ID.

DiskSecurityProfile

Contains the security related information for the resource.

Name Type Description
secureVMDiskEncryptionSetId

string

ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key

securityType

DiskSecurityTypes

Specifies the SecurityType of the VM. Applicable for OS disks only.

DiskSecurityTypes

Specifies the SecurityType of the VM. Applicable for OS disks only.

Value Description
TrustedLaunch

Trusted Launch provides security features such as secure boot and virtual Trusted Platform Module (vTPM)

ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey

Indicates Confidential VM disk with only VM guest state encrypted

ConfidentialVM_DiskEncryptedWithPlatformKey

Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a platform managed key

ConfidentialVM_DiskEncryptedWithCustomerKey

Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key

ConfidentialVM_NonPersistedTPM

Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots.

DiskState

This enumerates the possible state of the disk.

Value Description
Unattached

The disk is not being used and can be attached to a VM.

Attached

The disk is currently attached to a running VM.

Reserved

The disk is attached to a stopped-deallocated VM.

Frozen

The disk is attached to a VM which is in hibernated state.

ActiveSAS

The disk currently has an Active SAS Uri associated with it.

ActiveSASFrozen

The disk is attached to a VM in hibernated state and has an active SAS URI associated with it.

ReadyToUpload

A disk is ready to be created by upload by requesting a write token.

ActiveUpload

A disk is created for upload and a write token has been issued for uploading to it.

Encryption

Encryption at rest settings for disk or snapshot

Name Type Description
diskEncryptionSetId

string

ResourceId of the disk encryption set to use for enabling encryption at rest.

type

EncryptionType

The type of key used to encrypt the data of the disk.

EncryptionSettingsCollection

Encryption settings for disk or snapshot

Name Type Description
enabled

boolean

Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.

encryptionSettings

EncryptionSettingsElement[]

A collection of encryption settings, one for each disk volume.

encryptionSettingsVersion

string

Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.

EncryptionSettingsElement

Encryption settings for one disk volume.

Name Type Description
diskEncryptionKey

KeyVaultAndSecretReference

Key Vault Secret Url and vault id of the disk encryption key

keyEncryptionKey

KeyVaultAndKeyReference

Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.

EncryptionType

The type of key used to encrypt the data of the disk.

Value Description
EncryptionAtRestWithPlatformKey

Disk is encrypted at rest with Platform managed key. It is the default encryption type. This is not a valid encryption type for disk encryption sets.

EncryptionAtRestWithCustomerKey

Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer.

EncryptionAtRestWithPlatformAndCustomerKeys

Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed.

ExtendedLocation

The complex type of the extended location.

Name Type Description
name

string

The name of the extended location.

type

ExtendedLocationTypes

The type of the extended location.

ExtendedLocationTypes

The type of the extended location.

Value Description
EdgeZone

HyperVGeneration

The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Value Description
V1
V2

ImageDiskReference

The source image used for creating the disk.

Name Type Description
communityGalleryImageId

string

A relative uri containing a community Azure Compute Gallery image reference.

id

string

A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.

lun

integer (int32)

If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.

sharedGalleryImageId

string

A relative uri containing a direct shared Azure Compute Gallery image reference.

InnerError

Inner error details.

Name Type Description
errordetail

string

The internal error message or exception dump.

exceptiontype

string

The exception type.

KeyVaultAndKeyReference

Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey

Name Type Description
keyUrl

string

Url pointing to a key or secret in KeyVault

sourceVault

SourceVault

Resource id of the KeyVault containing the key or secret

KeyVaultAndSecretReference

Key Vault Secret Url and vault id of the encryption key

Name Type Description
secretUrl

string

Url pointing to a key or secret in KeyVault

sourceVault

SourceVault

Resource id of the KeyVault containing the key or secret

NetworkAccessPolicy

Policy for accessing the disk via network.

Value Description
AllowAll

The disk can be exported or uploaded to from any network.

AllowPrivate

The disk can be exported or uploaded to using a DiskAccess resource's private endpoints.

DenyAll

The disk cannot be exported.

OperatingSystemTypes

The Operating System type.

Value Description
Windows
Linux

ProvisionedBandwidthCopyOption

If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.

Value Description
None
Enhanced

PublicNetworkAccess

Policy for controlling export on the disk.

Value Description
Enabled

You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.

Disabled

You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate.

Snapshot

Snapshot resource.

Name Type Description
extendedLocation

ExtendedLocation

The extended location where the snapshot will be created. Extended location cannot be changed.

id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

The geo-location where the resource lives

managedBy

string

Unused. Always Null.

name

string

The name of the resource

properties.completionPercent

number (float)

Percentage complete for the background copy when a resource is created via the CopyStart operation.

properties.copyCompletionError

CopyCompletionError

Indicates the error details if the background copy of a resource created via the CopyStart operation fails.

properties.creationData

CreationData

Disk source information. CreationData information cannot be changed after the disk has been created.

properties.dataAccessAuthMode

DataAccessAuthMode

Additional authentication requirements when exporting or uploading to a disk or snapshot.

properties.diskAccessId

string

ARM id of the DiskAccess resource for using private endpoints on disks.

properties.diskSizeBytes

integer (int64)

The size of the disk in bytes. This field is read only.

properties.diskSizeGB

integer (int32)

If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.

properties.diskState

DiskState

The state of the snapshot.

properties.encryption

Encryption

Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.

properties.encryptionSettingsCollection

EncryptionSettingsCollection

Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot.

properties.hyperVGeneration

HyperVGeneration

The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

properties.incremental

boolean

Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed.

properties.incrementalSnapshotFamilyId

string

Incremental snapshots for a disk share an incremental snapshot family id. The Get Page Range Diff API can only be called on incremental snapshots with the same family id.

properties.networkAccessPolicy

NetworkAccessPolicy

Policy for accessing the disk via network.

properties.osType

OperatingSystemTypes

The Operating System type.

properties.provisioningState

string

The disk provisioning state.

properties.publicNetworkAccess

PublicNetworkAccess

Policy for controlling export on the disk.

properties.purchasePlan

DiskPurchasePlan

Purchase plan information for the image from which the source disk for the snapshot was originally created.

properties.securityProfile

DiskSecurityProfile

Contains the security related information for the resource.

properties.supportedCapabilities

SupportedCapabilities

List of supported capabilities for the image from which the source disk from the snapshot was originally created.

properties.supportsHibernation

boolean

Indicates the OS on a snapshot supports hibernation.

properties.timeCreated

string (date-time)

The time when the snapshot was created.

properties.uniqueId

string

Unique Guid identifying the resource.

sku

SnapshotSku

The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags

object

Resource tags.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

SnapshotSku

The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot

Name Type Description
name

SnapshotStorageAccountTypes

The sku name.

tier

string

The sku tier.

SnapshotStorageAccountTypes

The sku name.

Value Description
Standard_LRS

Standard HDD locally redundant storage

Premium_LRS

Premium SSD locally redundant storage

Standard_ZRS

Standard zone redundant storage

SourceVault

The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}

Name Type Description
id

string

Resource Id

SupportedCapabilities

List of supported capabilities persisted on the disk resource for VM use.

Name Type Description
acceleratedNetwork

boolean

True if the image from which the OS disk is created supports accelerated networking.

architecture

Architecture

CPU architecture supported by an OS disk.

diskControllerTypes

string

The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.