Azure CLI not installed error #145
Replies: 4 comments 2 replies
-
|
Hi, please file an issue, since I think it's more appropriate for this. |
Beta Was this translation helpful? Give feedback.
-
|
Did you tried using |
Beta Was this translation helpful? Give feedback.
-
|
Building on Jaxelr's The stack trace says
So Add a diagnostic step immediately before the signing step on the self-hosted runner: Write-Host "Process PATH: $env:PATH"
Get-Command az -All | Format-List Source,Version
az account show
az account get-access-token --resource https://codesigning.azure.net/ --output json | Out-String | Write-Host
Write-Host "PSVersion: $($PSVersionTable.PSVersion)"
Write-Host "64-bit process: $([Environment]::Is64BitProcess)"If "C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -AppendIf Also, if Azure CLI was installed after the self-hosted runner service was started, restart the runner service. Windows services often keep the old environment until restart. |
Beta Was this translation helpful? Give feedback.
-
|
Okay, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to use this action on a self-hosted windows runner, following the example code, we're seeing the Azure CLI is not installed error. Running it on GitHub´s own
windows-latestrunner we don't see any issues, so it seems like something wrong with the configuration of our runner. The Azure Login action can log in just fine using OIDC, and a simple inline script step can find the Azure CLI. RunningInvoke-ArtifactSigningmanually on the runner, it also works. We're only seeing this when we're running it through this action, and on our ownself-hostedrunner.It's installed to its default directory, and looking at AzureCliCredential that's where it will look by default. And considering the module works manually, I'm guessing we're missing something that GitHub does when running it.
Stack trace.
Beta Was this translation helpful? Give feedback.
All reactions