Add specific NSGs for APIM and Container Apps with flow logs and Traffic Analytics#136
Open
Add specific NSGs for APIM and Container Apps with flow logs and Traffic Analytics#136
Conversation
…w logs Co-authored-by: simonkurtz-MSFT <84809797+simonkurtz-MSFT@users.noreply.github.com>
🐍 Python 3.14 Results
|
Python 3.14 Detailed Test Results1 458 tests +6 1 458 ✅ +6 12s ⏱️ -7s Results for commit 309d543. ± Comparison against base commit ee33f72. This pull request removes 15 and adds 21 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
🐍 Python 3.13 Results
|
🐍 Python 3.12 Results
|
Python 3.12 Detailed Test Results1 458 tests +6 1 458 ✅ +6 16s ⏱️ -3s Results for commit 309d543. ± Comparison against base commit ee33f72. This pull request removes 15 and adds 21 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Python 3.13 Detailed Test Results1 458 tests +6 1 458 ✅ +6 14s ⏱️ -5s Results for commit 309d543. ± Comparison against base commit ee33f72. This pull request removes 15 and adds 21 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Copilot
AI
changed the title
[WIP] Add specific Network Security Groups for Azure API Management and Container Apps
Add specific NSGs for APIM and Container Apps with flow logs and Traffic Analytics
Jan 29, 2026
…w logs Co-authored-by: simonkurtz-MSFT <84809797+simonkurtz-MSFT@users.noreply.github.com>
…services' into copilot/add-nsg-rules-for-azure-services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API Management and Container Apps subnets used generic
nsg-defaultwithout ingress restrictions or flow logging. This creates specific NSGs enforcing least-privilege access with comprehensive monitoring.NSG Modules
Created reusable modules in
shared/bicep/modules/vnet/v1/:AzureFrontDoor.Backend) or App Gateway (subnet-based)All NSGs include priority 4096 deny-all inbound rule and required outbound connectivity (Storage, SQL, Key Vault, Azure Monitor for APIM).
Infrastructure Changes
afd-apim-pe: APIM subnet →
nsg-apim-pe(Front Door), ACA subnet →nsg-acaappgw-apim: Added deny-all rule to existing App Gateway NSG, ACA subnet →
nsg-acaappgw-apim-pe: APIM subnet →
nsg-apim-pe(App Gateway), App Gateway NSG enhanced, ACA subnet →nsg-acaAll three infrastructures now deploy:
Example Usage
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
aka.ms/usr/local/bin/bicep bicep build shared/bicep/modules/vnet/v1/nsg-apim-vnet.bicep(dns block)/usr/local/bin/bicep bicep build shared/bicep/modules/vnet/v1/nsg-apim-pe.bicep(dns block)/usr/local/bin/bicep bicep build shared/bicep/modules/vnet/v1/nsg-aca.bicep(dns block)eastus.data.mcr.microsoft.com/usr/local/bin/bicep bicep build infrastructure/appgw-apim/main.bicep(dns block)/usr/local/bin/bicep bicep build infrastructure/appgw-apim-pe/main.bicep(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.