Starts a streaming job. Once a job is started it will start processing input events and produce output.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/start?api-version=2020-03-01
Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time.
outputStartTime
string
(date-time)
Value is either an ISO-8601 formatted time stamp that indicates the starting point of the output event stream, or null to indicate that the output event stream will start whenever the streaming job is started. This property must have a value if outputStartMode is set to CustomTime.
Responses
Name
Type
Description
200 OK
The streaming job was successfully started.
202 Accepted
The start streaming job request was successfully initiated.
const { StreamAnalyticsManagementClient } = require("@azure/arm-streamanalytics");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Starts a streaming job. Once a job is started it will start processing input events and produce output.
*
* @summary Starts a streaming job. Once a job is started it will start processing input events and produce output.
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Start_CustomTime.json
*/
async function startAStreamingJobWithCustomTimeOutputStartMode() {
const subscriptionId = "56b5e0a9-b645-407d-99b0-c64f86013e3d";
const resourceGroupName = "sjrg6936";
const jobName = "sj59";
const startJobParameters = {
outputStartMode: "CustomTime",
outputStartTime: new Date("2012-12-12T12:12:12Z"),
};
const options = { startJobParameters };
const credential = new DefaultAzureCredential();
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
const result = await client.streamingJobs.beginStartAndWait(resourceGroupName, jobName, options);
console.log(result);
}
startAStreamingJobWithCustomTimeOutputStartMode().catch(console.error);
const { StreamAnalyticsManagementClient } = require("@azure/arm-streamanalytics");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Starts a streaming job. Once a job is started it will start processing input events and produce output.
*
* @summary Starts a streaming job. Once a job is started it will start processing input events and produce output.
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Start_JobStartTime.json
*/
async function startAStreamingJobWithJobStartTimeOutputStartMode() {
const subscriptionId = "56b5e0a9-b645-407d-99b0-c64f86013e3d";
const resourceGroupName = "sjrg6936";
const jobName = "sj59";
const startJobParameters = {
outputStartMode: "JobStartTime",
};
const options = { startJobParameters };
const credential = new DefaultAzureCredential();
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
const result = await client.streamingJobs.beginStartAndWait(resourceGroupName, jobName, options);
console.log(result);
}
startAStreamingJobWithJobStartTimeOutputStartMode().catch(console.error);
const { StreamAnalyticsManagementClient } = require("@azure/arm-streamanalytics");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Starts a streaming job. Once a job is started it will start processing input events and produce output.
*
* @summary Starts a streaming job. Once a job is started it will start processing input events and produce output.
* x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Start_LastOutputEventTime.json
*/
async function startAStreamingJobWithLastOutputEventTimeOutputStartMode() {
const subscriptionId = "56b5e0a9-b645-407d-99b0-c64f86013e3d";
const resourceGroupName = "sjrg6936";
const jobName = "sj59";
const startJobParameters = {
outputStartMode: "LastOutputEventTime",
};
const options = { startJobParameters };
const credential = new DefaultAzureCredential();
const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
const result = await client.streamingJobs.beginStartAndWait(resourceGroupName, jobName, options);
console.log(result);
}
startAStreamingJobWithLastOutputEventTimeOutputStartMode().catch(console.error);
Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time.
Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time.
Value
Description
JobStartTime
CustomTime
LastOutputEventTime
StartStreamingJobParameters
Object
Parameters supplied to the Start Streaming Job operation.
Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time.
outputStartTime
string
(date-time)
Value is either an ISO-8601 formatted time stamp that indicates the starting point of the output event stream, or null to indicate that the output event stream will start whenever the streaming job is started. This property must have a value if outputStartMode is set to CustomTime.