Share via


IStorageAccount.RegenerateKeyAsync(String, CancellationToken) Method

Definition

Regenerates the access keys for this storage account asynchronously.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountKey>> RegenerateKeyAsync (string keyName, System.Threading.CancellationToken cancellationToken = default);
abstract member RegenerateKeyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Management.Storage.Fluent.Models.StorageAccountKey>>
Public Function RegenerateKeyAsync (keyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of StorageAccountKey))

Parameters

keyName
String

If the key name.

cancellationToken
CancellationToken

Returns

Applies to