I am trying to use Azure Flex powershell function to execute remote WinRM scripts. It is working in windows based consumption function. But I want to see if this works from flex which is linux based. I am facing the below issues,
- No Kudu console for flex function so i am not able to get access the linux terminal
- Keeping the PSWSMan module as part of managed dependency (keeping the modules as a folder in the application code folder), this did not work it is not showing the module as installed when I check Get-Module -ListAvailable
- I managed to install the module with Install-Module -Name PSWSMan -Confirm:$False -Force command in runtime, but this is not ideal.
- Even after installing the module I need to run Install-WSMan as root to enable the WSMan, this I am not able to do it in runtime.
Please if someone has attempted this WSMAN on Azure Flex, help me.