-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writable AzInstallFolder requirement breaks self-hosted runner #93
Comments
Hi @belcher-rok, sorry for your inconvenience. As you know, before the latest release, Azure PowerShell action does not officially support self-hosted runners. We're trying to support all self-hosted runners and that's why I can't apply the required change from you. |
Hi @YanaXu, Thanks for the quick reply. Your understanding is correct. I've modified our runner image to Can you explain why |
Hi @belcher-rok , the method |
I never tried with anything other than
...except any saved versions. The new Action requires my runners to have Thanks for your help @YanaXu. |
The following code was recently added to
Utils.getDefaultAzInstallFolder()
via PR #91:It is difficult to know for certain, but I believe this new "writable" requirement is causing my self-hosted, custom runners to not find the "latest" installed Az module. What I can say for certain, is that
azure/[email protected]
works as expected, but 1.4.0 fails to find any Az modules (Get-Module -Name Az -ListAvailable
returns nothing).The command we use to load the Az module on the runner image is
Save-Module -Path /usr/share/az_7.1.0 -Name az -RequiredVersion 7.1.0 -Force
, which is exactly where theazure/powershell
action expects it to be. So, the only explanation I can come up with is/usr/share/
is not writable on my runners.Any chance we can remove the "writeable" requirement? It should not be necessary.
Details
Workflow invocation:
Self hosted runner details (very briefly):
The text was updated successfully, but these errors were encountered: