Interface VirtualMachine.DefinitionStages.WithStorageAccount
- All Known Subinterfaces:
VirtualMachine.DefinitionManaged, VirtualMachine.DefinitionManagedOrUnmanaged, VirtualMachine.DefinitionShared, VirtualMachine.DefinitionStages.WithCreate, VirtualMachine.DefinitionStages.WithFromImageCreateOptionsManaged, VirtualMachine.DefinitionStages.WithFromImageCreateOptionsManagedOrUnmanaged, VirtualMachine.DefinitionStages.WithFromImageCreateOptionsUnmanaged, VirtualMachine.DefinitionStages.WithLinuxCreateManaged, VirtualMachine.DefinitionStages.WithLinuxCreateManagedOrUnmanaged, VirtualMachine.DefinitionStages.WithLinuxCreateUnmanaged, VirtualMachine.DefinitionStages.WithManagedCreate, VirtualMachine.DefinitionStages.WithSecurityFeatures, VirtualMachine.DefinitionStages.WithSystemAssignedIdentityBasedAccessOrCreate, VirtualMachine.DefinitionStages.WithUnmanagedCreate, VirtualMachine.DefinitionStages.WithWindowsCreateManaged, VirtualMachine.DefinitionStages.WithWindowsCreateManagedOrUnmanaged, VirtualMachine.DefinitionStages.WithWindowsCreateUnmanaged, VirtualMachine.DefinitionUnmanaged
- Enclosing interface:
VirtualMachine.DefinitionStages
public static interface VirtualMachine.DefinitionStages.WithStorageAccount
The stage of a virtual machine definition allowing to specify a storage account.
-
Method Summary
Modifier and TypeMethodDescriptionwithExistingStorageAccount(com.azure.resourcemanager.storage.models.StorageAccount storageAccount) Specifies an existing storage account to put the VM's OS and data disk VHD in.withNewStorageAccount(com.azure.resourcemanager.resources.fluentcore.model.Creatable<com.azure.resourcemanager.storage.models.StorageAccount> creatable) Specifies the definition of a not-yet-created storage account to put the VM's OS and data disk VHDs into.withNewStorageAccount(String name) Specifies the name of a new storage account to put the VM's OS and data disk VHD into.
-
Method Details
-
withNewStorageAccount
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:
name- the name for a new storage account- Returns:
- the next stage of the definition
-
withNewStorageAccount
VirtualMachine.DefinitionStages.WithCreate withNewStorageAccount(com.azure.resourcemanager.resources.fluentcore.model.Creatable<com.azure.resourcemanager.storage.models.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.
- Parameters:
creatable- a creatable storage account definition- Returns:
- the next stage of the definition
-
withExistingStorageAccount
VirtualMachine.DefinitionStages.WithCreate withExistingStorageAccount(com.azure.resourcemanager.storage.models.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:
storageAccount- an existing storage account- Returns:
- the next stage of the definition
-