Interface VirtualMachine.UpdateStages.WithUnmanagedDataDisk
-
- All Known Subinterfaces:
VirtualMachine.Update,VirtualMachine.UpdateStages.WithSystemAssignedIdentityBasedAccessOrUpdate
- Enclosing interface:
- VirtualMachine.UpdateStages
public static interface VirtualMachine.UpdateStages.WithUnmanagedDataDiskThe stage of a virtual machine definition allowing to specify unmanaged data disk configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachineUnmanagedDataDisk.UpdateDefinitionStages.Blank<VirtualMachine.Update>defineUnmanagedDataDisk(String name)Begins the definition of a blank unmanaged data disk to be attached to the virtual machine along with its configuration.VirtualMachineUnmanagedDataDisk.UpdateupdateUnmanagedDataDisk(String name)Begins the description of an update of an existing unmanaged data disk of this virtual machine.VirtualMachine.UpdatewithExistingUnmanagedDataDisk(String storageAccountName, String containerName, String vhdName)Specifies an existing VHD that needs to be attached to the virtual machine as data disk.VirtualMachine.UpdatewithNewUnmanagedDataDisk(Integer sizeInGB)Specifies that a new blank unmanaged data disk needs to be attached to virtual machine.VirtualMachine.UpdatewithoutUnmanagedDataDisk(int lun)Detaches a unmanaged data disk from the virtual machine.VirtualMachine.UpdatewithoutUnmanagedDataDisk(String name)Detaches an unmanaged data disk from the virtual machine.
-
-
-
Method Detail
-
withNewUnmanagedDataDisk
VirtualMachine.Update withNewUnmanagedDataDisk(Integer sizeInGB)
Specifies that a new blank unmanaged data disk needs to be attached to virtual machine.- Parameters:
sizeInGB- the disk size in GB- Returns:
- the stage representing creatable VM definition
-
withExistingUnmanagedDataDisk
VirtualMachine.Update withExistingUnmanagedDataDisk(String storageAccountName, String containerName, String vhdName)
Specifies an existing VHD that needs to be attached to the virtual machine as data disk.- Parameters:
storageAccountName- the storage account namecontainerName- the name of the container holding the VHD filevhdName- the name for the VHD file- Returns:
- the stage representing creatable VM definition
-
defineUnmanagedDataDisk
VirtualMachineUnmanagedDataDisk.UpdateDefinitionStages.Blank<VirtualMachine.Update> defineUnmanagedDataDisk(String name)
Begins the definition of a blank unmanaged data disk to be attached to the virtual machine along with its configuration.- Parameters:
name- the name for the data disk- Returns:
- the first stage of the data disk definition
-
updateUnmanagedDataDisk
VirtualMachineUnmanagedDataDisk.Update updateUnmanagedDataDisk(String name)
Begins the description of an update of an existing unmanaged data disk of this virtual machine.- Parameters:
name- the name of an existing disk- Returns:
- the first stage of the data disk update
-
withoutUnmanagedDataDisk
VirtualMachine.Update withoutUnmanagedDataDisk(String name)
Detaches an unmanaged data disk from the virtual machine.- Parameters:
name- the name of an existing data disk to remove- Returns:
- the next stage of the update
-
withoutUnmanagedDataDisk
VirtualMachine.Update withoutUnmanagedDataDisk(int lun)
Detaches a unmanaged data disk from the virtual machine.- Parameters:
lun- the logical unit number of the data disk to remove- Returns:
- the next stage of the update
-
-