Az keyvault list

Recently, I got the opportunity to use the az keyvault list command. This article will discuss the syntax and usage of the az keyvault list Azure CLI command with certain examples.

Az keyvault list

This command helps you to list the Azure key Vaults and/or HSMs.

Syntax

az keyvault list [--resource-group]

Example

The below command helps you get the Azure key vault lists under the specified Resource Groups.

az keyvault list --resource-group MyNewResGrp

After executing the above command, I got the expected output as shown below.

[
  {
    "id": "/subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1/resourceGroups/MyNewResGrp/providers/Microsoft.KeyVault/vaults/azurelessonsKV",
    "location": "eastus",
    "name": "azurelessonsKV",
    "properties": {
      "accessPolicies": [],
      "createMode": null,
      "enablePurgeProtection": null,
      "enableRbacAuthorization": true,
      "enableSoftDelete": true,
      "enabledForDeployment": false,
      "enabledForDiskEncryption": false,
      "enabledForTemplateDeployment": false,
      "hsmPoolResourceId": null,
      "networkAcls": {
        "bypass": "None",
        "defaultAction": "Allow",
        "ipRules": [],
        "virtualNetworkRules": []
      },
      "privateEndpointConnections": null,
      "provisioningState": "Succeeded",
      "publicNetworkAccess": "Enabled",
      "sku": {
        "family": "A",
        "name": "Standard"
      },
      "softDeleteRetentionInDays": 90,
      "tenantId": "5d9d690a-0310-474d-ae8b-42df2d549228",
      "vaultUri": "https://azurelessonskv.vault.azure.net/"
    },
    "resourceGroup": "MyNewResGrp",
    "systemData": {
      "createdAt": "2025-01-30T10:51:30.126000+00:00",
      "createdBy": "fewlines4biju@hotmail.com",
      "createdByType": "User",
      "lastModifiedAt": "2025-01-30T10:51:30.126000+00:00",
      "lastModifiedBy": "fewlines4biju@hotmail.com",
      "lastModifiedByType": "User"
    },
    "tags": {},
    "type": "Microsoft.KeyVault/vaults"
  }
]

You can see the same output as shown in the screenshot below.

Az keyvault list

You may also like following the articles below.

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!