次の方法で共有


StorageAccountsOperationsExtensions.CreateAsync メソッド

定義

指定したパラメーターを使用して、新しいストレージ アカウントを非同期に作成します。 アカウントが既に作成されていて、以降の作成要求が異なるプロパティで発行された場合、アカウントのプロパティが更新されます。 アカウントが既に作成されていて、後続の作成または更新要求がまったく同じプロパティ セットで発行された場合、要求は成功します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Models.StorageAccount> CreateAsync (this Microsoft.Azure.Management.Storage.IStorageAccountsOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.Storage.Models.StorageAccountCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Storage.IStorageAccountsOperations * string * string * Microsoft.Azure.Management.Storage.Models.StorageAccountCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Models.StorageAccount>
<Extension()>
Public Function CreateAsync (operations As IStorageAccountsOperations, resourceGroupName As String, accountName As String, parameters As StorageAccountCreateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StorageAccount)

パラメーター

operations
IStorageAccountsOperations

この拡張メソッドの操作グループ。

resourceGroupName
String

ユーザーのサブスクリプション内のリソース グループの名前。 名前の大文字と小文字は区別されます。

accountName
String

指定したリソース グループ内のストレージ アカウントの名前。 ストレージ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。

parameters
StorageAccountCreateParameters

作成されたアカウントに提供するパラメーター。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象