Securing Azure Monitor Logs Ingestion with Private Link

AZ-305 By islever Editorial Last updated

Short answer

A Use an Azure Monitor Private Link Scope (AMPLS) to enable private endpoint access for the Log Analytics workspace, ensuring logs are ingested via the API without internet exposure.

Question

You have an Azure subscription that contains 1,000 virtual machines and a Log Analytics workspace named Workspace1.
You plan to collect custom JSON logs from the virtual machines and store the logs in a custom table in Workspace1.
You need to ensure that the logs are collected by using the Logs Ingestion API. The solution must prevent access to Workspace1 from the internet.
What should you include in the solution?
  1. an Azure Monitor Private Link Scope (AMPLS) Correct Answer
  2. the linked storage account of Workspace1
  3. Service Connector
  4. an Azure Peering Service connection

Key Takeaways

The question tests the distinction between general network peering and Azure Monitor-specific private linking; AMPLS is required to expose the Logs Ingestion API privately.

Learn how to use Azure Monitor Private Link Scope (AMPLS) to ingest custom logs via the Logs Ingestion API into a Log Analytics workspace while blocking internet access.

Common mistake: Choosing VNet Peering (D) is common because it connects networks, but it does not inherently restrict public internet access to the Log Analytics workspace's ingestion API endpoints.

Expert Analysis

The scenario requires ingesting custom JSON logs from 1,000 virtual machines into a Log Analytics workspace using the Logs Ingestion API while strictly preventing internet access to the workspace. To achieve this, the ingestion endpoint must be accessible only via private networking.

Azure Monitor Private Link Scope (AMPLS) is the correct mechanism for this design. AMPLS allows you to group Azure Monitor resources, such as Log Analytics workspaces and Data Collection Rules (DCRs), so that they can be accessed through a single private link connection. By configuring the Log Analytics workspace within an AMPLS and attaching it to a Private Endpoint, traffic from the VMs (whether in the same VNet or peered VNets) is routed over the Microsoft backbone network rather than the public internet. This satisfies the requirement to use the Logs Ingestion API securely without exposing the workspace to the internet.

Option B, linked storage account, is used for exporting data or storing raw logs for long-term retention, not for the primary ingestion path of live logs via the API. Option C, Service Connector, simplifies connectivity between PaaS services but does not inherently provide the private link architecture required to block internet access for the Logs Ingestion API in this scale. Option D, Azure Peering Service (now generally part of standard VNet peering or ExpressRoute Global Reach), establishes network connectivity between VNets but does not by itself create the private endpoint infrastructure needed to secure the specific Azure Monitor resource against public internet access. The key is the Private Link integration provided by AMPLS.

As noted in community feedback, AMPLS enables resources like Log Analytics workspaces to be accessed through private endpoints instead of public ones, allowing log ingestion while blocking internet access.

Official Reference

https://learn.microsoft.com/en-us/azure/azure-monitor/logs/private-link-security

This link opens the official vendor documentation in a new tab.

Exam Strategy

When designing secure logging solutions, always look for 'Private Link' or 'Private Endpoint' keywords if internet access must be blocked. For Azure Monitor specifically, remember that AMPLS is the gateway to private access for Log Analytics and Data Collection Rules, distinct from general VNet peering.

Frequently Asked Questions

What is the role of Azure Monitor Private Link Scope?

AMPLS groups Azure Monitor resources to allow them to be accessed via private endpoints, enabling secure data ingestion without public internet exposure.

Can I use VNet Peering alone to secure Log Analytics ingestion?

No, VNet Peering connects networks but does not hide the resource from the public internet. You must use a Private Endpoint, often facilitated by AMPLS for Azure Monitor resources.

Community Votes

A
100%

100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 1 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 1

  1. 7bc6163 👍 1 Answered A
    Azure Monitor Private Link Scope (AMPLS) enables Azure Monitor resources, including Log Analytics workspaces and the Logs Ingestion API, to be accessed through private endpoints instead of public endpoints. This allows ingestion of logs while blocking internet access.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All AZ-305 Questions

Access 95 questions with complete answers and detailed explanations.

View Full AZ-305 Practice Test →

← Back to AZ-305 Study Guide