-1
日增长
4,986
stars
5,081
forks
231
watchers
17,491
prs
16,263
issues
368
releases
README
Terraform Provider for Azure (Resource Manager)
The AzureRM Terraform Provider allows managing resources within Azure Resource Manager.
When using version 5.0 of the AzureRM Provider we recommend using the latest version of Terraform Core (the latest version can be found here).
Terraform Website
AzureRM Provider Documentation
AzureRM Provider Usage Examples
Slack Workspace for Contributors (Request Invite)
Usage Example
hcl
1. Specify the version of the AzureRM Provider to use
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=5.0.0"
}
}
}
2. Configure the AzureRM Provider
provider "azurerm" {
The AzureRM Provider supports authenticating using via the Azure CLI, a Managed Identity
and a Service Principal. More information on the authentication methods supported by
the AzureRM Provider can be found here:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docsauthenticating-to-azure
The features block allows changing the behaviour of the Azure Provider, more
information can be found here:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/features-block
features {}
}
3. Create a resource group
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
4. Create a virtual network within the resource group
resource "azurerm_virtual_network" "example" {
name = "example-network"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
address_space = ["10.0.0.0/16"]
}
Usage documentation for the AzureRM Provider can be found in the Terraform Registry.
Learn more about Terraform and the AzureRM Provider on HashiCorp Learn.
Additional examples can be found in the ./examples folder within this repository.
Developing & Contributing to the Provider
See Building the Provider for how to build and develop the provider, and the /contributing directory for the full set of contributor guides.
Privacy Notice
Individuals, including external contributors, who participate in this repository and related project activities may have personal information associated with their GitHub profiles, contributions, and repository activity processed for security, compliance, audit, vulnerability management, and related governance purposes.
For more information about how personal information may be collected, used, shared, retained, and the rights available to individuals, please review the IBM Privacy Statement: https://www.ibm.com/privacyTop issues
#16136Application Gateway request_routing_rule order change even with Azurerm 3.0.261 comments · 2022-03-29#18883Support for HTTP 2.0 Proxy in Azure App Service45 comments · 2022-10-20#6659azurerm_storage_data_lake_gen2_filesystem: datalakestore.Client#GetProperties: Failure responding to request: StatusCode=40344 comments · 2020-04-28#13776Support for Default Tags42 comments · 2021-10-18#19200azurerm_private_endpoint is getting recreated40 comments · 2022-11-08#6117Support for disk attachment to VMs at creation time40 comments · 2020-03-15#3910Feature Request: Backup Policy type "SQL Server in Azure VM"35 comments · 2019-07-23#24444azurerm_batch_account - HTTP response was nil; connection may have been reset31 comments · 2024-01-09
Latest release
v5.14.0 v5.14.0 2026-11-135.14.0 (November 13, 2026) FEATURES: New List Resource: azurerm_cognitive_account_project_connection_entra_id (32628) New Resource: azurerm_cognitive_account_project_connection_entra_id (32628) ENHANCEMENTS: dependencies: cdn - update API version to 2026-10-01 (33752) dependencies: go-azure-sdk - update to v0.20261106.1110203 (33810) dependencies: go - update to 1.26.11 (33843) dependencies: terraform-exec - update to v0.26.0 (33806) Data Source: azurerm_virtual_network - export the advertised_gateway_prefixes property (33543) azurerm_data_protection_backup_vault - add support for