зеркало из https://github.com/Azure/benchpress.git
56 строки
1.3 KiB
PowerShell
56 строки
1.3 KiB
PowerShell
# INLINE_SKIP
|
|
using module ./../Classes/ConfirmResult.psm1
|
|
|
|
. $PSScriptRoot/../Private/Connect-Account.ps1
|
|
# end INLINE_SKIP
|
|
|
|
function Confirm-StreamAnalyticsOutput {
|
|
<#
|
|
.SYNOPSIS
|
|
Confirms that a Stream Analytics Output exists.
|
|
|
|
.DESCRIPTION
|
|
The Confirm-AzBPStreamAnalyticsOutput cmdlet gets a Stream Analytics Output using the specified Resource Group,
|
|
the Job with the Output, and the Output 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 Output.
|
|
|
|
.EXAMPLE
|
|
Confirm-AzBPStreamAnalyticsOutput -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-AzStreamAnalyticsOutput -ResourceGroupName $ResourceGroupName -JobName $JobName -Name $Name
|
|
|
|
[ConfirmResult]::new($resource, $connectResults.AuthenticationData)
|
|
}
|
|
End { }
|
|
}
|