< Back

New-AzureRmStreamAnalyticsOutput

Sat Jan 11, 2020 10:41 am

NAME New-AzureRmStreamAnalyticsOutput



SYNOPSIS

Creates or updates outputs for a Stream Analytics job.





SYNTAX

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

<String> [-DefaultProfile <IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The New-AzureRmStreamAnalyticsOutput cmdlet creates an output within a Stream Analytics job or updates an existing

output. The name of the output 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 output that already exists and do not specify the Force parameter, the cmdlet will ask whether

or not to replace the existing output.



If you specify the Force parameter and specify an existing output name, the output 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 output

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 output.



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 output 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 Stream Analytics output.



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.PSOutput







NOTES









EXAMPLE 1: Add an output to a job



PS C:\\>New-AzureRmStreamAnalyticsOutput -ResourceGroupName "StreamAnalytics-Default-West-US" -File

"C:\\Output.json" -JobName "StreamingJob" -Name "Output"



This command creates a new output called Output in the job called StreamingJob. If an existing output with this

name is already defined, the cmdlet will ask whether or not to replace it.





EXAMPLE 2: Replace a job output definition



PS C:\\>New-AzureRmStreamAnalyticsOutput -ResourceGroupName "StreamAnalytics-Default-West-US" -File

"C:\\Output.json" -JobName "StreamingJob" -Name "Output" -Force



This command replaces the definition for Output in the job called StreamingJob without confirmation.







RELATED LINKS

Online Version:

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

Get-AzureRmStreamAnalyticsOutput

Remove-AzureRmStreamAnalyticsOutput

Test-AzureRmStreamAnalyticsOutput