Azure Base Resource Provider Registration

This page shows how to write Terraform for Base Resource Provider Registration and write them securely.

azurerm_resource_provider_registration (Terraform)

The Resource Provider Registration in Base can be configured in Terraform with the resource name azurerm_resource_provider_registration. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

azure-arc.tf#L1
resource "azurerm_resource_provider_registration" "microsofthybridcompute" {
  name = "Microsoft.HybridCompute"
}

resource "azurerm_resource_provider_registration" "microsoftkubernetes" {
  name = "Microsoft.Kubernetes"

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages the registration of a Resource Provider - which allows access to the API's supported by this Resource Provider. -> The Azure Provider will automatically register all of the Resource Providers which it supports on launch (unless opted-out using the skip_provider_registration field within the provider block). !> Note: The errors returned from the Azure API when a Resource Provider is unregistered are unclear (example API version '2019-01-01' was not found for 'Microsoft.Foo') - please ensure that all of the necessary Resource Providers you're using are registered - if in doubt we strongly recommend letting Terraform register these for you. -> Note: Adding or Removing a Preview Feature will re-register the Resource Provider.

Azure Resource Manager Example

Azure Resource Manager code does not have the related resource.

Frequently asked questions

What is Azure Base Resource Provider Registration?

Azure Base Resource Provider Registration is a resource for Base of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Base Resource Provider Registration?

For Terraform, the mgugger/terraform source code example is useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.