Skip to main content

locations

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

Overview

Namelocations
TypeResource
Idazure.hdinsight.locations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
errorobjectThe error message associated with the cluster creation.
statusstringThe async operation state. Known values are: "InProgress", "Succeeded", and "Failed". (InProgress, Succeeded, Failed)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_azure_async_operation_statusselectlocation, operation_id, subscription_idGet the async operation status.
list_usagesselectlocation, subscription_idLists the usages for the specified location.
list_billing_specsexeclocation, subscription_idLists the billingSpecs for the specified subscription and location.
get_capabilitiesexeclocation, subscription_idGets the capabilities for the specified location.
check_name_availabilityexeclocation, subscription_idCheck the cluster name is available or not.
validate_cluster_create_requestexeclocation, subscription_idValidate the cluster create request spec is valid or not.

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
locationstringThe name of the Azure region. Required.
operation_idstringThe long running operation id. Required.
subscription_idstring

SELECT examples

Get the async operation status.

SELECT
error,
status
FROM azure.hdinsight.locations
WHERE location = '{{ location }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Lists the billingSpecs for the specified subscription and location.

EXEC azure.hdinsight.locations.list_billing_specs 
@location='{{ location }}' --required,
@subscription_id='{{ subscription_id }}' --required
;