Hello Bogdanr,
Assuming you are using Azure DevOps for your Pipelines, Azure Container Instance Deployment.
One of the ways to integrate and set container instance environment variables and secrets with ADO pipeline from AKV, is to define it in your ADO Variables group library and use that as Environment variable is your Yml file.
ADO Pipelines-> Library -> Add Variable group -> check the Link secrets from Azure key vaults as variables>Specify your Azure Subscription>Key vaults name and authorize.
After the authorization succeeds, you have referenced your variable to be used in your deployment Yaml pipeline file. After the Azure Cli Service connection task
2 CLI Examples below:
In your variables area you can add your created variable group
variables:
-group: yourvariablegroup
During your az container create using Azure CLI command you can pass your variables group values.
— environment-variables \
— secure-environment-variables \
Hope this helps.