How to import Front Door Custom Domain Associations

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_frontdoor_custom_domain_association

for resource azurerm_cdn_frontdoor_custom_domain_association import

how (rest api) to get the resource id of the association id ?
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/associations/assoc1

In my case, the Resource ID (“assoc1” in the example command below) is the name of the related azurerm_cdn_frontdoor_custom_domain resource. You can use
az cdn custom-domain list to find out.

terraform import azurerm_cdn_frontdoor_custom_domain_association.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/associations/assoc1