Skip to main content

subscriptions

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

Overview​

Namesubscriptions
TypeResource
Idazure.stream_analytics.subscriptions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id.
namestringResource name.
currentCountintegerThe current usage of this resource.
maxCountintegerThe max permitted usage of this resource.
typestringResource type.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_quotasselectlocation, subscription_idRetrieves the subscription's current quota information in a particular region.
test_queryexeclocation, subscription_id, streamingJobTest the Stream Analytics query on a sample input.
compile_queryexeclocation, subscription_id, query, jobTypeCompile the Stream Analytics query.
sample_inputexeclocation, subscription_idSample the Stream Analytics input data.
test_inputexeclocation, subscription_id, inputTest the Stream Analytics input.
test_outputexeclocation, subscription_id, outputTest the Stream Analytics output.

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 region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/. Required.
subscription_idstring

SELECT examples​

Retrieves the subscription's current quota information in a particular region.

SELECT
id,
name,
currentCount,
maxCount,
type
FROM azure.stream_analytics.subscriptions
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods​

Test the Stream Analytics query on a sample input.

EXEC azure.stream_analytics.subscriptions.test_query
@location='{{ location }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"diagnostics": "{{ diagnostics }}",
"streamingJob": "{{ streamingJob }}"
}'
;