Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.hdinsight.applications

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_statusselectresource_group_name, cluster_name, application_name, operation_id, subscription_idGets the async operation status.
getselectresource_group_name, cluster_name, application_name, subscription_idGets properties of the specified application.
list_by_clusterselectresource_group_name, cluster_name, subscription_idLists all of the applications for the HDInsight cluster.
createinsertresource_group_name, cluster_name, application_name, subscription_idCreates applications for the HDInsight cluster.
deletedeleteresource_group_name, cluster_name, application_name, subscription_idDeletes the specified application on the HDInsight cluster.

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
application_namestringThe constant value for the application name. Required.
cluster_namestringThe name of the cluster. Required.
operation_idstringThe long running operation id. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the async operation status.

SELECT
error,
status
FROM azure.hdinsight.applications
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND application_name = '{{ application_name }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates applications for the HDInsight cluster.

INSERT INTO azure.hdinsight.applications (
properties,
etag,
tags,
resource_group_name,
cluster_name,
application_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ etag }}',
'{{ tags }}',
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ application_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
tags,
type
;

DELETE examples

Deletes the specified application on the HDInsight cluster.

DELETE FROM azure.hdinsight.applications
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;