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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
WABGOR_Dave
New Member

Non-interactive login with powershell but not using a Service Principal

Hello all,

 

I'm developing some powershell scripts that will connect to our tenant and do various things (like retrieve a list of workspaces) and have run into a bit of a snag. As I want these to be automated, and I don't to have to enter in the credentials manually, nor (for compliance) want to store the login credentials within the script(s) or a local file, what are my options?  Our environment is a mix of Pro and PPU, hence using a Service Principal will not work as they are not supported in PPU.

 

Ideally, I would like to store the credentials in Azure Keyvault, which I have done with other non-powershell apps (CRM Dynamics for example), but I am not sure this is feasible (or secure) with doing so with the Connect-PowerBIServiceAccount command.

 

Thanks in advance,

 

Dave

2 REPLIES 2
WABGOR_Dave
New Member

Thanks Liang! I'll take a look and hopefully it does address my issue.

V-lianl-msft
Community Support
Community Support

Hi @WABGOR_Dave ,

 

Hope the discussion will help you:

https://github.com/microsoft/powerbi-powershell/issues/267 

https://github.com/microsoft/powerbi-powershell/issues/190 

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.