azurerm_resource_provider_registration

Manages the registration of a Resource Provider - which allows access to the API's supported by this Resource Provider.

Example Usage

resource "azurerm_resource_provider_registration" "example" {
  name = "Microsoft.PolicyInsights"
}

Example Usage (Registering a Preview Feature)

provider "azurerm" {
  features {}

  skip_provider_registration = true
}

resource "azurerm_resource_provider_registration" "example" {
  name = "Microsoft.ContainerService"

  feature {
    name       = "AKS-DataPlaneAutoApprove"
    registered = true
  }
}

Argument Reference

The following arguments are supported:


A feature block supports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

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