다음을 통해 공유

Adding a Private Key Certificate from Key Vault in App Service

Phillip LEE 25 평판 포인트
2024-12-12T01:21:46.2066667+00:00

Hello, I have a question.

I'm doing test right now, how to use App Service with Key Vault.

This is how I did.

  1. Create App Service

Adding a Custom Domain

Activate ID

Create Key Vault(Created by RBAC Rule)

Granting All Permissions to App Service in Key Vault IAM

Push Certificate test.pem

Add Binding (Fetching from Key Vault)

Error Occur

(The service does not have access to '/subscriptions/****/resourcegroups/testkeyvalt/providers/microsoft.keyvault/vaults/appservicekeyvaulttest' Key Vault. Please make sure that you have granted necessary permissions to the service to perform the request operation.)

In Microsoft Learns, Confirm that App Service should use Access Policy instead of RBAC Rule(Maybe wrong)

Delete default Key Vault and Create new Key Vault(Created by Access Policy Rule)

Granting All Permissions to App Service in Key Vault Access Policy

Push Certificate test.pem

Add Binding (Fetching from Key Vault)

Error Occur

(The parameter keyVaultSecret has an invalid value.)

{

"error": {

"code": "Unauthorized",

"message": "AKV10000: Request is missing a Bearer or PoP token."

}

}

https://stackoverflow.com/questions/76463957/azure-key-vault-error-message-akv10000-request-is-missing-a-bearer-or-pop-toke/76470667?noredirect=1#comment134854224_76470667

In Stack Overflow, I can find similar like my issue, but I cannot be sure this solution fit on my problem.

Also, I gave full permission but still didn't work.

Anyone know about this issue?

Thank youHello, I have a question.

I'm doing test right now, how to use App Service with Key Vault.

This is how I did.

Create App Service

Adding a Custom Domain

Activate ID

Create Key Vault(Created by RBAC Rule)

Granting All Permissions to App Service in Key Vault IAM

Push Certificate test.pem

Add Binding (Fetching from Key Vault)

Error Occur

(The service does not have access to '/subscriptions/****/resourcegroups/testkeyvalt/providers/microsoft.keyvault/vaults/appservicekeyvaulttest' Key Vault. Please make sure that you have granted necessary permissions to the service to perform the request operation.)

In Microsoft Learns, Confirm that App Service should use Access Policy instead of RBAC Rule

Delete default Key Vault and Create new Key Vault(Created by Access Policy Rule)

Granting All Permissions to App Service in Key Vault Access Policy

Push Certificate test.pem

Add Binding (Fetching from Key Vault)

Error Occur

(The parameter keyVaultSecret has an invalid value.)

{

"error": {

"code": "Unauthorized",

"message": "AKV10000: Request is missing a Bearer or PoP token."

}

}

https://stackoverflow.com/questions/76463957/azure-key-vault-error-message-akv10000-request-is-missing-a-bearer-or-pop-toke/76470667?noredirect=1#comment134854224_76470667

In Stack Overflow, I can find similar like my issue, but I cannot be sure this solution fit on my problem.

Also, I gave full permission but still didn't work.

Anyone know about this issue?

Thank you

Microsoft Q&A
Microsoft Q&A
이 태그를 사용하여 제안, 기능 요청 및 버그를 Microsoft Q&A 팀과 공유합니다. Microsoft Q&A 팀은 정기적으로 피드백을 평가하고 그 과정에서 업데이트를 제공합니다.
질문 340개
댓글 0개 설명 없음
투표 {count}개

답변 2개

정렬 기준: 가장 유용함
  1. Phillip LEE 25 평판 포인트
    2024-12-12T03:32:37.9066667+00:00

    Only PFX certificates can be applied, but a PEM certificate was used, causing the issue. The issue has been resolved.

    1명이 이 답변이 도움이 된다고 생각했습니다.

  2. Gustavo Santos 0 평판 포인트
    2025-01-08T14:32:15.33+00:00

    Thanks mate, you saved me. What an unclear error!

    댓글 0개 설명 없음

답변

질문 작성자가 수락한 답변이라고 답변에 표시할 수 있으며, 이를 통해 작성자의 문제를 해결한 답변을 사용자가 알 수 있도록 도와줍니다.