VirtualMachine.DefinitionStages.WithOSDiskSettings Interface

public static interface VirtualMachine.DefinitionStages.WithOSDiskSettings

The stage of a virtual machine definition allowing to specify OS disk configurations.

Method Summary

Modifier and Type Method and Description
abstract WithEphemeralOSDisk withEphemeralOSDisk()

Specifies the OS disk to be ephemeral.

abstract WithCreate withOSDiskCaching(CachingTypes cachingType)

Specifies the caching type for the OS disk.

abstract WithCreate withOSDiskDeleteOptions(DeleteOptions deleteOptions)

Specifies the delete options for the OS disk.

abstract WithCreate withOSDiskDiskEncryptionSet(String diskEncryptionSetId)

Specifies the disk encryption set for the managed OS disk.

abstract WithCreate withOSDiskEncryptionSettings(DiskEncryptionSettings settings)

Specifies the encryption settings for the OS Disk.

abstract WithCreate withOSDiskName(String name)

Specifies the name for the OS Disk.

abstract WithCreate withOSDiskSizeInGB(int size)

Specifies the size of the OSDisk in GB.

Method Details

withEphemeralOSDisk

public abstract VirtualMachine.DefinitionStages.WithEphemeralOSDisk withEphemeralOSDisk()

Specifies the OS disk to be ephemeral.

Returns:

the next stage of the definition

withOSDiskCaching

public abstract VirtualMachine.DefinitionStages.WithCreate withOSDiskCaching(CachingTypes cachingType)

Specifies the caching type for the OS disk.

Parameters:

cachingType - a caching type

Returns:

the next stage of the definition

withOSDiskDeleteOptions

public abstract VirtualMachine.DefinitionStages.WithCreate withOSDiskDeleteOptions(DeleteOptions deleteOptions)

Specifies the delete options for the OS disk.

Parameters:

deleteOptions - the delete options for the OS disk.

Returns:

the next stage of the definition

withOSDiskDiskEncryptionSet

public abstract VirtualMachine.DefinitionStages.WithCreate withOSDiskDiskEncryptionSet(String diskEncryptionSetId)

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

withOSDiskEncryptionSettings

public abstract 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

withOSDiskName

public abstract VirtualMachine.DefinitionStages.WithCreate withOSDiskName(String name)

Specifies the name for the OS Disk.

Parameters:

name - an OS disk name

Returns:

the next stage of the definition

withOSDiskSizeInGB

public abstract VirtualMachine.DefinitionStages.WithCreate withOSDiskSizeInGB(int size)

Specifies the size of the OSDisk in GB.

Parameters:

size - the VHD size

Returns:

the next stage of the definition

Applies to