Skip to content

Commit

Permalink
added example.
Browse files Browse the repository at this point in the history
  • Loading branch information
melvinlee committed Dec 10, 2019
1 parent 718d15c commit 54a7094
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions examples/vm-windows-10/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
resource "azurerm_resource_group" "example" {
name = "rg-example"
location = "southeastasia"
}

resource "azurerm_virtual_network" "example" {
name = "vnet-example"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
address_space = ["10.0.0.0/16"]

subnet {
name = "subnet1"
address_prefix = "10.0.1.0/24"
}

tags = {
Env = "Demo"
DR = "NONE"
}
}

module "virtual_machine" {
source = "../../"
name = "example"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
fqdn = "example"
subnet_id = element(azurerm_virtual_network.example.subnet.*.id, 0)
admin_username = "admin123"
admin_password = "adMin%6541"
tags = {
Env = "Demo"
DR = "NONE"
}
}

0 comments on commit 54a7094

Please sign in to comment.