Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.

Home Page:https://aka.ms/azd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

container app deployment does not preserve KeyVault secrets

weikanglim opened this issue · comments

Container app deployment does not preserve KeyVault secrets.

To reproduce:

  1. Set a container app secret referencing a KeyVault
  2. Run azd deploy
  3. Check container app secret.

Expected:
Secret should remain unchanged.

Actual:
The secret is no longer referencing a KeyVault. It lost its properties keyVaultUrl and identity.

Before:

{
  "value": [
    {
      "identity": "<identity>",
      "keyVaultUrl": "<keyvault endpoint>",
      "name": "secret-keyault",
      "value": "somevalue"
    }
  ]
}

After:

{
  "value": [
    {
      "name": "secret-keyault",
      "value": "somevalue"
    }
  ]
}

Will have a quick fix for this soon.