From 6af7471ee03b7ba2f0492b887a7f191dc14eb752 Mon Sep 17 00:00:00 2001 From: Terry Cain Date: Fri, 7 Aug 2020 13:04:33 +0100 Subject: [PATCH] Nomalised Azure frontdoor IDs --- azurerm/internal/services/frontdoor/frontdoor_resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azurerm/internal/services/frontdoor/frontdoor_resource.go b/azurerm/internal/services/frontdoor/frontdoor_resource.go index 0bd1fc298e38..18679402205c 100644 --- a/azurerm/internal/services/frontdoor/frontdoor_resource.go +++ b/azurerm/internal/services/frontdoor/frontdoor_resource.go @@ -1453,11 +1453,11 @@ func flattenArmFrontDoorSubResource(input *frontdoor.SubResource, resourceType s name := "" if id := input.ID; id != nil { - aid, err := azure.ParseAzureResourceID(*id) + aid, err := azure.ParseAzureResourceID(strings.ToLower(*id)) if err != nil { return "" } - name = aid.Path[resourceType] + name = aid.Path[strings.ToLower(resourceType)] } return name