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

NameDatatypeDescription
idtextThe resource identifier.
nametextThe resource name.
accountNametextfield from the properties object
resourceGroupNametextfield from the properties object
storageAccountNametextfield from the properties object
subscriptionIdtextfield from the properties object
suffixtextfield from the properties object
typetextThe resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, storageAccountName, subscriptionIdGets the specified Azure Storage account linked to the given Data Lake Analytics account.
list_by_accountSELECTaccountName, resourceGroupName, subscriptionIdGets 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.
deleteDELETEaccountName, resourceGroupName, storageAccountName, subscriptionIdUpdates the specified Data Lake Analytics account to remove an Azure Storage account.
updateUPDATEaccountName, resourceGroupName, storageAccountName, subscriptionIdUpdates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.
addEXECaccountName, resourceGroupName, storageAccountName, subscriptionId, data__propertiesUpdates the specified Data Lake Analytics account to add an Azure Storage account.

SELECT examples

Gets 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.

SELECT
id,
name,
accountName,
resourceGroupName,
storageAccountName,
subscriptionId,
suffix,
type
FROM azure.data_lake_analytics.vw_storage_accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

UPDATE example

Updates a storage_accounts resource.

/*+ update */
UPDATE azure.data_lake_analytics.storage_accounts
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageAccountName = '{{ storageAccountName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified storage_accounts resource.

/*+ delete */
DELETE FROM azure.data_lake_analytics.storage_accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND storageAccountName = '{{ storageAccountName }}'
AND subscriptionId = '{{ subscriptionId }}';