Modules/BenchPress.Azure/Public/Confirm-StreamAnalyticsInput.ps1 (43 lines of code) (raw):
# INLINE_SKIP
using module ./../Classes/ConfirmResult.psm1
. $PSScriptRoot/../Private/Connect-Account.ps1
# end INLINE_SKIP
function Confirm-StreamAnalyticsInput {
<#
.SYNOPSIS
Confirms that a Stream Analytics Input exists.
.DESCRIPTION
The Confirm-AzBPStreamAnalyticsInput cmdlet gets a Stream Analytics Input using the specified Resource Group, the
Job with the Input, and the Input 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 Input.
.EXAMPLE
Confirm-AzBPStreamAnalyticsInput -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-AzStreamAnalyticsInput -ResourceGroupName $ResourceGroupName -JobName $JobName -Name $Name
[ConfirmResult]::new($resource, $connectResults.AuthenticationData)
}
End { }
}