Skip to content

Application Registration created with "az ad sp create-for-rbac" defaults to global sign-in-audience #25881

@michaelhambe

Description

@michaelhambe

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command
az ad sp create-for-rbac n {name} --scope {scope} --role {role}

Describe the bug
In the past, this command would create both the service principal and application registration, where the application registration would be a single-tenant app. However, the behaviour seems to have changed as new app registrations are multi-tenant by default, with no option to choose.

To Reproduce
az ad sp create-for-rbac -n {name} --scope {scope} --role {role}

Expected behaviour
The resultant application registration is single-tenant, or a new flag is added to allow the user to choose.

The documentation could also be updated to indicate that the az ad sp command created both a Service Principal and an Application Registration.

Environment summary
Azure CLI 2.46.0 installed on OSX via Homebrew

Additional context

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions