I have powershell scripts which is running locally.But those scripts not running insite function apps > powershell (windows) machine.
az login --servi
As the error shows that you do not install the Azure CLI in the environment. To install the Azure CLI, a possible way is to copy the whole CLI directory that you installed in the local machine to your function KUDU path /home
.
In the test, the copy path in the function KUDU is D:/home/CLI2/
.
Test code:
D:/home/CLI2/wbin/az.cmd login --service-principal -u 'xxxxxx' -p 'xxxxxx' --tenant 'xxxxxx' | Write-Host
The screenshot of the output: