FailoverClusterDsc icon indicating copy to clipboard operation
FailoverClusterDsc copied to clipboard

Cluster: Logic to remove a failover cluster does not exist

Open powertim opened this issue 5 years ago • 1 comments

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

This resource should be able to add or remove a failover cluster. Currently it only supports changing the name, role and the metric for an already present cluster.

The schema should add at least an Ensure parameter to be able to add and remove a cluster.

Verbose logs showing the problem

N/A

Suggested solution to the issue

 xCluster RemoveCluster
        {
            Name                          = 'Cluster01'
            Ensure                        = 'Absent'
            DomainAdministratorCredential = $ActiveDirectoryAdministratorCredential
            DependsOn                     = '[WindowsFeature]AddRemoteServerAdministrationToolsClusteringCmdInterfaceFeature'
        }

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

N/A

The operating system the target node is running

N/A

Version and build of PowerShell the target node is running

N/A

Version of the DSC module that was used

1.14.1

powertim avatar Jun 23 '20 08:06 powertim

Would be a great addition. Happy to see a PR for this.

johlju avatar Jun 26 '20 17:06 johlju