Skip to content

Commit

Permalink
update config to ensure idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 25, 2024
1 parent 07ba189 commit 6a39fe3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions quickstart/101-backup-vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@ resource "azurerm_storage_account" "my_storage_account" {

# Create virtual machine
resource "azurerm_windows_virtual_machine" "main" {
name = "${random_string.name.id}-vm"
admin_username = "azureuser"
admin_password = random_password.password.result
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
network_interface_ids = [azurerm_network_interface.my_terraform_nic.id]
size = "Standard_DS1_v2"
name = "${random_string.name.id}-vm"
admin_username = "azureuser"
admin_password = random_password.password.result
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
network_interface_ids = [azurerm_network_interface.my_terraform_nic.id]
size = "Standard_DS1_v2"
vm_agent_platform_updates_enabled = true

os_disk {
name = "myOsDisk"
Expand Down

0 comments on commit 6a39fe3

Please sign in to comment.