Forum Discussion

WABGOR_Dave's avatar
WABGOR_Dave
New Member
5 years ago

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