@JAMS Admin Dev
It sounds like you're facing a 401 error while trying to access your Log Analytics workspace, even though you have admin rights. This can be a bit tricky because it usually relates to permissions rather than a technical issue. Here are a couple of things you might want to check:
Workspace-Based Access Control: If your workspace is set to "Use workspace-based access control," it ignores the role assignments at the resource group or subscription level. You’ll need to assign appropriate roles directly to the workspace. You can do this by going to the Azure Portal, navigating to your Log Analytics Workspace, and then accessing "Access control (IAM)." From there, add a role for yourself, specifically either Log Analytics Reader or Log Analytics Contributor.
Access Mode Settings: Consider changing your workspace's access control mode to "Use resource or workspace permissions." This could help resolve conflicting permission settings.
Re-login: Sometimes, simply signing out of the Azure Portal and signing back in can refresh the permissions and solve the issue.
If none of the above steps help resolve the error, could you provide a bit more detail by answering these questions?
- Are there any other users experiencing the same issue with accessing the Log Analytics workspace?
- Can you confirm the exact role assignments you have on the workspace and the resource group?
- Have there been any recent changes to the access control settings or roles for the workspace?