How can I test a Freeze Scheduled Event in the Azure Portal?

A M 6 Reputation points
2021-10-14T16:27:48.53+00:00

I'd like to initiate and test Freeze events from the Azure portal (or even some other means) but I can't seem to find anything on this. This would be similar to how Reboot and Redeploy events can be tested (once Scheduled Events have been enabled for the VM). Is there any way to test Freeze events on VMs within Azure or any way to user-initiate Freeze events?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,201 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,891 Reputation points Microsoft Employee
    2021-10-19T07:03:03.363+00:00

    @A M Apologies for the delay in response and all the inconvenience caused because of the issue.

    Scheduled Events is an Azure Metadata Service that gives your application time to prepare for virtual machine (VM) maintenance. It provides information about upcoming maintenance events (for example, reboot) so that your application can prepare for them and limit disruption. It's available for all Azure Virtual Machines types, including PaaS and IaaS on both Windows and Linux.

    As mentioned here you can make use of below to query VM:

    curl -H Metadata:true http://169.254.169.254/metadata/scheduledevents?api-version=2020-07-01  
    

    You can refer to this as well to understand how to use script to achieve same.

    Hope it helps!!!

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.