VirtualMachine.DefinitionStages.WithStorageAccount Interface
public interface WithStorageAccount
The stage of a virtual machine definition allowing to specify a storage account.
Method Summary
Modifier and Type | Method and Description |
---|---|
Virtual |
withExistingStorageAccount(StorageAccount storageAccount)
Specifies an existing storage account to put the VM's OS and data disk VHD in. An OS disk based on a marketplace or a user image (generalized image) will be stored in this storage account. |
Virtual |
withNewStorageAccount(Creatable<StorageAccount> creatable)
Specifies the definition of a not-yet-created storage account to put the VM's OS and data disk VHDs into. Only the OS disk based on a marketplace image will be stored in the new storage account. An OS disk based on a user image will be stored in the same storage account as the user image. |
Virtual |
withNewStorageAccount(String name)
Specifies the name of a new storage account to put the VM's OS and data disk VHD into. Only an OS disk based on a marketplace image will be stored in the new storage account. An OS disk based on a user image will be stored in the same storage account as the user image. |
Method Details
withExistingStorageAccount
public WithCreate withExistingStorageAccount(StorageAccount storageAccount)
Specifies an existing storage account to put the VM's OS and data disk VHD in.
An OS disk based on a marketplace or a user image (generalized image) will be stored in this storage account.
Parameters:
Returns:
withNewStorageAccount
public WithCreate withNewStorageAccount(Creatable
Specifies the definition of a not-yet-created storage account to put the VM's OS and data disk VHDs into.
Only the OS disk based on a marketplace image will be stored in the new storage account. An OS disk based on a user image will be stored in the same storage account as the user image.
Parameters:
Returns:
withNewStorageAccount
public WithCreate withNewStorageAccount(String name)
Specifies the name of a new storage account to put the VM's OS and data disk VHD into.
Only an OS disk based on a marketplace image will be stored in the new storage account. An OS disk based on a user image will be stored in the same storage account as the user image.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for