Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.datalake_analytics.accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
messagestringThe message describing why the Data Lake Analytics account name is not available, if nameAvailable is false.
nameAvailablebooleanThe Boolean value of true or false to indicate whether the Data Lake Analytics account name is available or not.
reasonstringThe reason why the Data Lake Analytics account name is not available, if nameAvailable is false.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_name_availabilityselectlocation, subscription_idChecks whether the specified account name is available or taken.
getselectresource_group_name, account_name, subscription_idGets details of the specified Data Lake Analytics account.
list_by_resource_groupselectresource_group_name, subscription_id$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.
listselectsubscription_id$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.
createinsertresource_group_name, account_name, subscription_id, location, propertiesCreates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads.
updateupdateresource_group_name, account_name, subscription_idUpdates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
deletedeleteresource_group_name, account_name, subscription_idBegins the delete process for the Data Lake Analytics account object specified by the account name.

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.
locationstringThe resource location without whitespace. Required.
resource_group_namestringThe name of the Azure resource group. 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.
$filterstringOData 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

Checks whether the specified account name is available or taken.

SELECT
message,
nameAvailable,
reason
FROM azure.datalake_analytics.accounts
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- 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.datalake_analytics.accounts (
location,
tags,
properties,
resource_group_name,
account_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

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

UPDATE azure.datalake_analytics.accounts
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

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

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