Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
84 stars 27 forks source link

unable to map two replication networks using azure bicep #2008

Open Satishlucky opened 9 months ago

Satishlucky commented 9 months ago

unable to map two replication networks using azure bicep.getting below error.

Status Message: Primary key property ArmResourceName is null in entity LookupByArmResourceNameInVault. (Code: BadRequest)

Primary key property ArmResourceName is null in entity LookupByArmResourceNameInVault. (Code:UnhandledException)

resource NENWVNETMAP 'Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings@2023-06-01' = {
  parent:NERnetwork
  name: 'norwayeast-norwaywest-vnet-mapping'
  properties: {
    recoveryNetworkId:recoveryNWNetworkId
     fabricSpecificDetails: {
      instanceType: 'AzureToAzure'
      primaryNetworkId: recoveryNENetworkId
    }
  }
}

resource NWNEVNETMAP 'Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings@2023-06-01' = {
  parent:NWRnetwork
  name: 'norwaywest-norwayeast-vnet-mapping'
  properties: {
    recoveryNetworkId:recoveryNENetworkId
     fabricSpecificDetails:{
      instanceType: 'AzureToAzure'
      primaryNetworkId: recoveryNWNetworkId
     }
  }
}
microsoft-github-policy-service[bot] commented 9 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @pvrk, @adityabalaji-msft. Please see https://aka.ms/biceptypesinfo for troubleshooting help.