CreationData interface

Data used when creating a disk.

Properties

createOption

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

imageReference

Disk source information.

sourceResourceId

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

sourceUniqueId

If this field is set, this is the unique id identifying the source of this resource. NOTE: This property will not be serialized. It can only be populated by the server.

sourceUri

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

storageAccountId

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

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

Property Details

createOption

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

createOption: string

Property Value

string

imageReference

Disk source information.

imageReference?: ImageDiskReference

Property Value

sourceResourceId

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

sourceResourceId?: string

Property Value

string

sourceUniqueId

If this field is set, this is the unique id identifying the source of this resource. NOTE: This property will not be serialized. It can only be populated by the server.

sourceUniqueId?: string

Property Value

string

sourceUri

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

sourceUri?: string

Property Value

string

storageAccountId

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

storageAccountId?: string

Property Value

string

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?: number

Property Value

number