New-​Azure​Rm​Stream​Analytics​Input

Creates or updates a job input.

Syntax

New-AzureRmStreamAnalyticsInput
   [-ResourceGroupName] <String>
   [-JobName] <String>
   [[-Name] <String>]
   [-File] <String>
   [-Force]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-AzureRmStreamAnalyticsInput cmdlet creates an input within a Stream Analytics job or updates an existing 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 match the name in the file.

If you specify an input that already exists and do not specify the Force parameter, the cmdlet will ask whether or not to replace the existing input.

If you specify the Force parameter and specify an existing input name, the input will be replaced without confirmation.

Examples

EXAMPLE 1: Create a job input with a definition from a file

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

This command creates an 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.

EXAMPLE 2: Create a job input

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

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.

EXAMPLE 3: Replace a job input with a definition from a file

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

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

Required Parameters

-File

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

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobName

Specifies the name of the Azure Stream Analytics job under which to create the Azure Stream Analytics input.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group under which to create the Azure Streaming input.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

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

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.StreamAnalytics.Models.PSInput