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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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