Forum Discussion
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
- V-lianl-msftCommunity 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. - WABGOR_DaveNew Member
Thanks Liang! I'll take a look and hopefully it does address my issue.