你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VirtualMachineScaleSet.DefinitionStages.WithManagedDataDisk Interface
public interface WithManagedDataDisk
The stage of a virtual machine scale set definition allowing to specify managed data disks.
Method Summary
Modifier and Type |
Method and Description |
VirtualMachineScaleSet.DefinitionStages.WithManagedCreate
|
withNewDataDisk(int sizeInGB)
Specifies that a managed disk needs to be created implicitly with the given size.
|
VirtualMachineScaleSet.DefinitionStages.WithManagedCreate
|
withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType)
Specifies that a managed disk needs to be created implicitly with the given settings.
|
VirtualMachineScaleSet.DefinitionStages.WithManagedCreate
|
withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType, StorageAccountTypes storageAccountType)
Specifies that a managed disk needs to be created implicitly with the given settings.
|
VirtualMachineScaleSet.DefinitionStages.WithManagedCreate
|
withNewDataDiskFromImage(int imageLun)
Specifies the data disk to be created from the data disk image in the virtual machine image.
|
VirtualMachineScaleSet.DefinitionStages.WithManagedCreate
|
withNewDataDiskFromImage(int imageLun, int newSizeInGB, CachingTypes cachingType)
Specifies the data disk to be created from the data disk image in the virtual machine image.
|
VirtualMachineScaleSet.DefinitionStages.WithManagedCreate
|
withNewDataDiskFromImage(int imageLun, int newSizeInGB, CachingTypes cachingType, StorageAccountTypes storageAccountType)
Specifies the data disk to be created from the data disk image in the virtual machine image.
|
Method Details
withNewDataDisk
public WithManagedCreate withNewDataDisk(int sizeInGB)
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 virtual machine definition
withNewDataDisk
public WithManagedCreate withNewDataDisk(int sizeInGB, int lun, CachingTypes cachingType)
Specifies that a managed disk needs to be created implicitly with the given settings.
Parameters:
sizeInGB
- the size of the managed disk
lun
- the disk LUN
cachingType
- the caching type
Returns:
the next stage of virtual machine definition
withNewDataDisk
public WithManagedCreate 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 disk
lun
- the disk LUN
cachingType
- the caching type
storageAccountType
- the storage account type
Returns:
the next stage of virtual machine definition
withNewDataDiskFromImage
public WithManagedCreate withNewDataDiskFromImage(int imageLun)
Specifies the data disk to be created from the data disk image in the virtual machine image.
Parameters:
imageLun
- the LUN of the source data disk image
Returns:
the next stage of virtual machine definition
withNewDataDiskFromImage
public WithManagedCreate withNewDataDiskFromImage(int imageLun, int newSizeInGB, CachingTypes cachingType)
Specifies the data disk to be created from the data disk image in the virtual machine image.
Parameters:
imageLun
- the LUN of the source data disk image
newSizeInGB
- the new size that overrides the default size specified in the data disk image
cachingType
- the caching type
Returns:
the next stage of virtual machine definition
withNewDataDiskFromImage
public WithManagedCreate withNewDataDiskFromImage(int imageLun, int newSizeInGB, CachingTypes cachingType, StorageAccountTypes storageAccountType)
Specifies the data disk to be created from the data disk image in the virtual machine image.
Parameters:
imageLun
- the LUN of the source data disk image
newSizeInGB
- the new size that overrides the default size specified in the data disk image
cachingType
- the caching type
storageAccountType
- the storage account type
Returns:
the next stage of virtual machine definition
Applies to