microsoft / PowerShell-DSC-for-Linux

PowerShell Desired State Configuration - for Linux
Other
339 stars 132 forks source link

nxFile doesn't create file if it's deleted #843

Open rezarms opened 2 years ago

rezarms commented 2 years ago

I'm using below config for nxFile in Azure Automation Account:

Node $Node
{

   nxFile testConf
   {
      DestinationPath = "/etc/test.conf"
      Mode = "644"
      Type = "file"
      Contents = "hello test"
   }
}

It works in first run and creates the file .Then later if I delete the file it doesn't create the file.

I have kind of similar issue with nxScript which runs script first time but afterwards it doesn't run the script (I'm always returning false in TestScript so it should always run).

rezarms commented 2 years ago

I noticed the issue is in Pull mode and in Push mode works fine.