DiskCreationData Class

Definition

Data used when creating a disk.

public class DiskCreationData : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.DiskCreationData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.DiskCreationData>
type DiskCreationData = class
    interface IJsonModel<DiskCreationData>
    interface IPersistableModel<DiskCreationData>
Public Class DiskCreationData
Implements IJsonModel(Of DiskCreationData), IPersistableModel(Of DiskCreationData)
Inheritance
DiskCreationData
Implements

Constructors

DiskCreationData(DiskCreateOption)

Initializes a new instance of DiskCreationData.

Properties

CreateOption

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

ElasticSanResourceId

Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.

GalleryImageReference

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

Disk source information for PIR or user images.

IsPerformancePlusEnabled

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.

LogicalSectorSize

Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.

ProvisionedBandwidthCopySpeed

If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.

SecurityDataUri

If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.

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.

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

Explicit Interface Implementations

IJsonModel<DiskCreationData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DiskCreationData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DiskCreationData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DiskCreationData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DiskCreationData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to