Difference between revisions of "Azure Terraform"

From UVOO Tech Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
     - https://github.com/hashicorp/terraform-provider-azurerm/issues/6117
 
     - https://github.com/hashicorp/terraform-provider-azurerm/issues/6117
 
     - https://github.com/hashicorp/terraform-plugin-sdk/issues/220
 
     - 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://github.com/hashicorp/terraform-provider-azurerm/issues/7365
 +
  
 
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
  
 
https://docs.w3cub.com/terraform/providers/azurerm/r/virtual_machine
 
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/
 +
 +
 +
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
 +
- migrate by hand disk
 +
  - https://github.com/hashicorp/terraform-provider-azurerm/issues/8273
 +
  - https://docs.microsoft.com/en-us/azure/virtual-machines/windows/convert-disk-storage
 +
 +
 +
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/managed_disk
 +
 +
 +
# Possibly Useful But Not Tested
 +
 +
https://github.com/Azure/aztfy

Latest revision as of 22:27, 1 January 2023

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux_virtual_machine_scale_set

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/

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux_virtual_machine_scale_set

Big Bugs/Quirks

      ~ os_disk {
            name                      = "myhost_disk1_16d4d5c5fde54722bdbbedfb6da62aa1"
          ~ storage_account_type      = "Standard_LRS" -> "StandardSSD_LRS" # forces replacement
            # (3 unchanged attributes hidden)
        }

Quirks Workarounds

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/managed_disk

Possibly Useful But Not Tested

https://github.com/Azure/aztfy