Application Insights migration to Workspace-based Resource

Hi,

The classic App Insights resource is being deprecated in February 2024. The recommendation is to move to a workspace-based app insights instead.

Doing this via Terraform forces the resource to be destroyed and recreated, which means we lose all of the data (logs) we already have. This is fine for non-prod environments but not prod.

It works fine via the portal, but importing the state is proving difficult.

Any suggestions? Has anyone else encountered the same issue?

Thanks,
Alex