I have a powershell script, that I am developing on local PC and deploying onto Azure. The script uses credentials, that are handled differently on PC and in Azure. I therefore need to reliably check whether the script is running on the PC or on Azure.
I cannot find any command, that tells me the answer. I hope you can help.