Skip to main content

compute_policies

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

Overview

Namecompute_policies
TypeResource
Idazure.datalake_analytics.compute_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe resource identifier.
namestringThe resource name.
maxDegreeOfParallelismPerJobintegerThe maximum degree of parallelism per job this user can use to submit jobs.
minPriorityPerJobintegerThe minimum priority per job this user can use to submit jobs.
objectIdstringThe AAD object identifier for the entity to create a policy for.
objectTypestringThe type of AAD object the object identifier refers to. Known values are: "User", "Group", and "ServicePrincipal".
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, compute_policy_name, subscription_idGets the specified Data Lake Analytics compute policy.
list_by_accountselectresource_group_name, account_name, subscription_idLists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account supports, at most, 50 policies.
create_or_updateinsertresource_group_name, account_name, compute_policy_name, subscription_id, propertiesCreates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies.
updateupdateresource_group_name, account_name, compute_policy_name, subscription_idUpdates the specified compute policy.
create_or_updatereplaceresource_group_name, account_name, compute_policy_name, subscription_id, propertiesCreates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies.
deletedeleteresource_group_name, account_name, compute_policy_name, subscription_idDeletes the specified compute policy from the specified Data Lake Analytics 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
account_namestringThe name of the Data Lake Analytics account. Required.
compute_policy_namestringThe name of the compute policy to delete. Required.
resource_group_namestringThe name of the Azure resource group. Required.
subscription_idstring

SELECT examples

Gets the specified Data Lake Analytics compute policy.

SELECT
id,
name,
maxDegreeOfParallelismPerJob,
minPriorityPerJob,
objectId,
objectType,
type
FROM azure.datalake_analytics.compute_policies
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND compute_policy_name = '{{ compute_policy_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies.

INSERT INTO azure.datalake_analytics.compute_policies (
properties,
resource_group_name,
account_name,
compute_policy_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ compute_policy_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;

UPDATE examples

Updates the specified compute policy.

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

REPLACE examples

Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies.

REPLACE azure.datalake_analytics.compute_policies
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND compute_policy_name = '{{ compute_policy_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
type;

DELETE examples

Deletes the specified compute policy from the specified Data Lake Analytics account.

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