Where add or how use ESXi host in setup Azure Site Recovery for VMWARE.

Paweł Wesołowski 0 Reputation points
2025-11-25T08:25:27.23+00:00

Hi everyone,

I want to copy VMware virtual machines to ASR. I installed the appliance on a local virtual machine and am having trouble with a non-existent vCenter. I only have an ESXi host, but when I add credentials for ESXi in the appliance, I get the following error: Adding the vCenter server to the site failed. Unable to create the “xxxxxxxx9e01vmwaresite/ESXi” resource of type “Microsoft.OffAzure/VMwareSites/vcenters” required to start discovery. StatusCode: ‘Conflict’ Details: "Deployment error code: JobsFailed Error message: [{“Code”: “JobsFailed”, “Message”: “One or more jobs failed.”, “PossibleCauses”: “The service or agent encountered an error while performing the job.”, ‘RecommendedAction’: “Try the operation again. If the problem persists, contact technical support.”, “Severity”: “Error”, “IsAgentReportedError”: true, “AgentErrorCode”: ‘InvalidvCenterEndpoint’, “AgentErrorMessage”: “The server ‘xx.x.xxx.xxx:443’ is not a vCenter server.”, “AgentErrorPossibleCauses”: “Provide vCenter server details.”, ‘AgentErrorRecommendedAction’: “Try the operation again with the correct vCenter server details.”}] Detailed error message: "RequestId:

The message is quite clear, but I found information on the MS website that I can use ESXi. What am I missing?

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-25T08:25:38.4566667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To set up Azure Site Recovery (ASR) for VMware using an ESXi host, you need to ensure that you are correctly configuring the connection to your ESXi host. Here are the key steps to follow:

    1. Ensure ESXi Host is Managed: Make sure that your ESXi host is properly set up and managed. ASR typically requires a vCenter server for managing multiple ESXi hosts, but it can also work with a standalone ESXi host under certain conditions.
    2. Use Correct Credentials: When adding the ESXi host, ensure that you are using the correct credentials. The account must have administrative privileges on the ESXi host.
    3. Configuration Server Setup: During the configuration server setup, you need to enter the fully qualified domain name (FQDN) or IP address of the ESXi host. Ensure that you are not mistakenly trying to add it as a vCenter server.
    4. Error Handling: The error message you are encountering indicates that the system is expecting a vCenter server rather than an ESXi host. If you are only using an ESXi host, make sure that you are following the specific steps for adding an ESXi host rather than a vCenter server. If necessary, consult the documentation to ensure you are using the correct endpoint and configuration.
    5. Documentation Reference: For detailed steps on registering the configuration server and adding the ESXi host, refer to the Azure documentation on setting up Site Recovery for VMware solutions.

    If you continue to face issues, consider reaching out to Microsoft technical support for further assistance, as they can provide more tailored help based on your specific setup and error messages.

    0 comments No comments

  2. Bharath Y P 2,560 Reputation points Microsoft External Staff Moderator
    2025-11-28T02:29:51.3666667+00:00

    Hello Paweł Wesołowski,

    We understand that you’re trying to enable Azure Site Recovery (ASR) for VMware workloads using the ASR appliance. Your environment has only a standalone ESXi host (no vCenter). When you add the ESXi credentials in the appliance, ASR tries to add a vCenter endpoint and fails with Error AgentErrorCode: InvalidvCenterEndpoint. ASR typically requires either a vCenter or a standalone ESXi host for managing VMs.

    In agentless VMware protection, the ASR/Azure Migrate appliance queries vCenter via well‑known APIs (e.g., /sdk) to enumerate VMs and orchestrate snapshots/replication. A standalone ESXi host does not present the same vCenter APIs/metadata ASR expects; the appliance performs endpoint validation and flags InvalidvCenterEndpoint. That’s why your attempt to add ESXi in the “vcenters” resource path fails—the resource type itself is vCenter, not ESXi.

    • Make sure your configuration server is set up correctly and can communicate with your ESXi host. https://learn.microsoft.com/en-us/azure/site-recovery/avs-tutorial-replication
    • If you're trying to connect just an ESXi host, ensure that you provide the right endpoint and credentials. Note that certain features of ASR may require vCenter to work properly.
    • It’s important that the network settings of your ESXi host allow for communication with both the configuration server and Azure. Ensure that firewall rules and permissions are correctly configured.
    • Make sure you have selected the right source (i.e., your ESXi host) in the ASR setup process when configuring replication settings.
    • Verify that your ESXi version is compatible with Azure Site Recovery and meets the necessary prerequisites for setup.
    • Consider running the relevant Azure diagnostics for VMware-to-Azure scenarios. This can help pinpoint specific causes of replication or synchronization issues.

    reference document: https://learn.microsoft.com/en-us/azure/site-recovery/vmware-azure-manage-vcenter

    Hope this helps, thanks

    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.