{"id":1951,"date":"2021-01-17T19:44:52","date_gmt":"2021-01-18T01:44:52","guid":{"rendered":"https:\/\/www.ciraltos.com\/?p=1951"},"modified":"2023-03-23T06:43:11","modified_gmt":"2023-03-23T11:43:11","slug":"starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function","status":"publish","type":"post","link":"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/","title":{"rendered":"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function"},"content":{"rendered":"\n<figure class=\"wp-block-image alignleft size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"107\" height=\"129\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2021\/01\/Siteimage.png\" alt=\"\" class=\"wp-image-1952\"\/><\/figure>\n\n\n\n<p>This video is a step-by-step introduction for using an Elgato Stream Deck to send a Webhook that starts or stops computers in Azure based on their tag settings.&nbsp; We go over creating the Azure Function App, setting up system assigned identities and creating a custom RBAC role in Azure to grant the identity permissions to the subscription.&nbsp; Then we configure the start stop function to use values passed in from the web hook to start or stop the computers.&nbsp; Finally, we configure the Elgato Stream Deck with start and stop buttons that control the lab.<\/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=\"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/OzKOqTDz1FE?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>GitHub Link:<br> <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/tsrob50\/AzureFunctionDemos\/tree\/master\/AzureFunctionStartVMsByWebhook  (opens in a new tab)\" href=\"https:\/\/github.com\/tsrob50\/AzureFunctionDemos\/tree\/master\/AzureFunctionStartVMsByWebhook\" target=\"_blank\">https:\/\/github.com\/tsrob50\/AzureFunctionDemos\/tree\/master\/AzureFunctionStartVMsByWebhook <\/a><\/p>\n\n\n\n<p>Content on Postman and PowerShell:<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-ciraltos\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.ciraltos.com\/how-to-use-postman-and-powershell-to-query-api-data\/\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This video is a step-by-step introduction for using an Elgato Stream Deck to send a Webhook that starts or stops computers in Azure based on their tag settings.&nbsp; We go over creating the Azure Function App, setting up system assigned identities and creating a custom RBAC role in Azure to grant the identity permissions to &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/\"> <span class=\"screen-reader-text\">Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"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":[2,252],"tags":[911,907,913,240,230,9,917,210,614,910,366,914,916,903,904,752,912,11,773,20,909,905,906,908,503,313],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function - ciraltos<\/title>\n<meta name=\"description\" content=\"This video is a step-by-step introduction for using an Elgato Stream Deck to send a Webhook that starts or stops computers in Azure based on their tag settings.\" \/>\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\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function - ciraltos\" \/>\n<meta property=\"og:description\" content=\"This video is a step-by-step introduction for using an Elgato Stream Deck to send a Webhook that starts or stops computers in Azure based on their tag settings.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/\" \/>\n<meta property=\"og:site_name\" content=\"ciraltos\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-18T01:44:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-23T11:43:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2021\/01\/Siteimage.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\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/\"},\"author\":{\"name\":\"Travis Roberts\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"headline\":\"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function\",\"datePublished\":\"2021-01-18T01:44:52+00:00\",\"dateModified\":\"2023-03-23T11:43:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/\"},\"wordCount\":136,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"keywords\":[\"alexa\",\"algato\",\"amazon\",\"api\",\"Automation\",\"Azure\",\"Azure App Service\",\"Azure Automation\",\"azure function\",\"azure function app\",\"cloud computing\",\"Consumption\",\"consumption plan\",\"elgato\",\"function\",\"function app\",\"home automation\",\"Microsoft\",\"Postman\",\"Powershell\",\"start-azvm\",\"stop-azvm\",\"Stream Deck\",\"Streamdeck\",\"Sysadmin\",\"webhook\"],\"articleSection\":[\"Azure\",\"Azure Automation\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/\",\"name\":\"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function - ciraltos\",\"isPartOf\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\"},\"datePublished\":\"2021-01-18T01:44:52+00:00\",\"dateModified\":\"2023-03-23T11:43:11+00:00\",\"description\":\"This video is a step-by-step introduction for using an Elgato Stream Deck to send a Webhook that starts or stops computers in Azure based on their tag settings.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.ciraltos.com\/staging2\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function\"}]},{\"@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":"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function - ciraltos","description":"This video is a step-by-step introduction for using an Elgato Stream Deck to send a Webhook that starts or stops computers in Azure based on their tag settings.","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\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/","og_locale":"en_US","og_type":"article","og_title":"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function - ciraltos","og_description":"This video is a step-by-step introduction for using an Elgato Stream Deck to send a Webhook that starts or stops computers in Azure based on their tag settings.","og_url":"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/","og_site_name":"ciraltos","article_published_time":"2021-01-18T01:44:52+00:00","article_modified_time":"2023-03-23T11:43:11+00:00","og_image":[{"url":"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2021\/01\/Siteimage.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\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/#article","isPartOf":{"@id":"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/"},"author":{"name":"Travis Roberts","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"headline":"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function","datePublished":"2021-01-18T01:44:52+00:00","dateModified":"2023-03-23T11:43:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/"},"wordCount":136,"commentCount":0,"publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"keywords":["alexa","algato","amazon","api","Automation","Azure","Azure App Service","Azure Automation","azure function","azure function app","cloud computing","Consumption","consumption plan","elgato","function","function app","home automation","Microsoft","Postman","Powershell","start-azvm","stop-azvm","Stream Deck","Streamdeck","Sysadmin","webhook"],"articleSection":["Azure","Azure Automation"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/","url":"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/","name":"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function - ciraltos","isPartOf":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#website"},"datePublished":"2021-01-18T01:44:52+00:00","dateModified":"2023-03-23T11:43:11+00:00","description":"This video is a step-by-step introduction for using an Elgato Stream Deck to send a Webhook that starts or stops computers in Azure based on their tag settings.","breadcrumb":{"@id":"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ciraltos.com\/staging2\/starting-lab-computers-with-stream-deck-a-webhook-and-an-azure-powershell-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.ciraltos.com\/staging2\/"},{"@type":"ListItem","position":2,"name":"Starting Lab Computers with Stream Deck, a Webhook, and an Azure PowerShell Function"}]},{"@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\/1951"}],"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=1951"}],"version-history":[{"count":5,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/1951\/revisions"}],"predecessor-version":[{"id":3879,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/1951\/revisions\/3879"}],"wp:attachment":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media?parent=1951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/categories?post=1951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/tags?post=1951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}