Skip to content

Instantly share code, notes, and snippets.

@proffalken
Last active April 13, 2016 05:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save proffalken/05da65399c76e73976f5 to your computer and use it in GitHub Desktop.
Save proffalken/05da65399c76e73976f5 to your computer and use it in GitHub Desktop.
Terraforming with Azure Part 2
resource "azure_hosted_service" "azure_test_web" {
name = "azure_test_web"
location = "North Europe"
ephemeral_contents = false
description = "Consul Hosted service created by Terraform."
label = "azure_test_web"
}
resource "azure_instance" "azure_test_web" {
name = "${azure_virtual_network.azure_test.id}-web"
hosted_service_name = "${azure_hosted_service.azure_test_web.name}"
image = "Ubuntu Server 14.04 LTS"
size = "Standard_D3"
storage_service_name = "${azure_storage_service.azure_test_storage.name}"
location = "North Europe"
virtual_network = "${azure_virtual_network.azure_test.id}"
subnet = "private"
username = "terraform"
password = "${var.ssh_user_password}"
endpoint {
name = "HTTP"
protocol = "tcp"
public_port = 80
private_port = 80
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment