ภาษา

ArmComputeModelFactory.DiffDiskSettings Method

Definition

Describes the parameters of ephemeral disk settings that can be specified for operating system disk. Note: The ephemeral disk settings can only be specified for managed disk.

public static Azure.ResourceManager.Compute.Models.DiffDiskSettings DiffDiskSettings(Azure.ResourceManager.Compute.Models.DiffDiskOption? option = default, Azure.ResourceManager.Compute.Models.DiffDiskPlacement? placement = default, bool? enableFullCaching = default);
static member DiffDiskSettings : Nullable<Azure.ResourceManager.Compute.Models.DiffDiskOption> * Nullable<Azure.ResourceManager.Compute.Models.DiffDiskPlacement> * Nullable<bool> -> Azure.ResourceManager.Compute.Models.DiffDiskSettings
Public Shared Function DiffDiskSettings (Optional option As Nullable(Of DiffDiskOption) = Nothing, Optional placement As Nullable(Of DiffDiskPlacement) = Nothing, Optional enableFullCaching As Nullable(Of Boolean) = Nothing) As DiffDiskSettings

Parameters

option
Nullable<DiffDiskOption>

Specifies the ephemeral disk settings for operating system disk.

placement
Nullable<DiffDiskPlacement>

Specifies the ephemeral disk placement for operating system disk. Possible values are: CacheDisk,ResourceDisk,NvmeDisk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk or NvmeDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Minimum api-version for NvmeDisk: 2024-03-01.

enableFullCaching
Nullable<Boolean>

Specifies whether or not to enable full caching for this VM which will cache the OS disk locally on the host and make this VM more resilient to storage outages.

Returns

A new DiffDiskSettings instance for mocking.

Applies to