{"id":2191,"date":"2021-01-14T08:45:58","date_gmt":"2021-01-14T08:45:58","guid":{"rendered":"https:\/\/modern-workplace.uk\/?p=2191"},"modified":"2021-01-14T08:45:58","modified_gmt":"2021-01-14T08:45:58","slug":"teams-virtual-sbc-closing-azure-network-ports-warnings-for-azureloadbalancer-and-virtualnetwork-2-2","status":"publish","type":"post","link":"https:\/\/modern-workplace.uk\/?p=2191","title":{"rendered":"Teams &#8211; Direct Routing &#8211; Missing Set-CsUser cmdlet in PowerShell"},"content":{"rendered":"\n<p style=\"font-size:18px\">Probably the first question here could be &#8220;Why do we still need the set-csuser cmdlet&#8221;. In Skype For Business it was mandatory to modify user properties but in Teams it has a really limited usage.<\/p>\n\n\n\n<p style=\"font-size:18px\">Still, it is required to enable users to Direct Routing (if you have Calling Plans, you are able to do the user configuration without using it) with a format like<\/p>\n\n\n\n<p class=\"has-vivid-purple-color has-text-color\" style=\"font-size:18px\"><code>Set-CsUser -Identity \"\" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI tel:<\/code>+xxxxxxxxxx<\/p>\n\n\n\n<p style=\"font-size:18px\">There is no replacement in the Teams Admin Center so the cmdlet is mandatory<\/p>\n\n\n\n<p style=\"font-size:18px\">In my test the user had <strong>Teams Service Administrator<\/strong> role (as for the screenshot below) <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-13-190135.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"705\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-13-190135-1024x705.jpg\" alt=\"\" class=\"wp-image-2192\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-13-190135-1024x705.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-13-190135-300x207.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-13-190135-768x529.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-13-190135.jpg 1186w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p style=\"font-size:18px\">As a side note, there was no pre-existing Skype for Business deployment.<\/p>\n\n\n\n<p style=\"font-size:18px\">The set-csuser cmdlet was missing (also if other set-cs cmdlets were available, though) as in the picture below<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/MissingCMDlets.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"311\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/MissingCMDlets-1024x311.jpg\" alt=\"\" class=\"wp-image-2193\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/MissingCMDlets-1024x311.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/MissingCMDlets-300x91.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/MissingCMDlets-768x233.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/MissingCMDlets.jpg 1199w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p style=\"font-size:18px\">After a bit of searching (including verifications in Azure AD Privileged Identity Management) what I found is that you need to be also <strong>Skype for Business administrator <\/strong>(even where Skype for Business was never used)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081218.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"261\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081218-1024x261.jpg\" alt=\"\" class=\"wp-image-2194\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081218-1024x261.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081218-300x76.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081218-768x196.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081218-1536x391.jpg 1536w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081218.jpg 1911w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p style=\"font-size:18px\">Adding the Skype for Business administrator role, the cmdlet is there <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081349.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"263\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081349-1024x263.jpg\" alt=\"\" class=\"wp-image-2195\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081349-1024x263.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081349-300x77.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081349-768x197.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-14-081349.jpg 1227w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p style=\"font-size:18px\">So, in a nutshell:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>You need the set-csuser cmdlet for Teams Direct Routing<\/strong><\/li><li><strong>You need Teams Service Administrator<\/strong> and <strong>Skype for Business administrator role <\/strong>(regardless if Skype for Business was used or not)<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Teams Service Administrator are missing the Set-CsUser cmdlet in PowerShell, and it is required for Direct Routing<\/p>\n","protected":false},"author":1,"featured_media":2196,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","twitterCardType":"","cardImageID":0,"cardImage":"","cardTitle":"","cardDesc":"","cardImageAlt":"","cardPlayer":"","cardPlayerWidth":0,"cardPlayerHeight":0,"cardPlayerStream":"","cardPlayerCodec":"","footnotes":""},"categories":[765,753,752,757],"tags":[762,759,751,77,755],"class_list":["post-2191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-765","category-microsoft365","category-microsoft-teams","category-office-365","tag-microsoftteams","tag-microsoft-365","tag-microsoft-teams","tag-office-365","tag-teams"],"_links":{"self":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2191"}],"version-history":[{"count":1,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2191\/revisions"}],"predecessor-version":[{"id":2197,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2191\/revisions\/2197"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/media\/2196"}],"wp:attachment":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}