This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi there
I have been using the auth URL below to authenticate against the Power BI API (Using Powershell) for months now and yesterday it just stopped working
https://login.microsoftonline.com/common/oauth2/token
I now receive the error:
The remote server returned an error: (400) Bad Request.
I have tried to debug the call in Postman and it appears the grant_type parameter is not being validated correctly. Even though it is specified, I always receive the error:
Please could this be investigated as none of my Power BI refreshes are currently running
Thanks a lot
Solved! Go to Solution.
Hi @kirby,
That might be the changes or the issues of AAD. According to the #use-the-authorization-code-to-request-an-access-token, the grant_type should be authorization_code. Please check it out. Please also refer to the below posts for the similar approaches.
1. https://community.powerbi.com/t5/Developer/programmatic-data-refresh-using-api/m-p/223051#M7045
3. https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-get-token
Best Regards,
Dale
Hi @kirby,
That might be the changes or the issues of AAD. According to the #use-the-authorization-code-to-request-an-access-token, the grant_type should be authorization_code. Please check it out. Please also refer to the below posts for the similar approaches.
1. https://community.powerbi.com/t5/Developer/programmatic-data-refresh-using-api/m-p/223051#M7045
3. https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-get-token
Best Regards,
Dale
Hi Dale
Thanks a lot for the info. I did visit most of these sites yesterday but without any luck. I tried the same thing now and it seems to be working
Thanks again
Cheers
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |