Bearbeiten

Freigeben über


Get-AzServiceLinkerForContainerApp

Returns Linker resource for a given name in container app.

Syntax

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

Returns Linker resource for a given name in container app.

Examples

Example 1: List all linkers in a container app

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

Name
----
appconfig_08b18
postgresql_novnet
postgresql_203ca
eventhub_3ab5f

List all linkers in the container app

Example 2: Get linker by name

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

Get linker by name

Example 3: Get linker via identity object

$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

Get linker by name

Parameters

-ContainerApp

The Name of container app of the resource to be connected.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IServiceLinkerIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

The name Linker resource.

Type:String
Aliases:LinkerName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The resource group of the resource to be connected.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceUri

The fully qualified Azure Resource manager identifier of the resource to be connected.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

Gets subscription ID which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IServiceLinkerIdentity

Outputs

ILinkerResource