VirtualMachineUnmanagedDataDisk.UpdateDefinitionStages.WithDiskSource<ParentT> Interface
Type Parameters
- ParentT
the stage of the parent update to return to after attaching this definition
public interface WithDiskSource
The stage of the data disk definition allowing to choose the source.
Method Summary
Modifier and Type | Method and Description |
---|---|
Virtual |
withExistingVhd(String storageAccountName, String containerName, String vhdName)
Specifies the existing source VHD of the disk. |
Virtual |
withNewVhd(int sizeInGB)
specifies that disk needs to be created with a new VHD of given size. |
Method Details
withExistingVhd
public WithVhdAttachedDiskSettings
Specifies the existing source VHD of the disk.
Parameters:
storageAccountName
- the storage account name
containerName
- the name of the container holding VHD file
vhdName
- the name of the VHD file to attach
Returns:
the next stage of data disk definition
withNewVhd
public WithNewVhdDiskSettings
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
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java