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

Error in Create-RunAsAccount if Role Assignment Fails #81

Open
jarrodmast opened this issue May 11, 2021 · 0 comments
Open

Error in Create-RunAsAccount if Role Assignment Fails #81

jarrodmast opened this issue May 11, 2021 · 0 comments

Comments

@jarrodmast
Copy link

Line 53 has the erroraction on the end of line, but should be moved left of the pipe for the new-azroleassignment, could even remove the write-verbose and pipe altogether.
Otherwise the script error stops and fails to return application id.

In my case the system appears to automatically assign the role and that caused the first new-azroleassignment to return null due to the role already being assigned.

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

No branches or pull requests

1 participant