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.
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.
Check out the May 2026 Power BI update to learn about new features.
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.