다음을 통해 공유


Get-AzServiceLinkerForContainerApp

컨테이너 앱에서 지정된 이름의 링커 리소스를 반환합니다.

구문

Get-AzServiceLinkerForContainerApp
   [-ResourceUri <String>]
   [-DefaultProfile <PSObject>]
   -ContainerApp <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   [<CommonParameters>]
Get-AzServiceLinkerForContainerApp
   [-ResourceUri <String>]
   -Name <String>
   [-DefaultProfile <PSObject>]
   -ContainerApp <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   [<CommonParameters>]
Get-AzServiceLinkerForContainerApp
   -InputObject <IServiceLinkerIdentity>
   [-DefaultProfile <PSObject>]
   [-SubscriptionId <String>]
   [<CommonParameters>]

Description

컨테이너 앱에서 지정된 이름의 링커 리소스를 반환합니다.

예제

예제 1: 컨테이너 앱의 모든 링커 나열

Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group

Name
----
appconfig_08b18
postgresql_novnet
postgresql_203ca
eventhub_3ab5f

컨테이너 앱의 모든 링커 나열

예제 2: 이름으로 링커 가져오기

Get-AzServiceLinkerForContainerApp -ContainerApp servicelinker-app -ResourceGroupName servicelinker-test-group  -Name postgresql_connection | Format-List

AuthInfo                     : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model
                               s.Api20221101Preview.SecretAuthInfo
ClientType                   : dotnet
Id                           : /subscriptions/00000000-0000-0000-0000-000000000000/re 
                               sourceGroups/servicelinker-test-group/providers/ 
                               Microsoft.App/containerApps/servicelinker-app/providers 
                               /Microsoft.ServiceLinker/linkers/postgresql_connection     
Name                         : postgresql_connection
ProvisioningState            : Succeeded
Scope                        : 
SecretStoreKeyVaultId        :
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
TargetService                : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model 
                               s.Api20221101Preview.AzureResource
Type                         : microsoft.servicelinker/linkers
VNetSolutionType             : serviceEndpoint

이름으로 링커 가져오기

예제 3: ID 개체를 통해 링커 가져오기

$identity = @{
ResourceUri = '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.App/containerApps/servicelinker-app'
LinkerName = 'postgresql_connection'}

$identity | Get-AzServiceLinkerForContainerApp  | Format-List

AuthInfo                     : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model
                               s.Api20221101Preview.SecretAuthInfo
ClientType                   : dotnet
Id                           : /subscriptions/00000000-0000-0000-0000-000000000000/re 
                               sourceGroups/servicelinker-test-group/providers/ 
                               Microsoft.App/containerApps/servicelinker-app/providers 
                               /Microsoft.ServiceLinker/linkers/postgresql_connection     
Name                         : postgresql_connection
ProvisioningState            : Succeeded
Scope                        : 
SecretStoreKeyVaultId        :
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
TargetService                : Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.Model 
                               s.Api20221101Preview.AzureResource
Type                         : microsoft.servicelinker/linkers
VNetSolutionType             : serviceEndpoint

이름으로 링커 가져오기

매개 변수

-ContainerApp

연결할 리소스의 컨테이너 앱 이름입니다.

형식:String
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-DefaultProfile

Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.

형식:PSObject
별칭:AzureRMContext, AzureCredential
Position:Named
Default value:None
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-InputObject

생성할 ID 매개 변수는 INPUTOBJECT 속성에 대한 NOTES 섹션을 참조하고 해시 테이블을 만듭니다.

형식:IServiceLinkerIdentity
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:True
와일드카드 문자 허용:False

-Name

링커 리소스 이름입니다.

형식:String
별칭:LinkerName
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-ResourceGroupName

연결할 리소스의 리소스 그룹입니다.

형식:String
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-ResourceUri

연결할 리소스의 정규화된 Azure Resource Manager 식별자입니다.

형식:String
Position:Named
Default value:None
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-SubscriptionId

Microsoft Azure 구독을 고유하게 식별하는 구독 ID를 가져옵니다. 구독 ID는 모든 서비스 호출에 대한 URI의 일부를 형성합니다.

형식:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

입력

IServiceLinkerIdentity

출력

ILinkerResource