Currently the azd provision command does not offer much in the way of machine-readable output. You can do --output json, but that just produces JSON-lines output of the console messages, followed by one non-single-line JSON object at the end. Parsing would be difficult and would have to rely too much on fragile heuristics.
Primarily we are interested in getting the ARM deployment ID, as soon as it is available--not waiting until the provisioning is complete.
I think the easiest solution for this would be something like a pidfile, but containing the deployment ID. Probably JSON, so we can easily expand to add more info later as needed.
/cc @puicchan @wbreza @alexweininger @nturinski
Currently the
azd provisioncommand does not offer much in the way of machine-readable output. You can do--output json, but that just produces JSON-lines output of the console messages, followed by one non-single-line JSON object at the end. Parsing would be difficult and would have to rely too much on fragile heuristics.Primarily we are interested in getting the ARM deployment ID, as soon as it is available--not waiting until the provisioning is complete.
I think the easiest solution for this would be something like a pidfile, but containing the deployment ID. Probably JSON, so we can easily expand to add more info later as needed.
/cc @puicchan @wbreza @alexweininger @nturinski