Difference between revisions of "Azure Terraform"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux_virtual_machine_scale_set | https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux_virtual_machine_scale_set | ||
+ | |||
+ | # Big Bugs/Quirks | ||
+ | - https://github.com/hashicorp/terraform-provider-azurerm/issues/7193 | ||
+ | ``` | ||
+ | ~ os_disk { | ||
+ | name = "myhost_disk1_16d4d5c5fde54722bdbbedfb6da62aa1" | ||
+ | ~ storage_account_type = "Standard_LRS" -> "StandardSSD_LRS" # forces replacement | ||
+ | # (3 unchanged attributes hidden) | ||
+ | } | ||
+ | ``` | ||
# Quirks Workarounds | # Quirks Workarounds |
Revision as of 09:43, 25 October 2021
- https://docs.microsoft.com/en-us/azure/developer/terraform/create-vm-cluster-with-infrastructure
- new vm linux won't work
- https://github.com/hashicorp/terraform-provider-azurerm/issues/6117
- https://github.com/hashicorp/terraform-plugin-sdk/issues/220
- except changing storage_account_type of disk doesn't work in azure_virtual_machin https://github.com/hashicorp/terraform-provider-azurerm/issues/555
- delete_os_disk_on_deletion = false
https://docs.w3cub.com/terraform/providers/azurerm/r/virtual_machine
https://www.reddit.com/r/Terraform/comments/nkpcwx/terraform_vm_is_replaced_in_the_second_run/
Big Bugs/Quirks
~ os_disk { name = "myhost_disk1_16d4d5c5fde54722bdbbedfb6da62aa1" ~ storage_account_type = "Standard_LRS" -> "StandardSSD_LRS" # forces replacement # (3 unchanged attributes hidden) }