Windows Server 2019 Hyper-V Cluster Resource add fail ,cannot delete too.

HaoLiu-6848 20 Reputation points
2024-08-05T14:46:30.6466667+00:00

When adding VM resources to a Windows Server 2019 cluster, an error message is displayed stating "An item with the same key has been added."At the same time, some virtual machines in the cluster cannot be deleted and are in a suspended state when the deletion is performed. The fault persists after the entire cluster is restarted.

In addition, how can Get-ClusterResource obtain VMS with the specified name and then run the Remove-force command?

MSFC1

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,067 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,707 questions
Windows Server Clustering
Windows Server Clustering
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Clustering: The grouping of multiple servers in a way that allows them to appear to be a single unit to client computers on a network. Clustering is a means of increasing network capacity, providing live backup in case one of the servers fails, and improving data security.
997 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,522 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. HaoLiu-6848 20 Reputation points
    2024-08-06T02:47:45.8666667+00:00

    update:

    There is a VM resource in the failover cluster manager that cannot be deleted and cannot be seen by the Get-ClusterResource, but the status is failed. The error was deleted using the MMC, a log was recorded

    Error code: 0x8007012f The file cannot be opened because it is being deleted from the board

    0 comments No comments

  2. Ian Xue 36,751 Reputation points Microsoft Vendor
    2024-08-09T03:11:31.9366667+00:00

    Hi HaoLiu-6848,

    Hope you're doing well.

    Please refer to the following doc:

    Error "An item with the same key has already been added" - Windows Server | Microsoft Learn

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  3. HaoLiu-6848 20 Reputation points
    2024-08-10T02:56:39.2633333+00:00

    No duplicate NIC ID has been verified.

    I think it must be a duplicate Cluster VM ID

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.