Open jhauray opened 1 year ago
Hi, any update on this issue ?
Hi,
Any updates regarding the issue? Any plans to implement recreation of azurerm_virtual_network_gateway when unsupported change is happening (e.g. "Standard" to "ErGw1AZ")? Supported changes (https://learn.microsoft.com/en-us/azure/expressroute/expressroute-about-virtual-network-gateways#gwsku) were tested and working properly.
Supported SKU upgrades:
But all "unsupported" changes are a "update in-place", but will fail in the end. Like following example:
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# module.blueprint_network_per_region["region1"].module.expressroute_gateway[0].azurerm_virtual_network_gateway.this will be updated in-place
~ resource "azurerm_virtual_network_gateway" "this" {
id = "/subscriptions/43874e1a-49c1-4f27-af83-fa322b0765f6/resourceGroups/RG-dev-Network-WEUR/providers/Microsoft.Network/virtualNetworkGateways/VGW-dev-Default-WEUR"
name = "VGW-dev-Default-WEUR"
~ sku = "Standard" -> "ErGw1AZ"
# (14 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Thanks, Thomas
Is there an existing issue for this?
Community Note
Terraform Version
1.2.9
AzureRM Provider Version
3.39
Affected Resource(s)/Data Source(s)
azurerm_virtual_network_gateway
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
azurerm Terraform provider should detect an unsupported sku resize, and force
azurerm_virtual_network_gateway
re-creation (detroy and creation).Supported sku resizing are documented here : https://learn.microsoft.com/en-us/azure/expressroute/expressroute-about-virtual-network-gateways#gwsku
Actual Behaviour
azurerm Terraform provider plan to do a simple update, which is not supported by Azure.
Apply fail with the following error :
Steps to Reproduce
GatewaySubnet
.Important Factoids
No response
References
No response