{"id":8350,"date":"2024-10-09T03:23:12","date_gmt":"2024-10-09T03:23:12","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=8350"},"modified":"2024-10-09T03:23:14","modified_gmt":"2024-10-09T03:23:14","slug":"how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days","title":{"rendered":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Create a new Resource group and then new Log Analytics Workspace <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics Workspace you created<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"409\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-2-1024x409.png\" alt=\"\" class=\"wp-image-8351 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-2-1024x409.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-2-300x120.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-2-768x307.png 768w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-2.png 1097w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"438\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-3-1024x438.png\" alt=\"\" class=\"wp-image-8352 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-3-1024x438.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-3-300x128.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-3-768x328.png 768w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-3.png 1092w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Setup the Alert <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"273\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-4.png\" alt=\"\" class=\"wp-image-8353 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-4.png 751w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-4-300x109.png 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Choose the Subscription <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">let DaysOfLogsToCheck = ago(7days);\nlet MaxUptime = ago(3d); \/\/ If the VM has been up for this long we want to know about it\nAzureActivity\n| where TimeGenerated > DaysOfLogsToCheck\n\/\/ ActivityStatus == \"Succeeded\" makes more sense, but in practice it can be out of order, so \"Started\" is better in the real world\n| where OperationName in (\"Deallocate Virtual Machine\", \"Start Virtual Machine\") and ActivityStatus == \"Started\"\n\/\/ We need to keep only the most recent entry of type 'Deallocate Virtual Machine' or 'Start Virtual Machine'\n| top 1 by TimeGenerated desc\n\/\/ Check if the most recent entry was \"Start Virtual Machine\" and is older than MaxUpTime\n| where OperationName == \"Start Virtual Machine\" and TimeGenerated &lt;= MaxUptime\n| project TimeGenerated, Resource, OperationName, ActivityStatus, ResourceId\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"696\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-5-1024x696.png\" alt=\"\" class=\"wp-image-8354 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-5-1024x696.png 1024w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-5-300x204.png 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-5-768x522.png 768w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-5.png 1160w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Create a new Resource group and then new Log Analytics Workspace Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8350","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Create a new Resource group and then new Log Analytics Workspace Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics Workspace you created Setup the Alert Choose the Subscription let DaysOfLogsToCheck = ago(7days); let MaxUptime = ago(3d); \/\/ If the VM has been up for this long we\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"Create a new Resource group and then new Log Analytics Workspace Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics Workspace you created Setup the Alert Choose the Subscription let DaysOfLogsToCheck = ago(7days); let MaxUptime = ago(3d); \/\/ If the VM has been up for this long we\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-10-09T03:23:12+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-09T03:23:14+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Create a new Resource group and then new Log Analytics Workspace Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics Workspace you created Setup the Alert Choose the Subscription let DaysOfLogsToCheck = ago(7days); let MaxUptime = ago(3d); \/\/ If the VM has been up for this long we\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#article\",\"name\":\"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days | Welcome to Pariswells.com\",\"headline\":\"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/image-2-1024x409.png\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days\\\/#articleImage\"},\"datePublished\":\"2024-10-09T03:23:12+00:00\",\"dateModified\":\"2024-10-09T03:23:14+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#webpage\"},\"articleSection\":\"Research\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#listItem\",\"name\":\"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#listItem\",\"position\":3,\"name\":\"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days\",\"name\":\"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days | Welcome to Pariswells.com\",\"description\":\"Create a new Resource group and then new Log Analytics Workspace Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics Workspace you created Setup the Alert Choose the Subscription let DaysOfLogsToCheck = ago(7days); let MaxUptime = ago(3d); \\\/\\\/ If the VM has been up for this long we\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2024-10-09T03:23:12+00:00\",\"dateModified\":\"2024-10-09T03:23:14+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days | Welcome to Pariswells.com","description":"Create a new Resource group and then new Log Analytics Workspace Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics Workspace you created Setup the Alert Choose the Subscription let DaysOfLogsToCheck = ago(7days); let MaxUptime = ago(3d); \/\/ If the VM has been up for this long we","canonical_url":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#article","name":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days | Welcome to Pariswells.com","headline":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/10\/image-2-1024x409.png","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days\/#articleImage"},"datePublished":"2024-10-09T03:23:12+00:00","dateModified":"2024-10-09T03:23:14+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#webpage"},"articleSection":"Research"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#listItem","name":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#listItem","position":3,"name":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#webpage","url":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days","name":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days | Welcome to Pariswells.com","description":"Create a new Resource group and then new Log Analytics Workspace Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics Workspace you created Setup the Alert Choose the Subscription let DaysOfLogsToCheck = ago(7days); let MaxUptime = ago(3d); \/\/ If the VM has been up for this long we","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2024-10-09T03:23:12+00:00","dateModified":"2024-10-09T03:23:14+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days | Welcome to Pariswells.com","og:description":"Create a new Resource group and then new Log Analytics Workspace Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics Workspace you created Setup the Alert Choose the Subscription let DaysOfLogsToCheck = ago(7days); let MaxUptime = ago(3d); \/\/ If the VM has been up for this long we","og:url":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days","article:published_time":"2024-10-09T03:23:12+00:00","article:modified_time":"2024-10-09T03:23:14+00:00","twitter:card":"summary","twitter:title":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days | Welcome to Pariswells.com","twitter:description":"Create a new Resource group and then new Log Analytics Workspace Export the Admin Diagnostics of the Resource group the server sits in to the Log Analytics Workspace you created Setup the Alert Choose the Subscription let DaysOfLogsToCheck = ago(7days); let MaxUptime = ago(3d); \/\/ If the VM has been up for this long we"},"aioseo_meta_data":{"post_id":"8350","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-12-10 15:52:08","updated":"2025-12-10 15:52:08","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Use Azure Monitor to alert for when an Azure VM has been left on for X Days\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"How to Use Azure Monitor to alert for when an Azure VM has been left on for X Days","link":"https:\/\/pariswells.com\/blog\/research\/how-to-use-azure-monitor-to-alert-for-when-an-azure-vm-has-been-left-on-for-x-days"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=8350"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8350\/revisions"}],"predecessor-version":[{"id":8355,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8350\/revisions\/8355"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=8350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=8350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=8350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}