Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure.stream_analytics.clusters

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the specified cluster.

NameDatatypeDescription
etagstringThe current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
locationstringThe geo-location where the resource lives
propertiesobjectThe properties associated with a Stream Analytics cluster.
skuobjectThe SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, clusterNameGets information about the specified cluster.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all of the clusters in the given resource group.
list_by_subscriptionselectsubscriptionIdLists all of the clusters in the given subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, clusterNameIf-Match, If-None-MatchCreates a Stream Analytics Cluster or replaces an already existing cluster.
updateupdatesubscriptionId, resourceGroupName, clusterNameIf-MatchUpdates an existing cluster. This can be used to partially update (ie. update one or two properties) a cluster without affecting the rest of the cluster definition.
deletedeletesubscriptionId, resourceGroupName, clusterNameDeletes the specified 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
clusterNamestringThe name of the cluster.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
If-MatchstringThe ETag of the resource. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
If-None-MatchstringSet to '*' to allow a new resource to be created, but to prevent updating an existing record set. Other values will result in a 412 Pre-condition Failed response.

SELECT examples

Gets information about the specified cluster.

SELECT
etag,
location,
properties,
sku,
tags
FROM azure.stream_analytics.clusters
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
;

INSERT examples

Creates a Stream Analytics Cluster or replaces an already existing cluster.

INSERT INTO azure.stream_analytics.clusters (
data__tags,
data__location,
data__sku,
data__properties,
subscriptionId,
resourceGroupName,
clusterName,
If-Match,
If-None-Match
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ sku }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ clusterName }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
etag,
location,
properties,
sku,
tags
;

UPDATE examples

Updates an existing cluster. This can be used to partially update (ie. update one or two properties) a cluster without affecting the rest of the cluster definition.

UPDATE azure.stream_analytics.clusters
SET
data__tags = '{{ tags }}',
data__location = '{{ location }}',
data__sku = '{{ sku }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
etag,
location,
properties,
sku,
tags;

DELETE examples

Deletes the specified cluster.

DELETE FROM azure.stream_analytics.clusters
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
;