Share via

Getting error "replication provider settings were not specified".while setup azure site recovery using azure bicep

Satish B 190 Reputation points
2023-11-03T15:54:18.3166667+00:00

Hello All,

I have deployed Virtual machines in Norway east though Azure Bicep.I have already created recovery service vault in norway west.using azure bicep.& i tried to setup azure site recovery in Norway west location (to replicate VM from Norway east to Norway west) though azure bicep.

Iam getting below Getting error. Please suggest how to fix the issue. Thanks in advance.

Status Message: An invalid parameter MigrationSolutionId and VMwareToAzureProviderType was passed. (Code: BadRequest)

- An invalid parameter MigrationSolutionId and VMwareToAzureProviderType was passed. (Code:InvalidParameter)

Status Message: Operation failed as replication provider settings were not specified. (Code: BadRequest)

- Operation failed as replication provider settings were not specified. (Code:ReplicationProviderSettingsNotSpecified)

Status Message: {"Message":"The request body on Account must be present, and must specify, at a minimum, the required fields set to valid values."} (Code:BadRequest)

CorrelationId: ea6635ef-e878-447e-834f-b344fe5a54f9

Note : iam maintaining two azure bicep files.one is for Norway east VM's & second one for azure site recovery in Norway west.

Azure Site Recovery
Azure Site Recovery

An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.


1 answer

Sort by: Most helpful
  1. Luis Arias 9,536 Reputation points Volunteer Moderator
    2023-11-05T17:10:12.2866667+00:00

    Hi Satish,

    About fabric resource Id you need to set the VM resource ID as parameter or with the below format:

          fabricObjectId: resourceId('Microsoft.Compute/virtualMachines','<VM Name>')
    
    

    There are some improvements that You can use if add modules to your bicep development:

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/modules

    I recommend you follow the documentation of each resouce bicep deployment:

    Cheers,

    Luis Arias


    If the information helped address your question, please Accept the answer.

    Was this answer helpful?


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.