You have an Azure subscription containing a Log Analytics workspace named Workspace1 and a virtual machine named VM1. VM1 sends its diagnostic logs to Workspace1. You need to allow a developer to query the logs of VM1. The developer must not be able to view logs for any other resources in Workspace1. Which action should you perform?
- Assign the Reader role on VM1 to the developer.Cevap
- BAssign the Log Analytics Reader role on Workspace1 to the developer and apply a ReadOnly resource lock to Workspace1.
- CAssign the Log Analytics Reader role on the resource group containing Workspace1 to the developer, and create an Azure RBAC deny assignment for other resources.
- DAssign the Log Analytics Reader role on Workspace1 to the developer and configure the workspace Access Control Mode to Require workspace permissions.
Cevap
Assign the Reader role on VM1 to the developer.
Assigning the Reader role on VM1 grants the developer resource-context log access. When the workspace is set to its default access mode, permissions on the resources themselves govern log access. This allows the developer to query VM1's logs from the VM blade or directly via resource-context query interfaces without granting visibility into other resources' logs in the workspace.
Adım Adım Çözüm
Anahtar Kavram
Log Analytics Workspace Access Control (Resource-context vs Workspace-context)
Tahmini Süre:1m 30s