I have registered one App in AAD, I got its App ID. I did role assignment for this app as "owner of a particular subscription"
Now from Azure Runbook I want to run my python script and use this App credentials to login. My python script has az cli commands. So I don't want to use powershell command for login. I'm trying to use below command:
Az login --service-principal -u $azureapplucationId -p $azurePassword --tenant $azuretenantId
But I'm not getting any method to convert the azurepassword to secureString.
Is there any way to login using service Principal ID in python script?

