Bicep deployment of key vault keys fails with error [CaeAuthorizationFailed (Unauthorized)] AKV10203

Dan Russell 0 Reputation points
2025-02-19T19:46:34.93+00:00

Attempting to deploy a key vault key via a bicep template fails with the following error:

{
  "code": "CaeAuthorizationFailed",
  "message": "[CaeAuthorizationFailed (Unauthorized)] AKV10203: Continuous access evaluation check failed. Please extract the claims challenge from the www-authenticate header to fetch a new token"
}

The error was first noticed on 2/17/2025. The same template succeeded as late as 2/14/2025.

Key vault keys are created successfully using the following methods:

  1. Azure Portal
  2. Azure PowerShell cmdlet: Add-AzKeyVaultKey

Any ideas on troubleshooting the bicep deployment.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,381 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 26,256 Reputation points MVP
    2025-02-20T07:07:28.8866667+00:00

    Hi,

    This is not likely related strictly to backup but the authentication method you use when deploying via Bicep. What kind of authentication method you use? Can you provide the full template? I have seen cases where CSP authentication (AOBO/GDAP) with Service principal is not working with certain type of resources in Azure. The workaround is to use service principal from the tenant where the deployment is.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.