-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
44 lines (35 loc) · 824 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Configure the Azure provider
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 2.65"
}
}
required_version = ">= 0.14.9"
backend "remote" {
hostname = "app.terraform.io"
organization = "Syfanx_Playground"
workspaces {
name = "TF-GHA-Azure_State"
}
}
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "rg" {
name = var.resource_group_name
location = "southeastasia"
tags = {
Environment = "Terraform Getting Started"
Team = "DevOps"
}
}
# Create a virtual network
resource "azurerm_virtual_network" "vnet" {
name = "myTFVnet"
address_space = ["10.0.0.0/16"]
location = "southeastasia"
resource_group_name = azurerm_resource_group.rg.name
}