I'm using a powershell script for automatically add new vm's in a scale set to my domain via Custom Script Extension. In the script I wrote the password blank (in testing environment only), because it has to be without any prompt. But this isn't very secure so I want to use another way.
At my local computer I can write my password encrypted in a script, but in a Scale Set it isn't possible, otherwise we had the same problem with the prompt.
Another idea is to write the password with powershell in a .txt file (encrypted) and store this file in Azure, so the new vm has to connect to Azure to get this file. But then we have the same issue with the authorization.
I hope you understand my problem, do you have any suggestions?
Best regards