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:透過識別物件取得連結器
$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 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
類型: | IServiceLinkerIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
名稱連結器資源。
類型: | String |
別名: | LinkerName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
要連線之資源的資源群組。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceUri
要連線之資源的完整 Azure Resource Manager 識別符。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
取得可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶標識碼。 訂用帳戶標識碼會形成每個服務呼叫 URI 的一部分。
類型: | String |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |