{"id":2045,"date":"2021-05-02T20:54:54","date_gmt":"2021-05-03T01:54:54","guid":{"rendered":"https:\/\/www.ciraltos.com\/?p=2045"},"modified":"2023-03-23T06:35:18","modified_gmt":"2023-03-23T11:35:18","slug":"automatically-add-an-azure-tag-using-event-grid-and-azure-functions","status":"publish","type":"post","link":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/","title":{"rendered":"Automatically add an Azure Tag Using Event Grid and Azure Functions"},"content":{"rendered":"\n<figure class=\"wp-block-image alignleft size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2019\/09\/Function-App.png\" alt=\"Azure Function\" class=\"wp-image-1359\" width=\"137\" height=\"125\"\/><\/figure>\n\n\n\n<p>In this video, we apply Azure Tags to Resource Groups automatic with Event Grid and Azure Functions.&nbsp; We configure Azure Event Grid on a subscription to send an event whenever a new resource group is created.&nbsp; Then, we configure a PowerShell Function App with a Managed Identity to use the event data and tag the resource group with the date and creator\u2019s name. <\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"ast-oembed-container\" style=\"height: 100%;\"><iframe loading=\"lazy\" title=\"Automatically add an Azure Tag Using Event Grid and Azure Functions\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/_3QJ2k_8zuE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>Links<br>Project Code:<br> <a href=\"https:\/\/github.com\/tsrob50\/AzureFunctionDemos\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/tsrob50\/AzureFunctionDemos (opens in a new tab)\">https:\/\/github.com\/tsrob50\/AzureFunctionDemos<\/a><br>Zero to Hero with Windows Virtual Desktop:<br> <a href=\"https:\/\/www.udemy.com\/course\/zero-to-hero-with-windows-virtual-desktop\/?referralCode=B2FE49E6FCEE7A7EA8D4\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.udemy.com\/course\/zero-to-hero-with-windows-virtual-desktop\/?referralCode=B2FE49E6FCEE7A7EA8D4 (opens in a new tab)\">https:\/\/www.udemy.com\/course\/zero-to-hero-with-windows-virtual-desktop\/?referralCode=B2FE49E6FCEE7A7EA8D4<\/a> <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this video, we apply Azure Tags to Resource Groups automatic with Event Grid and Azure Functions.&nbsp; We configure Azure Event Grid on a subscription to send an event whenever a new resource group is created.&nbsp; Then, we configure a PowerShell Function App with a Managed Identity to use the event data and tag the &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/\"> <span class=\"screen-reader-text\">Automatically add an Azure Tag Using Event Grid and Azure Functions<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3821,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[1],"tags":[230,650,980,9,983,614,985,979,455,456,984,975,297,981,20,986,187,982],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Automatically add an Azure Tag Using Event Grid and Azure Functions - ciraltos<\/title>\n<meta name=\"description\" content=\"This video applies Azure Tags to Resource Groups automatic with Event Grid and Azure Functions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automatically add an Azure Tag Using Event Grid and Azure Functions - ciraltos\" \/>\n<meta property=\"og:description\" content=\"This video applies Azure Tags to Resource Groups automatic with Event Grid and Azure Functions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"ciraltos\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-03T01:54:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-23T11:35:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2021\/08\/Function-App.png\" \/>\n\t<meta property=\"og:image:width\" content=\"182\" \/>\n\t<meta property=\"og:image:height\" content=\"167\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Travis Roberts\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:site\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Travis Roberts\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/\"},\"author\":{\"name\":\"Travis Roberts\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"headline\":\"Automatically add an Azure Tag Using Event Grid and Azure Functions\",\"datePublished\":\"2021-05-03T01:54:54+00:00\",\"dateModified\":\"2023-03-23T11:35:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/\"},\"wordCount\":111,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"keywords\":[\"Automation\",\"az\",\"az module\",\"Azure\",\"azure event grid\",\"azure function\",\"Azure Learning\",\"Azure Tag\",\"Event\",\"Event Grid\",\"Event Grid Filter\",\"free azure tutorial\",\"JSON\",\"learn Azure function\",\"Powershell\",\"PowerShell Function\",\"resource group\",\"tag\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/\",\"name\":\"Automatically add an Azure Tag Using Event Grid and Azure Functions - ciraltos\",\"isPartOf\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\"},\"datePublished\":\"2021-05-03T01:54:54+00:00\",\"dateModified\":\"2023-03-23T11:35:18+00:00\",\"description\":\"This video applies Azure Tags to Resource Groups automatic with Event Grid and Azure Functions.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.ciraltos.com\/staging2\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automatically add an Azure Tag Using Event Grid and Azure Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\",\"url\":\"http:\/\/www.ciraltos.com\/staging2\/\",\"name\":\"ciraltos\",\"description\":\"cloud, technology and trends\",\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\",\"name\":\"Travis Roberts\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"contentUrl\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"width\":5657,\"height\":3563,\"caption\":\"Travis Roberts\"},\"logo\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.ciraltos.com\",\"https:\/\/twitter.com\/ciraltos\"],\"url\":\"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automatically add an Azure Tag Using Event Grid and Azure Functions - ciraltos","description":"This video applies Azure Tags to Resource Groups automatic with Event Grid and Azure Functions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/","og_locale":"en_US","og_type":"article","og_title":"Automatically add an Azure Tag Using Event Grid and Azure Functions - ciraltos","og_description":"This video applies Azure Tags to Resource Groups automatic with Event Grid and Azure Functions.","og_url":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/","og_site_name":"ciraltos","article_published_time":"2021-05-03T01:54:54+00:00","article_modified_time":"2023-03-23T11:35:18+00:00","og_image":[{"width":182,"height":167,"url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2021\/08\/Function-App.png","type":"image\/png"}],"author":"Travis Roberts","twitter_card":"summary_large_image","twitter_creator":"@ciraltos","twitter_site":"@ciraltos","twitter_misc":{"Written by":"Travis Roberts","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/#article","isPartOf":{"@id":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/"},"author":{"name":"Travis Roberts","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"headline":"Automatically add an Azure Tag Using Event Grid and Azure Functions","datePublished":"2021-05-03T01:54:54+00:00","dateModified":"2023-03-23T11:35:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/"},"wordCount":111,"commentCount":0,"publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"keywords":["Automation","az","az module","Azure","azure event grid","azure function","Azure Learning","Azure Tag","Event","Event Grid","Event Grid Filter","free azure tutorial","JSON","learn Azure function","Powershell","PowerShell Function","resource group","tag"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/","url":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/","name":"Automatically add an Azure Tag Using Event Grid and Azure Functions - ciraltos","isPartOf":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#website"},"datePublished":"2021-05-03T01:54:54+00:00","dateModified":"2023-03-23T11:35:18+00:00","description":"This video applies Azure Tags to Resource Groups automatic with Event Grid and Azure Functions.","breadcrumb":{"@id":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ciraltos.com\/staging2\/automatically-add-an-azure-tag-using-event-grid-and-azure-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.ciraltos.com\/staging2\/"},{"@type":"ListItem","position":2,"name":"Automatically add an Azure Tag Using Event Grid and Azure Functions"}]},{"@type":"WebSite","@id":"http:\/\/www.ciraltos.com\/staging2\/#website","url":"http:\/\/www.ciraltos.com\/staging2\/","name":"ciraltos","description":"cloud, technology and trends","publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a","name":"Travis Roberts","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/","url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","contentUrl":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","width":5657,"height":3563,"caption":"Travis Roberts"},"logo":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.ciraltos.com","https:\/\/twitter.com\/ciraltos"],"url":"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/2045"}],"collection":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/comments?post=2045"}],"version-history":[{"count":2,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/2045\/revisions"}],"predecessor-version":[{"id":3867,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/2045\/revisions\/3867"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media\/3821"}],"wp:attachment":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media?parent=2045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/categories?post=2045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/tags?post=2045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}