Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
LadjiBinate
Regular Visitor

PowerShell Module for PowerBi (GCC)

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?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

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.

View solution in original post

Logging in with -Environment USGov solved my issue. thank you!!

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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!!

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors