共用方式為


IWithStorageAccount.WithExistingStorageAccount(IStorageAccount) Method

Definition

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.

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate WithExistingStorageAccount (Microsoft.Azure.Management.Storage.Fluent.IStorageAccount storageAccount);
abstract member WithExistingStorageAccount : Microsoft.Azure.Management.Storage.Fluent.IStorageAccount -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate
Public Function WithExistingStorageAccount (storageAccount As IStorageAccount) As IWithCreate

Parameters

storageAccount
IStorageAccount

An existing storage account.

Returns

Applies to