次の方法で共有


BatchAccountCollection.CreateOrUpdate メソッド

定義

指定したパラメーターを使用して、新しい Batch アカウントを作成します。 この API では既存のアカウントを更新できないため、代わりに Update Batch Account API で更新する必要があります。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}
  • 操作IdBatchAccount_Create
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string accountName, Azure.ResourceManager.Batch.Models.BatchAccountCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Batch.Models.BatchAccountCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Batch.Models.BatchAccountCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, accountName As String, content As BatchAccountCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of BatchAccountResource)

パラメーター

waitUntil
WaitUntil

Completed メソッドがサービスで実行時間の長い操作が完了するまで戻るのを待機する必要がある場合。 Started 操作を開始した後に が返される場合は 。 実行時間の長い操作の詳細については、「 Azure.Core Long-Running 操作のサンプル」を参照してください。

accountName
String

リージョン内で一意である必要がある Batch アカウントの名前。 バッチ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。 この名前は、アカウントが作成されたリージョンの Batch サービスにアクセスするために使用される DNS 名の一部として使用されます。 (例: http://accountname.region.batch.azure.com/)。

content
BatchAccountCreateOrUpdateContent

アカウント作成の追加パラメーター。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

accountName は空の文字列であり、空でないと想定されていました。

accountName または content が null です。

適用対象