Skip to content

Commit f4d0251

Browse files
Merge pull request #264543 from toddfoust/patch-28
Adding terraform note to migration article
2 parents 9ff9c39 + df2e050 commit f4d0251

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/azure-monitor/app/convert-classic-resource.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,12 @@ No. There's no impact to [Live Metrics](live-stream.md#live-metrics-monitor-and-
329329

330330
To continue with automated exports, you will need to migrate to [diagnostic settings](/previous-versions/azure/azure-monitor/app/continuous-export-diagnostic-setting) before migrating to workspace-based resource. The diagnostic setting will carry over in the migration to workspace-based Application Insights.
331331

332+
### How do I ensure a successful migration of my App Insights resource using Terraform?
333+
334+
If you are using Terraform to manage your Azure resources, it is important to use the latest version of the Terraform azurerm provider before attempting to upgrade your App Insights resource. Using an older version of the provider, such as version 3.12, may result in the deletion of the classic component before creating the replacement workspace-based Application Insights resource. This can cause the loss of previous data and require updating the configurations in your monitored apps with new connection string and instrumentation key values.
335+
336+
To avoid this issue, make sure to use the latest version of the Terraform [azurerm provider](https://registry.terraform.io/providers/hashicorp/azurerm/latest), version 3.89 or higher, which performs the proper migration steps by issuing the appropriate ARM call to upgrade the App Insights classic resource to a workspace-based resource while preserving all the old data and connection string/instrumentation key values.
337+
332338
## Troubleshooting
333339

334340
This section offers troubleshooting tips for common issues.

0 commit comments

Comments
 (0)