Invoke Powershell - Connect-AzAccount using service principal

Created an Activity, Invoke Powershell in a sequence , in UI Path.
Trying to call the command “Connect-AzAccount” using service principal to login Azure Account, to invoke ARM Template.

Connect-AzAccount - not woking. No errors in UI Path. Just shows it is running, but no actin.

Can UI Path be used to run ARM Template, to create resources in Azure??

Hi @tdas10,
Welcome to the Community!
Some of PowerShell commands like Enter-PSSesion or other which requires to connect to external computer/server needs certificate exchange between two servers/computer. It will work directly from PowerShell but are hard case when using Studio. Instead of using this as an invoke you can make your workflow to run PowerShell and type the script into it directly :wink: