Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.data_lake_analytics.accounts

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the details of the specified account.

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectThe properties defined by Data Lake Analytics all properties are specific to each resource provider.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountNameGets details of the specified Data Lake Analytics account.
list_by_resource_groupselectsubscriptionId, resourceGroupName$filter, $top, $skip, $select, $orderby, $countGets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.
listselectsubscriptionId$filter, $top, $skip, $select, $orderby, $countGets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
createinsertsubscriptionId, resourceGroupName, accountName, data__location, data__propertiesCreates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.
updateupdatesubscriptionId, resourceGroupName, accountNameUpdates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
deletedeletesubscriptionId, resourceGroupName, accountNameBegins the delete process for the Data Lake Analytics account object specified by the account name.
check_name_availabilityexecsubscriptionId, location, name, typeChecks whether the specified account name is available or taken.

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.
locationstringThe resource location without whitespace.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
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.
$filterstringOData 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 details of the specified Data Lake Analytics account.

SELECT
id,
name,
properties,
type
FROM azure.data_lake_analytics.accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;

INSERT examples

Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.

INSERT INTO azure.data_lake_analytics.accounts (
data__location,
data__tags,
data__properties,
subscriptionId,
resourceGroupName,
accountName
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}'
RETURNING
id,
name,
properties,
type
;

UPDATE examples

Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.

UPDATE azure.data_lake_analytics.accounts
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
RETURNING
id,
name,
properties,
type;

DELETE examples

Begins the delete process for the Data Lake Analytics account object specified by the account name.

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

Lifecycle Methods

Checks whether the specified account name is available or taken.

EXEC azure.data_lake_analytics.accounts.check_name_availability 
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;