Azure: return ARM errors when controller provisioning fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
This might be a feature request.
STR:
- run `juju bootstrap azure/centralus`
EXPECTED:
- juju controller provisioned
ACTUAL:
- "ERROR failed to bootstrap model: instance provisioning failed (Failed)"
Looking into the Azure deployment logs, this is because the default VM size (Standard D1 v2) chosen for the Azure region isn't available to me:
{"code"
I had to jump quickly into the Azure Portal, find the juju deployment, and drill into the error to find this all before the entire juju resource group is automatically deleted. It would be help if juju reported this error back to the user so the user has guidance on how to fix.
Just to clarify, is the goal to
a) Provide better error messaging when we are unable to provision an instance
b) Pick a different VM size
c) Pick a different region
How did you resolve the issue?
Does Azure have a way to know if an instance type is available (without actually trying to launch an instance)?