Skip to main content

accounts_keys

Creates, updates, deletes, gets or lists an accounts_keys resource.

Overview

Nameaccounts_keys
TypeResource
Idazure.storage.accounts_keys

Fields

The following fields are returned by SELECT queries:

OK -- list of keys retrieved and returned successfully.

NameDatatypeDescription
keysarrayGets the list of storage account keys and their properties for the specified storage account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, accountName, subscriptionId$expandLists the access keys or Kerberos keys (if active directory enabled) for the specified storage account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
accountNamestringThe 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.
resourceGroupNamestringThe name of the resource group within the user's subscription. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringSpecifies type of the key to be listed. Possible value is kerb.

SELECT examples

Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account.

SELECT
keys
FROM azure.storage.accounts_keys
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;