web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Engage with the Community
Unanswered

How to switch tenants in Power Platform PowerShell to disable Power Pages Creation with test tenant

(0) ShareShare
ReportReport
Posted on by
Hi I would like to disable Power Pages Creation in my UAT tenant, where I have the admin role.
 

However, when I run the PowerShell commands (Set-TenantSettings -RequestBody @{ "disablePortalsCreationByNonAdminUsers" = $true }) they always connect to my default production tenant, where I am not an admin.

I would like to know how to:


  1. Force PowerShell to log in to a specific tenant (UAT) so I can disable Power Pages only in that tenant, and

  2. Re-login back to my default production tenant afterwards when needed.

What is the correct way to switch tenants in Power Platform PowerShell to avoid affecting the wrong tenant?


 
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Engage with the Community

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 51 Super User 2025 Season 2

#1
Pallavi Phade Profile Picture

Pallavi Phade 51

#3
Adis Profile Picture

Adis 25 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans