Error to import the Azure Front Door module

Hi there,
Good evening.
Is there anyone who can please help me with this error? I can import the state without using the module, but it failed when importing the state with the module.

PS C:\terraform import module.az_fd_xxx.azurerm_frontdoor.azurerm_fd /subscriptions/xxxxxxxxxxxx/resourcegroups/xxxxxxx/providers/Microsoft.Network/frontdoors/xxxx-fd

│ Error: parsing Resource ID “/subscriptions/xxxxxxxxxxxx/resourcegroups/xxxxxxx/providers/Microsoft.Network/frontdoors/xxxx-fd”: ID was missing the frontDoors element

Thanks

Hi,
Change the resource ID to use capital D for ‘frontDoors’: “/providers/Microsoft.Network/frontDoors”

1 Like