Forum Discussion
Refresh using gateway failing
- 5 years ago
Below are the steps taken to fix the issue:
AZURE
- For Storage account :
- Allow access to data Gateway subnet for the storage account.
- Add “Storage Blob Data Reader” permission to the SP for the storage account.
- For SQL server :
- Allow access to data Gateway subnet for the sql server.
- Add “Reader” permission to the SP for SQL server.
- Add SP to local SQL server.
POWER BI:
- From Power BI desktop:
- Two sample reports created, one for connectivity with Azure SQL Server and other one with Azure Blob Storage
- From Power BI service:
1) Configuring the Gateway with the data sources- Azure SQL databases & Azure Blob Storage
a. Authentication Method used- OAuth2
b.Privacy Level Setting- Organizational
Refer article: https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-data-sources
2) Addition of users to data source so that the configured gateway is visible to them
Settings --> Manage Gateways --> Users
Refer article: https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-data-sources#add-users-to-a-data-source
3) Connection to the data sources using the Application account credentials
As there was a blocker because of an issue in Power BI service where it was picking up the admin’s credentials every time while trying to put credentials of the service principal account.
Workaround: Add service account for BLOB and AZURE SQL as admin to enter the credentials for Gateway. Please note that the accounts were removed post saving the credentials from the application account.
Refer article: https://docs.microsoft.com/en-us/power-bi/admin/service-admin-role
4) In the Dataset --> Settings section, enable the usage of gateway which should show as Green and Running and ready to be used.
PC2790 From the error message it looks like you are using a wrong account or password. Things aren't being blocked, you are just failing authentication.
You could check the Issues forum here:
https://community.powerbi.com/t5/Issues/idb-p/Issues
And if it is not there, then you could post it.
If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".
- PC27905 years ago
Community Champion
Thankyou Greg_Deckler
The credentials were correct as it was logging in fine using teh same credentials in the azure portal to access that particular storage account.
After rigorous brain storming sessions, the infra team figured out a solution and it is wokring fine now.
I'll post that in a while in case if anyone stucks due to the same issue.