Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

New-AzureStreamAnalyticsJob

New-AzureStreamAnalyticsJob

microsoft.azure.commands.streamanalytics.dll

Synopsis

Creates a new Stream Analytics job in Microsoft Azure or updates the definition of an existing specified job. The name of the job can be specified in the .JSON file or on the command line. If both are specified, the name on command line must be the same with the one in the file. If you specify a job name that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing job. If you specify -Force parameter and specify an existing job name, the job definition will be replaced without confirmation.

Syntax

New-AzureStreamAnalyticsJob [-Name] [-File] [-Force] [-ResourceGroupName] [-Profile] [<CommonParameters>]

Detailed Description

The New-AzureStreamAnalyticsJob cmdlet creates a new Stream Analytics job in Microsoft Azure or updates the definition of an existing specified job. The name of the job can be specified in the .JSON file or on the command line. If both are specified, the name on command line must be the same with the one in the file. If you specify a job name that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing job. If you specify -Force parameter and specify an existing job name, the job definition will be replaced without confirmation.

Parameters

-Name <String>

Specifies the name of the Azure Stream Analytics job to create.

Aliases

None

Required?

false

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-File <String>

Specifies the path to a JSON file that contains the JSON representation of the Azure Stream Analytics job to create.

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Force <SwitchParameter>

If this parameter is specified, the cmdlet will replace the specified Azure Stream Analytics job if it already exists without asking for confirmation.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ResourceGroupName <String>

Specifies the name of the resource group that the Azure Stream Analytics job should be created under.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Profile <AzureProfile>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PipelineVariable <string>

Not Specified

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type

Microsoft.Azure.Commands.StreamAnalytics.Models.PSJob

Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

This command creates a new job from the definition in JobDefinition.json. If an existing job with the name specified in the job definition file is already defined, the cmdlet will ask whether or not to replace it.

New-AzureStreamAnalyticsJob -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\JobDefinition.json"

-------------------------- EXAMPLE 2 --------------------------

This command replaces the job definition for StreamingJob.

New-AzureStreamAnalyticsJob -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\JobDefinition.json" -Name StreamingJob -Force

Get-AzureStreamAnalyticsJob
Remove-AzureStreamAnalyticsJob
Start-AzureStreamAnalyticsJob
Stop-AzureStreamAnalyticsJob