newrelic / newrelic-azure-functions

Functions to collect and forward logs from Microsoft Azure to New Relic Logs
Apache License 2.0
7 stars 14 forks source link

fix: EventHub consumer creation fails when activating ActivityLogs #72

Closed danybmx closed 1 year ago

danybmx commented 1 year ago

EventHubForwarder ARM Template fails to deploy when activating any of the ActivityLogs with a 409 Conflict when trying to create the consumer.

I'm not really aware of the reason, I'm assuming a race-condition with the producer.

Assuming it's a race condition trying to create both consumer and producer at the same time, I've added a dependsOn on the producer, so it will wait until the consumer is fully created. This way, the deployment works correctly.

nr-opensource-bot commented 1 year ago

:tada: This PR is included in version 2.0.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: