Skip to content

Commit

Permalink
Enable the deletion of the OS disk VHD blob for Ops Manager vm
Browse files Browse the repository at this point in the history
  • Loading branch information
amohemed authored and Aditya Anchuri committed Dec 22, 2016
1 parent 6530377 commit c66cae2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ resource "azurerm_network_interface" "optional_ops_manager_nic" {
}

resource "azurerm_virtual_machine" "ops_manager_vm" {
name = "${var.env_name}-ops-manager-vm"
depends_on = ["azurerm_network_interface.ops_manager_nic", "azurerm_storage_blob.ops_manager_image"]
location = "${var.location}"
resource_group_name = "${azurerm_resource_group.pcf_resource_group.name}"
network_interface_ids = ["${azurerm_network_interface.ops_manager_nic.id}"]
vm_size = "Standard_DS2_v2"
name = "${var.env_name}-ops-manager-vm"
depends_on = ["azurerm_network_interface.ops_manager_nic", "azurerm_storage_blob.ops_manager_image"]
location = "${var.location}"
resource_group_name = "${azurerm_resource_group.pcf_resource_group.name}"
network_interface_ids = ["${azurerm_network_interface.ops_manager_nic.id}"]
vm_size = "Standard_DS2_v2"
delete_os_disk_on_termination = "true"

storage_os_disk {
name = "opsman-disk.vhd"
Expand Down

0 comments on commit c66cae2

Please sign in to comment.