Skip to content

Commit

Permalink
Merge pull request #11 from rptcloud/lab_updates
Browse files Browse the repository at this point in the history
Lab updates
  • Loading branch information
rptdata authored Jun 15, 2022
2 parents 05ae333 + d84960a commit 1ca2b2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions 09-provisioners.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,18 +335,10 @@ azurerm_virtual_machine.vm
azurerm_virtual_network.vnet
```

Taint our VM:
```shell
terraform taint azurerm_virtual_machine.vm
```

```text
Resource instance azurerm_virtual_machine.vm has been marked as tainted.
```
Replace our VM using the `terraform apply -replace` option:

Run an `apply` and confirm:
```shell
terraform apply
terraform apply -replace azurerm_virtual_machine.vm
```

```text
Expand Down
2 changes: 1 addition & 1 deletion locals.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ resource "azurerm_network_interface" "training" {
ip_configuration {
name = "azureuser${var.prefix}ip"
subnet_id = azurerm_subnet.training.id
private_ip_address_allocation = "dynamic"
private_ip_address_allocation = "Dynamic"
public_ip_address_id = azurerm_public_ip.training[count.index].id
}
}
Expand Down

0 comments on commit 1ca2b2a

Please sign in to comment.