Azure / nxtools

Azure Automanage Machine Configuration Linux DSC resources
Other
13 stars 11 forks source link

nxPackage: Set-operation hanging for apt-packages #19

Closed janegilring closed 1 year ago

janegilring commented 1 year ago

Details of the scenario you tried and the problem that is occurring

I am trying to use a configuration which installs an apt-package on a Linux VM.

When running Start-GuestConfigurationPackageRemediation to test the generated Machine Configuration-package, the command hangs at this point:

image

Suggested solution to the issue

Invoking the same command as the underlying command in nxtools shows that there is a missing confirmation parameter (--yes): image

The DSC configuration that is used to reproduce the issue (as detailed as possible)

Configuration AzureArcJumpstart_Linux
{

    Import-DscResource -ModuleName nxtools -ModuleVersion 0.4.0

    Node localhost
    {
      nxPackage nginx
      {
          Name = "nginx"
          Ensure = "Present"
      }
    }
}

The operating system the target node is running

Ubuntu 20.04

Version and build of PowerShell the target node is running

7.3.3

Version of the DSC module that was used

0.4.0