Skip to content

AZ AD APP - Can't update SPA redirectUris #30504

@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. There's a potential issue there I might raise.

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 botAzure CLI TeamThe command of the issue is owned by Azure CLI teamGraphaz adSimilar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestneeds-team-triageThis issue needs the team to triage.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions