[英]Does Azure App Service automatically restart when Azure Key Vault renew the certificate?
[英]What is the best alternative to renew a certificate stored in Azure Key Vault?
我想續訂證書並使用 kubectl 命令更新 AKS 中的證書。 最好和最簡單的方法是什么?
我使用了 KQL 查詢並設法創建了基於證書到期的警報。 現在我想根據這個警報采取行動。 我不想為此使用邏輯應用程序或事件網格
PowerShell 絕對是最簡單的方法。 要將現有證書添加到 KeyVault,您可以使用此腳本並根據需要進行修改。
$securePassword = ConvertTo-SecureString -String $certPassword -Force -AsPlainText
$cert = Import-AzKeyVaultCertificate -VaultName $keyVaultName -Name $certName -FilePath $certFilePath -Password $securePassword
這將在密鑰保管庫中創建具有相同名稱的新版本證書。 只要您在從 KeyVault 檢索時不引用特定版本,它就會返回最新版本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.