-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_application_insights asks for workspace_id but requires id of the azurerm_log_analytics_workspace in lower case #13348
Comments
Same issue for me with a new clean deployment... Provider registry.terraform.io/hashicorp/azurerm v2.85.0 workspace_id = azurerm_log_analytics_workspace.default.id -> no error when executing the Terraform apply but the change is not applied in the Azure portal and App Insights is still using the old way. workspace_id = azurerm_log_analytics_workspace.default.workspace_id -> error when executing terraform plan with the following error: Can not parse "workspace_id" as a resource id: Cannot parse Azure ID: parse "a_guid": invalid URI for request |
Any update on this? Can someone from TF submit a ticket to MSFT? |
Same problem here:
@ms-henglu Could you please have a look at this? Noticed that you commented a similar issue #18030 Update: Maybe it's possible to use the parsing function from the LogAnalyticsWorkspace resource? terraform-provider-azurerm/internal/services/loganalytics/parse/log_analytics_workspace.go Lines 35 to 69 in 1672163
terraform-provider-azurerm/internal/services/applicationinsights/application_insights_resource.go Lines 229 to 231 in 2515d53
Update 2: Seems that the same solution has already been used in the code, like here: Line 77 in 4727f25
Can provide a PR in case... Update 3: Seems that a substantial change to log analytics is being worked on in this PR ( #18098 ), could maybe the team have a look at this after? |
Seems like this same issue is coming even after using v3.21.1, |
The issue is still present. I have tried: Can anyone please have a look? Or has anyone any suggestion? I can't update my infrastructure since I have some important data on AI and they will be lost if I recreate the resource... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Version
Expected Behavior
Actual Behavior
Additional Context
On the resource "azurerm_log_analytics_workspace" :
And it requires it in lower case, when using a data source on azurerm_log_analytics_workspace we are asked to update the resource -->
References
The text was updated successfully, but these errors were encountered: