-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Hubs] Register the EventGrid RP as part of the template #696
Comments
Will have to go the PowerShell route but access level on subscription to register is an issue since script deployment resource must use a user mi for az commands and that mi must have the subscription level rights to register resource providers. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-providers-and-types#register-resource-provider mentions that the provider must be registered manually if one resource type creates another. "Sometimes, a resource in the template requires supporting resources that aren't in the template. Common examples are monitoring or security resources. You need to register those resource providers manually." Cannot use powershell to register RP. in a resource group level deployment. Hence, registering provider by creating a namespace and then cleaning it up. |
🐛 Problem
Data is not ingested if someone forgets to register the EventGrid RP.
👣 Repro steps
The error should explain that the EventGrid RP hasn't been registered.
🤔 Expected
Automate the EventGrid RP registration as part of template deployment.
ℹ️ Additional context
While ARM does a good job of registering RPs for resources that are included in a template, ADF creates the EventGrid resource behind the scenes when the trigger is started. ADF doesn't register the RP, so it needs to be done explicitly.
We need to investigate if there is a way to declare some RP is needed as part of the template so ARM will auto-register. If not, we can create a script that registers the desired RPs. We can leverage the Initialize-FinOpsHubDeployment command if deployment scripts support installing modules from the PowerShell gallery. Alternatively, we just do the direct RP registration ourselves. The nice part about using our command is that it will cover any new pre-deployment steps that come up over time.
🙋♀️ Ask for the community
We could use your help:
The text was updated successfully, but these errors were encountered: