Ejemplo n.º 1
0
 /// <summary>
 /// Updates the account type or tags for a storage account. It can also be used
 /// to add a custom domain (note that custom domains cannot be added via the
 /// Create operation). Only one custom domain is supported per storage account.
 /// In order to replace a custom domain, the old value must be cleared before a
 /// new value may be set. To clear a custom domain, simply update the custom
 /// domain with empty string. Then call update again with the new cutsom domain
 /// name. The update API can only be used to update one of tags, accountType,
 /// or customDomain per call. To update multiple of these properties, call the
 /// API multiple times with one change per call. This call does not change the
 /// storage keys for the account. If you want to change storage account keys,
 /// use the RegenerateKey operation. The location and name of the storage
 /// account cannot be changed after creation.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='accountName'>
 /// 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.
 /// </param>
 /// <param name='parameters'>
 /// The parameters to update on the account. Note that only one property can be
 /// changed at a time using this API.
 /// </param>
 public static StorageAccount Update(this ICheckNameAvailabilityOperations operations, string resourceGroupName, string accountName, StorageAccountUpdateParameters parameters)
 {
     return(operations.UpdateAsync(resourceGroupName, accountName, parameters).GetAwaiter().GetResult());
 }