question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable private link for Azure Monitor in Workspaces

See original GitHub issue

Builds upon #742

The AMPLS (defined in /templates/core/terraform/azure-monitor/azure-monitor.tf) should be able to support the Application Insights instances in Workspaces too.

Otherwise traffic to app insights is blocked by the firewall and creates many Deny logs.

Acceptance criteria

  • Prototype the use of AMPLS for Workspace App Insights instances in Portal and verify that the logs sent by the Workspace/Workspace Service get through (note: may require new storage to be linked with App Insights, see other task below) Adding resource to AMPLS
  • If the aforementioned approach was successful, update the Workspace (Service) installation/uninstallation pipelines to add/remove App Insights and other Azure Monitor resources deployed by the Workspace (Service) to/from the AMPLS
    • The resource ID of AMPLS need to be provided as output by tre-deploy target - OR - provide it directly in Terraform to Resource Processor as an env variable to be then injected to Porter installations requiring it?
  • App Insights behind Private Link requires a separately created, linked storage, see Configure Bring Your Own Storage (BYOS) for Application Insights
    • Use /templates/core/terraform/azure-monitor/azure-monitor.tf as reference

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
stuartleekscommented, Jun 20, 2022

Assumption: the desire is to have a separate App Insights instance per workspace (to preserve workspace isolation)

To enable connecting to Azure Monitor from within a workspace VNET (where traffic is restricted), we need to have an Azure Monitor Private Link Scope (AMPLS) that is connected to a Private Endpoint within the VNET.

An AMPLS can be connected to multiple Private Endpoints and multiple Azure Monitor resources, but an AMPLS can only connect to up to 10 Private Endpoints so the suggestion is to deploy an AMPLS per workspace for simplicity.

Because there are some shared endpoints (i.e. not resource-specific), a single AMPLS should be used for all VNETs that share the same DNS. Currently, we have separate VNETs for each workspace but each VNET is linked to the same, single private DNS Zone for Azure Monitor/App Insights. To enable an AMPLS per workspace, we need to update the private DNS Zones for Azure Monitor so that the existing zones are just used for the core VNET and deploy separate zones for each workspace.

Summary of proposed changes

  • Update the existing Azure Monitor DNS zones to only be used for the core VNET (i.e. don’t link to workspace VNETs)
  • For workspaces, add
    • DNS zones for Azure Monitor and link to the VNET
    • Azure Monitor Private Endpoints
    • An AMPLS connected to the Private Endpoint
1reaction
stuartleekscommented, Jul 27, 2022

@marrobi - I’m in the middle of that currently (fitting it around other work)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Azure Private Link to connect networks to Azure Monitor
An Azure Monitor Private Link connects a private endpoint to a set of Azure Monitor resources, defining the boundaries of your monitoring ...
Read more >
Azure Monitor Private Link. By Ronnie Quan - Cloud Journey
Azure Private Link allows you to securely link Azure PaaS services to your virtual network using private endpoints. For… docs.microsoft.com.
Read more >
Can We Turn On Private Link for Log Analytics Workspace Only
Can We Turn On Private Link for Log Analytics Workspace Only #74328 ... Private Link to securely connect networks to Azure Monitor -...
Read more >
Private Link and Azure Monitor: what is an AMPLS?
Adding up · Azure Monitor Private Link Scopes sit between the Private Endpoint and Azure Monitor · The DNS names required for Azure...
Read more >
Use Azure Private Link to securely connect ... - YouTube
Azure Private Link allows you to securely link Azure PaaS services to your virtual network using private endpoints.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found