< Back

New-AzureRmStreamAnalyticsInput

Sat Jan 11, 2020 10:40 am

NAME New-AzureRmStreamAnalyticsInput



SYNOPSIS

Creates or updates a job input.





SYNTAX

New-AzureRmStreamAnalyticsInput [-ResourceGroupName] <String> [-JobName] <String> [[-Name] <String>] [-File]

<String> [-DefaultProfile <IAzureContextContainer>] [-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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

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.



Required? true

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Force [<SwitchParameter>]

Forces the command to run without asking for user confirmation.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-JobName <String>

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



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.



Required? false

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

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



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.StreamAnalytics.Models.PSInput







NOTES









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.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... yticsinput

Get-AzureRmStreamAnalyticsInput

Remove-AzureRmStreamAnalyticsInput

Test-AzureRmStreamAnalyticsInput