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-AzureStreamAnalyticsInput

New-AzureStreamAnalyticsInput

microsoft.azure.commands.streamanalytics.dll

Synopsis

Creates a new input within a Stream Analytics job or updates an existing specified input. The name of the input 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 an input that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing input. If you specify -Force parameter and specify an existing input name, the input will be replaced without confirmation.

Syntax

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

Detailed Description

The New-AzureStreamAnalyticsInput cmdlet creates a new input within a Stream Analytics job or updates an existing specified input. The name of the input 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 an input that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing input. If you specify -Force parameter and specify an existing input name, the input will be replaced without confirmation.

Parameters

-JobName <String>

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

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Name <String>

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

Aliases

None

Required?

false

Position

2

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 input to create.

Aliases

None

Required?

true

Position

3

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 input 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 Streaming input 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.PSInput

Notes

Examples

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

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

New-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -File "C:\Input.json"

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

This command creates a new input on the job called EntryStream. If an existing input with this name is already defined, the cmdlet will ask whether or not to replace it.

New-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -File "C:\Input.json" -Name EntryStream

-------------------------- EXAMPLE 3 --------------------------

This command replaces the definition of the existing input source called EntryStream with the definition from file.

New-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -File "C:\Input.json" -Name EntryStream -Force

Get-AzureStreamAnalyticsInput
Remove-AzureStreamAnalyticsInput
Test-AzureStreamAnalyticsInput