Interface VirtualMachine.DefinitionStages.WithOSDiskSettings
- All Known Subinterfaces:
VirtualMachine.DefinitionManaged,VirtualMachine.DefinitionManagedOrUnmanaged,VirtualMachine.DefinitionShared,VirtualMachine.DefinitionStages.WithCreate,VirtualMachine.DefinitionStages.WithFromImageCreateOptionsManaged,VirtualMachine.DefinitionStages.WithFromImageCreateOptionsManagedOrUnmanaged,VirtualMachine.DefinitionStages.WithFromImageCreateOptionsUnmanaged,VirtualMachine.DefinitionStages.WithLinuxCreateManaged,VirtualMachine.DefinitionStages.WithLinuxCreateManagedOrUnmanaged,VirtualMachine.DefinitionStages.WithLinuxCreateUnmanaged,VirtualMachine.DefinitionStages.WithManagedCreate,VirtualMachine.DefinitionStages.WithSecurityFeatures,VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate,VirtualMachine.DefinitionStages.WithUnmanagedCreate,VirtualMachine.DefinitionStages.WithWindowsCreateManaged,VirtualMachine.DefinitionStages.WithWindowsCreateManagedOrUnmanaged,VirtualMachine.DefinitionStages.WithWindowsCreateUnmanaged,VirtualMachine.DefinitionUnmanaged
- Enclosing interface:
VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithOSDiskSettings
The stage of a virtual machine definition allowing to specify OS disk configurations.
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the OS disk to be ephemeral.withOSDiskCaching(CachingTypes cachingType) Specifies the caching type for the OS disk.withOSDiskDeleteOptions(DeleteOptions deleteOptions) Specifies the delete options for the OS disk.withOSDiskDiskEncryptionSet(String diskEncryptionSetId) Specifies the disk encryption set for the managed OS disk.Specifies the encryption settings for the OS Disk.withOSDiskName(String name) Specifies the name for the OS Disk.withOSDiskSizeInGB(int size) Specifies the size of the OSDisk in GB.withOSDiskWriteAcceleratorEnabled(boolean writeAcceleratorEnabled) Specifies the write accelerator for the OS disks.
-
Method Details
-
withOSDiskCaching
Specifies the caching type for the OS disk.- Parameters:
cachingType- a caching type- Returns:
- the next stage of the definition
-
withOSDiskEncryptionSettings
VirtualMachine.DefinitionStages.WithCreate withOSDiskEncryptionSettings(DiskEncryptionSettings settings) Specifies the encryption settings for the OS Disk.- Parameters:
settings- the encryption settings- Returns:
- the next stage of the definition
-
withOSDiskSizeInGB
Specifies the size of the OSDisk in GB.- Parameters:
size- the VHD size- Returns:
- the next stage of the definition
-
withOSDiskName
Specifies the name for the OS Disk.- Parameters:
name- an OS disk name- Returns:
- the next stage of the definition
-
withOSDiskDeleteOptions
Specifies the delete options for the OS disk.- Parameters:
deleteOptions- the delete options for the OS disk.- Returns:
- the next stage of the definition
-
withOSDiskWriteAcceleratorEnabled
VirtualMachine.DefinitionStages.WithCreate withOSDiskWriteAcceleratorEnabled(boolean writeAcceleratorEnabled) Specifies the write accelerator for the OS disks.Write Accelerator is generally available for M-series VMs in the Public Cloud. Enabling write accelerator for the operating system disk of the VM will reboot the VM. The Premium disk caching must be set to 'None' or 'Read Only'. All other caching modes are not supported.
- Parameters:
writeAcceleratorEnabled- whether to enable the write accelerator- Returns:
- the next stage of the definition
-
withOSDiskDiskEncryptionSet
Specifies the disk encryption set for the managed OS disk.- Parameters:
diskEncryptionSetId- the ID of disk encryption set.- Returns:
- the next stage of the definition
-
withEphemeralOSDisk
VirtualMachine.DefinitionStages.WithEphemeralOSDisk withEphemeralOSDisk()Specifies the OS disk to be ephemeral.- Returns:
- the next stage of the definition
-