Closed extravio closed 1 year ago
Hi @extravio, could you login to your self-hosted runner machine, open powershell
, and run the following cmdlets?
$data = Get-Module -Name Az -ListAvailable | Sort-Object Version -Descending | Select-Object -First 1
Write-Host $data.Version.ToString()
Hi @YanaXu ,
Thanks for the quick reply. I made me realize that it was a problem with permissions.
The user on my runner did not have access to the folder where the modules were installed.
chmod -R 755 /usr/local/share/powershell/
fixed my issue
Hi,
I have a self-hosted runner on RHEL 9 with:
and I get the following error when executing the azure/powershell action: Error: You cannot call a method on a null-valued expression.
I previously had the same configuration on Ubuntu and it was working fine.
Any ideas?