@@ -27,33 +27,50 @@ Get-AzFluidRelayContainer -FluidRelayServerName azps-fluidrelay -ResourceGroup a
2727. Inputs
2828Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayIdentity
2929. Outputs
30- Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.Api20220601. IFluidRelayContainer
30+ Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainer
3131. Notes
3232COMPLEX PARAMETER PROPERTIES
3333
3434To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
3535
36+ FLUIDRELAYSERVERINPUTOBJECT <IFluidRelayIdentity>: Identity Parameter
37+ [FluidRelayContainerName <String>]: The Fluid Relay container resource name.
38+ [FluidRelayServerName <String>]: The Fluid Relay server resource name.
39+ [Id <String>]: Resource identity path
40+ [ResourceGroup <String>]: The resource group containing the resource.
41+ [SubscriptionId <String>]: The subscription id (GUID) for this resource.
42+
3643INPUTOBJECT <IFluidRelayIdentity>: Identity Parameter
3744 [FluidRelayContainerName <String>]: The Fluid Relay container resource name.
3845 [FluidRelayServerName <String>]: The Fluid Relay server resource name.
3946 [Id <String>]: Resource identity path
4047 [ResourceGroup <String>]: The resource group containing the resource.
4148 [SubscriptionId <String>]: The subscription id (GUID) for this resource.
49+
50+ RESOURCEGROUPINPUTOBJECT <IFluidRelayIdentity>: Identity Parameter
51+ [FluidRelayContainerName <String>]: The Fluid Relay container resource name.
52+ [FluidRelayServerName <String>]: The Fluid Relay server resource name.
53+ [Id <String>]: Resource identity path
54+ [ResourceGroup <String>]: The resource group containing the resource.
55+ [SubscriptionId <String>]: The subscription id (GUID) for this resource.
4256. Link
4357https://learn.microsoft.com/powershell/module/az.fluidrelay/get-azfluidrelaycontainer
4458#>
4559function Get-AzFluidRelayContainer {
46- [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.Api20220601. IFluidRelayContainer ])]
60+ [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayContainer ])]
4761[CmdletBinding (DefaultParameterSetName = ' List' , PositionalBinding = $false )]
4862param (
4963 [Parameter (ParameterSetName = ' Get' , Mandatory )]
64+ [Parameter (ParameterSetName = ' GetViaIdentityResourceGroup' , Mandatory )]
5065 [Parameter (ParameterSetName = ' List' , Mandatory )]
5166 [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Category (' Path' )]
5267 [System.String ]
5368 # The Fluid Relay server resource name.
5469 ${FluidRelayServerName} ,
5570
5671 [Parameter (ParameterSetName = ' Get' , Mandatory )]
72+ [Parameter (ParameterSetName = ' GetViaIdentityFluidRelayServer' , Mandatory )]
73+ [Parameter (ParameterSetName = ' GetViaIdentityResourceGroup' , Mandatory )]
5774 [Alias (' FluidRelayContainerName' )]
5875 [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Category (' Path' )]
5976 [System.String ]
@@ -79,9 +96,20 @@ param(
7996 [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Category (' Path' )]
8097 [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayIdentity ]
8198 # Identity Parameter
82- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8399 ${InputObject} ,
84100
101+ [Parameter (ParameterSetName = ' GetViaIdentityFluidRelayServer' , Mandatory , ValueFromPipeline )]
102+ [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Category (' Path' )]
103+ [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayIdentity ]
104+ # Identity Parameter
105+ ${FluidRelayServerInputObject} ,
106+
107+ [Parameter (ParameterSetName = ' GetViaIdentityResourceGroup' , Mandatory , ValueFromPipeline )]
108+ [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Category (' Path' )]
109+ [Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Models.IFluidRelayIdentity ]
110+ # Identity Parameter
111+ ${ResourceGroupInputObject} ,
112+
85113 [Parameter ()]
86114 [Alias (' AzureRMContext' , ' AzureCredential' )]
87115 [ValidateNotNull ()]
@@ -138,6 +166,15 @@ begin {
138166 $PSBoundParameters [' OutBuffer' ] = 1
139167 }
140168 $parameterSet = $PSCmdlet.ParameterSetName
169+
170+ $testPlayback = $false
171+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ($_ ) { $testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
172+
173+ $context = Get-AzContext
174+ if (-not $context -and -not $testPlayback ) {
175+ Write-Error " No Azure login detected. Please run 'Connect-AzAccount' to log in."
176+ exit
177+ }
141178
142179 if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet ]::PowerShellVersion) {
143180 [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet ]::PowerShellVersion = $PSVersionTable.PSVersion.ToString ()
@@ -159,11 +196,11 @@ begin {
159196 $mapping = @ {
160197 Get = ' Az.FluidRelay.private\Get-AzFluidRelayContainer_Get' ;
161198 GetViaIdentity = ' Az.FluidRelay.private\Get-AzFluidRelayContainer_GetViaIdentity' ;
199+ GetViaIdentityFluidRelayServer = ' Az.FluidRelay.private\Get-AzFluidRelayContainer_GetViaIdentityFluidRelayServer' ;
200+ GetViaIdentityResourceGroup = ' Az.FluidRelay.private\Get-AzFluidRelayContainer_GetViaIdentityResourceGroup' ;
162201 List = ' Az.FluidRelay.private\Get-AzFluidRelayContainer_List' ;
163202 }
164- if ((' Get' , ' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' )) {
165- $testPlayback = $false
166- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ($_ ) { $testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.FluidRelay.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
203+ if ((' Get' , ' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
167204 if ($testPlayback ) {
168205 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
169206 } else {
@@ -177,6 +214,9 @@ begin {
177214 [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet ]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name )
178215 }
179216 $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand (($mapping [$parameterSet ]), [System.Management.Automation.CommandTypes ]::Cmdlet)
217+ if ($wrappedCmd -eq $null ) {
218+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand (($mapping [$parameterSet ]), [System.Management.Automation.CommandTypes ]::Function)
219+ }
180220 $scriptCmd = {& $wrappedCmd @PSBoundParameters }
181221 $steppablePipeline = $scriptCmd.GetSteppablePipeline ($MyInvocation.CommandOrigin )
182222 $steppablePipeline.Begin ($PSCmdlet )
0 commit comments