PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/?api-version=2023-10-02
Creates or updates a snapshot.
Servers
- https://management.azure.com/
Path parameters
Name | Type | Required | Description |
---|---|---|---|
snapshotName |
String | Yes |
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 |
String | Yes |
Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
resourceGroupName |
String | Yes |
The name of the resource group. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
id |
String | No |
Resource Id |
extendedLocation |
Object | No |
The complex type of the extended location. |
extendedLocation.name |
String | No |
The name of the extended location. |
extendedLocation.type |
String | No |
The type of extendedLocation. Possible values:
|
sku |
Object | No |
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 |
sku.tier |
String | No |
The sku tier. |
sku.name |
String | No |
The sku name. Possible values:
|
name |
String | No |
Resource name |
properties |
Object | No |
Snapshot resource properties. |
properties.encryptionSettingsCollection |
Object | No |
Encryption settings for disk or snapshot |
properties.encryptionSettingsCollection.encryptionSettings[] |
Array | No |
A collection of encryption settings, one for each disk volume. |
properties.encryptionSettingsCollection.encryptionSettings[].keyEncryptionKey |
Object | No |
Key Vault Key Url and vault id of KeK, KeK is optional and when provided is used to unwrap the encryptionKey |
properties.encryptionSettingsCollection.encryptionSettings[].keyEncryptionKey.sourceVault |
Object | Yes |
The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName} |
properties.encryptionSettingsCollection.encryptionSettings[].keyEncryptionKey.sourceVault.id |
String | No |
Resource Id |
properties.encryptionSettingsCollection.encryptionSettings[].keyEncryptionKey.keyUrl |
String | Yes |
Url pointing to a key or secret in KeyVault |
properties.encryptionSettingsCollection.encryptionSettings[].diskEncryptionKey |
Object | No |
Key Vault Secret Url and vault id of the encryption key |
properties.encryptionSettingsCollection.encryptionSettings[].diskEncryptionKey.sourceVault |
Object | Yes |
The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName} |
properties.encryptionSettingsCollection.encryptionSettings[].diskEncryptionKey.sourceVault.id |
String | No |
Resource Id |
properties.encryptionSettingsCollection.encryptionSettings[].diskEncryptionKey.secretUrl |
String | Yes |
Url pointing to a key or secret in KeyVault |
properties.encryptionSettingsCollection.enabled |
Boolean | Yes |
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. |
properties.encryptionSettingsCollection.encryptionSettingsVersion |
String | No |
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. |
properties.incrementalSnapshotFamilyId |
String | No |
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.dataAccessAuthMode |
String | No |
Additional authentication requirements when exporting or uploading to a disk or snapshot. Possible values:
|
properties.securityProfile |
Object | No |
Contains the security related information for the resource. |
properties.securityProfile.securityType |
String | No |
Specifies the SecurityType of the VM. Applicable for OS disks only. Possible values:
|
properties.securityProfile.secureVMDiskEncryptionSetId |
String | No |
ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key |
properties.diskAccessId |
String | No |
ARM id of the DiskAccess resource for using private endpoints on disks. |
properties.diskSizeGB |
Integer | No |
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 |
String | No |
This enumerates the possible state of the disk. Possible values:
|
properties.supportsHibernation |
Boolean | No |
Indicates the OS on a snapshot supports hibernation. |
properties.purchasePlan |
Object | No |
Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. |
properties.purchasePlan.name |
String | Yes |
The plan ID. |
properties.purchasePlan.publisher |
String | Yes |
The publisher ID. |
properties.purchasePlan.product |
String | Yes |
Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element. |
properties.purchasePlan.promotionCode |
String | No |
The Offer Promotion Code. |
properties.completionPercent |
Number | No |
Percentage complete for the background copy when a resource is created via the CopyStart operation. |
properties.encryption |
Object | No |
Encryption at rest settings for disk or snapshot |
properties.encryption.diskEncryptionSetId |
String | No |
ResourceId of the disk encryption set to use for enabling encryption at rest. |
properties.encryption.type |
String | No |
The type of key used to encrypt the data of the disk. Possible values:
|
properties.timeCreated |
String | No |
The time when the snapshot was created. |
properties.copyCompletionError |
Object | No |
Indicates the error details if the background copy of a resource created via the CopyStart operation fails. |
properties.copyCompletionError.errorMessage |
String | Yes |
Indicates the error message if the background copy of a resource created via the CopyStart operation fails. |
properties.copyCompletionError.errorCode |
String | Yes |
Indicates the error code if the background copy of a resource created via the CopyStart operation fails. Possible values:
|
properties.diskSizeBytes |
Integer | No |
The size of the disk in bytes. This field is read only. |
properties.uniqueId |
String | No |
Unique Guid identifying the resource. |
properties.osType |
String | No |
The Operating System type. Possible values:
|
properties.publicNetworkAccess |
String | No |
Policy for controlling export on the disk. Possible values:
|
properties.provisioningState |
String | No |
The disk provisioning state. |
properties.networkAccessPolicy |
String | No |
Policy for accessing the disk via network. Possible values:
|
properties.supportedCapabilities |
Object | No |
List of supported capabilities persisted on the disk resource for VM use. |
properties.supportedCapabilities.acceleratedNetwork |
Boolean | No |
True if the image from which the OS disk is created supports accelerated networking. |
properties.supportedCapabilities.diskControllerTypes |
String | No |
The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI. |
properties.supportedCapabilities.architecture |
String | No |
CPU architecture supported by an OS disk. Possible values:
|
properties.hyperVGeneration |
String | No |
The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values:
|
properties.incremental |
Boolean | No |
Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed. |
properties.creationData |
Object | Yes |
Data used when creating a disk. |
properties.creationData.sourceUri |
String | No |
If createOption is Import, this is the URI of a blob to be imported into a managed disk. |
properties.creationData.securityDataUri |
String | No |
If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state. |
properties.creationData.logicalSectorSize |
Integer | No |
Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default. |
properties.creationData.galleryImageReference |
Object | No |
The source image used for creating the disk. |
properties.creationData.galleryImageReference.id |
String | No |
A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference. |
properties.creationData.galleryImageReference.sharedGalleryImageId |
String | No |
A relative uri containing a direct shared Azure Compute Gallery image reference. |
properties.creationData.galleryImageReference.lun |
Integer | No |
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. |
properties.creationData.galleryImageReference.communityGalleryImageId |
String | No |
A relative uri containing a community Azure Compute Gallery image reference. |
properties.creationData.storageAccountId |
String | No |
Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk. |
properties.creationData.provisionedBandwidthCopySpeed |
String | No |
If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed. Possible values:
|
properties.creationData.sourceUniqueId |
String | No |
If this field is set, this is the unique id identifying the source of this resource. |
properties.creationData.elasticSanResourceId |
String | No |
Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot. |
properties.creationData.sourceResourceId |
String | No |
If createOption is Copy, this is the ARM id of the source snapshot or disk. |
properties.creationData.uploadSizeBytes |
Integer | No |
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). |
properties.creationData.createOption |
String | Yes |
This enumerates the possible sources of a disk's creation. Possible values:
|
properties.creationData.imageReference |
Object | No |
The source image used for creating the disk. |
properties.creationData.imageReference.id |
String | No |
A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference. |
properties.creationData.imageReference.sharedGalleryImageId |
String | No |
A relative uri containing a direct shared Azure Compute Gallery image reference. |
properties.creationData.imageReference.lun |
Integer | No |
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. |
properties.creationData.imageReference.communityGalleryImageId |
String | No |
A relative uri containing a community Azure Compute Gallery image reference. |
properties.creationData.performancePlus |
Boolean | No |
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. |
location |
String | No |
Resource location |
managedBy |
String | No |
Unused. Always Null. |
tags |
Object | No |
Resource tags |
type |
String | No |
Resource type |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.