diff --git a/internal/services/web/app_service_custom_hostname_binding_resource.go b/internal/services/web/app_service_custom_hostname_binding_resource.go index fe5e05090707..76b3a4c8c1cb 100644 --- a/internal/services/web/app_service_custom_hostname_binding_resource.go +++ b/internal/services/web/app_service_custom_hostname_binding_resource.go @@ -104,7 +104,7 @@ func resourceAppServiceCustomHostnameBindingCreate(d *pluginsdk.ResourceData, me } } - if !utils.ResponseWasNotFound(existing.Response) { + if existing.ID != nil && *existing.ID != "" { return tf.ImportAsExistsError("azurerm_app_service_custom_hostname_binding", *existing.ID) } }