-
Notifications
You must be signed in to change notification settings - Fork 470
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
Container insights not working when using existing Log Analytics Workspace #607
Comments
Please could you clarify if the Related issue: #588 |
@zioproto I confirm that |
You are right the diagnostic settings are not created in this module. There is no I think the expectation was that if you bring your work Log Analytics Workspace you also provide the necessary You can add a resource like this:
Please let me know if this fixes the problem. |
container insights != diagnostic settings |
@oscarwest thanks for the clarification. I understand now this Terraform module is missing the Data Collection Rules Microsoft Documentation has a specific page on how to enable Containers Insights with Terraform. What happened is that I missed this when I did the review of #446 from @admincasper . @admincasper are you creating the resource PR #446 only implemented the block:
We missed the implementation of the The product team published a reference implementation here: |
Is there an existing issue for this?
Greenfield/Brownfield provisioning
greenfield
Terraform Version
1.9.8
Module Version
9.2.0
AzureRM Provider Version
3.117.0
Affected Resource(s)/Data Source(s)
N/A
Terraform Configuration Files
tfvars variables values
N/A
Debug Output/Panic Output
Expected Behaviour
Container insight logs are available in the existing log analytics workspace provided as an input variable.
I believe this is due to a missing data collection rule.
Actual Behaviour
No logs are available in the existing log analytics workspace.
The following warning is shown when looking at the monitor settings:
You do not have access to the associated data collection rule to view the log analytics workspace name or the data collection rule has been deleted.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: