{"id":2841,"date":"2018-05-03T12:04:39","date_gmt":"2018-05-03T11:04:39","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=2841"},"modified":"2018-05-03T12:04:39","modified_gmt":"2018-05-03T11:04:39","slug":"running-an-azure-runbook-on-a-system-hybrid-worker","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2018\/05\/running-an-azure-runbook-on-a-system-hybrid-worker\/","title":{"rendered":"Running an Azure runbook on a System hybrid worker"},"content":{"rendered":"<p>Azure Runbooks are usually run in the cloud (on an automatically assigned &#8216;Microsoft&#8217; host) or on a Hybrid Worker Group.<\/p>\n<p>Hybrid Worker Groups consist of 1 or more machines, but there are also &#8216;System hybrid workers&#8217;, which are machines monitored by OMS. If you want to execute a Powershell script directly on a specific System hybrid worker, or on a specific group member of a worker group, you can use Powershell and specify the host instead of the group:<\/p>\n<p>Start-AzureRmAutomationRunbook -Name &#8220;RunbookName&#8221; -RunOn hybridWorkerName\u00a0-AutomationAccountName &#8220;automationaccount&#8221; -ResourceGroupName &#8220;resourcegroup&#8221;<\/p>\n<p>If you try this on a System Hybrid Worker, you&#8217;ll get an error on the device itself and in the runbook results:<\/p>\n<p>\u201cInvalid Runbook xxx Authenticode signature status \u2013 NotSigned\u201d.<\/p>\n<p>This can be &#8216;fixed&#8217; by setting the following registry key to &#8216;False&#8217;:<\/p>\n<p>HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\HybridRunbookWorker\\GuidOfYourWorker\\EnableSignatureValidation<\/p>\n<p>Et voila, the runbook runs nicely. I do not recommend disabling this key in production, this article is purely to share knowledge, and if someone knows how to do this without disabling this key, I&#8217;d love to hear it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure Runbooks are usually run in the cloud (on an automatically assigned &#8216;Microsoft&#8217; host) or on a Hybrid Worker Group. Hybrid Worker Groups consist of 1 or more machines, but there are also &#8216;System hybrid workers&#8217;, which are machines monitored by OMS. If you want to execute a Powershell script directly on a specific System &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2018\/05\/running-an-azure-runbook-on-a-system-hybrid-worker\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Running an Azure runbook on a System hybrid worker<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-2841","post","type-post","status-publish","format-standard","hentry","category-automation","category-azure"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/2841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=2841"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/2841\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=2841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=2841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=2841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}