Skip to main content

storage_accounts

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

Overview

Namestorage_accounts
TypeResource
Idazure.data_lake_analytics.storage_accounts

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the specified Azure Storage account information.

NameDatatypeDescription
idstringThe resource identifier.
namestringThe resource name.
propertiesobjectThe Azure Storage account properties.
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, storageAccountNameGets the specified Azure Storage account linked to the given Data Lake Analytics account.
list_by_accountselectsubscriptionId, resourceGroupName, accountName$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.
updateupdatesubscriptionId, resourceGroupName, accountName, storageAccountNameUpdates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
deletedeletesubscriptionId, resourceGroupName, accountName, storageAccountNameUpdates the specified Data Lake Analytics account to remove an Azure Storage account.
addexecsubscriptionId, resourceGroupName, accountName, storageAccountName, propertiesUpdates the specified Data Lake Analytics account to add an Azure 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 Data Lake Analytics account.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
storageAccountNamestringThe name of the Azure Storage account to add
subscriptionIdstringThe ID of the target subscription.
$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.
$filterstringThe OData filter. Optional.
$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.
$selectstringOData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional.
$skipinteger (int32)The number of items to skip over before returning elements. Optional.
$topinteger (int32)The number of items to return. Optional.

SELECT examples

Gets the specified Azure Storage account linked to the given Data Lake Analytics account.

SELECT
id,
name,
properties,
type
FROM azure.data_lake_analytics.storage_accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND storageAccountName = '{{ storageAccountName }}' -- 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.data_lake_analytics.storage_accounts
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND storageAccountName = '{{ storageAccountName }}' --required;

DELETE examples

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

DELETE FROM azure.data_lake_analytics.storage_accounts
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND storageAccountName = '{{ storageAccountName }}' --required
;

Lifecycle Methods

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

EXEC azure.data_lake_analytics.storage_accounts.add 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required,
@storageAccountName='{{ storageAccountName }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;