Share 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(DiskCreateOption, String, ImageDiskReference, ImageDiskReference, String, String, String, Nullable<Int64>, Nullable<Int32>)

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'

GalleryImageReference

Gets or sets required if creating from a Gallery Image. The id 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.

LogicalSectorSize

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

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