In my previous post below we saw how we can run Azure VMs in safe mode by using the Azure…