StorageAccountsOperations.UpdateAsync(String, String, StorageAccountUpdateParameters, CancellationToken) Method

Definition

The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.Models.StorageAccount>> UpdateAsync (string resourceGroupName, string accountName, Azure.ResourceManager.Storage.Models.StorageAccountUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : string * string * Azure.ResourceManager.Storage.Models.StorageAccountUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.Models.StorageAccount>>
override this.UpdateAsync : string * string * Azure.ResourceManager.Storage.Models.StorageAccountUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Storage.Models.StorageAccount>>
Public Overridable Function UpdateAsync (resourceGroupName As String, accountName As String, parameters As StorageAccountUpdateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StorageAccount))

Parameters

resourceGroupName
String

The name of the resource group within the user's subscription. The name is case insensitive.

accountName
String

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

parameters
StorageAccountUpdateParameters

The parameters to provide for the updated account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Task<Response<StorageAccount>>

Applies to