Compartir vía


VirtualMachine.Update Interface

public interface Update extends Appliable,Resource.UpdateWithTags,VirtualMachine.UpdateStages.WithUnmanagedDataDisk,VirtualMachine.UpdateStages.WithManagedDataDisk,VirtualMachine.UpdateStages.WithSecondaryNetworkInterface,VirtualMachine.UpdateStages.WithExtension,VirtualMachine.UpdateStages.WithBootDiagnostics,VirtualMachine.UpdateStages.WithManagedServiceIdentity

The template for an update operation, containing all the settings that can be modified.

Method Summary

Modifier and Type Method and Description
VirtualMachine.Update withDataDiskDefaultCachingType(CachingTypes cachingType)

Specifies the default caching type for the managed data disks.

VirtualMachine.Update withDataDiskDefaultStorageAccountType(StorageAccountTypes storageAccountType)

Specifies a storage account type.

VirtualMachine.Update withOSDiskCaching(CachingTypes cachingType)

Specifies the caching type for the OS disk.

VirtualMachine.Update withOSDiskEncryptionSettings(DiskEncryptionSettings settings)

Specifies the encryption settings for the OS Disk.

VirtualMachine.Update withOSDiskSizeInGB(int size)

Specifies the size of the OS disk in GB.

Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API.

VirtualMachine.Update withOSDiskSizeInGB(Integer size)

Specifies the size of the OS disk in GB.

Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API.

VirtualMachine.Update withSize(String sizeName)

Specifies a new size for the virtual machine.

VirtualMachine.Update withSize(VirtualMachineSizeTypes size)

Specifies a new size for the virtual machine.

Inherited Members

Appliable<T>.apply() Appliable<T>.applyAsync() Appliable<T>.applyAsync(final ServiceCallback<T> callback) VirtualMachine.UpdateStages.WithExtension.defineNewExtension(String name) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.defineUnmanagedDataDisk(String name) Indexable.key() VirtualMachine.UpdateStages.WithExtension.updateExtension(String name) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.updateUnmanagedDataDisk(String name) VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics() VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics(Creatable<StorageAccount> creatable) VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics(StorageAccount storageAccount) VirtualMachine.UpdateStages.WithBootDiagnostics.withBootDiagnostics(String storageAccountBlobEndpointUri) VirtualMachine.UpdateStages.WithManagedDataDisk.withExistingDataDisk(Disk disk) VirtualMachine.UpdateStages.WithManagedDataDisk.withExistingDataDisk(Disk disk, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithManagedDataDisk.withExistingDataDisk(Disk disk, int newSizeInGB, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithSecondaryNetworkInterface.withExistingSecondaryNetworkInterface(NetworkInterface networkInterface) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withExistingUnmanagedDataDisk(String storageAccountName, String containerName, String vhdName) VirtualMachine.UpdateStages.WithManagedServiceIdentity.withManagedServiceIdentity() VirtualMachine.UpdateStages.WithManagedServiceIdentity.withManagedServiceIdentity(int tokenPort) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(Creatable<Disk> creatable) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(Creatable<Disk> creatable, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(int sizeInGB) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType) VirtualMachine.UpdateStages.WithManagedDataDisk.withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType, StorageAccountTypes storageAccountType) VirtualMachine.UpdateStages.WithSecondaryNetworkInterface.withNewSecondaryNetworkInterface(Creatable<NetworkInterface> creatable) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withNewUnmanagedDataDisk(Integer sizeInGB) VirtualMachine.UpdateStages.WithBootDiagnostics.withoutBootDiagnostics() VirtualMachine.UpdateStages.WithManagedDataDisk.withoutDataDisk(int lun) VirtualMachine.UpdateStages.WithExtension.withoutExtension(String name) VirtualMachine.UpdateStages.WithSecondaryNetworkInterface.withoutSecondaryNetworkInterface(String name) Resource.UpdateWithTags<T>.withoutTag(String key) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withoutUnmanagedDataDisk(String name) VirtualMachine.UpdateStages.WithUnmanagedDataDisk.withoutUnmanagedDataDisk(int lun) Resource.UpdateWithTags<T>.withTag(String key, String value) Resource.UpdateWithTags<T>.withTags(Map<String, String> tags)

Method Details

withDataDiskDefaultCachingType

public Update withDataDiskDefaultCachingType(CachingTypes cachingType)

Specifies the default caching type for the managed data disks.

Parameters:

cachingType - a caching type

Returns:

the next stage of the update

withDataDiskDefaultStorageAccountType

public Update withDataDiskDefaultStorageAccountType(StorageAccountTypes storageAccountType)

Specifies a storage account type.

Parameters:

storageAccountType - a storage account type

Returns:

the next stage of the update

withOSDiskCaching

public Update withOSDiskCaching(CachingTypes cachingType)

Specifies the caching type for the OS disk.

Parameters:

cachingType - a caching type.

Returns:

the next stage of the update

withOSDiskEncryptionSettings

public Update withOSDiskEncryptionSettings(DiskEncryptionSettings settings)

Specifies the encryption settings for the OS Disk.

Parameters:

settings - the encryption settings.

Returns:

the stage representing creatable VM update

withOSDiskSizeInGB

public Update withOSDiskSizeInGB(int size)

Specifies the size of the OS disk in GB.

Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API.

Parameters:

size - a disk size.

Returns:

the next stage of the update

withOSDiskSizeInGB

public Update withOSDiskSizeInGB(Integer size)

Specifies the size of the OS disk in GB.

Only unmanaged disks may be resized as part of a VM update. Managed disks must be resized separately, using managed disk API.

Parameters:

size - a disk size.

Returns:

the next stage of the update

withSize

public Update withSize(String sizeName)

Specifies a new size for the virtual machine.

Parameters:

sizeName - the name of a size for the virtual machine as text

Returns:

the next stage of the update

withSize

public Update withSize(VirtualMachineSizeTypes size)

Specifies a new size for the virtual machine.

Parameters:

size - a size from the list of available sizes for the virtual machine

Returns:

the next stage of the definition

Applies to