Improve how Azure reports that operations ended
During my work, I have noticed that many operations like updating, stopping or removing VMs are reported as completed before the requested changes have finished being applied. For example, if you remove a VM, the operation is reported as completed although disks need some extra time to be completely detached (and, thus, removed or reused).
That was one example but there are others. All these kinds of I-have-not-actually-finished-doing-the-work situations often break scripts. Manually implementing sleep-and-check code blocks is not a clean and safe option at all, because this is something that the API shoud offer.
Because all of this, we suggest that Azure should have a deep revision about how operations ending statuses are returned, to ensure that all the operations are 100% ended when they are reported as ended.
We suggest this in a general way. It would not be practical to just solve, for example, the aforementioned issue while removing VMs, if other issues appear and put us again in the same situation.
I really hope that you find interesting this feedback. Thank you in advance.
I agree with your recomendation, I would like to trust in Azure REST API .... but at the moment lot of sleeps and several check in my PowerShell Scripts ....