How can I use AZ commands to create client secret the same way I can do it from the portal?
Generate the Client IDLogin to the Azure portal. Search for Azure Key Vault. Click +Add to create a new key vault as shown below: After the vault is created, from the left navigation, select the Overview section and make note of the Vault URI AZURE_KEYVAULT_URL.
You are looking for az ad app credential reset
, it appends or overwrites an application's password(i.e. client secret
) or certificate credentials.
az ad app credential reset --id
[--append]
[--cert]
[--create-cert]
[--credential-description]
[--end-date]
[--keyvault]
[--password]
[--years]
Sample(you can also specify other parameters, it depends on you):
az ad app credential reset --id xxxxxxxxxxxx --append
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With