-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
2.86 requires Microsoft.StoragePool/register/action over subscription #14265
Comments
hi @centreboard Thanks for opening this issue. Azure's concept of a Resource Provider requires that the Resource Provider is registered before any API's within that Resource Provider can be called. As such, rather than failing during an API call / to improve the user experience Terraform automatically attempts to register any Resource Providers that it supports by default - to ensure that the API's are available when they're needed; and since this list is stored within Terraform, we extend this list from time to time as Terraform is updated to support new functionality (provided in new Resource Providers). If you'd prefer to manage Resource Provider Registration outside of Terraform (for example you're running in a restricted environment) - it's possible to opt-out of this behaviour by setting this field in the Provider block. Since this is working as intended I'm going to close this issue for the moment - but please let us know if disabling this functionality doesn't work for you and we'll take another look. Thanks! |
Would you recommend following https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers#find-resource-provider
For new resource types is there a good way to work out from the docs (e.g. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service) what the provider will be? Thanks |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
provider "azurerm"
Terraform Configuration Files
This affects all our configuration, but a simple example is
Debug Output
Panic Output
N/A
Expected Behaviour
No errors when running as a resource group contributor or owner.
I shouldn't need to request subscription level permissions for all accounts that might manage terraform for Microsoft.StoragePool when we're not using it. A default of having to apply
skip_provider_registration
doesn't feel right either.If they are needed then should this be added to the release notes: https://github.com/hashicorp/terraform-provider-azurerm/releases/tag/v2.86.0
Actual Behaviour
Steps to Reproduce
With an account that's an owner or contributor to a resource group
terrafrom init --upgrade
-> Update from v2.85 to v2.86terraform plan
Important Factoids
References
azurerm_storage_disks_pool
#14145The text was updated successfully, but these errors were encountered: