Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Can anyone help me figure out how to authenticate my powerbi account in a powershell runbook so I can run PowerBI cmdlets?
I've tried many variations of this cmdlet:
Solved! Go to Solution.
As a follow-up, I'm using the Powershell within Azure portal. I've been made aware that that powershell can't be updated and is currently on version 5.
That's probably why I can't get anything to work on it.
Login-PowerBIServiceAccount
@lbendlin Thanks for the reply. This is an iteration of what I've tried and have gotten the same result. Could you explain a little more?
That one works for me. Of course after that there's not much I can do since I am not a tenant admin.
I get the error: "The runbook job was attempted 3 times, but it failed each time". Is it different if I'm using a runbook?
Maybe. Is your runbook running on Powershell Core 6 or better?
How do I figure that out? I'm doing all of this through Azure Automate.
$PSVersionTable.PSVersion
Major Minor Build Revision
----- ----- ----- --------
5 1 15063 726
that's not enough. Can you upgrade to 6?
I just imported the update runbook and ran it. Not sure if there's anything else I need to do.
You need to update your Azure Automate instance to at least Powershell 6
Can you send documentation on this? I've been looking for a while and can't seem to find anything useful.
As a follow-up, I'm using the Powershell within Azure portal. I've been made aware that that powershell can't be updated and is currently on version 5.
That's probably why I can't get anything to work on it.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.