Azure / bicep-types-az

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

Event Hub Disaster Recovery Config deployment 2024-01-01 version fails #2219

Open GuillaumeVadeBe opened 3 months ago

GuillaumeVadeBe commented 3 months ago

Bicep version

0.28.1

Describe the bug

I'm trying to deploy two event hub namespaces with a disaster recovery config. Both event hubs are being successfully deployed with the latest API version (2024-01-01). When deploying the disaster recovery config with the same API version, it fails with the following error:

No HTTP resource was found that matches the request URI 'https://westeurope-arm-dr.messaging.azure.net:10443/subscriptions/SUBSCRIPTIONID/resourcegroups/RESOURCEGROUPNAME/providers/Microsoft.EventHub/namespaces/PRIMARYEVENTHUBNAMESPACE/disasterRecoveryConfigs/PRIMARYEVENTHUBNAMESPACE?api-version=2024-01-01'.

Note that when changing the disaster recovery config deployment to version 2023-01-01-preview it works again.

To Reproduce

Additional context

We want to use the 2024-01-01 version for our event hub deployment because the failover to the secondary namespace is being done with the Azure.ResourceManager.EventHubs nuget package (version 1.1.0) which uses by default the latest API version (2024-01-01).

stephaniezyen commented 3 months ago

Please open a support ticket with the Event Hub Resource Provider team to fix this issue, as unfortunately this is not a Bicep issue. In the meantime, we will try to route it to the correct team