Unable to add DAG members to new DAG

Rahul Kumaar 0 Reputation points
2025-10-30T22:10:00.4366667+00:00

I have created 3 new servers in Azure and 2 of them are successfully setup as Exchange SE mailbox servers. The 3rd server is a file server (OS: 2025).

New-DatabaseAvailabilityGroup -Name DAG -WitnessServer fsserver -WitnessDirectory C:\DAG

No folder is created in C drive. Is this expected? I tried creating the folder first and then running the command. However, the folder disappears.

Add-DatabaseAvailabilityGroupServer -Identity "DAG" –MailboxServer "mbx1"

Fails with error. Here is what I see in the logs.

The IP addresses for the DAG are (blank means DHCP): 255.255.255.255

Looking up IP addresses for DAG.

Failure while trying to resolve DAG: threw a SocketException: No such host is known.

The computer account DAG does not exist.

Do I have to pre-stage the CNO object first?

Second error in the same log file:

WriteError! Exception = Microsoft.Exchange.Cluster.Replay.DagTaskOperationFailedException: A server-side database availability group administrative operation failed. Error The operation failed. CreateCluster errors may result from incorrectly configured static addresses. Error: An error occurred while attempting a cluster operation. Error: Cluster API failed: "CreateCluster() failed with 0x42a. Error: The service has returned a service-specific error code". ---> Microsoft.Exchange.Cluster.Shared.ClusterApiException: An error occurred while attempting a cluster operation. Error: Cluster API failed: "CreateCluster() failed with 0x42a. Error: The service has returned a service-specific error code" ---> System.ComponentModel.Win32Exception: The service has returned a service-specific error code

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kha-N 3,420 Reputation points Microsoft External Staff Moderator
    2025-10-31T07:01:44.7766667+00:00

    Hi @Kumaarrahul,

    Welcome to Microsoft Q&A, and thank you for reaching out to us.

    Based on your description, you attempted to add a DAG member to a newly created DAG but encountered the error: CreateCluster() failed with 0x42a. Please correct me if I misunderstood your scenario.

    Please note that as a Microsoft Q&A moderator, I don’t have direct access to your server configuration. However, I’ll do my best to assist you using official documentation and guidance.

    First, regarding the behavior you observed with the New-DatabaseAvailabilityGroup command: this is expected. The New-DatabaseAvailabilityGroup cmdlet only creates the DAG object in Active Directory and sets its properties (such as the name, witness server, and witness directory). It does not create the witness folder or share at this stage. As for the folder, the folder disappears after manual creation because Exchange enforces its own configuration during DAG setup.

    About the error when running Add-DatabaseAvailabilityGroupServer and your question on whether pre-staging the CNO object is required: according to Microsoft documentation on DAG management, when you add the first mailbox server to a DAG, Exchange attempts to create a Windows Failover Cluster and a corresponding Cluster Name Object (CNO) in Active Directory.

    User's image

    If the account running the command does not have permission to create computer objects, this process will fail, and pre-staging the CNO becomes necessary.

    To pre-stage the CNO, as I checked, you can follow the instructions provided in the official Microsoft article on pre-staging the CNO here.

    Please note that this summary is based on insights gathered from community discussions and related threads. It may not fully capture the exact behavior in your environment.

    To achieve your goal more effectively, I recommend posting your question on the Microsoft Tech Community forum. It’s an excellent platform for in-depth technical discussions and for connecting with professionals who have hands-on experience. They are best positioned to provide practical guidance and valuable insights on this topic.

    I hope this helps resolve your issue. If you have any additional questions or need further clarification, please let me know. I’ll be happy to assist you further.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

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