ArmComputeModelFactory.DataDisksToAttach Method
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.
Initializes a new instance of DataDisksToAttach.
public static Azure.ResourceManager.Compute.Models.DataDisksToAttach DataDisksToAttach (string diskId = default, int? lun = default, Azure.ResourceManager.Compute.Models.CachingType? caching = default, Azure.ResourceManager.Compute.Models.DiskDeleteOptionType? deleteOption = default, Azure.Core.ResourceIdentifier diskEncryptionSetId = default, bool? writeAcceleratorEnabled = default);
static member DataDisksToAttach : string * Nullable<int> * Nullable<Azure.ResourceManager.Compute.Models.CachingType> * Nullable<Azure.ResourceManager.Compute.Models.DiskDeleteOptionType> * Azure.Core.ResourceIdentifier * Nullable<bool> -> Azure.ResourceManager.Compute.Models.DataDisksToAttach
Public Shared Function DataDisksToAttach (Optional diskId As String = Nothing, Optional lun As Nullable(Of Integer) = Nothing, Optional caching As Nullable(Of CachingType) = Nothing, Optional deleteOption As Nullable(Of DiskDeleteOptionType) = Nothing, Optional diskEncryptionSetId As ResourceIdentifier = Nothing, Optional writeAcceleratorEnabled As Nullable(Of Boolean) = Nothing) As DataDisksToAttach
Parameters
- diskId
- String
ID of the managed data disk.
The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. If not specified, lun would be auto assigned.
- caching
- Nullable<CachingType>
Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for Standard storage. ReadOnly for Premium storage..
- deleteOption
- Nullable<DiskDeleteOptionType>
Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value is used, the data disk is deleted when VM is deleted. Detach. If this value is used, the data disk is retained after VM is deleted. The default value is set to Detach.
- diskEncryptionSetId
- ResourceIdentifier
Specifies the customer managed disk encryption set resource id for the managed disk.
Specifies whether writeAccelerator should be enabled or disabled on the disk.
Returns
A new DataDisksToAttach instance for mocking.
Applies to
Azure SDK for .NET
Comentários
https://aka.ms/ContentUserFeedback.
Brevemente: Ao longo de 2024, vamos descontinuar progressivamente o GitHub Issues como mecanismo de feedback para conteúdos e substituí-lo por um novo sistema de feedback. Para obter mais informações, veja:Submeter e ver comentários