共用方式為


StreamAnalyticsExtensions.TestQuerySubscriptionAsync Method

Definition

Test the Stream Analytics query on a sample input.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testQuery
  • Operation Id: Subscriptions_TestQuery
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryTestingResult>> TestQuerySubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsTestQuery testQuery, System.Threading.CancellationToken cancellationToken = default);
static member TestQuerySubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.WaitUntil * Azure.Core.AzureLocation * Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsTestQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryTestingResult>>
<Extension()>
Public Function TestQuerySubscriptionAsync (subscriptionResource As SubscriptionResource, waitUntil As WaitUntil, location As AzureLocation, testQuery As StreamAnalyticsTestQuery, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of StreamAnalyticsQueryTestingResult))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

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

testQuery
StreamAnalyticsTestQuery

The query testing object that defines the input, output, and transformation for the query testing.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or testQuery is null.

Applies to