IStorageAccountOperations.RegenerateKeysAsync Method (StorageAccountRegenerateKeysParameters, CancellationToken)
Asynchronously regenerates the primary or secondary access key for a storage account.
Assembly: Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)
Task<StorageAccountRegenerateKeysResponse> RegenerateKeysAsync( StorageAccountRegenerateKeysParameters parameters, CancellationToken cancellationToken )
Parameters
- parameters
-
Type:
Microsoft.WindowsAzure.Management.Storage.Models.StorageAccountRegenerateKeysParameters
The StorageAccountRegenerateKeysParameters object that contains the parameters that are used to regenerate a key.
- cancellationToken
-
Type:
System.Threading.CancellationToken
The cancellation token.
Return Value
Type: System.Threading.Tasks.Task<StorageAccountRegenerateKeysResponse>The StorageAccountRegenerateKeysResponse object that contains the primary and secondary access keys for a storage account.
For more information about regenerating keys, see the following resources:
Show: