Dela via


CreationData Class

Definition

Data used when creating a disk.

public class CreationData
type CreationData = class
Public Class CreationData
Inheritance
CreationData

Constructors

CreationData()

Initializes a new instance of the CreationData class.

CreationData(String, String, ImageDiskReference, ImageDiskReference, String, String, String, Nullable<Int64>, Nullable<Int32>, String, Nullable<Boolean>)

Initializes a new instance of the CreationData class.

Properties

CreateOption

Gets or sets this enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload', 'CopyStart', 'ImportSecure', 'UploadPreparedSecure'

GalleryImageReference

Gets or sets 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

Gets or sets disk source information for PIR or user images.

LogicalSectorSize

Gets or sets logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

PerformancePlus

Gets or sets 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.

SecurityDataUri

Gets or sets if createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.

SourceResourceId

Gets or sets if createOption is Copy, this is the ARM id of the source snapshot or disk.

SourceUniqueId

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

SourceUri

Gets or sets if createOption is Import, this is the URI of a blob to be imported into a managed disk.

StorageAccountId

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

UploadSizeBytes

Gets or sets 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).

Methods

Validate()

Validate the object.

Applies to