Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Fix error regex when removing invalid application in add_preauthorized_app #1408

Merged
merged 3 commits into from
Oct 29, 2021

Conversation

chkeita
Copy link
Contributor

@chkeita chkeita commented Oct 28, 2021

Summary of the Pull Request

This fix an issue when add_preauthorized_app tries to remove an invalid application id.
The regex used did not correctly capture the object_id

To validate:

  • create a cli registration python .\registration.py create_cli_registration <instance> <subscription>
  • in azure portal > Azure Active Directory > App registration > (select the application created) > Delete the application
  • create a second cli registration

The creation should be successful with at least one warning with the message Property PreAuthorizedApplication references applications <application id> that cannot be found.

@chkeita chkeita enabled auto-merge (squash) October 29, 2021 18:10
@chkeita chkeita merged commit 3a5861f into microsoft:main Oct 29, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Nov 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants