Issue
When attempting to click Save on Azure integration configuration, the changes are not saved and a banner at the top of the page shows an error similar to the following.
Log Analytics Workspace ID Unable to access Subscription associated with the Log Analytics Workspace
Environment
Azure Integration
Resolution
Check for an in-progress remediation task for the Enforce Lighthouse on subscriptions policy definition on the subscription hosting your Log Analytics Workspace.
- From your Azure portal, navigate to the Policy service
- Navigate to the Remediation tab and select Remediation Tasks
- Search for a remediation task for the Enforce Lighthouse on subscriptions policy definition on the subscription named in the Log Analytics Resource ID in Step 3b. of your Azure integration config
- If the remediation task is evaluating or in-progress, wait for it to complete before clicking Save on the integration config in Red Canary Portal
- If the remediation task failed or was not run, create a new remediation task for the subscription
How to Create a New Remediation Task
If needed, a user with permission to take the microsoft.policyinsights/remediations/write action at the management group scope can follow the steps below to issue a new remediation task.
- From your Azure portal, navigate to the Policy service
- Navigate to the Compliance tab and search for RC Log Ingest
- Click into the policy and select Create Remediation Task
- Set Scope to root management group
- Choose Select specific resources to remediate
- Check the Subscription from Step 3b. of your integration config
- Click the Remediate button
Once remediated, the subscription should be visible in the Lighthouse service in Azure under View Service Provider Offers > Delegations in association with the Red Canary - Azure Log Ingest service provider offering.
Cause
The Subscription ID named in the Log Analytics Resource ID in Step 3b. of the integration config is non-compliant with the RC Log Ingest policy in your Azure tenant. This policy enforces a Lighthouse delegation on the subscription that grants Red Canary access to the Log Analytics Workspace, among other permissions.