@Shalom Washington Greetings!
In an MSP (Managed Service Provider) scenario using Azure Lighthouse and M365 Lighthouse, assigning specific IAM (Identity and Access Management) roles to customer resources, such as a Log Analytics workspace, can be challenging if certain roles are not assignable via Azure Lighthouse.
Azure Lighthouse templates indeed have limitations when it comes to assigning certain roles, such as Owner, Role Based Access Control Administrator, and User Access Administrator. These roles have the ability to manage role access, which is crucial for your scenario.
One approach to address this is to use Azure Lighthouse's delegated resource management capabilities. While Azure Lighthouse allows you to manage resources across multiple tenants, it does not currently support assigning these specific roles directly through templates. However, you can still manage permissions by using custom role definitions and assignments.
Here are a few steps you can consider:
- Custom Role Definitions: Create custom roles that include the necessary permissions for managing Log Analytics Workspaces. You can then assign these custom roles to the appropriate Entra groups.
- Manual Role Assignment: For roles that cannot be assigned through Azure Lighthouse templates, you may need to manually assign these roles using the Azure portal or PowerShell. This can be done by navigating to the specific resource and assigning the role to the desired Entra group.
- Automation Scripts: Consider using automation scripts to streamline the process of assigning roles. PowerShell or Azure CLI scripts can be used to automate the role assignment process, reducing the need for manual intervention.
- Azure Policy: Use Azure Policy to enforce role assignments and ensure compliance across your environments. Azure Policy can help you manage and audit role assignments, ensuring that the necessary permissions are in place.
Hope this helps!
If the response helped, do "Accept Answer" and up-vote it