You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
When using azurerm_resource_group_template_deployment there is no way for terraform to know which providers are necessary to successfully apply the deployment. This means that when running terraform in a locked-down production environment with the skip_provider_registration feature enabled terraform has no way to identify which providers could be needed within the template, potentially resulting in an error message such as the following.
Error: waiting for creation of Template Deployment "eventgrid-deployment" (Resource Group "<redacted>"): Code="DeploymentFailed" Message="At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details." Details=[{"code":"Conflict","message":"{\r\n \"error\": {\r\n \"code\": \"MissingSubscriptionRegistration\",\r\n \"message\": \"The subscription is not registered to use namespace 'Microsoft.EventGrid'. See https://aka.ms/rps-not-found for how to register subscriptions.\",\r\n \"details\": [\r\n {\r\n \"code\": \"MissingSubscriptionRegistration\",\r\n \"target\": \"Microsoft.EventGrid\",\r\n \"message\": \"The subscription is not registered to use namespace 'Microsoft.EventGrid'. See https://aka.ms/rps-not-found for how to register subscriptions.\"\r\n }\r\n ]\r\n }\r\n}"}]
Would it be an idea to add a required_providers list to the resource that the azurerm provider could use to identify dependent providers?
Alternatively could this be an explicit resource type?
I just saw in the release notes that azurerm_resource_provider_registration was merged, coupled with a depends_on to ensure the correct ordering, that could solve this use-case.
Leaving the issue open for now in case someone else sees why this might not work as I expect.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Description
When using
azurerm_resource_group_template_deployment
there is no way for terraform to know which providers are necessary to successfully apply the deployment. This means that when running terraform in a locked-down production environment with theskip_provider_registration
feature enabled terraform has no way to identify which providers could be needed within the template, potentially resulting in an error message such as the following.Would it be an idea to add a
required_providers
list to the resource that the azurerm provider could use to identify dependent providers?Alternatively could this be an explicit resource type?
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: