Search code examples
azureazure-virtual-machineazure-vm

Azure VM: Auto Shutdown fails to shutdown


I have an Azure VM. I enabled Auto-Shutdown on the VM, then provided the time and time zone. Also I entered the notification email and web hook address. However when it doesn't work.

The VM is still running, the web hook hasn't been hit, i haven't received any email.

What am I missing here? Where and What should I investigate next?


Solution

  • I have tried in my environment; everything is working successfully like below:

    • Make sure to schedule shutdown time more than half an hour from current time.
    • Please check if you have given the settings like below:

    enter image description here

    • I received the email successfully with subject "Alert—Auto-shutdown of virtual machine yourvm in specified minutes" as below:

    enter image description here

    • As suggested by @Ked Mardemootoo , try disabling and enabling the shutdown.

    If still the issue persists, maybe there is a backend issue in your VM. In that case I would suggest you to raise Azure support request