Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve transient failure with creating Service Principals in MAG #122

Merged
merged 12 commits into from
Apr 7, 2021

Conversation

Phydeauxman
Copy link
Contributor

Description

Added code to provide wait after creating Service Principal. In MAG, querying for the AppId and ObjectId directly after executing the SP create fails a high percentage of the time with the error saying it could not find the requested Service Principal

Issue reference

The issue this PR will close: #106

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles or validates correctly
  • BASH scripts have been validated using shellcheck
  • All tests pass (manual and automated)
  • The documentation is updated to cover any new or changed features
  • Markdown files have been linted using the recommended linter. (See .vscode/extensions.json.)
  • Relevant issues are linked to this PR

@@ -27,6 +27,19 @@ This process will build the user interface container image on your workstation u
Log in using the Azure CLI

```BASH
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these changes are unrelated to the PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just trying to cleanup the documentation some as I run across things that need to be fixed or modified for clarity. Should I not do that here in this PR?

src/scripts/config/mlz_config_create.sh Outdated Show resolved Hide resolved
@Phydeauxman Phydeauxman merged commit b528d42 into main Apr 7, 2021
@Phydeauxman Phydeauxman deleted the byboudre/mag_sp_error branch April 7, 2021 10:34
jwaltireland pushed a commit to ARPA-H/AzureMissionLZ that referenced this pull request Nov 14, 2024
…ure#122)

* - Added code to account for SP transient error

* - Added max wait for SP and messages

* - Added wait login for SP objecut ID as well

* - Fixed sample path in Azure Installation steps

* - Removed trailing " setup_ezdeploy.sh cmd line
example

* - Modified loop logic

* - Modified script example for clarity

* - Updated loop logic for Service Principal
creation

* - Moved loop logic to function

* - Added missing $ for variable usage

Co-authored-by: Brooke Hamilton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transient "Service principal does not exist" error in Azure Gov
3 participants