Sdílet prostřednictvím


DiskCreateOption Struct

Definition

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

public readonly struct DiskCreateOption : IEquatable<Azure.ResourceManager.Compute.Models.DiskCreateOption>
type DiskCreateOption = struct
Public Structure DiskCreateOption
Implements IEquatable(Of DiskCreateOption)
Inheritance
DiskCreateOption
Implements

Constructors

DiskCreateOption(String)

Initializes a new instance of DiskCreateOption.

Properties

Attach

Disk will be attached to a VM.

Copy

Create a new disk or snapshot by copying from a disk or snapshot specified by the given sourceResourceId.

CopyFromSanSnapshot

Create a new disk by exporting from elastic san volume snapshot.

CopyStart

Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source.

Empty

Create an empty data disk of a size given by diskSizeGB.

FromImage

Create a new disk from a platform image specified by the given imageReference or galleryImageReference.

Import

Create a disk by importing from a blob specified by a sourceUri in a storage account specified by storageAccountId.

ImportSecure

Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blob for VM guest state specified by securityDataUri in storage account specified by storageAccountId.

Restore

Create a new disk by copying from a backup recovery point.

Upload

Create a new disk by obtaining a write token and using it to directly upload the contents of the disk.

UploadPreparedSecure

Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state.

Methods

Equals(DiskCreateOption)

Indicates whether the current object is equal to another object of the same type.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(DiskCreateOption, DiskCreateOption)

Determines if two DiskCreateOption values are the same.

Implicit(String to DiskCreateOption)

Converts a String to a DiskCreateOption.

Inequality(DiskCreateOption, DiskCreateOption)

Determines if two DiskCreateOption values are not the same.

Applies to