Azure / Azure/azure-cli

--id parameter info wrong

Open
#24,311 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-identity-squad Auto-Assign Azure CLI Team customer-reported feature-request Graph
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

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

[Required Parameters
--id](https://learn.microsoft.com/en-us/cli/azure/ad/sp/credential?view=azure-cli-latest#az-ad-sp-credential-reset-required-parameters)
"Service principal name, or object id."

```
tommydunn% az ad sp credential reset --id 30d7b452-e45c-
Resource '30d7b452-e45c-' 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-
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-",
"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.*

* ID: 7bef1f12-de16-93ed-1cb7-3f3d5d99d786
* Version Independent ID: 4e9329a6-50f8-ee2a-af63-f750d66ed574
* Content: [az ad sp credential](https://learn.microsoft.com/en-us/cli/azure/ad/sp/credential?view=azure-cli-latest#az-ad-sp-credential-reset)
* Content Source: [latest/docs-ref-autogen/ad/sp/credential.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/ad/sp/credential.yml)
* Service: **active-directory**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.