Update-AzServiceLinkerForSpringCloud
在 spring cloud 中更新現有連結的作業。
語法
Update-AzServiceLinkerForSpringCloud
-Name <String>
[-ResourceUri <String>]
-AuthInfo <IAuthInfoBase>
-ClientType <ClientType>
-TargetService <ITargetServiceBase>
[-Scope <String>]
[-SecretStoreKeyVaultId <String>]
[-VNetSolutionType <VNetSolutionType>]
[-DefaultProfile <PSObject>]
-ServiceName <String>
-AppName <String>
[-DeploymentName <String>]
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzServiceLinkerForSpringCloud
-InputObject <IServiceLinkerIdentity>
-AuthInfo <IAuthInfoBase>
-ClientType <ClientType>
-TargetService <ITargetServiceBase>
[-Scope <String>]
[-SecretStoreKeyVaultId <String>]
[-VNetSolutionType <VNetSolutionType>]
[-DefaultProfile <PSObject>]
[-SubscriptionId <String>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
在 spring cloud 中更新現有連結的作業。
範例
範例 1:更新連結器
$target=New-AzServiceLinkerAzureResourceObject -Id /subscriptions/937bc588-a144-4083-8612-5f9ffbbddb14/resourceGroups/servicelinker-test-group/providers/Microsoft.DBforPostgreSQL/servers/servicelinker-postgresql/databases/test
$authInfo=New-AzServiceLinkerSecretAuthInfoObject -Name username -SecretValue password
Update-AzServiceLinkerForSpringCloud -ServiceName servicelinker-springcloud -AppName appconfiguration -DeploymentName "default" -ResourceGroupName servicelinker-test-group -TargetService $target -AuthInfo $authInfo -ClientType 'none' -Name postgres_connection
Name
----
postgres_connection
更新連結器
參數
-AppName
要連線的 Spring 雲端服務應用程式名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-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 |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DeploymentName
要連線之 Spring Cloud 應用程式的部署名稱。
類型: | String |
Position: | Named |
預設值: | "default" |
必要: | 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 |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-SecretStoreKeyVaultId
用來儲存秘密的金鑰保存庫識別碼
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ServiceName
要連接的 Spring 雲端服務名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | 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 |