updating Hashicorp's changes to merged simple linux branch

pull/14193/head
anniehedgpeth 9 years ago
parent d7e2acb5cb
commit dbaf8d14a9

@ -1,10 +1,6 @@
# Very simple deployment of a Linux VM
<a href="http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-vm-simple-linux%2Fazuredeploy.json" target="_blank">
<img src="http://armviz.io/visualizebutton.png"/>
</a>
This template allows you to deploy a simple Linux VM using a few different options for the Ubuntu version, using the latest patched version. This will deploy a A1 size VM in the resource group location and return the FQDN of the VM.
This template allows you to deploy a simple Linux VM using a few different options for the Ubuntu version, using the latest patched version. This will deploy an A0 size VM in the resource group location and return the FQDN of the VM.
This template takes a minimum amount of parameters and deploys a Linux VM, using the latest patched version.
@ -21,4 +17,4 @@ Azure requires that an application is added to Azure Active Directory to generat
If a `terraform.tfvars` file is present in the current directory, Terraform automatically loads it to populate variables. We don't recommend saving usernames and password to version control, but you can create a local secret variables file and use `-var-file` to load it.
## variables.tf
The `variables.tf` file contains all of the input parameters that the user can specify when deploying this Terraform template.
The `variables.tf` file contains all of the input parameters that the user can specify when deploying this Terraform template.

@ -12,4 +12,4 @@ if docker -v; then
else
echo "Docker is used to run terraform commands, please install before run: https://docs.docker.com/docker-for-mac/install/"
fi
fi

@ -1,3 +1,10 @@
# provider "azurerm" {
# subscription_id = "REPLACE-WITH-YOUR-SUBSCRIPTION-ID"
# client_id = "REPLACE-WITH-YOUR-CLIENT-ID"
# client_secret = "REPLACE-WITH-YOUR-CLIENT-SECRET"
# tenant_id = "REPLACE-WITH-YOUR-TENANT-ID"
# }
resource "azurerm_resource_group" "rg" {
name = "${var.resource_group}"
location = "${var.location}"
@ -34,7 +41,7 @@ resource "azurerm_public_ip" "pip" {
name = "${var.rg_prefix}-ip"
location = "${var.location}"
resource_group_name = "${azurerm_resource_group.rg.name}"
public_ip_address_allocation = "dynamic"
public_ip_address_allocation = "Dynamic"
domain_name_label = "${var.dns_name}"
}
@ -95,7 +102,7 @@ resource "azurerm_virtual_machine" "vm" {
}
boot_diagnostics {
enabled = "true"
enabled = true
storage_uri = "${azurerm_storage_account.stor.primary_blob_endpoint}"
}
}

@ -6,6 +6,6 @@ output "vm_fqdn" {
value = "${azurerm_public_ip.pip.fqdn}"
}
output "sshCommand" {
output "ssh_command" {
value = "ssh ${var.admin_username}@${azurerm_public_ip.pip.fqdn}"
}
}

@ -1,7 +0,0 @@
# provider "azurerm" {
# subscription_id = "REPLACE-WITH-YOUR-SUBSCRIPTION-ID"
# client_id = "REPLACE-WITH-YOUR-CLIENT-ID"
# client_secret = "REPLACE-WITH-YOUR-CLIENT-SECRET"
# tenant_id = "REPLACE-WITH-YOUR-TENANT-ID"
# }

@ -1,8 +0,0 @@
# Replace with relevant values
# resource_group = "myresourcegroup"
# rg_prefix = "rg"
# hostname = "myvm"
# dns_name = "mydnsname"
# location = "southcentralus"
# admin_password = "T3rr@f0rmP@ssword"
Loading…
Cancel
Save