{"id":2165,"date":"2024-10-15T12:47:48","date_gmt":"2024-10-15T16:47:48","guid":{"rendered":"https:\/\/toddbaginski.com\/blog\/?p=2165"},"modified":"2024-10-15T12:47:49","modified_gmt":"2024-10-15T16:47:49","slug":"how-to-disable-turn-off-a-power-platform-managed-environment","status":"publish","type":"post","link":"https:\/\/toddbaginski.com\/blog\/how-to-disable-turn-off-a-power-platform-managed-environment\/","title":{"rendered":"HOW TO: Disable\/Turn Off a Power Platform Managed Environment"},"content":{"rendered":"\n<p>What do you do if you accidentally enabled a Managed Environment in the Power Platform and you want to make the Environment non-Managed again?  There is no way in the Power Platform Admin Center to Disable \/ Turn Off a Managed Environment, you can only Enable or Delete Managed Environments in the Admin Center.  To Disable \/ Turn Off a Managed Environment, and go back to a non-Managed Environment, you must use PowerShell.  Here&#8217;s how to do it:<\/p>\n\n\n\n<p>Open a PowerShell prompt as Administrator.<\/p>\n\n\n\n<p>Install PowerShell<\/p>\n\n\n\n<p><code>Install-Module -Name Microsoft.PowerApps.Administration.PowerShell<\/code><\/p>\n\n\n\n<p>Log in with an account that has permissions to administer Environments.  The following command will open an authentication prompt.  The prompt supports MFA.<\/p>\n\n\n\n<p><code>Add-PowerAppsAccount -Endpoint prod<\/code><\/p>\n\n\n\n<p>Run this code that sets protectionLevel to Basic, which turns an Environment from Managed to non-Managed.<\/p>\n\n\n\n<p><code>$UpdatedGovernanceConfiguration = [pscustomobject]@{<br>protectionLevel = \"Basic\"<br>}<\/code><\/p>\n\n\n\n<p>Run this command to apply the changes to the Environment you want to convert from Managed to non-Managed.  Make sure to replace the Environment Id accordingly.<\/p>\n\n\n\n<p><code>Set-AdminPowerAppEnvironmentGovernanceConfiguration -EnvironmentName &lt;PUT THE ENVIRONMENT ID HERE&gt; -UpdatedGovernanceConfiguration $UpdatedGovernanceConfiguration<\/code><\/p>\n\n\n\n<p>Here&#8217;s what it all looks like:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2024\/10\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"846\" src=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2024\/10\/image-1024x846.png\" alt=\"\" class=\"wp-image-2166\" srcset=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2024\/10\/image-1024x846.png 1024w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2024\/10\/image-300x248.png 300w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2024\/10\/image-768x634.png 768w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2024\/10\/image-91x75.png 91w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2024\/10\/image-480x396.png 480w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2024\/10\/image.png 1103w\" sizes=\"auto, (max-width:767px) 480px, (max-width:1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Here&#8217;s the Microsoft documentation that describes part of this process.<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/power-platform\/admin\/managed-environment-enable#disable-managed-environments-using-powershell\">https:\/\/learn.microsoft.com\/en-us\/power-platform\/admin\/managed-environment-enable#disable-managed-environments-using-powershell<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What do you do if you accidentally enabled a Managed Environment in the Power Platform and you want to make the Environment non-Managed again?<\/p>\n","protected":false},"author":1,"featured_media":2167,"comment_status":"closed","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,"footnotes":""},"categories":[103,120,104,121],"tags":[42,10,5,122,54,112],"class_list":["post-2165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-flow","category-office-365","category-powerapps","tag-cloud","tag-custom-development","tag-helpful-code","tag-how-to-powerapps","tag-mobile","tag-powerapps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/2165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/comments?post=2165"}],"version-history":[{"count":3,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/2165\/revisions"}],"predecessor-version":[{"id":2170,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/2165\/revisions\/2170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media\/2167"}],"wp:attachment":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media?parent=2165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/categories?post=2165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/tags?post=2165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}