See below for creating Azure Key Vault credentials with the Azure CLI.
To create Azure Key Vault credentials with the Azure CLI
- Create a service principal.
az ad sp create-for-rbac --name"KeyVault-Discovery-Plugin" - Copy the following from the command output.
- The
clientIdapplication identifier. - The
clientSecretpassword. - The
tenantIdtenant identifier.
- The
- Grant Key Vault permissions.
az keyvault set-policy --name your-keyvault-name \--spn <clientId> \--certificate-permissions get list \--key-permissions get list \--secret-permissions get list