![]() |
#1 |
Участник
|
waldo: Use Azure KeyVault in AzureDevops for sharing licensing and other secrets
Источник: https://dynamicsuser.net/nav/b/waldo...-other-secrets
============== You are probably aware on how “secrets” work in AzureDevops. In a way, it’s simple: you can create variables, and store the value of the variable as a secret or not, simply by tapping the “lock” when creating a variable. ![]() Quite Easy! But … Thing is – out-of-the-box variable-definition in DevOps – as far as I know – is “just” on project-level. We can define variables on a pipeline, we can pass to templates, we can create “global” variables and such … but sometimes, you need to be able to share a (secret) value, like license-key, over about all your projects. Or even across multiple DevOps organizations – however you chose to set it up. Many partners have 1 DEV license key that expires every 90 days, so you might want to be able to share that license key over all your projects. The goal is: when you have a new key, there is just one place to change, and all your pipelines will keep running. How do I share Secret variables over multiple projects? Let me share you a simple way to do that, but first a disclaimer: it could very well be that I’m not aware of a built-in DevOps option to do this. Please let me know in the comments if that’s the case. Step 1: Set up an Azure Key Vault in the Azure Portal In Azure (yes, you’ll need access to the Azure Portal), you have “Azure Key Vault”. ![]() ![]() Once you created your vault, you can simply navigate to it.. ![]() ![]() ![]() ![]() Step 3: Create a variable group As you might already know, variable groups can be linked to secrets in an Azure Key Vault. Since these are all secrets that we want to manage on a “high level”, it makes sense to take the highest level we can to manage variables in DevOps, and that’s: Variable Groups. ![]() Make sure you link it with your Azure Key Vault (and Autorize the subscription, and the vault if necessary). ![]() ![]() Step 5: Use it in your pipelines Here are a few examples on how to link it in your pipelines ![]() ![]() ![]() ![]() Источник: https://dynamicsuser.net/nav/b/waldo...-other-secrets
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|