ComputeBatchModelFactory.BatchOsDisk 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.
Settings for the operating system disk of the compute node (VM).
public static Azure.Compute.Batch.BatchOsDisk BatchOsDisk(Azure.Compute.Batch.BatchDiffDiskSettings ephemeralOSDiskSettings = default, Azure.Compute.Batch.CachingType? caching = default, int? diskSizeGB = default, Azure.Compute.Batch.ManagedDisk managedDisk = default, bool? writeAcceleratorEnabled = default);
static member BatchOsDisk : Azure.Compute.Batch.BatchDiffDiskSettings * Nullable<Azure.Compute.Batch.CachingType> * Nullable<int> * Azure.Compute.Batch.ManagedDisk * Nullable<bool> -> Azure.Compute.Batch.BatchOsDisk
Public Shared Function BatchOsDisk (Optional ephemeralOSDiskSettings As BatchDiffDiskSettings = Nothing, Optional caching As Nullable(Of CachingType) = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional managedDisk As ManagedDisk = Nothing, Optional writeAcceleratorEnabled As Nullable(Of Boolean) = Nothing) As BatchOsDisk
Parameters
- ephemeralOSDiskSettings
- BatchDiffDiskSettings
Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM).
- caching
- Nullable<CachingType>
Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage.
- managedDisk
- ManagedDisk
The managed disk parameters.
Specifies whether writeAccelerator should be enabled or disabled on the disk.
Returns
A new BatchOsDisk instance for mocking.