importing resource failure due to capitalization on azurerm_web_application_firewall_policy #16072
Labels
category/casing/resource-id
service/application-gateway
upstream/microsoft/blocking-api-issue
This label is applicable when there is a bug on the Azure API that is blocking.
v/2.x (legacy)
v/3.x
TF version: 1.1.7
azurerm version: 3.0.1 (also at least 2.99 and 2.85)
Command run:
terraform import azurerm_web_application_firewall_policy.firewall /subscriptions/....................../resourceGroups/XXXXXXXXXXXXXXXXXXXXX-RSG/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/yyyyyyyyyyyyyyy
Problem encountered:
Error: ID was missing the
ApplicationGatewayWebApplicationFirewallPolicies
element│
│ with azurerm_web_application_firewall_policy.firewall,
│ on firewall.tf line 1, in resource "azurerm_web_application_firewall_policy" "firewall":
│ 1: resource "azurerm_web_application_firewall_policy" "firewall" {
Workaround:
Making capital A on ApplicationGatewayWebApplicationFirewallPolicies.
The azure portal returns the ID with a lowercase a.
On at least azurerm version 2.67 the import "succeeded" but will largely be empty.
The text was updated successfully, but these errors were encountered: