Please refer my previous article on steps to configure and consume the Environment Variable of type Secret.

I had encountered an issue while importing a solution that had an Environment Variable of type Secret, using pac cli.

Reason and Fix:

  • In my Deployment Settings file, I had provided ‘1234’ as the Environment Variable value which is an incorrect format.
    • If you are wondering what is Deployment Settings file, its used to pre-populate the connection reference and environment variable information for your deployment.
  • The supported format is
/subscriptions/{Subscription ID}/resourceGroups/{Resource Group Name}/providers/Microsoft.KeyVault/vaults/{Key Vault Name}/secrets/{Secret Name}
  • Replace {Subscription ID}, {Resource Group Name}, {Key Vault Name} and {Secret Name} with appropriate values.
  • The same applies when you manually import a solution and are prompted to provide the environment variables.

🙂

Advertisements
Advertisements

One response to “Dataverse solution import failure| Invalid format of KeyVault secret reference found”

  1. Vishal Thakur Avatar
    Vishal Thakur

    It worked.
    Thanks a lot 🙂

Leave a comment