Azure Key Vault - symbol limitation for Azure DevOps

Anonymous
2020-10-27T10:08:06.277+00:00

Within Azure Key Vault, you can have hyphens as the only valid symbol for the name field. This is an issue when using variable libraries in Azure DevOps to access a secret in Key Vault. For example, TF_VAR_ is the name of a variable that is accessible in some code we have. There is no method I can see where you can map the name in Key Vault to a variable name in DevOps. This variable must contain symbols like underscores as the binary expects pass throughs from external sources to start with TF_VAR_

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,451 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,911 Reputation points Microsoft Employee Moderator
    2020-10-27T23:25:26.383+00:00

    anonymous user
    Thank you for your question!

    For your issue, have you looked into the Use secrets from Azure Key Vault in Azure Pipelines documentation or any of the others below? Since the Key Vault naming convention doesn't allow the use of underscores "_", please feel free to leverage our User Voice forum to request this feature be implemented. If you require in-depth Azure DevOps troubleshooting when it comes to using secrets with your variable libraries, can you please post your question on our dedicated Azure DevOps Community forum.

    Additional Links:
    Set secret variables
    Reference secret variables in variable groups

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.