hi @mf
The server only shuts down completely when all services are disabled, there is probably some service in Windows that should take a while to shut down, try to identify this service in the event viewer
or
In these case I recommend opening a support ticket with Microsoft through the azure portal, but you can force shutdown a VM with the command below:
az vm stop --resource-group RESOURCE_GROUP_NAME --name VM-NAME --skip-shutdown
I wrote an article showing the step by step to do this:
Get in touch if you need more help with this issue.
--please don't forget to "Accept the answer" if the reply is helpful--