Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
pvuppala
Helper V
Helper V

Schedule PowerShell Scripts in Cloud

Hey Gurus,

So I have a PowerShell script that use Power BI commandlets for admin tasks.  I run it manually every week and it basically moves all new "Personal Workspaces" to an embedded capacity which is paused (essentially disabling all personal workspaces).  I'd like to look at automating this execution on a schedule by not tying up to my local desktop or any of our team.    I'm reading it can be done using these two methods.  Please advise whats the path of least pain.

  • Azure Run books
  • Power AUtomate + Custom Connector

Thanks in advance!

-Pawan

2 REPLIES 2
pvuppala
Helper V
Helper V

Thank you Hari, it sounds like we need to type in our password in clear text for this to work?  If so, that is not fly at our Org. Please advise.

Hariharan_R
Solution Sage
Solution Sage

Hi @pvuppala 

If you make your PowerShell scripts to run without entering pop up credentials then you can use it in Azure Runbooks.

 

Ref - https://dataap.org/blog/2019/12/04/power-bi-rest-api-in-powershell-with-no-user-credentials-pop-up/

Ref - https://docs.microsoft.com/en-us/azure/automation/learn/powershell-runbook-managed-identity

 

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.