I am trying to use power-shell script to mount a File-storage in Azure.
Manually,the script is working but when I put the same code in powershell_script block what i found out was chef generates a temporary ps1 file with -
But the file does not execute,just echoes out.
I guess Chef uses this command internally - “C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe” -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat None -File “C:/Users/agl-user/AppData/Local/Temp/chef-script20180614-4776-pu0f29.ps1”
The script is executing properly but the File Storage is not mounting.