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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
tobyfan1980
Regular Visitor

What is the API endpoint of other Azure environment like German or China ?

I know in other azure environment, there are different sets of endpoints. For example, in German, the resource management url is https://management.microsoftazure.de.  

 

I was wondering what is the powerbi API endpoint in those environments?  I tried https://api.powerbi.com in these environments, but it does not work. 

 

Thanks,

Toby

1 ACCEPTED SOLUTION

I got the answer from China MSDN support team. The APIUrl is https://api.powerbi.cn.

 

 

View solution in original post

3 REPLIES 3
Eric_Zhang
Microsoft Employee
Microsoft Employee

@tobyfan1980

May I know what API doesn't work? As far as I know, for most Power APIs, api.powerbi.com is the endpoint.

Just simply get workspaces in a workspacecollection.

 

1) I use the access key of a collection in Azurecloud, it succeeds.

 

PS C:\> powerbi get-workspaces -k 1H2F82h8GCQORHD4ulJzu+IEB..........
== -c {collection name}
[ powerbi ] ================================================
[ powerbi ] Gettings workspaces for Collection: {collectio name}
[ powerbi ] ================================================
[ powerbi ] df708252-015b-4da1-bdb8-.....
[ powerbi ] 4d0485b1-e8e0-4b5f-9e10-.....

 

2) I use the access key of a collection in AzureChinaCloud, it fails with code 403.

PS C:\> powerbi get-workspaces -k 9RDLV14ePc6yx4oeZPO..... -c {collection name}
[ powerbi ] Method:  GET
[ powerbi ] Url:  https://api.powerbi.com/v1.0/collections/{collection name}/workspaces
[ powerbi ] Status Code:  403
[ powerbi ] content-length :  0
[ powerbi ] server :  Microsoft-HTTPAPI/2.0
[ powerbi ] strict-transport-security :  max-age=31536000; includeSubDomains
[ powerbi ] x-frame-options :  deny
[ powerbi ] x-content-type-options :  nosniff
[ powerbi ] requestid :  43a7145d-530b-4737-8ec7-6b0fa8940f79
[ powerbi ] date :  Fri, 10 Feb 2017 19:25:17 GMT
[ powerbi ] connection :  close

 

It seems that the access key is not recognized as a legal one.  But I am sure I just copied it from my account portal. So it means the backend cannot find this access key.

 

I also notice that powerbi-cli has an argument --baseUri, so I think the baseUri for different cloud environment is different. 

I got the answer from China MSDN support team. The APIUrl is https://api.powerbi.cn.

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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