Azure / nxtools

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

nxGroup: does not remove group members when specifying that group should be empty #53

Open eehret opened 4 months ago

eehret commented 4 months ago

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

We need to create a group and ensure that it remains empty. The group creation succeeds and it is empty initially , but if users get added to the group nxGroup continues to report the resource as compliant when it should not be compliant, and it does not remove the users from the group.

Verbose logs showing the problem

Suggested solution to the issue

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

    nxGroup sugroup_exists_and_is_empty {
      Ensure =  'Present'
      GroupName =  'sugroup'
      Members = @()
    }

The operating system the target node is running

Ubuntu 20.04 LTS

Version and build of PowerShell the target node is running

7.3.10

Version of the DSC module that was used

1.4.0