I am unable to provision A azure event hub namespace with identity type set to system assigned.

Tarun Jain 0 Reputation points
2024-01-03T06:20:36.08+00:00

I am provisioning azure resources including an azure event hub using bicep, but all of a sudden, the pipeline started failing as the event hub provisioning was failing with a timeout error as it takes more than 10 mins to get provisioned, the bicep template for the event hub namespace has identity type set as system assigned, and once I removed the identity setting, it started working as expected. It is unclear on why this error occurred all of a sudden. It would be very helpful if I can get some clarity on this.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
558 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Luke Murray 10,526 Reputation points MVP
    2024-01-03T08:48:51.18+00:00

    If you are deploying a Role Assignment at the same time, it could be because the role already exists.

    https://learn.microsoft.com/en-us/answers/questions/1007498/microsoft-authorization-roleassignments-devops-ci

    https://github.com/Azure/bicep/discussions/11429

    A workaround is to either generate a new name, or manually delete the Role Assignment (it will appear in the IAM blade, although the identity the role is tied to, will be unknown if your event grid resource has been deleted).