Azure / azure-cli

Azure Command-Line Interface
MIT License
3.96k stars 2.94k forks source link

--id parameter info wrong #24311

Open prov-tommy-dunn opened 1 year ago

prov-tommy-dunn commented 1 year ago

neither service principal name or object id work when reseting the sp credentials. only client id.

Required Parameters --id "Service principal name, or object id."

tommydunn% az ad sp credential reset --id 30d7b452-e45c-<object_id>
Resource '30d7b452-e45c-<object_id>' does not exist or one of its queried reference-property objects are not present.

tommydunn% az ad sp credential reset --id b2c-sp                                
Service principal 'b2c-sp' doesn't exist

tommydunn% az ad sp credential reset --id babc9695-10ff-<client_id>
The output includes credentials that you must protect. Be sure that you do not include these credentials in your code or check the credentials into your source control. For more information, see https://aka.ms/azadsp-cli
{
  "appId": "babc9695-10ff-<client_id>",
  "password": "",
  "tenant": ""
}

tommydunn% az version
{
  "azure-cli": "2.41.0",
  "azure-cli-core": "2.41.0",
  "azure-cli-telemetry": "1.0.8",
  "extensions": {}
}

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

yonzhan commented 1 year ago

@jiasli for awareness