Not able to create Artifact repository in DevTest Labs - KeyVault not found

michal.naprstek 1 Reputation point
2021-12-10T14:04:17.627+00:00

Hello,

I'm trying to create custom artifact repository to be able to automate creating environment from pipeline in Azure Devops. Since the ARM template has to be loaded from Azure repository, I tried to create one. But it always tells me, that key vault was not found. I can't see any information where the key vault is expected to exist to make it work.

I will be very thankful for any thoughts how to tackle this issue.

156684-image.png

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
267 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 19,032 Reputation points Microsoft Employee
    2021-12-13T16:25:36.823+00:00

    You might need to enter a complex secret when you use Azure DevTest Labs. Secrets include passwords for your Windows VMs, public SSH keys for your Linux VMs, or personal access token to clone your Git repo through an artifact. Secrets are often long and have random characters. Entering them can be tricky and inconvenient, especially if you use the same secret multiple times.

    To solve this problem and keep your secrets in a safe place, DevTest Labs supports storing secrets in an Azure key vault. The first time a user saves a secret, DevTest Labs automatically creates a key vault in the same resource group as the lab, and stores the secret. DevTest Labs creates a separate key vault for each user.

    Lab users need to create a lab virtual machine before they can create a secret in the key vault. This requirement is because DevTest Labs must associate lab users with valid user documents. DevTest Labs then allows users to create and store secrets in their key vaults.

    This document talks about storing secrets in a key vault in Azure DevTest Labs https://learn.microsoft.com/en-us/azure/devtest-labs/devtest-lab-store-secrets-in-key-vault

    Can you please check if the key vault exists as described in the document above and let me know?

    If soft delete was enabled on the vault then you can recover it using instructions here Azure Key Vault recovery overview | Microsoft Learn
    Please try and let me know and I can further investigate.

    0 comments No comments