CreationData Class
Data used when creating a disk.
Constructor
CreationData(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
create_option
|
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". |
|
storage_account_id
|
Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk. |
|
image_reference
|
Disk source information for PIR or user images. |
|
gallery_image_reference
|
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. |
|
source_uri
|
If createOption is Import, this is the URI of a blob to be imported into a managed disk. |
|
source_resource_id
|
If createOption is Copy, this is the ARM id of the source snapshot or disk. |
|
source_unique_id
|
If this field is set, this is the unique id identifying the source of this resource. |
|
upload_size_bytes
|
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). |
|
logical_sector_size
|
Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default. |
|
security_data_uri
|
If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state. |
|
security_metadata_uri
|
If createOption is ImportSecure, this is the URI of a blob to be imported into VM metadata for Confidential VM. |
|
performance_plus
|
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. |
|
elastic_san_resource_id
|
Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot. |
|
provisioned_bandwidth_copy_speed
|
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". |
|
instant_access_duration_minutes
|
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
create_option
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".
create_option: str | _models.DiskCreateOption
elastic_san_resource_id
Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
elastic_san_resource_id: str | None
gallery_image_reference
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.
gallery_image_reference: _models.ImageDiskReference | None
image_reference
Disk source information for PIR or user images.
image_reference: _models.ImageDiskReference | None
instant_access_duration_minutes
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.
instant_access_duration_minutes: int | None
logical_sector_size
Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
logical_sector_size: int | None
performance_plus
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.
performance_plus: bool | None
provisioned_bandwidth_copy_speed
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".
provisioned_bandwidth_copy_speed: str | _models.ProvisionedBandwidthCopyOption | None
security_data_uri
If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
security_data_uri: str | None
security_metadata_uri
If createOption is ImportSecure, this is the URI of a blob to be imported into VM metadata for Confidential VM.
security_metadata_uri: str | None
source_resource_id
If createOption is Copy, this is the ARM id of the source snapshot or disk.
source_resource_id: str | None
source_unique_id
If this field is set, this is the unique id identifying the source of this resource.
source_unique_id: str | None
source_uri
If createOption is Import, this is the URI of a blob to be imported into a managed disk.
source_uri: str | None
storage_account_id
Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
storage_account_id: str | None
upload_size_bytes
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).
upload_size_bytes: int | None