/// <summary> /// Regenerates the access keys for the specified storage account. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Storage.IStorageAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group within the user’s /// subscription. /// </param> /// <param name='accountName'> /// Required. 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='regenerateKey'> /// Required. Specifies name of the key which should be regenerated. /// </param> /// <returns> /// The RegenerateKey operation response. /// </returns> public static Task <StorageAccountRegenerateKeyResponse> RegenerateKeyAsync(this IStorageAccountOperations operations, string resourceGroupName, string accountName, KeyName regenerateKey) { return(operations.RegenerateKeyAsync(resourceGroupName, accountName, regenerateKey, CancellationToken.None)); }