Search code examples
azureazure-cli

Get Password using CLI from Azure Key Vault


I stored password in azure key vault account and i want that to be get from cli so that I can copy them any time when ever needed

much appreciated for help!


Solution

  • Here is the command for displaying password through CLI

    az keyvault secret show \
        --name <Your Secret Name> \
        --vault-name <Your Key Vault Name> \
        --query value \
        --output tsv
    

    I have tested in my local environment, and it worked for me

    enter image description here