{"id":21176,"date":"2018-05-31T13:54:00","date_gmt":"2018-05-31T12:54:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=21176"},"modified":"2018-05-30T13:58:31","modified_gmt":"2018-05-30T12:58:31","slug":"disable-already-removed-azure-ad-connect","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=21176","title":{"rendered":"Disable Already Removed Azure AD Connect"},"content":{"rendered":"<p>It\u2019s possible that someone removes your Azure AD Connect server(s), and you then want to remove Azure AD Connect synchronisation from Azure AD. However, the Azure Portal does not give you that option to remove synchronisation. To get around this, you can use Azure AD PowerShell. In my example, I used the v1 cmdlets, but it\u2019s also possible that the v2 cmdlets will work too.<\/p>\n<p>I logged into Azure AD:<\/p>\n<pre class=\"lang:default decode:true\">Connect-MsolService<\/pre>\n<p>Then I checked the current configuration:<\/p>\n<pre class=\"lang:default decode:true\">Get-MsolDirSyncConfiguration<\/pre>\n<p>I disabled Azure AD Connect synchronisation:<\/p>\n<pre class=\"lang:default decode:true\">Set-MsolDirSyncEnabled \u2013EnableDirSync $false<\/pre>\n<p>I then checked my work:<\/p>\n<pre class=\"lang:default decode:true\">(Get-MSOLCompanyInformation).DirectorySynchronizationEnabled<\/pre>\n<p>Straight over to the Azure Portal (Azure Active Directory &gt; Azure AD Connect), and I verified that synchronisation was disabled:<\/p>\n<p align=\"center\"><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2018\/05\/image-13.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border: 0px currentcolor; display: inline; background-image: none;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2018\/05\/image_thumb-12.png\" alt=\"image\" width=\"550\" height=\"192\" border=\"0\" \/><\/a><\/p>\n<h2>Did you Find This Post Useful?<\/h2>\n<p>If you found this information useful, then imagine what 2 days of training might mean to you. I&#8217;m delivering a 2-day course in London on July 5-6, teaching newbies and experienced Azure admins about Azure Infrastructure. There&#8217;ll be lots of in-depth information, covering the foundations, best practices, troubleshooting, and advanced configurations. You can learn more <a href=\"http:\/\/www.cloudmechanix.com\/training-courses\/london2018-07\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p><a href=\"http:\/\/www.cloudmechanix.com\/training-courses\/london2018-07\/\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-20919\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2018\/05\/LondonAd.png\" alt=\"\" width=\"600\" height=\"318\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It\u2019s possible that someone removes your Azure AD Connect server(s), and you then want to remove Azure AD Connect synchronisation from Azure AD. However, the Azure Portal does not give you that option to remove synchronisation. To get around this, you can use Azure AD PowerShell. In my example, I used the v1 cmdlets, but &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=21176\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Disable Already Removed Azure AD Connect&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18410,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[5],"tags":[170,155,274],"class_list":["post-21176","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","tag-azure","tag-azure-ad","tag-azure-ad-connect"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/06\/azure-active-directory1.png","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/21176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21176"}],"version-history":[{"count":2,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/21176\/revisions"}],"predecessor-version":[{"id":21178,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/21176\/revisions\/21178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/media\/18410"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}