StorageAccountOperationsExtensions.GetKeysAsync Method (IStorageAccountOperations, String)

 

Asynchronously retrieves the primary and secondary access keys for a storage account.

Namespace:   Microsoft.WindowsAzure.Management.Storage
Assembly:  Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)

<ExtensionAttribute>
Public Shared Function GetKeysAsync (
	operations As IStorageAccountOperations,
	accountName As String
) As Task(Of StorageAccountGetKeysResponse)

Parameters

operations
Type: Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations

The IStorageAccountOperations object that specifies the storage account operations.

serviceName

The name of the storage account for which keys should be retrieved.

Return Value

Type: System.Threading.Tasks.Task(Of StorageAccountGetKeysResponse)

The StorageAccountGetKeysResponse object that contains the primary and secondary access keys for the storage account.

For more information about retrieving access keys, see the following resources:

Return to top
Show: