Sign with Azure Key Vault #1335
-
I'm doing the migration of my signing certificate to the Azure Key Vault. But when running the CI/CD pipeline, it complains that the runner cannot find "dotnet" Error: Unexpected error when running action. Error Message: The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again., StackTrace: at Install-SigningTool, C:\actions-runner_work_actions\microsoft\AL-Go-Actions\v6.1\Sign\Sign.psm1: When opening a command prompt on the runner, the dotnet command executes fine. In what context is the script trying to run the command? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Could you include the full log of the sign job? |
Beta Was this translation helpful? Give feedback.
-
If this is a self-hosted runner please make sure you've followed all the steps here: e.g. make sure .NET is installed on the agent |
Beta Was this translation helpful? Give feedback.
-
Latest AL-Go requires dotnet 6.1 btw. |
Beta Was this translation helpful? Give feedback.
-
Thanks!! Dotnet was installed, but I followed the procedures from the attached instructions all over. Now I get this error message: Module Az.Accounts is available in version 4.0.0 However, the nuget source is added: C:\Windows\system32>dotnet nuget list source
C:\Windows\system32> Any ideas? |
Beta Was this translation helpful? Give feedback.
-
That was the issue. Thanks!! |
Beta Was this translation helpful? Give feedback.
I'm guessing the nuget source is added for a different user than the one used by GitHub.
See similar issue here:
#1252 (comment)