Forum Discussion

JECp's avatar
JECp
Regular Visitor
2 years ago

Can't get API token from Azure machines...

 

I have a program that uses the Power BI API and has been running just fine for years. We recently moved some machines from on-prem to Azure VMs and suddenly this program no longer works. The error occurs when I run:

 

Using tsk As Tasks.Task(Of AuthenticationResult) = ctxt.AcquireTokenAsync("https://analysis.windows.net/powerbi/api", sClientID, cred)
                tsk.Wait()
End Using

 

The StackTrace is:

Unfortunately, the error message is an incredibly helpful "One or more errors occurred".

 

At first, we thought it was a firewall issue, but we can access sites using https, so we know Port 443 is open and working, and the documentation says that the Power BI API only uses 443.

 

Does anyone have any ideas on what could possibly cause this?

 

2 Replies