Skip to main content

storage_accounts

Creates, updates, deletes, gets or lists a storage_accounts resource.

Overview

Namestorage_accounts
TypeResource
Idazure.datalake_analytics.storage_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
accessTokenstringThe access token for the associated Azure Storage Container.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_sas_tokensselectresource_group_name, account_name, storage_account_name, container_name, subscription_idGets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.
getselectresource_group_name, account_name, storage_account_name, subscription_idGets the specified Azure Storage account linked to the given Data Lake Analytics account.
list_by_accountselectresource_group_name, account_name, subscription_id$filter, $top, $skip, $select, $orderby, $countGets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.
updateupdateresource_group_name, account_name, storage_account_name, subscription_idUpdates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
deletedeleteresource_group_name, account_name, storage_account_name, subscription_idUpdates the specified Data Lake Analytics account to remove an Azure Storage account.
addexecresource_group_name, account_name, storage_account_name, subscription_id, propertiesUpdates the specified Data Lake Analytics account to add an Azure Storage account.
list_storage_containersexecresource_group_name, account_name, storage_account_name, subscription_idLists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.
get_storage_containerexecresource_group_name, account_name, storage_account_name, container_name, subscription_idGets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.

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
account_namestringThe name of the Data Lake Analytics account. Required.
container_namestringThe name of the Azure storage container to retrieve. Required.
resource_group_namestringThe name of the Azure resource group. Required.
storage_account_namestringThe name of the Azure storage account from which to retrieve the blob container. Required.
subscription_idstring
$countbooleanThe Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. Default value is None.
$filterstringThe OData filter. Optional. Default value is None.
$orderbystringOrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. Default value is None.
$selectstringOData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. Default value is None.
$skipintegerThe number of items to skip over before returning elements. Optional. Default value is None.
$topintegerThe number of items to return. Optional. Default value is None.

SELECT examples

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

SELECT
accessToken
FROM azure.datalake_analytics.storage_accounts
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND storage_account_name = '{{ storage_account_name }}' -- required
AND container_name = '{{ container_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.

UPDATE azure.datalake_analytics.storage_accounts
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND storage_account_name = '{{ storage_account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required;

DELETE examples

Updates the specified Data Lake Analytics account to remove an Azure Storage account.

DELETE FROM azure.datalake_analytics.storage_accounts
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND storage_account_name = '{{ storage_account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Updates the specified Data Lake Analytics account to add an Azure Storage account.

EXEC azure.datalake_analytics.storage_accounts.add 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@storage_account_name='{{ storage_account_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;