An organization has multiple application teams deploying resources to separate resource groups within a single Azure subscription. You are designing a monitoring and log routing solution. The solution must meet the following requirements:
- Minimize administrative overhead by using the fewest Log Analytics workspaces possible.
- Allow developers to query diagnostic logs only for the specific resources they own.
- Prevent developers from viewing logs of resources owned by other teams.
Which of the following designs should you recommend?
- ADeploy a separate Log Analytics workspace for each resource group, configure diagnostic settings to route logs to the local workspace, and assign the Log Analytics Reader role to each team on their respective workspace.
- BDeploy a single centralized Log Analytics workspace, route all diagnostic logs to it, and assign the Log Analytics Reader role on the workspace to all developers while using Azure Policy to restrict queries.
- Deploy a single centralized Log Analytics workspace, route all diagnostic logs to this workspace, and grant developers Reader access to their respective Azure resources.Cevap
- DDeploy a single centralized Log Analytics workspace, route all diagnostic logs to this workspace, and assign the Log Analytics Reader role directly to individual developer user accounts.
Cevap
Deploy a single centralized Log Analytics workspace, route all diagnostic logs to this workspace, and grant developers Reader access to their respective Azure resources.
The correct option minimizes administrative overhead by utilizing a single centralized Log Analytics workspace. To restrict developer access so they only view logs from their own resources, the resource-context access model is used. By granting developers Reader access to their specific resources or resource groups, they can query logs for those resources without having read access to the Log Analytics workspace itself. This prevents them from querying logs from other teams' resources.
Adım Adım Çözüm
Anahtar Kavram
Azure Monitor Log Analytics resource-context access control