Package version:

Interface CreationData

Data used when creating a disk.

interface CreationData {
    createOption: string;
    elasticSanResourceId?: string;
    galleryImageReference?: ImageDiskReference;
    imageReference?: ImageDiskReference;
    logicalSectorSize?: number;
    performancePlus?: boolean;
    provisionedBandwidthCopySpeed?: string;
    securityDataUri?: string;
    sourceResourceId?: string;
    sourceUniqueId?: string;
    sourceUri?: string;
    storageAccountId?: string;
    uploadSizeBytes?: number;
}

Properties

createOption: string

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

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

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. NOTE: This property will not be serialized. It can only be populated by the server.

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

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