Interface VirtualMachine.Update
- All Superinterfaces:
Appliable<VirtualMachine>,Indexable,Resource.UpdateWithTags<VirtualMachine.Update>,VirtualMachine.UpdateStages.WithAdditionalCapacities,VirtualMachine.UpdateStages.WithBillingProfile,VirtualMachine.UpdateStages.WithBootDiagnostics,VirtualMachine.UpdateStages.WithCapacityReservation,VirtualMachine.UpdateStages.WithDeleteOptions,VirtualMachine.UpdateStages.WithExtension,VirtualMachine.UpdateStages.WithLicenseType,VirtualMachine.UpdateStages.WithManagedDataDisk,VirtualMachine.UpdateStages.WithOSDisk,VirtualMachine.UpdateStages.WithProximityPlacementGroup,VirtualMachine.UpdateStages.WithSecondaryNetworkInterface,VirtualMachine.UpdateStages.WithSecurityFeatures,VirtualMachine.UpdateStages.WithSecurityProfile,VirtualMachine.UpdateStages.WithSystemAssignedManagedServiceIdentity,VirtualMachine.UpdateStages.WithUnmanagedDataDisk,VirtualMachine.UpdateStages.WithUserAssignedManagedServiceIdentity,VirtualMachine.UpdateStages.WithUserData
- All Known Subinterfaces:
VirtualMachine.UpdateStages.WithSystemAssignedIdentityBasedAccessOrUpdate
- Enclosing interface:
VirtualMachine
public static interface VirtualMachine.Update
extends Appliable<VirtualMachine>, Resource.UpdateWithTags<VirtualMachine.Update>, VirtualMachine.UpdateStages.WithProximityPlacementGroup, VirtualMachine.UpdateStages.WithUnmanagedDataDisk, VirtualMachine.UpdateStages.WithManagedDataDisk, VirtualMachine.UpdateStages.WithSecondaryNetworkInterface, VirtualMachine.UpdateStages.WithExtension, VirtualMachine.UpdateStages.WithBootDiagnostics, VirtualMachine.UpdateStages.WithBillingProfile, VirtualMachine.UpdateStages.WithSystemAssignedManagedServiceIdentity, VirtualMachine.UpdateStages.WithUserAssignedManagedServiceIdentity, VirtualMachine.UpdateStages.WithLicenseType, VirtualMachine.UpdateStages.WithAdditionalCapacities, VirtualMachine.UpdateStages.WithOSDisk, VirtualMachine.UpdateStages.WithSecurityFeatures, VirtualMachine.UpdateStages.WithDeleteOptions, VirtualMachine.UpdateStages.WithSecurityProfile, VirtualMachine.UpdateStages.WithUserData, VirtualMachine.UpdateStages.WithCapacityReservation
The template for an update operation, containing all the settings that can be modified.
-
Method Summary
Modifier and TypeMethodDescriptionwithDataDiskDefaultCachingType(CachingTypes cachingType) Specifies the default caching type for the managed data disks.withDataDiskDefaultDeleteOptions(DeleteOptions deleteOptions) Specifies the delete options for managed data disks.withDataDiskDefaultDiskEncryptionSet(String diskEncryptionSetId) Specifies the disk encryption set for the managed data disk.withDataDiskDefaultStorageAccountType(StorageAccountTypes storageAccountType) Specifies a storage account type.withDataDiskDefaultWriteAcceleratorEnabled(boolean writeAcceleratorEnabled) Specifies the write accelerator for managed data disks.withOSDiskCaching(CachingTypes cachingType) Specifies the caching type for the OS disk.Specifies the encryption settings for the OS Disk.withOSDiskSizeInGB(int size) Specifies the size of the OS disk in GB.withOSDiskWriteAcceleratorEnabled(boolean writeAcceleratorEnabled) Specifies the write accelerator for the OS disks.withPriority(VirtualMachinePriorityTypes priority) Specifies a new priority for the virtual machine.Specifies a new size for the virtual machine.Specifies a new size for the virtual machine.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Appliable
apply, apply, applyAsync, applyAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource.UpdateWithTags
withoutTag, withTag, withTagsMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithAdditionalCapacities
disableHibernation, disableUltraSsd, enableHibernation, enableUltraSsdMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithBillingProfile
withMaxPriceMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithBootDiagnostics
withBootDiagnostics, withBootDiagnostics, withBootDiagnostics, withBootDiagnostics, withBootDiagnosticsOnManagedStorageAccount, withoutBootDiagnosticsMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithCapacityReservation
withCapacityReservationGroupMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithDeleteOptions
withDataDisksDeleteOptions, withDataDisksDeleteOptions, withNetworkInterfacesDeleteOptions, withNetworkInterfacesDeleteOptions, withOsDiskDeleteOptions, withPrimaryNetworkInterfaceDeleteOptionsMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithExtension
defineNewExtension, updateExtension, withoutExtensionMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithLicenseType
withLicenseTypeMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithManagedDataDisk
withExistingDataDisk, withExistingDataDisk, withExistingDataDisk, withExistingDataDisk, withNewDataDisk, withNewDataDisk, withNewDataDisk, withNewDataDisk, withNewDataDisk, withNewDataDisk, withoutDataDiskMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithOSDisk
withOSDisk, withOSDiskMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithProximityPlacementGroup
withoutProximityPlacementGroup, withProximityPlacementGroupMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithSecondaryNetworkInterface
withExistingSecondaryNetworkInterface, withNewSecondaryNetworkInterface, withNewSecondaryNetworkInterface, withoutSecondaryNetworkInterfaceMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithSecurityFeatures
withoutSecureBoot, withoutVTpm, withSecureBoot, withVTpmMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithSecurityProfile
withEncryptionAtHost, withoutEncryptionAtHostMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithSystemAssignedManagedServiceIdentity
withoutSystemAssignedManagedServiceIdentity, withSystemAssignedManagedServiceIdentityMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithUnmanagedDataDisk
defineUnmanagedDataDisk, updateUnmanagedDataDisk, withExistingUnmanagedDataDisk, withNewUnmanagedDataDisk, withoutUnmanagedDataDisk, withoutUnmanagedDataDiskMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithUserAssignedManagedServiceIdentity
withExistingUserAssignedManagedServiceIdentity, withNewUserAssignedManagedServiceIdentity, withoutUserAssignedManagedServiceIdentityMethods inherited from interface com.azure.resourcemanager.compute.models.VirtualMachine.UpdateStages.WithUserData
withUserData
-
Method Details
-
withOSDiskEncryptionSettings
Specifies the encryption settings for the OS Disk.- Parameters:
settings- the encryption settings.- Returns:
- the stage representing creatable VM update
-
withOSDiskWriteAcceleratorEnabled
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 update
-
withDataDiskDefaultCachingType
Specifies the default caching type for the managed data disks.- Parameters:
cachingType- a caching type- Returns:
- the next stage of the update
-
withDataDiskDefaultStorageAccountType
Specifies a storage account type.- Parameters:
storageAccountType- a storage account type- Returns:
- the next stage of the update
-
withDataDiskDefaultDeleteOptions
Specifies the delete options for managed data disks.- Parameters:
deleteOptions- the delete options for managed data disks- Returns:
- the next stage of the definition
-
withDataDiskDefaultWriteAcceleratorEnabled
Specifies the write accelerator for managed data disks.- Parameters:
writeAcceleratorEnabled- whether to enable the write accelerator- Returns:
- the next stage of the definition
-
withDataDiskDefaultDiskEncryptionSet
Specifies the disk encryption set for the managed data disk.- Parameters:
diskEncryptionSetId- the ID of disk encryption set.- Returns:
- the next stage of the definition
-
withOSDiskCaching
Specifies the caching type for the OS disk.- Parameters:
cachingType- a caching type.- Returns:
- the next stage of the update
-
withOSDiskSizeInGB
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
Specifies a new size for the virtual machine.See
VirtualMachine.availableSizes()for resizing.- Parameters:
sizeName- the name of a size for the virtual machine as text- Returns:
- the next stage of the update
-
withSize
Specifies a new size for the virtual machine.VirtualMachineSizeTypesis not the complete list of virtual machine sizes. SeeVirtualMachine.availableSizes()for resizing.- Parameters:
size- a size from the list of available sizes for the virtual machine- Returns:
- the next stage of the definition
-
withPriority
Specifies a new priority for the virtual machine.- Parameters:
priority- a priority from the list of available priority types- Returns:
- the next stage of the update
-