While working on an Azure Migrate project, we encountered a failure during Mobility Agent registration with the error:
<ErrorCode>MachineWithSameBiosIdAndFqdnAlreadyExists</ErrorCode>
This error code is identified in C:\ProgramData\ASRSetupLogs\ASRUnifiedAgentConfigurator.log file on Source Server.
This issue surfaced after a server was initially onboarded using credential-based discovery, followed by a manual Mobility Agent installation via credential-less discovery.
In this blog, weโll walk you through:
- Why this issue occurs
- What it means technically
- The exact step-by-step resolution
๐จ Problem Statement
Hereโs what happened in our scenario:
- A source server was successfully discovered using credential-based discovery via Azure Migrate.
- Later, the Mobility Agent was manually re-installed and re-registered using credential-less discovery.
- During registration, the Mobility Agent failed with the error: MachineWithSameBiosIdAndFqdnAlreadyExists
- Logs confirmed the issue at: C:\ProgramData\ASRSetupLogs\ASRUnifiedAgentConfigurator.log
- As a result, Mobility Agent Registration with Azure Migrate Vault could not be completed and further replication steps were blocked.
๐ Root Cause
Azure Migrate uniquely identifies machines using BIOS ID + FQDN.
When the same machine is onboarded using different discovery methods:
- It results in multiple registrations for the same physical server
- Azure Migrate detects this as a duplicate identity conflict
In this case:
- First registration โ Credential-based discovery โ
- Second registration โ Credential-less discovery โ
- Result โ Azure rejects the second registration due to identity duplication
๐ ๏ธ Resolution
The fix involves realigning the Mobility Agent with the original machine identity.
โ Step 1: Generate Agent Config Input (Source Machine)
Open Command Prompt as Administrator:
cd "C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\"
AzureRcmCli.exe --getagentconfiginput
๐ This generates a unique Agent Config Input string.
โ Step 2: Generate Mobility Service Configuration File (Appliance)
On the Azure Migrate appliance:
- Open Azure Appliance Configuration Manager
- Go to Mobility Service Configuration
- Paste the Agent Config Input
- Download the generated configuration file
โ Step 3: Copy Config File to Source Server
Copy the downloaded file (example below):
e1fdc8ce-e518-4fd2-b281-cc71433d512e_config.json
Paste it into:
C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\Application Data\etc
โ Step 4: Validate & Update drscout.conf
Navigate to:
C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\Application Data\etc
Edit drscout.conf file and ensure the following parameters exist under [vxagent]:
Fig 4: How to edit drscout.conf file[vxagent]
HostId="Collect from support team"
ResourceID="Collect from support team"
โ ๏ธ Important:
- Use the original HostId and ResourceID
- These correspond to the first (credential-based) discovery
- If unavailable, obtain them from the Azure Migrate support team
โ Step 5: Unregister Existing Mobility Agent
Run:
cd "C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\"
AzureRcmCli.exe --unregistersourceagent
UnifiedAgentConfigurator.exe /Unconfigure true
๐ This removes the conflicting registration.
โ Step 6: Regenerate Configuration File
Repeat Step 2 using the same Agent Config Input to generate a fresh config file.
โ Step 7: Re-register Mobility Agent
cd "C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\"
UnifiedAgentConfigurator.exe /SourceConfigFilePath "config.json" /CSType CSPrime
โ After this:
- Mobility Agent registers successfully
- Replication works without errors
๐ก Key Learnings
- Avoid mixing credential-based and credential-less discovery for the same machine
- Azure Migrate enforces strict identity uniqueness (BIOS ID + FQDN)
- Always align the Mobility Agent with the original HostId and ResourceID
- Proper cleanup + re-registration resolves the issue without deleting the machine
๐งพ Conclusion
The MachineWithSameBiosIdAndFqdnAlreadyExists error is a classic identity conflict scenario in Azure Migrate.
By:
- Cleaning up the incorrect registration
- Reusing the original machine metadata
- Re-registering the agent correctly
โฆyou can resolve the issue cleanly and safely, without impacting the migration workflow.