共用方式為


IWithStorageAccount.WithNewStorageAccount Method

Definition

Overloads

WithNewStorageAccount(ICreatable<IStorageAccount>)

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.

WithNewStorageAccount(String)

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.

WithNewStorageAccount(ICreatable<IStorageAccount>)

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.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate WithNewStorageAccount (Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Storage.Fluent.IStorageAccount> creatable);
abstract member WithNewStorageAccount : Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<Microsoft.Azure.Management.Storage.Fluent.IStorageAccount> -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate
Public Function WithNewStorageAccount (creatable As ICreatable(Of IStorageAccount)) As IWithCreate

Parameters

creatable
ICreatable<IStorageAccount>

A creatable storage account definition.

Returns

Applies to

WithNewStorageAccount(String)

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.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate WithNewStorageAccount (string name);
abstract member WithNewStorageAccount : string -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate
Public Function WithNewStorageAccount (name As String) As IWithCreate

Parameters

name
String

The name for a new storage account.

Returns

Applies to