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
resource "azurerm_resource_provider_registration" "microsofthybridcompute" {
name = "Microsoft.HybridCompute"
}
resource "azurerm_resource_provider_registration" "microsoftkubernetes" {
name = "Microsoft.Kubernetes"
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 (exampleAPI 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.