question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

darc is not a recognized cmdlet

See original GitHub issue
  • This issue is blocking
  • This issue is causing unreasonable pain

For Validation-for-Promotion pipeline runs that have Arcade validate on branches of bellwether repos, the execution of the build-arcadewithrepo.ps1 script is failing at https://github.com/dotnet/arcade-validation/blob/master/eng/validation/build-arcadewithrepo.ps1#L233 for the Installer repo.

The logs show that darc was installed on the machine.

Example build failure: https://dnceng.visualstudio.com/internal/_build/results?buildId=748175&view=logs&j=6989144e-9c50-5586-7b61-a9af8cea5132&t=c78d63a3-c8c6-513a-1baf-fae22b0d7c09

Error:

D:\a\1\s\eng\validation\build-arcadewithrepo.ps1 : The term 'darc' 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.
At D:\a\_temp\dadf87a8-539d-4403-b166-9880f75e820d.ps1:3 char:1
+ eng\validation\build-arcadewithrepo.ps1 -azdoOrg dnceng -azdoProject  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (darc:String) [build-arcadewithrepo.ps1], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException,build-arcadewithrepo.ps1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
alexperovichcommented, Jul 28, 2020

What is going on? I was literally just looking at that build, and it said it used a helix pool. I reload the page and it changed.

1reaction
alexperovichcommented, Jul 30, 2020

My latest fix worked in the build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error (The term \<cmdlet name> is not recognized) when ...
Describes an issue in which you receive an error message when you try to run Azure Active Directory Module for Windows PowerShell cmdlets....
Read more >
Powershell cmdlet is not recognized despite having the ...
You say that you've installed and imported the AzureRM module, but have you connected the Azure account with the Connect-AzureRmAccount ...
Read more >
ConvertFrom-Network : The term 'Get-AzNetworkWatcher ...
ConvertFrom-Network : The term 'Get-AzNetworkWatcher' is not recognized as the name of a cmdlet, function, script file, or operable program.
Read more >
How to fix "yo : The term 'yo' is not recognized as the name of ...
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.”.
Read more >
“Get ADUser Not Recognized” Error in PowerShell
This error simply means that the Active Directory module for PowerShell is not available on your machine. This module is installed by default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found