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 Catching when PreDeployment.ps1 fails #10

Open
JWStarkie opened this issue Oct 12, 2021 · 1 comment
Open

Error Catching when PreDeployment.ps1 fails #10

JWStarkie opened this issue Oct 12, 2021 · 1 comment
Labels
bug Something isn't working
Projects

Comments

@JWStarkie
Copy link
Collaborator

Current State

  • When PreDeployment.ps1 fails, there is no catch for this.

Limitations

  • User left in a running indefinite loop waiting for deployment to succeed, but if it never gets to this stage this will never happen.

Request

  • Catch errors from the Cloud Shell to halt process or attempt another route for deployment.

Error in Purview deployment:

Line |
  60 | $job = Invoke-RestMethod @params
     |             ~~~~~~~~~~~~~~~~~~~~~~~~~
     | {"error":{"code":"InvalidTemplateDeployment","message":"The template deployment 'deployment-YJlDg' is not valid according to the validation procedure. The tracking id is
     | 'cf701da1-bebc-49f2-9739-306c0af81782'. See inner errors for details.","details":[{"code":"2005","message":"Tenant 72f988bf-86f1-41af-91ab-2d7cd011db47 with 200 accounts has
     | surpassed its resource quota for westeurope location. Please try creating in other available locations or contact support."}]}}```
@JWStarkie JWStarkie added the bug Something isn't working label Oct 12, 2021
@JWStarkie JWStarkie added this to To do in PurviewDemo via automation Oct 12, 2021
@JWStarkie
Copy link
Collaborator Author

Need to catch the error if a particular location fails for Purview deployment, try another location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant