Unable to enable intelligence pack in Log Analytics workspace error while linking to defender for IoT

Arjun Sivasree 50 Reputation points
2025-02-14T08:42:28.9533333+00:00

Hello everyone,

Context

To understand how defender for IoT for device builders work, I am linking log analytics workspace to the defender for IoT as per this document

I followed the MS instructions to setup resource provider and access control for log analytics workspace.

Then I went to enable Defender for iot --> settings --> data collection to link the log analytics workspace.

Challenge

I am facing the following error

FailedDependency

Unable to enable intelligence pack in Log Analytics workspace '/subscriptions/.../providers/microsoft.operationalinsights/workspaces/law-defender-for-iot', please make sure to grant the required permissions to access the Defender for IoT experience.

Would need the community's help to understand If I missed giving any access permissions for this attachment to succeed or what to do to solve this or any leads would help?

Thanks

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,244 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Burlachenko 1,190 Reputation points
    2025-02-19T12:20:01.1533333+00:00

    Hey, the classic "FailedDependency" error Azure’s way of saying, "I’m not mad, just disappointed lol" Sounds like you’ve done the groundwork with the resource provider and access control, but Defender for IoT is being a bit fussy. Double-check if you’ve given the Defender for IoT service the right permissions on the Log Analytics workspace. It needs at least Contributor or Log Analytics Contributor to enable the intelligence pack. Also, make sure the workspace isn’t locked down with any sneaky resource locks or network restrictions. If all else fails, try the old IT mantra: "Have you tried turning it off and on again?" (Or, in Azure terms, re-linking the workspace.) Let me know if you crack it or if Azure wins this round. Cheers! Alex


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.