I am creating VM which is starting the docker image. Docker image start takes some time. But before docker completely boots up, the Azure VM state is already Running.
I want to wait for cloud-init to complete before azure sets its status to Running. Is there any way using which I can tell azure this VM is not running and when docker boots up, I can do some rest API call and tell azure that VM is ready now?
Something AWS cloud formation has https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-signal.html. You can signal cloud formation for VM is created. like after docker boots up, we can use it to signal cloud formation.
I am using ARM deployment. If it is possible to change state to SUCCEEDED after the docker boot that will also work for me. (Currently, It is going into SUCCEEDED state after VM goes into RUNNING state)
There is already an exact question How to wait for full cloud-initialization before VM is marked as running. but looks like it is buried deep inside.