I cannot list key secrets using az cli from a linux VM

MUSYOKA KILONZO 41 Reputation points
2024-03-27T08:31:46.06+00:00

Pleae note that I cannot list key secrets using az cli from a linux VM.I have created a private endpoint connection to the Keyvault and DNS resolves correctly which means the VM has a connection to the Key vault.I am getting the below error.

az keyvault secret list --vault-name devops-rg

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,898 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 94,811 Reputation points
    2024-03-27T08:44:23.28+00:00

    Hi,

    Based on the error you are seeing, it seems you didn't enter the correct name for your key vault. You entered "devops-rg" which appears to be the name of a resource group.

    Please browse to your key vault in the Azure portal and verify that you are using the correct name. Once you have double-checked the name please try the command again.

    Please click Accept Answer and upvote if the above was helpful. If something is unclear or you still need assistance add a comment below.

    Thanks.

    -TP

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.