Skip to content

Commit 94cf970

Browse files
committed
Added message about modifying existing app or sp
1 parent abcf799 commit 94cf970

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs-ref-conceptual/Latest-version/azure-cli-sp-tutorial-1.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ Use the [az ad sp create-for-rbac][10] Azure CLI reference command to create a s
4040
This example doesn't specify a `--name` parameter, so a name containing a time stamp is
4141
automatically created.
4242

43+
> [!WARNING]
44+
> The `az ad sp create-for-rbac` command can modify an existing application or service principal if
45+
> another object shares the same **display name**. Display names aren't unique and can change, which
46+
> could result in credential loss or incorrect RBAC assignments.
47+
>
48+
> Use a **unique object ID or app ID** instead. For details, see
49+
> [GitHub issue #32299](https://github.com/Azure/azure-cli/issues/32299).
50+
4351
```azurecli-interactive
4452
az ad sp create-for-rbac
4553
```

0 commit comments

Comments
 (0)