CreationData Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
CreationData()
Initializes a new instance of the CreationData class.
public CreationData ();
Public Sub New ()
Applies to
CreationData(DiskCreateOption, String, ImageDiskReference, ImageDiskReference, String, String, String, Nullable<Int64>, Nullable<Int32>)
Initializes a new instance of the CreationData class.
public CreationData (Microsoft.Azure.Management.Compute.Fluent.Models.DiskCreateOption createOption, string storageAccountId = default, Microsoft.Azure.Management.Compute.Fluent.Models.ImageDiskReference imageReference = default, Microsoft.Azure.Management.Compute.Fluent.Models.ImageDiskReference galleryImageReference = default, string sourceUri = default, string sourceResourceId = default, string sourceUniqueId = default, long? uploadSizeBytes = default, int? logicalSectorSize = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.CreationData : Microsoft.Azure.Management.Compute.Fluent.Models.DiskCreateOption * string * Microsoft.Azure.Management.Compute.Fluent.Models.ImageDiskReference * Microsoft.Azure.Management.Compute.Fluent.Models.ImageDiskReference * string * string * string * Nullable<int64> * Nullable<int> -> Microsoft.Azure.Management.Compute.Fluent.Models.CreationData
Public Sub New (createOption As DiskCreateOption, Optional storageAccountId As String = Nothing, Optional imageReference As ImageDiskReference = Nothing, Optional galleryImageReference As ImageDiskReference = Nothing, Optional sourceUri As String = Nothing, Optional sourceResourceId As String = Nothing, Optional sourceUniqueId As String = Nothing, Optional uploadSizeBytes As Nullable(Of Long) = Nothing, Optional logicalSectorSize As Nullable(Of Integer) = Nothing)
Parameters
- createOption
- DiskCreateOption
This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload'
- storageAccountId
- String
Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
- imageReference
- ImageDiskReference
Disk source information.
- galleryImageReference
- ImageDiskReference
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.
- sourceUri
- String
If createOption is Import, this is the URI of a blob to be imported into a managed disk.
- 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.
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).
Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
Applies to
Azure SDK for .NET