![]() Next, I’ll check the VM’s Activity log in the Azure portal. This gives me a clue that it may be a factor outside of the server OS. But it’s not very good at tell me what initiated it. Starting with the Windows Server event log, it tells me that a shut down event was initiated at 2200hrs. Now I have a few ideas outside the scope of just that one script, it’s time to go and look at the facts. See if you can identify something I’ve left off this list, on purpose! Could the cause of the shut down be inside the VM itself and not related to Azure? Something else controlling that server – think of a local script, application or third party management tool. Azure Dev/Test Labs – These pre-configured Azure Resource Manager templates let you specify auto shutdown (and auto start) times and policies for your Azure VMs.Ĥ. Windows Update – settings on the server itself, Azure Update Management, or even a third party management tool (though in none of those scenarios would I expect it to happen every day, but I have seen stranger things!).ģ. Has it saved correctly? Are there any other runbooks executing first?Ģ. Azure Automation – yes, that’s what we were first looking at. Let’s brainstorm a few “usual suspects” that might shut down a VM:ġ. I want to set aside for a moment any past behavior versus expected new behavior and instead go exploring some of the reasons why a virtual machine would shut down. Notice I didn’t say “why is the VM still shutting down at 10pm”. Instead, let’s rephrase the problem a little broader. Why? Because it’s the wrong question to ask. We could wrack our brains & comb through logs for days, without answering this question. With this question, we’re assuming part of the cause – that the VM is controlled by the Azure Automation Runbook but somehow doesn’t realize there has been an updated change to the schedule. “Why isn’t the VM acknowledging the changed time in the updated schedule?” So they started to investigate the wrong question … After changing the script to 11pm, the admin noticed that the server was still shutting down at 10pm. The systems administrator had an Azure Automation Runbook in place that told the Azure Windows Server virtual machine to shut down at 10pm each night. Learn how asking the wrong question can cause you to miss the answer! Recently I came across a scenario where someone had changed the time on a scheduled Azure virtual machine shut down, but the VM was not adhering to the shut down new time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |