Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix usage example formatting #14

Merged
merged 1 commit into from
Oct 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 24 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,35 @@ Usage
Provisions 2 Windows 2016 Datacenter Server VMs using `vm_os_simple` to a new VNet and opens up port 3389 for RDP access:

```hcl
module "mycompute" {
source = "Azure/compute/azurerm"
resource_group_name = "mycompute"
location = "East US 2"
admin_password = ComplxP@ssw0rd!
vm_os_simple = "WindowsServer"
public_ip_dns = "mywinsrv252"
remote_port = "3389"
nb_instances = 2
vnet_subnet_id = "${module.network.vnet_subnets[0]}"
}

module "network" {
source = "Azure/network/azurerm"
location = "East US 2"
resource_group_name = "mycompute"
}
module "mycompute" {
source = "Azure/compute/azurerm"
resource_group_name = "mycompute"
location = "East US 2"
admin_password = "ComplxP@ssw0rd!"
vm_os_simple = "WindowsServer"
public_ip_dns = "mywinsrv252"
remote_port = "3389"
nb_instances = 2
vnet_subnet_id = "${module.network.vnet_subnets[0]}"
}

output "vm_public_name"{
value = "${module.mycompute.public_ip_dns_name}"
}
module "network" {
source = "Azure/network/azurerm"
location = "East US 2"
resource_group_name = "mycompute"
}

output "vm_public_ip" {
value = "${module.mycompute.public_ip_address}"
}
output "vm_public_name"{
value = "${module.mycompute.public_ip_dns_name}"
}

output "vm_private_ips" {
value = "${module.mycompute.network_interface_private_ip}"
}
output "vm_public_ip" {
value = "${module.mycompute.public_ip_address}"
}

output "vm_private_ips" {
value = "${module.mycompute.network_interface_private_ip}"
}
```
Provisions 2 Ubuntu 14.04 Server VMs using `vm_os_publisher`, `vm_os_offer` and `vm_os_sku` to a new VNet and opens up port 22 for SSH access with ~/.ssh/id_rsa.pub :

Expand Down