Modules/BenchPress.Azure/Public/Confirm-StreamAnalyticsTransformation.ps1 (44 lines of code) (raw):

# INLINE_SKIP using module ./../Classes/ConfirmResult.psm1 . $PSScriptRoot/../Private/Connect-Account.ps1 # end INLINE_SKIP function Confirm-StreamAnalyticsTransformation { <# .SYNOPSIS Confirms that a Stream Analytics Transformation exists. .DESCRIPTION The Confirm-AzBPStreamAnalyticsTransformation cmdlet gets a Stream Analytics Transformation using the specified Resource Group, the Job with the Transformation, and the Transformation names. .PARAMETER ResourceGroupName The name of the Resource Group. The name is case insensitive. .PARAMETER JobName The name of the Streaming Job. .PARAMETER Name The name of the Transformation. .EXAMPLE Confirm-AzBPStreamAnalyticsTransformation -ResourceGroupName "rgbenchpresstest" -JobName "jn" ` -Name "benchpresstest" .INPUTS System.String .OUTPUTS ConfirmResult #> [CmdletBinding()] [OutputType([ConfirmResult])] param ( [Parameter(Mandatory=$true)] [string]$ResourceGroupName, [Parameter(Mandatory=$true)] [string]$JobName, [Parameter(Mandatory=$true)] [string]$Name ) Begin { $connectResults = Connect-Account } Process { $resource = Get-AzStreamAnalyticsTransformation -ResourceGroupName $ResourceGroupName -JobName $JobName -Name $Name [ConfirmResult]::new($resource, $connectResults.AuthenticationData) } End { } }