- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Power BI Services Connections Authentication Credentials
In my Power BI Services, many connections are established through the On-premises data gateway, which uses my system's windows authentication for creating the connections. The On-premises data gateway is installed on an AWS Server, and I use my organization email ID to sign in.
Whenever I change my system password, I need to manually update my new passwords to all the established connections. I want to automate this process so that my password synchronizes with the Power BI services connections automatically.
How can we achieve this automation?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @CHAUHAN812
Recommended Best Practice is to
Replace individual user credentials with a non-expiring service account specifically for Power BI gateway connections
Configure the gateway to use this account instead of personal credentials.
• Use tools like Azure Key Vault or Secret Server to manage/rotate the service account password securely.
If a service account is not feasible, use the Power BI REST API to programmatically update credentials across all connections.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,nilendraFabric ,thanks for your concern about this issue.
Your answer is excellent!
And I would like to share some additional solutions below.
Hello,@CHAUHAN812 .I am glad to help you.
You can write code to automate the process of performing changes to the data source credentials of a gateway connection. (use the Rest API/PowerShell)
I hope that the following article will be helpful to you.
URL:
How to update credentials for an on-prem Power BI data source using PowerShell
This involves the process of getting the Gateway ID, DataSource ID, setting the type of authentication method, as well as Python programming, and the entire code design requires collaboration between you and the programmers on your team.
I also found an issue with the same requirement, and the user in the link also provided code that helped him.
URL:
Solved: Update Datasource Credential Using Only Powershell... - Microsoft Fabric Community
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,nilendraFabric ,thanks for your concern about this issue.
Your answer is excellent!
And I would like to share some additional solutions below.
Hello,@CHAUHAN812 .I am glad to help you.
You can write code to automate the process of performing changes to the data source credentials of a gateway connection. (use the Rest API/PowerShell)
I hope that the following article will be helpful to you.
URL:
How to update credentials for an on-prem Power BI data source using PowerShell
This involves the process of getting the Gateway ID, DataSource ID, setting the type of authentication method, as well as Python programming, and the entire code design requires collaboration between you and the programmers on your team.
I also found an issue with the same requirement, and the user in the link also provided code that helped him.
URL:
Solved: Update Datasource Credential Using Only Powershell... - Microsoft Fabric Community
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @CHAUHAN812
Recommended Best Practice is to
Replace individual user credentials with a non-expiring service account specifically for Power BI gateway connections
Configure the gateway to use this account instead of personal credentials.
• Use tools like Azure Key Vault or Secret Server to manage/rotate the service account password securely.
If a service account is not feasible, use the Power BI REST API to programmatically update credentials across all connections.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank You Nilendra for your solution of using service account instead of my personal credentials.
So in that case should I sign into the On premises gateway with the Service account as well along with the Power bi connections ?

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
03-20-2024 03:37 PM | |||
09-05-2024 04:57 AM | |||
09-16-2024 01:26 PM | |||
Anonymous
| 10-10-2024 04:18 AM | ||
Anonymous
| 04-03-2024 01:32 AM |