Skip to content

AZ AD APP - Can't update SPA Redirect URIs #31892

@julesblancphin

Description

@julesblancphin

Related command
az ad app

Is your feature request related to a problem? Please describe.
The az ad app command let's you update redirect uris but only for webapps, not SPAs. It would be beneficial if the azure CLI fully supported updating an app registration's SPA redirect URIs.

I've got an IaC pipeline to provision envs for my SPA, I need to be able to automatically update an app registration in B2C.

I have seen similar requests going as far back as 2020 but all have been ignored.

Here is a link to the https://learn.microsoft.com/en-us/cli/azure/ad/app?view=azure-cli-latest#az-ad-app-create

Describe the solution you'd like
There's an option called --web-redirect-uris, it would be nice to have one called --spa-redirect-uris

Describe alternatives you've considered
Using az rest does not work.

Doing it through the UI is not a solution either, for security reasons and the fact that it would become a manual step. It also goes against the purpose of the Azure CLI.

Additional context
The Azure CLI can be used in IaC pipelines to provision resources. As part of this, it's important to be able to automatically update an app registration's redirect URIs. This currently only is doable for webapps but not SPAs.

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botGraphaz adPossible-SolutionService AttentionThis issue is responsible by Azure service team.Similar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions