Dynamics Chronicles
Search

Handle secrets in Azure DevOps

Published
Author
Mattias Liloia
Reviewed by
Lloyd Sebag
Type
Trick

When creating a ci/cd pipeline for your project, at some point you have to define a connection to your environment. In case of Dataverse, the connection string will contain clientid and client secret values. It's always a good idea to store secret values in a secure place, instead of putting them in clear text into your pipeline definition file (yaml) and potentially pushing them into your code repository.

Azure DevOps provides you a number of possible solutions to address just that:

Personally, I prefer to use Azure Key Vault because it allows me to use these secrets in other applications too (like for example an Azure Functions).