Share via


StorageAccountsOperationsExtensions.UpdateAsync 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 static System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Models.StorageAccount> UpdateAsync (this Microsoft.Azure.Management.Storage.IStorageAccountsOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.Storage.Models.StorageAccountUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.Management.Storage.IStorageAccountsOperations * string * string * Microsoft.Azure.Management.Storage.Models.StorageAccountUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Storage.Models.StorageAccount>
<Extension()>
Public Function UpdateAsync (operations As IStorageAccountsOperations, resourceGroupName As String, accountName As String, parameters As StorageAccountUpdateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StorageAccount)

Parameters

operations
IStorageAccountsOperations

The operations group for this extension method.

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.

Returns

Applies to