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(String, String, ImageDiskReference, ImageDiskReference, String, String, String, Nullable<Int64>, Nullable<Int32>, String, Nullable<Boolean>) |
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(String, String, ImageDiskReference, ImageDiskReference, String, String, String, Nullable<Int64>, Nullable<Int32>, String, Nullable<Boolean>)
Initializes a new instance of the CreationData class.
public CreationData (string createOption, string storageAccountId = default, Microsoft.Azure.Management.Compute.Models.ImageDiskReference imageReference = default, Microsoft.Azure.Management.Compute.Models.ImageDiskReference galleryImageReference = default, string sourceUri = default, string sourceResourceId = default, string sourceUniqueId = default, long? uploadSizeBytes = default, int? logicalSectorSize = default, string securityDataUri = default, bool? performancePlus = default);
new Microsoft.Azure.Management.Compute.Models.CreationData : string * string * Microsoft.Azure.Management.Compute.Models.ImageDiskReference * Microsoft.Azure.Management.Compute.Models.ImageDiskReference * string * string * string * Nullable<int64> * Nullable<int> * string * Nullable<bool> -> Microsoft.Azure.Management.Compute.Models.CreationData
Public Sub New (createOption As String, 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, Optional securityDataUri As String = Nothing, Optional performancePlus As Nullable(Of Boolean) = Nothing)
Parameters
- createOption
- String
This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload', 'CopyStart', 'ImportSecure', 'UploadPreparedSecure'
- 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 for PIR or user images.
- galleryImageReference
- ImageDiskReference
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.
- 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.
- securityDataUri
- String
If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
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.
Applies to
Azure SDK for .NET