Interface VirtualMachineUnmanagedDataDisk.DefinitionStages.WithDiskSource<ParentT>
-
- Type Parameters:
ParentT- the stage of the parent definition to return to after attaching this definition
- All Known Subinterfaces:
VirtualMachineUnmanagedDataDisk.DefinitionStages.Blank<ParentT>,VirtualMachineUnmanagedDataDisk.DefinitionWithExistingVhd<ParentT>,VirtualMachineUnmanagedDataDisk.DefinitionWithImage<ParentT>,VirtualMachineUnmanagedDataDisk.DefinitionWithNewVhd<ParentT>
- Enclosing interface:
- VirtualMachineUnmanagedDataDisk.DefinitionStages
public static interface VirtualMachineUnmanagedDataDisk.DefinitionStages.WithDiskSource<ParentT>The stage of the data disk definition allowing to choose the source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VirtualMachineUnmanagedDataDisk.DefinitionStages.WithFromImageDiskSettings<ParentT>fromImage(int imageLun)Specifies the image LUN identifier of the source disk image.VirtualMachineUnmanagedDataDisk.DefinitionStages.WithVhdAttachedDiskSettings<ParentT>withExistingVhd(String storageAccountName, String containerName, String vhdName)Specifies the existing source VHD of the disk.VirtualMachineUnmanagedDataDisk.DefinitionStages.WithNewVhdDiskSettings<ParentT>withNewVhd(int sizeInGB)specifies that disk needs to be created with a new VHD of given size.
-
-
-
Method Detail
-
withExistingVhd
VirtualMachineUnmanagedDataDisk.DefinitionStages.WithVhdAttachedDiskSettings<ParentT> withExistingVhd(String storageAccountName, String containerName, String vhdName)
Specifies the existing source VHD of the disk.- Parameters:
storageAccountName- the storage account namecontainerName- the name of the container holding VHD filevhdName- the name of the VHD file to attach- Returns:
- the next stage of data disk definition
-
withNewVhd
VirtualMachineUnmanagedDataDisk.DefinitionStages.WithNewVhdDiskSettings<ParentT> withNewVhd(int sizeInGB)
specifies that disk needs to be created with a new VHD of given size.- Parameters:
sizeInGB- the initial disk size in GB- Returns:
- the next stage of data disk definition
-
fromImage
VirtualMachineUnmanagedDataDisk.DefinitionStages.WithFromImageDiskSettings<ParentT> fromImage(int imageLun)
Specifies the image LUN identifier of the source disk image.- Parameters:
imageLun- the LUN- Returns:
- the next stage of data disk definition
-
-