Interface VirtualMachine.UpdateStages.WithManagedDataDisk
- All Known Subinterfaces:
VirtualMachine.Update
,VirtualMachine.UpdateStages.WithSystemAssignedIdentityBasedAccessOrUpdate
- Enclosing interface:
- VirtualMachine.UpdateStages
public static interface VirtualMachine.UpdateStages.WithManagedDataDisk
The stage of a virtual machine update allowing to specify a managed data disk.
-
Method Summary
Modifier and TypeMethodDescriptionwithExistingDataDisk
(Disk disk) Associates an existing source managed disk with the VM.withExistingDataDisk
(Disk disk, int newSizeInGB, int lun, CachingTypes cachingType) Specifies an existing source managed disk and settings.withExistingDataDisk
(Disk disk, int lun, CachingTypes cachingType) Specifies an existing source managed disk and settings.withNewDataDisk
(int sizeInGB) Specifies that a managed disk needs to be created implicitly with the given size.withNewDataDisk
(int sizeInGB, int lun, CachingTypes cachingType) Specifies that a managed disk needs to be created implicitly with the given settings.withNewDataDisk
(int sizeInGB, int lun, CachingTypes cachingType, StorageAccountTypes storageAccountType) Specifies that a managed disk needs to be created implicitly with the given settings.withNewDataDisk
(Creatable<Disk> creatable) Specifies that a managed disk needs to be created explicitly with the given definition and attached to the virtual machine as a data disk.withNewDataDisk
(Creatable<Disk> creatable, int lun, CachingTypes cachingType) Specifies that a managed disk needs to be created explicitly with the given definition and attached to the virtual machine as a data disk.withoutDataDisk
(int lun) Detaches a managed data disk with the given LUN from the virtual machine.
-
Method Details
-
withNewDataDisk
Specifies that a managed disk needs to be created explicitly with the given definition and attached to the virtual machine as a data disk.- Parameters:
creatable
- a creatable disk definition- Returns:
- the next stage of the update
-
withNewDataDisk
Specifies that a managed disk needs to be created explicitly with the given definition and attached to the virtual machine as a data disk.- Parameters:
creatable
- a creatable disk definitionlun
- the data disk LUNcachingType
- a data disk caching type- Returns:
- the next stage of the update
-
withNewDataDisk
Specifies that a managed disk needs to be created implicitly with the given size.- Parameters:
sizeInGB
- the size of the managed disk- Returns:
- the next stage of the update
-
withNewDataDisk
Specifies that a managed disk needs to be created implicitly with the given settings.- Parameters:
sizeInGB
- the size of the managed disklun
- the disk LUNcachingType
- a caching type- Returns:
- the next stage of the update
-
withNewDataDisk
VirtualMachine.Update withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType, StorageAccountTypes storageAccountType) Specifies that a managed disk needs to be created implicitly with the given settings.- Parameters:
sizeInGB
- the size of the managed disklun
- the disk LUNcachingType
- a caching typestorageAccountType
- a storage account type- Returns:
- the next stage of the update
-
withExistingDataDisk
Associates an existing source managed disk with the VM.- Parameters:
disk
- a managed disk- Returns:
- the next stage of the update
-
withExistingDataDisk
Specifies an existing source managed disk and settings.- Parameters:
disk
- the managed disklun
- the disk LUNcachingType
- a caching type- Returns:
- the next stage of the update
-
withExistingDataDisk
VirtualMachine.Update withExistingDataDisk(Disk disk, int newSizeInGB, int lun, CachingTypes cachingType) Specifies an existing source managed disk and settings.- Parameters:
disk
- a managed disknewSizeInGB
- the disk resize size in GBlun
- the disk LUNcachingType
- a caching type- Returns:
- the next stage of the update
-
withoutDataDisk
Detaches a managed data disk with the given LUN from the virtual machine.- Parameters:
lun
- the disk LUN- Returns:
- the next stage of the update
-