Access Issues After Changing "Query Access" Settings on Log Analytics Workspace

Rui Silva 0 Reputation points
2025-05-12T15:49:04.7933333+00:00

Hello,

We have an active site-to-site VPN connection between our on-premises office network and our Azure infrastructure. Through this VPN, we can access all private resources, and for some endpoints, we use host file mappings such as:

10.0.1.4 vm-sql.privatelink.database.windows...
10.0.1.8 vm-dce-cics-performance-class...

We are experiencing issues after changing the Query Access settings of our Log Analytics Workspace (name: LOGAN-WS00, resource group and subscription IDs omitted here for privacy).

Before the change:

  • The "Query Access" option was set to “Enabled from all networks”.
  • We were able to browse the workspace tables both from the Azure Portal (web interface) and internally via VPN.

After the change:

  • We changed the setting to “Restricted public inbound, enabled public outbound”.
  • After applying the new configuration:
    • We can no longer access the tables via the Azure Portal.
    • We also lose access when querying from the internal network over VPN.
    • The following error is shown:
{
  "error": {
    "message": "The provided credentials have insufficient access to perform the requested operation",
    "code": "InsufficientAccessError",
    "correlationId": "...",
    "innererror": {
      "code": "NspValidationFailedError",
      "message": "Access to workspace 'LOGAN-WS00' from '88.157.90.75' is denied. To allow access from public networks, change the workspace Networking settings or add it to a Network Security Perimeter."
    }
  }
}


We would like help understanding:

  • How to properly restrict access to the workspace while still exclusively access from our internal network via VPN.
  • Whether we need to explicitly whitelist our public IP or configure something like Private Link or Network Security Perimeter.
  • Why access is lost even though name resolution is working and traffic goes through the VPN.

Thanks in advance for any guidance.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,590 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.