Azure event grid - replace existing subscription if given same names for new one

vaishali 21 Reputation points
2021-12-01T07:33:48.567+00:00

Hi Team,

Just asking one question out of curiosity on 'Azure event grid'.
I am learning azure event grid and while practicing I noticed one behavior where I can create new subscription with same name as existing but it replaces existing subscription with new configurations like event type, handler etc.

Steps followed:

  1. create event grid topic
  2. create first subscription with name 'sub-name'
  • event type: a, function: f1
  1. create second subscription and mistakenly gave same name 'sub-name'
  • event type: b, function: f2

Result: first subscription wiped off.

Question: Should it be removing existing subscription or just not allow to create new one with same name?
I am just curious to know the reason behind this behavior.

Thanks

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
454 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2021-12-02T11:25:21.31+00:00

    @vaishali I have reached out to my team and shared the feedback. Currently, event grid doesn't have the validation of whether the same subscription name resource is already created.
    Product team have acknowledged the feedback as other azure resources do have this validation. This validation will be soon implemented in event grid subscription creation from the Azure portal. As of now, I don't have the ETA for this but I will update this thread once the changes are pushed to the Azure portal.

    I appreciate that you have created this post that has helped in enhancing the User Experience of the Azure portal.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.