{"id":3539,"date":"2021-01-07T09:31:55","date_gmt":"2021-01-07T08:31:55","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=3539"},"modified":"2021-01-07T09:31:55","modified_gmt":"2021-01-07T08:31:55","slug":"enable-wvd-diagnostics-for-azure-monitor-using-arm-templates","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2021\/01\/enable-wvd-diagnostics-for-azure-monitor-using-arm-templates\/","title":{"rendered":"Enable WVD diagnostics for Azure Monitor using ARM Templates"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/01\/WVD_diagnostic_settings_through_ARM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"965\" height=\"285\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/01\/WVD_diagnostic_settings_through_ARM.png\" alt=\"\" class=\"wp-image-3540\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/01\/WVD_diagnostic_settings_through_ARM.png 965w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/01\/WVD_diagnostic_settings_through_ARM-300x89.png 300w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/01\/WVD_diagnostic_settings_through_ARM-768x227.png 768w\" sizes=\"auto, (max-width: 965px) 100vw, 965px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now that <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-desktop\/azure-monitor\" target=\"_blank\">Azure Monitor has support for Windows Virtual Desktop<\/a>, I wanted to enable this for all WVD workspaces, host pools and application groups. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a rel=\"noreferrer noopener\" href=\"https:\/\/techcommunity.microsoft.com\/t5\/windows-it-pro-blog\/proactively-monitor-arm-based-windows-virtual-desktop-with-azure\/ba-p\/1508735\" target=\"_blank\">Christiaan beautifully described how to do this through the Azure Portal<\/a>, but of course, in an enterprise environment we don&#8217;t click around, we define everything as Code! <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This example ARM template will enable the Diagnostics setting for the hostpool, workspace and application group vectors. To get data from VM&#8217;s (hosts), use your preferred method (plenty of examples <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-desktop\/azure-monitor#install-the-log-analytics-agent-on-all-hosts\" target=\"_blank\">exist already<\/a> and depend on your setup). <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After applying \/ including \/ redeploying this ARM template in your WVD environment, you&#8217;ll be able to see metrics coming in to the <a rel=\"noreferrer noopener\" href=\"https:\/\/portal.azure.com\/#blade\/Microsoft_Azure_WVD\/WvdManagerMenuBlade\/workbooks\" target=\"_blank\">Azure Monitor Insights dashboard for WVD<\/a> \ud83d\ude42<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/ARM%20templates\/WVDDiagnosticSettings.json\">https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/ARM%20templates\/WVDDiagnosticSettings.json<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that Azure Monitor has support for Windows Virtual Desktop, I wanted to enable this for all WVD workspaces, host pools and application groups. Christiaan beautifully described how to do this through the Azure Portal, but of course, in an enterprise environment we don&#8217;t click around, we define everything as Code! This example ARM template &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2021\/01\/enable-wvd-diagnostics-for-azure-monitor-using-arm-templates\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Enable WVD diagnostics for Azure Monitor using ARM Templates<\/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":[49,4,6],"tags":[],"class_list":["post-3539","post","type-post","status-publish","format-standard","hentry","category-arm","category-automation","category-windows-virtual-desktop"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3539","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=3539"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3539\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=3539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=3539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=3539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}