语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ArmDevOpsInfrastructureModelFactory.DevOpsDataDisk Method

Definition

The data disk of the VMSS.

public static Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsDataDisk DevOpsDataDisk(Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsDataDiskCachingType? caching = default, int? diskSizeGiB = default, Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsStorageAccountType? storageAccountType = default, string driveLetter = default);
static member DevOpsDataDisk : Nullable<Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsDataDiskCachingType> * Nullable<int> * Nullable<Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsStorageAccountType> * string -> Azure.ResourceManager.DevOpsInfrastructure.Models.DevOpsDataDisk
Public Shared Function DevOpsDataDisk (Optional caching As Nullable(Of DevOpsDataDiskCachingType) = Nothing, Optional diskSizeGiB As Nullable(Of Integer) = Nothing, Optional storageAccountType As Nullable(Of DevOpsStorageAccountType) = Nothing, Optional driveLetter As String = Nothing) As DevOpsDataDisk

Parameters

caching
Nullable<DevOpsDataDiskCachingType>

The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.

diskSizeGiB
Nullable<Int32>

The initial disk size in gigabytes.

storageAccountType
Nullable<DevOpsStorageAccountType>

The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs".

driveLetter
String

The drive letter for the empty data disk. If not specified, it will be the first available letter.

Returns

A new DevOpsDataDisk instance for mocking.

Applies to