fix: Create NSG for bastion and Pep subnet to avoid auto creation NSG by policy#162
Merged
Roopan-Microsoft merged 1 commit intodevfrom Jul 10, 2025
Merged
fix: Create NSG for bastion and Pep subnet to avoid auto creation NSG by policy#162Roopan-Microsoft merged 1 commit intodevfrom
Roopan-Microsoft merged 1 commit intodevfrom
Conversation
Roopan-Microsoft
approved these changes
Jul 10, 2025
|
🎉 This PR is included in version 1.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Ritesh-Microsoft
pushed a commit
that referenced
this pull request
Oct 10, 2025
fix: Create NSG for bastion and Pep subnet to avoid auto creation NSG by policy
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.
Purpose
subnetAddressPrefixesparameter with a newsubnetobject, adding NSG definitions, and updating module dependencies and outputs accordingly.Subnet Configuration Enhancements:
subnetAddressPrefixeswith a newsubnetobject inbastionHostConfigurationType, enabling more detailed configuration of subnets, including name, address prefixes, and associated NSG details. (infra/modules/network/bastionHost.bicep, [1] [2]bastionConfigurationparameter ininfra/samples/network-subnet-design.bicepto use the newsubnetobject, including NSG rules for inbound and outbound traffic. (infra/samples/network-subnet-design.bicep, infra/samples/network-subnet-design.bicepL46-R106)Network Security Group (NSG) Integration:
subnetobject configuration. (infra/modules/network.bicep, infra/modules/network.bicepR131-R199)nsgmodule to dynamically create NSGs based on thesubnetconfiguration, using the Azure Bicep Registry module for NSGs. (infra/modules/network/bastionHost.bicep, infra/modules/network/bastionHost.bicepL29-R57)Module and Dependency Updates:
bastionSubnetandbastionHostmodules to use the newsubnetobject, ensuring proper linkage to the dynamically created NSG. (infra/modules/network/bastionHost.bicep, [1] [2]bastionHostmodule ininfra/modules/network/main.bicepto pass the updatedsubnetobject instead of the deprecatedsubnetAddressPrefixes. (infra/modules/network/main.bicep, infra/modules/network/main.bicepL63-R63)Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information