feat: Merging the NSG bicep changes from dev to main#163
Merged
Conversation
fix: Create NSG for bastion and Pep subnet to avoid auto creation NSG by policy
Abdul-Microsoft
requested review from
Avijit-Microsoft,
Prajwal-Microsoft,
Roopan-Microsoft,
Vinay-Microsoft,
aniaroramsft and
marktayl1
as code owners
July 10, 2025 07:05
chore: Reuse AI Foundry Project
Roopan-Microsoft
approved these changes
Jul 10, 2025
docs: Added required azd version in azure.yml file and updated DeploymentGuide.md file
Roopan-Microsoft
approved these changes
Jul 10, 2025
Prajwal-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
feat: Merging the NSG bicep changes from dev to main
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
Enhancements to Azure Bastion Host Configuration:
Support for Subnet Configuration: Replaced the
subnetAddressPrefixesparameter with a more comprehensivesubnetparameter, which includes properties such asname,addressPrefixes, and an optionalnetworkSecurityGroupconfiguration. (infra/modules/network.bicep[1]infra/modules/network/bastionHost.bicep[2] [3] [4]infra/samples/network-subnet-design.bicep[5]Integration of Network Security Groups: Added support for defining NSGs with custom security rules for Azure Bastion Host subnets. This includes rules for inbound and outbound traffic such as allowing HTTPS, SSH, RDP, and Azure Cloud traffic. (
infra/modules/network.bicep[1]infra/modules/network/bastionHost.bicep[2]Refactoring and Dependency Management:
Refactored Resource Dependencies: Updated the Bastion Host module to explicitly depend on the creation of its associated subnet, ensuring proper deployment order. (
infra/modules/network/bastionHost.bicepinfra/modules/network/bastionHost.bicepR86-R88)Improved Modularity: Introduced the
subnetTypeimport to encapsulate subnet configurations, promoting reusable and cleaner code. (infra/modules/network/bastionHost.bicepinfra/modules/network/bastionHost.bicepL29-R57)These updates improve the flexibility and security of the Azure Bastion Host deployment while aligning the codebase with best practices for modular infrastructure as code.
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information