Connecting Azure Log Analytics Workspace

Overview

RealmJoin Portal can display possible issues with Windows updates like Windows Update SafeGuard Holds by integrating with Windows Update for Business Reports.

Also, RealmJoin Portal will use Log Analytics to store Audit Log information and archive Runbook execution data past the default limits of Azure Automation (currently 30 days).

Components

Azure App Registration

RealmJoin will interact with both Log Analytics workspaces via an Entra ID application registration.

You can reuse the App Registration "RealmJoin Runbook Management" which is created when onboarding runbooks.

This app will be authenticated using a ClientId and ClientSecret. Using a certificate or Managed Identity is currently not supported.

Please grant the app "Monitoring Reader" permissions on the Log Analytics accounts used for Windows Update for Business Reports Integration and "Monitoring Contributor" for the RealmJoin Audit logs Log Analytics account.

RealmJoin will also use the Customer Workspace Key to write data directly into RealmJoin Audit Logs.

Windows Update for Business Reports Integration

Windows Update for Business Reports needs to be configured in your environment in order to leverage this feature. It will write update-related events into an Azure Log Analytics Workspace. RealmJoin can read the events from this Log Analytics Workspace and display them on the device's details page.

You can use the same Log Analytics Account for both Windows Update for Business Reports and RealmJoin Audit Logs. Please assign "Monitoring Contributor" permissions in this case.

RealmJoin Audit Logs

RealmJoin can use a Log Analytics workspace to store its own audit logs as well as archive runbook logs after the maximum retention in Azure Automation (currently 30 days).

Please be aware, in order to store logs for longer than 30 days, you will need to modify the workspace's default data retention, which is also set to 30 days by default.

Setup

Part 1 - Authentication using Azure App Registration

  1. In the Azure Portal, navigate to Microsoft Entra ID > Manage > App Registrations.

  2. Select the All Applications tab.

  3. Choose your next step.

If you have already integrated with Azure Runbooks, you can re-use your existing App Registration.

  1. Select the "RealmJoin Runbooks Management" App Registration.

  2. Navigate to Manage > Certificates & Secrets.

  3. Select the "Client Secrets" tab.

  4. Create a new client secret.

    • Set description and expiration according to your internal naming and security policies.

  1. Securely note down the secret value to use in Part 5.

Navigating away from the Certificates & Secrets page will cause Azure to obfuscate the secret. The secret will not be retrievable and a new secret will need to be created.

Part 2 - Creating a Log Analytics Workspace

  1. In the Azure Portal, navigate to Log Analytics Workspace

  2. Select Create

  3. Provide a Resource Group, Name and Region as required

  4. Navigate to the "Overview" tab

  5. Note the following for Part 5

    1. Resource Group Name

    2. Workspace Name

    3. Workspace ID

Part 3 - Enabling Windows Update for Business Reports

  1. In the Azure Portal, navigate to Monitor > Workbooks

  2. Save Settings

Windows Update for Business reports may take up to 24 hours to apply

Part 4 - Azure Permissions

  1. Navigate to the subscription your Log Analytics Workspace resides in

  2. Select Access Control (IAM)

  3. Add a role assignment

  4. Provide your App Registration with Monitoring Contributor permissions

  5. Review and Save the role assignment

Part 5 - Connecting RealmJoin and Azure Log Analytics Workspace

  1. Fill in the fields: Tenant Details

    • TenantId: Please provide your Entra ID's tenant ID. Find this in the Entra ID Overview page

    Azure App Registration Details

    • ClientId: RealmJoin will interact with the LogAnalytics workspace via an Azure App Registration. Please provide the app's ClientId/AppId and Secret, so that RealmJoin can authenticate.

    • ClientSecret: Used with the ClientId to provide access to RealmJoin. This is the secret made in Part 1.

    Windows Update for Business Workspace Details

    Workspace Details

    • Subscription ID: Please provide the Subscription ID from the RealmJoin Audit Logs Log Analytics account. The subscription ID is viewable in the Subscription Overview page.

    • Resource Group: Please provide the Resource Group Name from the RealmJoin Audit Logs Log Analytics account.

    • Workspace Name: Please provide the Workspace Name from the RealmJoin Audit Logs Log Analytics account.

    • Customer Workspace Id: Please provide / create a Log Analytics workspace to store RealmJoin audit log and runbook log data.

    • Customer Workspace Key: RealmJoin will act as an agent to Log Analytics. Please provide the "Primary Key" to this workspace, as to allow writing data to the workspace.

  2. Press Save after filling out all fields. The system will give you feedback if everything worked.

Last updated