You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
╷
│ Error: Unsupported argument
│
│ on .terraform/modules/virtual-machine/main.tf line 73, in resource "azurerm_public_ip" "pip":
│ 73: availability_zone = var.public_ip_availability_zone
│
│ An argument named "availability_zone" is not expected here.
╵
Error: Terraform exited with code 1.
Error: Process completed with exit code 1.
The text was updated successfully, but these errors were encountered:
resource "azurerm_public_ip" "pip" {
count = var.enable_public_ip_address == true ? var.instances_count : 0
name = lower("pip-vm-${var.virtual_machine_name}-${data.azurerm_resource_group.rg.location}-0${count.index + 1}")
location = data.azurerm_resource_group.rg.location
resource_group_name = data.azurerm_resource_group.rg.name
allocation_method = var.public_ip_allocation_method
sku = var.public_ip_sku
sku_tier = var.public_ip_sku_tier
domain_name_label = var.domain_name_label
availability_zone = var.public_ip_availability_zone
tags = merge({ "ResourceName" = lower("pip-vm-${var.virtual_machine_name}-${data.azurerm_resource_group.rg.location}-0${count.index + 1}") }, var.tags, )
lifecycle {
ignore_changes = [
tags,
ip_tags,
]
}
}
error:
╷
│ Error: Unsupported argument
│
│ on .terraform/modules/virtual-machine/main.tf line 73, in resource "azurerm_public_ip" "pip":
│ 73: availability_zone = var.public_ip_availability_zone
│
│ An argument named "availability_zone" is not expected here.
╵
Error: Terraform exited with code 1.
Error: Process completed with exit code 1.
The text was updated successfully, but these errors were encountered: