Interface VirtualMachine.DefinitionStages.WithUnmanagedDataDisk
- All Known Subinterfaces:
VirtualMachine.DefinitionManagedOrUnmanaged
,VirtualMachine.DefinitionStages.WithFromImageCreateOptionsUnmanaged
,VirtualMachine.DefinitionStages.WithLinuxCreateUnmanaged
,VirtualMachine.DefinitionStages.WithUnmanagedCreate
,VirtualMachine.DefinitionStages.WithWindowsCreateUnmanaged
,VirtualMachine.DefinitionUnmanaged
- Enclosing interface:
- VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithUnmanagedDataDisk
The stage of a virtual machine definition allowing to add an unmanaged data disk.
-
Method Summary
Modifier and TypeMethodDescriptionVirtualMachineUnmanagedDataDisk.DefinitionStages.Blank<VirtualMachine.DefinitionStages.WithUnmanagedCreate>
Begins definition of an unmanaged data disk to be attached to the virtual machine.withExistingUnmanagedDataDisk
(String storageAccountName, String containerName, String vhdName) Attaches an existing unmanaged VHD as a data disk to the virtual machine.withNewUnmanagedDataDisk
(Integer sizeInGB) Attaches a new blank unmanaged data disk to the virtual machine.
-
Method Details
-
withNewUnmanagedDataDisk
Attaches a new blank unmanaged data disk to the virtual machine.- Parameters:
sizeInGB
- the disk size in GB- Returns:
- the next stage of the definition
-
withExistingUnmanagedDataDisk
VirtualMachine.DefinitionStages.WithUnmanagedCreate withExistingUnmanagedDataDisk(String storageAccountName, String containerName, String vhdName) Attaches an existing unmanaged VHD as a data disk to the virtual machine.- Parameters:
storageAccountName
- a storage account namecontainerName
- the name of the container holding the VHD filevhdName
- the name for the VHD file- Returns:
- the next stage of the definition
-
defineUnmanagedDataDisk
VirtualMachineUnmanagedDataDisk.DefinitionStages.Blank<VirtualMachine.DefinitionStages.WithUnmanagedCreate> defineUnmanagedDataDisk(String name) Begins definition of an unmanaged data disk to be attached to the virtual machine.- Parameters:
name
- the name for the data disk- Returns:
- the first stage of an unmanaged data disk definition
-