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

New-AzureStreamAnalyticsTransformation

microsoft.azure.commands.streamanalytics.dll

Synopsis

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

Syntax

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

Detailed Description

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

Parameters

-JobName <String>

Specifies the name of the Azure Stream Analytics job that the Azure Stream Analytics transformation 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 transformation 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 transformation 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 transformation 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 Stream Analytics transformation 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.PSTransformation

Notes

Examples

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

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

New-AzureStreamAnalyticsTransformation -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\Transformation.json" -JobName StreamingJob -Name StreamingJobTransform

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

This command replaces the definition of StreamingJobTransform in the job StreamingJob.

New-AzureStreamAnalyticsTransformation -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\Transformation.json" -JobName StreamingJob -Name StreamingJobTransform -Force

Get-AzureStreamAnalyticsTransformation