CreationData Class

Data used when creating a disk.

Constructor

CreationData()

Variables

Name Description
createOption
Union[str, <xref:"DiskCreateOption">]

This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", "CopyStart", "ImportSecure", "UploadPreparedSecure", and "CopyFromSanSnapshot".

storageAccountId
str

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

imageReference
<xref:<xref:"ImageDiskReference">>

Disk source information for PIR or user images.

galleryImageReference
<xref:<xref:"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.

sourceUri
str

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

sourceResourceId
str

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

sourceUniqueId
str

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

uploadSizeBytes
int

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).

logicalSectorSize
int

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

securityDataUri
str

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

securityMetadataUri
str

If createOption is ImportSecure, this is the URI of a blob to be imported into VM metadata for Confidential VM.

performancePlus

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.

elasticSanResourceId
str

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

provisionedBandwidthCopySpeed
Union[str, <xref:"ProvisionedBandwidthCopyOption">]

If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed. Known values are: "None" and "Enhanced".

instantAccessDurationMinutes
int

For snapshots created from Premium SSD v2 or Ultra disk, this property determines the time in minutes the snapshot is retained for instant access to enable faster restore.

Attributes

createOption

This enumerates the possible sources of a disk's creation. Required. Known values are: "Empty", "Attach", "FromImage", "Import", "Copy", "Restore", "Upload", "CopyStart", "ImportSecure", "UploadPreparedSecure", and "CopyFromSanSnapshot".

createOption: Required[str | DiskCreateOption]

elasticSanResourceId

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

elasticSanResourceId: str

galleryImageReference

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.

galleryImageReference: ImageDiskReference

imageReference

Disk source information for PIR or user images.

imageReference: ImageDiskReference

instantAccessDurationMinutes

For snapshots created from Premium SSD v2 or Ultra disk, this property determines the time in minutes the snapshot is retained for instant access to enable faster restore.

instantAccessDurationMinutes: int

logicalSectorSize

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

logicalSectorSize: int

performancePlus

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.

performancePlus: bool

provisionedBandwidthCopySpeed

If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed. Known values are: "None" and "Enhanced".

provisionedBandwidthCopySpeed: str | ProvisionedBandwidthCopyOption

securityDataUri

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

securityDataUri: str

securityMetadataUri

If createOption is ImportSecure, this is the URI of a blob to be imported into VM metadata for Confidential VM.

securityMetadataUri: str

sourceResourceId

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

sourceResourceId: str

sourceUniqueId

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

sourceUniqueId: str

sourceUri

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

sourceUri: str

storageAccountId

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

storageAccountId: str

uploadSizeBytes

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).

uploadSizeBytes: int