azureazure-virtual-networkazure-monitoringazure-private-linkazure-virtual-network-gateway

Accessing Azure Log Analytics from Portal via AMPLS


I'm trying to restrict access to our Azure Monitor resources (Log Analytics Workspace and Application Insights) with an Azure Monitor Private Link Scope that has both "Accept data ingestion from public networks not connected through a Private Link Scope" and "Accept queries from public networks not connected through a Private Link Scope" set to "No", while still being able to access them the Azure Portal while connected to an Azure VPN peered with the main virtual network.

In the main resource group, I have the following:

In the VPN resource group, I have the following:

On my own computer, I have the DNS records for the Private Endpoints in the Windows hosts file.

What I've tried:

What happened:

What I want to be able to do:


Solution

  • I don't know if there's a better solution, but manually adding hosts file entries for api.loganalytics.io and api.applicationinsights.azure.com pointing to the same private IP as api.monitor.azure.com allowed me to access Log Analytics and Application Insights from the Azure Portal over the VPN.

    I also removed the NSG and "Private endpoint network policy" for the subnet.