Manages the registration of a Resource Provider - which allows access to the API's supported by this Resource Provider.
resource "azurerm_resource_provider_registration" "example" {
name = "Microsoft.PolicyInsights"
}
provider "azurerm" {
features {}
skip_provider_registration = true
}
resource "azurerm_resource_provider_registration" "example" {
name = "Microsoft.ContainerService"
feature {
name = "AKS-DataPlaneAutoApprove"
registered = true
}
}
The following arguments are supported:
name
- (Required) The namespace of the Resource Provider which should be registered. Changing this forces a new resource to be created.
feature
- (Optional) A list of feature
blocks as defined below.
A feature
block supports the following:
name
- (Required) Specifies the name of the feature to register.registered
- (Required) Should this feature be Registered or Unregistered?The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 120 minutes) Used when registering the Resource Provider/Features.read
- (Defaults to 5 minutes) Used when retrieving the Resource Provider.update
- (Defaults to 120 minutes) Used when updating the Resource Provider/Features.delete
- (Defaults to 30 minutes) Used when unregistering the Resource Provider.Resource Provider Registrations can be imported using the resource id
, e.g.
terraform import azurerm_resource_provider_registration.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PolicyInsights