{"id":4514,"date":"2019-03-03T21:52:09","date_gmt":"2019-03-03T20:52:09","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=4514"},"modified":"2019-03-03T21:52:11","modified_gmt":"2019-03-03T20:52:11","slug":"update-service-map-groups-with-powershell","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=4514","title":{"rendered":"Update Service Map groups with PowerShell"},"content":{"rendered":"\n<p><em>Service Map automatically discovers application components on Windows and Linux systems and maps the communication between services. With Service Map, you can view your servers in the way that you think of them: as interconnected systems that deliver critical services. Service Map shows connections between servers, processes, inbound and outbound connection latency, and ports across any TCP-connected architecture, with no <g class=\"gr_ gr_7 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Punctuation only-ins replaceWithoutSep\" id=\"7\" data-gr-id=\"7\">configuration<\/g> required other than the installation of an agent. Machine Groups allow you to see maps centered around a set of servers, not just one so you can see all the members of a multi-tier application or server cluster in one map.<\/em> Source <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-monitor\/insights\/service-map\">Microsoft Docs<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"713\" height=\"673\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2019\/03\/ServiceMap001.jpg\" alt=\"\" class=\"wp-image-4515\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2019\/03\/ServiceMap001.jpg 713w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2019\/03\/ServiceMap001-300x283.jpg 300w\" sizes=\"(max-width: 713px) 100vw, 713px\" \/><\/figure>\n\n\n\n<p>A common question is how to update machine groups in Service Map automatically. Last week my colleague Jose Moreno and I was worked with Service Map and investigated how to automate machine group updates. The result was a couple of PowerShell examples, showing how to create and maintain machine groups with PowerShell. You can find all the examples on <a href=\"https:\/\/github.com\/erjosito\/service-map-rest-samples\">Jose GitHub page<\/a>. With these scripts we can now use a source, for example, Active Directory groups, to set up and update machine groups in Service Map. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Service Map automatically discovers application components on Windows and Linux systems and maps the communication between services. With Service Map, you can view your servers in the way that you think of them: as interconnected systems that deliver critical services. Service Map shows connections between servers, processes, inbound and outbound connection latency, and ports across &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=4514\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":4515,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[64,71,13],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4514"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4514"}],"version-history":[{"count":1,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4514\/revisions"}],"predecessor-version":[{"id":4516,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4514\/revisions\/4516"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/media\/4515"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4514"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}