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

Handle AuthorizationFailed in manage-azure-deployment.sh #55

Open
netr0m opened this issue Feb 1, 2024 · 0 comments
Open

Handle AuthorizationFailed in manage-azure-deployment.sh #55

netr0m opened this issue Feb 1, 2024 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@netr0m
Copy link
Contributor

netr0m commented Feb 1, 2024

Expected Behaviour

Receiving an AuthorizationFailed error should cause the script to abort.

Actual Behaviour

Creating Resource Group 'MultiJuicerTest' in 'norwayeast'
ERROR: (AuthorizationFailed) The client '<REDACTED>' with object id '<REDACTED>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/<REDACTED>/resourcegroups/MultiJuicerTest' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed

Creating AKS cluster 'juicy-k8s'
ERROR: (AuthorizationFailed) The client '<REDACTED>' with object id '<REDACTED>' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/<REDACTED>/resourcegroups/MultiJuicerTest' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed

[...]

Steps to Reproduce

  • Run the script manage-azure-delpoyment.sh as a user without permission to create resources (e.g. as the Service Principal)
@netr0m netr0m added the 🐛 bug Something isn't working label Feb 1, 2024
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
None yet
Development

No branches or pull requests

1 participant