Forum Discussion

Ladji_Binate's avatar
Ladji_Binate
Copper Contributor
Sep 20, 2022
Solved

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?

 

thanks!

1 Reply

  • Ladji_Binate's avatar
    Ladji_Binate
    Copper Contributor

    Logging in with -Environment USGov solved my issue. 

Resources