< Back
New-AzureRmStreamAnalyticsJob
Post
NAME New-AzureRmStreamAnalyticsJob
SYNOPSIS
Creates or updates a Stream Analytics job.
SYNTAX
New-AzureRmStreamAnalyticsJob [-ResourceGroupName] <String> [[-Name] <String>] [-File] <String> [-DefaultProfile
<IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmStreamAnalyticsJob cmdlet creates a new Stream Analytics job in 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 match the name in the file.
If you specify a job name that already exists and do not specify the Force parameter, the cmdlet will ask whether
or not to replace the existing job.
If you specify the Force parameter and specify an existing job name, the job definition 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 job to
create.
Required? true
Position? 2
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
-Name <String>
Specifies the name of the Azure Stream Analytics job to create.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group to which the Azure Stream Analytics job should belong.
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.PSJob
NOTES
EXAMPLE 1: Create a job
PS C:\\>New-AzureRmStreamAnalyticsJob -ResourceGroupName "StreamAnalytics-Default-West-US" -File
"C:\\JobDefinition.json"
This command creates a job from the definition in JobDefinition.json. If an existing job with the specified name
in the job definition file is already defined, the cmdlet will ask whether or not to replace it.
EXAMPLE 2: Replace a job definition
PS C:\\>New-AzureRmStreamAnalyticsJob -ResourceGroupName "StreamAnalytics-Default-West-US" -File
"C:\\JobDefinition.json" -Name "StreamingJob" -Force
This command replaces the job definition for StreamingJob without confirmation.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... alyticsjob
Get-AzureRmStreamAnalyticsJob
Remove-AzureRmStreamAnalyticsJob
Start-AzureRmStreamAnalyticsJob
Stop-AzureRmStreamAnalyticsJob
Stop-AzureRmStreamAnalyticsJob
SYNOPSIS
Creates or updates a Stream Analytics job.
SYNTAX
New-AzureRmStreamAnalyticsJob [-ResourceGroupName] <String> [[-Name] <String>] [-File] <String> [-DefaultProfile
<IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmStreamAnalyticsJob cmdlet creates a new Stream Analytics job in 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 match the name in the file.
If you specify a job name that already exists and do not specify the Force parameter, the cmdlet will ask whether
or not to replace the existing job.
If you specify the Force parameter and specify an existing job name, the job definition 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 job to
create.
Required? true
Position? 2
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
-Name <String>
Specifies the name of the Azure Stream Analytics job to create.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group to which the Azure Stream Analytics job should belong.
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.PSJob
NOTES
EXAMPLE 1: Create a job
PS C:\\>New-AzureRmStreamAnalyticsJob -ResourceGroupName "StreamAnalytics-Default-West-US" -File
"C:\\JobDefinition.json"
This command creates a job from the definition in JobDefinition.json. If an existing job with the specified name
in the job definition file is already defined, the cmdlet will ask whether or not to replace it.
EXAMPLE 2: Replace a job definition
PS C:\\>New-AzureRmStreamAnalyticsJob -ResourceGroupName "StreamAnalytics-Default-West-US" -File
"C:\\JobDefinition.json" -Name "StreamingJob" -Force
This command replaces the job definition for StreamingJob without confirmation.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... alyticsjob
Get-AzureRmStreamAnalyticsJob
Remove-AzureRmStreamAnalyticsJob
Start-AzureRmStreamAnalyticsJob
Stop-AzureRmStreamAnalyticsJob
Stop-AzureRmStreamAnalyticsJob