Failed dependency error while trying to link a log analytics workspace to defender for iot within iot hub.
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 instructions to setup resource provider and access control for log analytics workspace.
resource provider: Microsoft.OperationsManagement
access control : Job function role, Log Analytics Contributor to azure security for iot
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 read 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? Appreciate help.
Thanks.