Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query
The error message "The app id 'appid' is not enabled for event grid subscription" suggests that the app you are using to update the subscription is not authorized to perform this action.
To resolve this issue, you may need to grant the app the necessary permissions to update the subscription. To do this, you can use Azure Role-Based Access Control (RBAC) to assign the app the "Contributor" or "Event Grid Publisher" role on the Azure Event Grid Partner Topic.
Here are the steps to assign the role:
- Open the Azure portal.
- Go to the Azure Event Grid Partner Topic for which you want to assign the role.
- Click on "Access control (IAM)" in the left-side menu.
- Click on "Add role assignment".
- In the "Add role assignment" blade, select the "Contributor" or "Event Grid Publisher" role.
- In the "Assign access to" field, select "App".
- In the search box, type in the name of the app that you want to assign the role to.
- Select the app from the list.
- Click on "Save" to assign the role.
After these steps, the app should have the necessary permissions to update the subscription. You can then retry the update process and the error message should be resolved.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.