@@ -27,7 +27,7 @@ Get-AzHealthcareDicomService -Name azpsdicom -ResourceGroupName azps_test_group
2727. Inputs
2828Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IHealthcareApisIdentity
2929. Outputs
30- Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.Api20211101. IDicomService
30+ Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IDicomService
3131. Notes
3232COMPLEX PARAMETER PROPERTIES
3333
@@ -47,14 +47,30 @@ INPUTOBJECT <IHealthcareApisIdentity>: Identity Parameter
4747 [ResourceName <String>]: The name of the service instance.
4848 [SubscriptionId <String>]: The subscription identifier.
4949 [WorkspaceName <String>]: The name of workspace resource.
50+
51+ WORKSPACEINPUTOBJECT <IHealthcareApisIdentity>: Identity Parameter
52+ [DicomServiceName <String>]: The name of DICOM Service resource.
53+ [FhirDestinationName <String>]: The name of IoT Connector FHIR destination resource.
54+ [FhirServiceName <String>]: The name of FHIR Service resource.
55+ [GroupName <String>]: The name of the private link resource group.
56+ [Id <String>]: Resource identity path
57+ [IotConnectorName <String>]: The name of IoT Connector resource.
58+ [LocationName <String>]: The location of the operation.
59+ [OperationResultId <String>]: The ID of the operation result to get.
60+ [PrivateEndpointConnectionName <String>]: The name of the private endpoint connection associated with the Azure resource
61+ [ResourceGroupName <String>]: The name of the resource group that contains the service instance.
62+ [ResourceName <String>]: The name of the service instance.
63+ [SubscriptionId <String>]: The subscription identifier.
64+ [WorkspaceName <String>]: The name of workspace resource.
5065. Link
5166https://learn.microsoft.com/powershell/module/az.healthcareapis/get-azhealthcaredicomservice
5267#>
5368function Get-AzHealthcareDicomService {
54- [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.Api20211101. IDicomService ])]
69+ [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IDicomService ])]
5570[CmdletBinding (DefaultParameterSetName = ' List' , PositionalBinding = $false )]
5671param (
5772 [Parameter (ParameterSetName = ' Get' , Mandatory )]
73+ [Parameter (ParameterSetName = ' GetViaIdentityWorkspace' , Mandatory )]
5874 [Alias (' DicomServiceName' )]
5975 [Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category (' Path' )]
6076 [System.String ]
@@ -87,9 +103,14 @@ param(
87103 [Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category (' Path' )]
88104 [Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IHealthcareApisIdentity ]
89105 # Identity Parameter
90- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
91106 ${InputObject} ,
92107
108+ [Parameter (ParameterSetName = ' GetViaIdentityWorkspace' , Mandatory , ValueFromPipeline )]
109+ [Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category (' Path' )]
110+ [Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IHealthcareApisIdentity ]
111+ # Identity Parameter
112+ ${WorkspaceInputObject} ,
113+
93114 [Parameter ()]
94115 [Alias (' AzureRMContext' , ' AzureCredential' )]
95116 [ValidateNotNull ()]
@@ -146,6 +167,15 @@ begin {
146167 $PSBoundParameters [' OutBuffer' ] = 1
147168 }
148169 $parameterSet = $PSCmdlet.ParameterSetName
170+
171+ $testPlayback = $false
172+ $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ($_ ) { $testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
173+
174+ $context = Get-AzContext
175+ if (-not $context -and -not $testPlayback ) {
176+ Write-Error " No Azure login detected. Please run 'Connect-AzAccount' to log in."
177+ exit
178+ }
149179
150180 if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet ]::PowerShellVersion) {
151181 [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet ]::PowerShellVersion = $PSVersionTable.PSVersion.ToString ()
@@ -167,11 +197,10 @@ begin {
167197 $mapping = @ {
168198 Get = ' Az.HealthcareApis.private\Get-AzHealthcareDicomService_Get' ;
169199 GetViaIdentity = ' Az.HealthcareApis.private\Get-AzHealthcareDicomService_GetViaIdentity' ;
200+ GetViaIdentityWorkspace = ' Az.HealthcareApis.private\Get-AzHealthcareDicomService_GetViaIdentityWorkspace' ;
170201 List = ' Az.HealthcareApis.private\Get-AzHealthcareDicomService_List' ;
171202 }
172- if ((' Get' , ' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' )) {
173- $testPlayback = $false
174- $PSBoundParameters [' HttpPipelinePrepend' ] | Foreach-Object { if ($_ ) { $testPlayback = $testPlayback -or (' Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Runtime.PipelineMock' -eq $_.Target.GetType ().FullName -and ' Playback' -eq $_.Target.Mode ) } }
203+ if ((' Get' , ' List' ) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey (' SubscriptionId' ) ) {
175204 if ($testPlayback ) {
176205 $PSBoundParameters [' SubscriptionId' ] = . (Join-Path $PSScriptRoot ' ..' ' utils' ' Get-SubscriptionIdTestSafe.ps1' )
177206 } else {
@@ -185,6 +214,9 @@ begin {
185214 [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet ]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name )
186215 }
187216 $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+ }
188220 $scriptCmd = {& $wrappedCmd @PSBoundParameters }
189221 $steppablePipeline = $scriptCmd.GetSteppablePipeline ($MyInvocation.CommandOrigin )
190222 $steppablePipeline.Begin ($PSCmdlet )
0 commit comments