CmdID / az / az ad / az ad sp / az ad sp credential
az ad sp credential reset
Reset a service principal's password or certificate credentials Azure CLI reference
7 options Its page in the Azure CLI reference
Options
--appendAppend the new credential instead of overwriting.--certCertificate to use for credentials.--create-certCreate a self-signed certificate to use for the credential.--display-nameFriendly name for the credential.--end-dateFiner grain of expiry time if '--years' is insufficient, e.g. '2020-12-31T11:59:59+00:00' or '2299-12-31'--keyvaultName or ID of a KeyVault to use for creating or retrieving certificates.--yearsNumber of years for which the credentials will be valid.