< Back

New-AzureRmStreamAnalyticsTransformation

Sat Jan 11, 2020 10:42 am

NAME New-AzureRmStreamAnalyticsTransformation



SYNOPSIS

Creates or updates a transformation within a job.





SYNTAX

New-AzureRmStreamAnalyticsTransformation [-ResourceGroupName] <String> [-JobName] <String> [[-Name] <String>]

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





DESCRIPTION

The New-AzureRmStreamAnalyticsTransformation cmdlet creates a 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 match the name in the file.



If you specify a transformation that already exists and do not specify the Force parameter, the cmdlet will ask

whether or not to replace the existing transformation.



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

transformation 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

transformation.



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.



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



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







NOTES









EXAMPLE 1: Create or replace a transformation in a job



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

"C:\\Transformation.json" -JobName "StreamingJob" -Name "StreamingJobTransform"



This command creates a transformation called StreamingJobTransform in the job called StreamingJob. If an existing

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





EXAMPLE 2: Replace a transformation in a job



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

"C:\\Transformation.json" -JobName "StreamingJob" -Name "StreamingJobTransform" -Force



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







RELATED LINKS

Online Version:

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

Get-AzureRmStreamAnalyticsTransformation