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.
🙂

![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)

Leave a comment