alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
57 stars 15 forks source link

Failed context creation should be gracefully handled #1899

Closed jemrobinson closed 3 months ago

jemrobinson commented 4 months ago

Creation failure should indicate what needs to be done (probably authenticating against the Azure CLI in this case)?

dsh context create
2024-01-23 14:30:50 [    INFO] Reading project settings from '/Users/jrobinson/Library/Application Support/data_safe_haven/contexts.yaml'.                                                                                                             context_settings.py:208
2024-01-23 14:31:00 [   ERROR] Failed to create context resources.                                                                                                                                                                                                   cli.py:98
2024-01-23 14:31:00 [   ERROR] Failed to create resource group shm-green-rg-context.                                                                                                                                                                                 cli.py:98
2024-01-23 14:31:00 [   ERROR] Failed to authenticate with Azure.                                                                                                                                                                                                    cli.py:98
2024-01-23 14:31:00 [   ERROR] Failed to invoke the Azure CLI