Chef Rally - Set up a machine to manage - Problems


Hi -

I’m trying to set up a chef machine working through Chef Rally. but the install command fails as below

PS C:\Users\Administrator> . { iwr -useb } | iex; install -project chefdk -channel
 stable -version 2.5.3

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     0.0        Omnitruck                           {Get-ProjectMetadata, Install-Project, install}
There was an error:
        Exception calling "DownloadString" with "1" argument(s): "The remote name could not be resolved: 'omnitruck.chef
        The remote name could not be resolved: ''
Failed to download from
At line:70 char:5
+     throw "Failed to download from $uri."
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Failed to downl...012r2&m=x86_64.:String) [], RuntimeException
    + FullyQualifiedErrorId : Failed to download from

I think I’ve resolved it by installing chocolatey. I am not sure why it works via chocolatey but not the command provided? But was thinking perhaps you could include the chocolatey install steps in chef rally?

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(''))

Choco Install ChefDK

Choco Install VSCode

thought this might help someone else getting started.