You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To date, this still is not working as deployed by Pulumi.
However, after manually creating another data collection rule, it does work.
I created a new data collection rule in the portal.
creating a new data collection rule also automatically gave the VM a system-assigned managed identity.
Even though when creating the rule I told it not to use a data collection endpoint, it still actually created the new rule with the existing data collection endpoint (which was created by pulumi). This means the new rule is fundamentally the same as the pulumi generated rule.
Deleting the new rule does not stop the log analytics workspace collecting data from the VMs; thus, the old rule now works.
Removing the managed identity from the VM doesn't stop the logs being collected
Deleting the old rule and then reinstating it with Pulumi stops data collection
Manually setting the workspace to have a system-assigned managed identity restarts data collection
It feels like it might be necessary for the VM to have managed identity for data collection to start.
✅ Checklist
💻 System information
🚫 Describe the problem
VMs are not able to connect to the Log Analytics Workspace using the Azure Monitor Agent. This could be a problem with one of the following:
♻️ To reproduce
Deploy an SRE with an integrated workspace
The text was updated successfully, but these errors were encountered: