ArmComputeModelFactory.DiskCreationData Method

Definition

Initializes a new instance of DiskCreationData.

public static Azure.ResourceManager.Compute.Models.DiskCreationData DiskCreationData (Azure.ResourceManager.Compute.Models.DiskCreateOption createOption = default, Azure.Core.ResourceIdentifier storageAccountId = default, Azure.ResourceManager.Compute.Models.ImageDiskReference imageReference = default, Azure.ResourceManager.Compute.Models.ImageDiskReference galleryImageReference = default, Uri sourceUri = default, Azure.Core.ResourceIdentifier sourceResourceId = default, string sourceUniqueId = default, long? uploadSizeBytes = default, int? logicalSectorSize = default, Uri securityDataUri = default, bool? isPerformancePlusEnabled = default, Azure.Core.ResourceIdentifier elasticSanResourceId = default, Azure.ResourceManager.Compute.Models.ProvisionedBandwidthCopyOption? provisionedBandwidthCopySpeed = default);
static member DiskCreationData : Azure.ResourceManager.Compute.Models.DiskCreateOption * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Compute.Models.ImageDiskReference * Azure.ResourceManager.Compute.Models.ImageDiskReference * Uri * Azure.Core.ResourceIdentifier * string * Nullable<int64> * Nullable<int> * Uri * Nullable<bool> * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.Compute.Models.ProvisionedBandwidthCopyOption> -> Azure.ResourceManager.Compute.Models.DiskCreationData
Public Shared Function DiskCreationData (Optional createOption As DiskCreateOption = Nothing, Optional storageAccountId As ResourceIdentifier = Nothing, Optional imageReference As ImageDiskReference = Nothing, Optional galleryImageReference As ImageDiskReference = Nothing, Optional sourceUri As Uri = Nothing, Optional sourceResourceId As ResourceIdentifier = Nothing, Optional sourceUniqueId As String = Nothing, Optional uploadSizeBytes As Nullable(Of Long) = Nothing, Optional logicalSectorSize As Nullable(Of Integer) = Nothing, Optional securityDataUri As Uri = Nothing, Optional isPerformancePlusEnabled As Nullable(Of Boolean) = Nothing, Optional elasticSanResourceId As ResourceIdentifier = Nothing, Optional provisionedBandwidthCopySpeed As Nullable(Of ProvisionedBandwidthCopyOption) = Nothing) As DiskCreationData

Parameters

createOption
DiskCreateOption

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

storageAccountId
ResourceIdentifier

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
Uri

If createOption is Import, this is the URI of a blob to be imported into a managed disk.

sourceResourceId
ResourceIdentifier

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.

uploadSizeBytes
Nullable<Int64>

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

logicalSectorSize
Nullable<Int32>

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

securityDataUri
Uri

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

isPerformancePlusEnabled
Nullable<Boolean>

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.

elasticSanResourceId
ResourceIdentifier

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

provisionedBandwidthCopySpeed
Nullable<ProvisionedBandwidthCopyOption>

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

Returns

A new DiskCreationData instance for mocking.

Applies to