Skip to content

ms-zhenhua/terraform-provider-azurerm

This branch is 4 commits ahead of, 9114 commits behind hashicorp/terraform-provider-azurerm:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 15, 2022
4b1d1fd · Aug 15, 2022
Aug 15, 2022
Apr 15, 2022
Aug 2, 2022
Aug 9, 2022
Aug 12, 2022
Jul 15, 2022
Aug 15, 2022
Aug 8, 2022
Feb 18, 2022
Aug 15, 2022
Nov 11, 2020
Aug 15, 2022
Jan 25, 2022
Aug 5, 2022
Apr 5, 2022
Apr 28, 2022
Oct 25, 2021
Oct 25, 2021
Aug 2, 2022
Aug 13, 2022
Jul 11, 2022
Apr 21, 2022
Jun 5, 2017
Jul 11, 2022
Aug 11, 2022
Aug 11, 2022
Aug 6, 2021
Apr 12, 2022

Repository files navigation

Terraform logo

Terraform Provider for Azure (Resource Manager)

The AzureRM Terraform Provider allows managing resources within Azure Resource Manager.

When using version 3.0 of the AzureRM Provider we recommend using Terraform 1.x (the latest version can be found here). Whilst older versions of Terraform Core (0.12.x and later) remain compatible with v3.0 of the AzureRM Provider - support for versions prior to 1.0 will be removed in the next major release of the AzureRM Provider (v4.0).

Usage Example

# 1. Specify the version of the AzureRM Provider to use
terraform {
  required_providers {
    azurerm = {
      source = "hashicorp/azurerm"
      version = "=3.0.1"
    }
  }
}

# 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/docs#authenticating-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"]
}

Developing & Contributing to the Provider

The DEVELOPER.md file is a basic outline on how to build and develop the provider while more detailed guides geared towards contributors can be found in the [/contributing] (https://github.com/hashicorp/terraform-provider-azurerm/tree/main/contributing) directory of this repository.

About

Terraform provider for Azure Resource Manager

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.9%
  • Other 0.1%