Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
The Powershell module does not work with GCC. The only thing I can do is connect and get a token.
When making a request, I am getting an "unauthorized" 401 or 403 as it is requesting to the Commercial API(non GCC).
It would be cool if we could have the RequestUri as a parameter so that we could change it to what we need which is "https://api.powerbigov.us/v1.0/myorg/" instead of "https://api.powerbi.com/v1.0/myorg/".
Is it on the roadmap to get it fixed/created?
Solved! Go to Solution.
Hi @LadjiBinate ,
I suggest you to refer to below blogs to learn more details.
For reference:
Microsoft Power BI Cmdlets for Windows PowerShell and PowerShell Core
PowerShell for US Government O365 Environments
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @LadjiBinate ,
I suggest you to refer to below blogs to learn more details.
For reference:
Microsoft Power BI Cmdlets for Windows PowerShell and PowerShell Core
PowerShell for US Government O365 Environments
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Logging in with -Environment USGov solved my issue. thank you!!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 4 | |
| 4 | |
| 3 |