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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors