我正在嘗試使用 Azure Front Door Premium 配置自定義域,因為它是唯一允許我擁有自定義域的域。
主要問題是證書。我有自己的 SSL 證書。Azure Front Door Premium 僅允許從 Azure Key Vault 中選擇 SSL 證書。所以,我創建了一個并添加了證書。美好的。當我嘗試使用此螢屏添加新域時

我可以從串列中選擇一個秘密。要添加證書,現在我必須從 Azure Key Vault 在 Azure Front Door 中添加一個機密。因此,我打開Secret我選擇證書并單擊添加。

不幸的是,我收到一個錯誤
Failed to create the secret 'azuksch-CelloSSL-latest'. Error: We don't have permission to access this secret. Go to "Access policies" in your Key Vault account to give Microsoft.AzureFrontDoor-Cdn permission to get secrets.
Following the 
So, I run
az ad sp create --id ad0e1c7e-6d38-4ba4-9efd-0bc77ba9f037
but I have the same issue when I try to add the secret in Azure Front Door. I googled a bit and I found that I have to run another command for Azure Front Door Premium
az ad sp create --id 205478c0-bd83-4e1b-a9d6-db63a3e1e1c8

and selected all the options for all three dropdown list. Now, I have a lot of Access policies

Result: I always get the same error
Failed to create the secret 'azuksch-CelloSSL-latest'. Error: We don't have permission to access this secret. Go to "Access policies" in your Key Vault account to give Microsoft.AzureFrontDoor-Cdn permission to get secrets.
Can I fix it?
uj5u.com熱心網友回復:
最初使用 id 創建的服務主體ad0e1c7e-6d38-4ba4-9efd-0bc77ba9f037用于Azure Front Door,而不是用于Azure Front Door Premium。
因此,它不會授予Microsoft.AzureFrontDoor-Cdn 的權限。您遵循的檔案也與Azure Front Door而不是Azure Front Door Premium相關。
如本Microsoft Doc所述:
每個租戶只能為 Azure Front Door 注冊服務主體一次。
因此,即使您使用此 ID 再次創建服務主體205478c0-bd83-4e1b-a9d6-db63a3e1e1c8,據我所知,它也無法正常作業。嘗試洗掉您使用 id 創建的第一個服務主體ad0e1c7e-6d38-4ba4-9efd-0bc77ba9f037
此外,請查看Microsoft Doc的以下注釋:
Azure Front Door Standard/Premium(預覽版)目前處于公共預覽版中。此預覽版在沒有服務級別協議的情況下提供,不建議用于生產作業負載。某些功能可能不受支持或功能受限。?
由于它仍處于預覽階段,因此某些功能將無法使用。因此,對于解決方法,您可以使用Azure Front Door。若要了解如何使用Azure Front Door添加自定義域,請查看此參考(如果有幫助)。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/448243.html
下一篇:使用來自HTML的輸入的API
