Share via


StreamAnalyticsExtensions.CompileQuerySubscriptionAsync Method

Definition

Compile the Stream Analytics query.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/compileQuery
  • Operation Id: Subscriptions_CompileQuery
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryCompilationResult>> CompileQuerySubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsCompileQuery compileQuery, System.Threading.CancellationToken cancellationToken = default);
static member CompileQuerySubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsCompileQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryCompilationResult>>
<Extension()>
Public Function CompileQuerySubscriptionAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, compileQuery As StreamAnalyticsCompileQuery, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StreamAnalyticsQueryCompilationResult))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

location
AzureLocation

The 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/.

compileQuery
StreamAnalyticsCompileQuery

The query compilation object which defines the input, output, and transformation for the query compilation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or compileQuery is null.

Applies to