共用方式為


Update-AzServiceLinkerForContainerApp

更新容器應用程式中現有連結的作業。

語法

Update-AzServiceLinkerForContainerApp
      -Name <String>
      [-ResourceUri <String>]
      -AuthInfo <IAuthInfoBase>
      -ClientType <ClientType>
      -Scope <String>
      -TargetService <ITargetServiceBase>
      [-SecretStoreKeyVaultId <String>]
      [-VNetSolutionType <VNetSolutionType>]
      [-DefaultProfile <PSObject>]
      -ContainerApp <String>
      -ResourceGroupName <String>
      [-SubscriptionId <String>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzServiceLinkerForContainerApp
      -InputObject <IServiceLinkerIdentity>
      -AuthInfo <IAuthInfoBase>
      -ClientType <ClientType>
      -Scope <String>
      -TargetService <ITargetServiceBase>
      [-SecretStoreKeyVaultId <String>]
      [-VNetSolutionType <VNetSolutionType>]
      [-DefaultProfile <PSObject>]
      [-SubscriptionId <String>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

更新容器應用程式中現有連結的作業。

範例

範例 1:更新連結器

$target=New-AzServiceLinkerAzureResourceObject -Id /subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-linux-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/test
$authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name username -SecretValue password 
Update-AzServiceLinkerForContainerApp -ResourceGroupName servicelinker-test-linux-group -ContainerApp servicelinker-app -TargetService $target -AuthInfo $authInfo -ClientType 'none' -Name postgres_connection -Scope 'simple-hello-world-container'

Name
----
postgres_connection

更新連結器

參數

-AsJob

以作業身分執行命令

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-AuthInfo

驗證類型。 若要建構,請參閱 AUTHINFO 屬性的 NOTES 區段並建立哈希表。

類型:IAuthInfoBase
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ClientType

應用程式客戶端類型

類型:ClientType
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-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

-NoWait

以異步方式執行命令

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

要連線之資源的資源群組。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ResourceUri

要連線之資源的完整 Azure Resource Manager 識別符。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Scope

來源服務中的連線範圍。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SecretStoreKeyVaultId

用來儲存秘密的金鑰保存庫識別碼

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-SubscriptionId

取得可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶標識碼。 訂用帳戶標識碼會形成每個服務呼叫 URI 的一部分。

類型:String
Position:Named
預設值:(Get-AzContext).Subscription.Id
必要:False
接受管線輸入:False
接受萬用字元:False

-TargetService

若要建構目標服務屬性,請參閱 TARGETSERVICE 屬性的 NOTES 區段並建立哈希表。

類型:ITargetServiceBase
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-VNetSolutionType

VNet 解決方案的類型。

類型:VNetSolutionType
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

IServiceLinkerIdentity

輸出

ILinkerResource