0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Azure front door がAzure Keyvaultの証明書と連携が取れない事象の解決

Last updated at Posted at 2025-07-25

背景

以下の公開文章でAFD classicでAzure Key vaultの証明書を利用してhttpsを設定しようとすると、
うまくいきません。
https://learn.microsoft.com/ja-jp/azure/frontdoor/front-door-custom-domain-https?tabs=powershell

原因はまさにここだと自分も全然気づきませんでした。犯しやすいミスなので、ここでメモしておきます。

詳細

以下の公開文章に従い、
まず、AFDを登録済み。

New-AzADServicePrincipal -ApplicationId "ad0e1c7e-6d38-4ba4-9efd-0bc77ba9f037"

次、Key vault側のアクセスポリシーでMicrosoft.Azure.Frontdoorへ権限を付与済み。
image.png

最後、Key vault側のNetwork設定でAllow trusted Microsoft services to bypass this firewallをチェック入れます。
image.png

でも、依然、AFDからkeyvaultの証明書取得できないです。(inaccessbleになっています)
image.png

原因調査

もしかして作業者の私はkey vaultの証明書をみる権限はないから?
早速、自分にたいしてkey vualtの証明書を取得する権限を付与しました。
image.png

でも依然AFDからkeyvaultの証明書取得できないです。私も自身で直接keyvaultの中の証明書はみれないです。
image.png

発見

いろいろ考えた末に、もしかして、自分のClient PC のIpを許可していないのか!と閃きました。
早速network設定で時分のIPをwhitelistして、試したら成功です!
Keyvaultの中の証明書も見れるし、AFDからの取得もOKになりました。
image.png

image.png

感想

MSの公開文章はもしそこの箇所まで解釈ができたらいいですね。でもAzure全体はセキュリティーが厳しくなっている一方、また何か新しい制限がかけてくるかも。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?