{"id":469,"date":"2020-11-28T13:31:11","date_gmt":"2020-11-28T12:31:11","guid":{"rendered":"http:\/\/www.gerjon.com\/?p=469"},"modified":"2020-11-28T13:35:09","modified_gmt":"2020-11-28T12:35:09","slug":"unlink-unused-directory-from-microsoft-azure-subscription","status":"publish","type":"post","link":"https:\/\/www.gerjon.com\/?p=469","title":{"rendered":"Unlink unused directory from Microsoft Azure subscription"},"content":{"rendered":"\n<p><strong>Problem<\/strong><\/p>\n\n\n\n<p>When logging into an Azure tenant you have the option to switch to another directory  (if available). Sometimes you have directories connected there that are not relevant anymore (because of testing etc.). To check if you have more organisations connected to your azure login account. Log into Azure with your acccount and click on your name on the top right. It should have the option to switch direcrtory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"278\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/1-1.jpg?resize=480%2C278&#038;ssl=1\" alt=\"\" class=\"wp-image-472\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/1-1.jpg?w=480&amp;ssl=1 480w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/1-1.jpg?resize=300%2C174&amp;ssl=1 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<p>Click on this and you should see the subscriptions connected to your account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"399\" height=\"666\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/2-1.jpg?resize=399%2C666&#038;ssl=1\" alt=\"\" class=\"wp-image-480\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/2-1.jpg?w=399&amp;ssl=1 399w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/2-1.jpg?resize=180%2C300&amp;ssl=1 180w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/figure>\n\n\n\n<p>So if not needed anymore the question remains is it possible to remove them?<\/p>\n\n\n\n<p><strong>Solution<\/strong><\/p>\n\n\n\n<p>Off course thats possible ;-). The way to do this is a bit odd but it works..<br>To remove the not needed Azure AD directory log into <a rel=\"noreferrer noopener\" href=\"https:\/\/myapps.microsoft.com\" target=\"_blank\">https:\/\/myapps.microsoft.com<\/a>. After logging on klick on your name and klick on the gear icon. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"932\" height=\"445\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/3-1024x489.jpg?resize=932%2C445&#038;ssl=1\" alt=\"\" class=\"wp-image-473\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/3.jpg?resize=1024%2C489&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/3.jpg?resize=300%2C143&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/3.jpg?resize=768%2C367&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/3.jpg?w=1272&amp;ssl=1 1272w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/figure>\n\n\n\n<p><em>Pro tip: If you can&#8217;t find the gear icon your screen may be to narrow or the portal may have started in the &#8216;new experience mode&#8217;. You can switch back to the old mode by clicking on the link leave new experience in this menu.<\/em><\/p>\n\n\n\n<p>In the screen that pops up you can see all organisations that are connected to your account. (sorry pictures in Dutch but you get the idea.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"932\" height=\"405\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/4-1024x445.jpg?resize=932%2C405&#038;ssl=1\" alt=\"\" class=\"wp-image-474\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/4.jpg?resize=1024%2C445&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/4.jpg?resize=300%2C131&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/4.jpg?resize=768%2C334&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/4.jpg?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/figure>\n\n\n\n<p>You have to log on to the organisation you want to leave, to leave it. So klick the logon to leave the organisation button. After logging in to the other tenant you get the option to leave the organisation<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"932\" height=\"381\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/5-1-1024x419.jpg?resize=932%2C381&#038;ssl=1\" alt=\"\" class=\"wp-image-476\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/5-1.jpg?resize=1024%2C419&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/5-1.jpg?resize=300%2C123&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/5-1.jpg?resize=768%2C314&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/5-1.jpg?w=1265&amp;ssl=1 1265w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/figure>\n\n\n\n<p>Click the leave organisation button. You get asked if you are really sure you want to leave.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"264\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/6.jpg?resize=555%2C264&#038;ssl=1\" alt=\"\" class=\"wp-image-477\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/6.jpg?w=555&amp;ssl=1 555w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/6.jpg?resize=300%2C143&amp;ssl=1 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/figure>\n\n\n\n<p>Click leave (verlaten). After that the next pop up comes up<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"177\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/7.jpg?resize=547%2C177&#038;ssl=1\" alt=\"\" class=\"wp-image-478\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/7.jpg?w=547&amp;ssl=1 547w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2020\/11\/7.jpg?resize=300%2C97&amp;ssl=1 300w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/figure>\n\n\n\n<p>So you left the Azure AD that&#8217;s not needed anymore. It may take a short while for all changes to propegate through the Azure Active Directory and your user account but after a short while you should be rid of the unneeded Azure Active Directory.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem When logging into an Azure tenant you have the option to switch to another directory (if available). Sometimes you have directories connected there that are not relevant anymore (because of testing etc.). To check &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"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,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[27,11],"tags":[],"class_list":["post-469","post","type-post","status-publish","format-standard","hentry","category-azure","category-microsoft"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p59CpB-7z","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/posts\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=469"}],"version-history":[{"count":0,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/posts\/469\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gerjon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}