This post will demonstrate how to use PowerShell to connect to Azure subscription without using a certificate.
Login to your Azure Portal > Settings > Administrators
You can use an existing account, or create a new one, like below:
And then, create a workflow called Connect-MySubscription, paste the following code into the workflow script block:
You can find out your account name under Settings > Administrators > Name, and your subscription name is under Settings > Administrators > Subscriptions > Subscription.
Replace the above value into the script and you are good to go.
To test whether it’s working properly, you can run the script within Azure, and you should see the output like below in the output pane. and the script supposes to have a completed status.