fix: Updated the networking module #703
Merged
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
This pull request refactors the networking components of the infrastructure deployment and improves post-deployment documentation. The main changes include replacing the legacy
network.bicep
module with a new approach that defines networking resources directly inmain.bicep
, updating resource references throughout the codebase, and adding a new post-deployment guide.Networking module refactor and resource integration:
infra/modules/network.bicep
file and replaced its functionality by defining the virtual network, subnets, Bastion host, and Jumpbox VM directly ininfra/main.bicep
. This change simplifies the networking architecture and makes resource management more transparent. [1] [2]infra/main.bicep
to use the newvirtualNetwork
module outputs instead of the oldnetwork
module outputs. This affects private endpoint subnet assignments, web app subnet configuration, and DNS zone linking. [1] [2] [3] [4] [5] [6] [7] [8] [9]Documentation improvements:
docs/AVMPostDeploymentGuide.md
file, providing clear instructions for post-deployment steps, including sample data import, authentication setup, and resource cleanup.Tagging and output updates:
DeploymentName
tag to resource group tags for better tracking of deployments.AZURE_CLIENT_ID
output frominfra/main.bicep
, streamlining output variables.These changes make the networking setup more modular and maintainable, improve documentation for users, and ensure resource references are consistent throughout the deployment.
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information
This pull request refactors the networking setup in the infrastructure codebase to simplify resource management and improve clarity. The main change is the replacement of the previous
network
module with a newvirtualNetwork
module, which now handles the creation and management of the virtual network, subnets, network security groups, Bastion host, and Jumpbox VM directly. As a result, references throughout the codebase have been updated to use outputs from the newvirtualNetwork
module instead of the oldnetwork
module. Additionally, the now-obsoletemodules/network.bicep
andmodules/network/bastionHost.bicep
files have been removed.Networking module refactor and resource management:
network
module with a newvirtualNetwork
module ininfra/main.bicep
, consolidating VNet, NSG, subnet, Bastion host, and Jumpbox VM creation into a single module for improved clarity and maintainability.modules/network.bicep
andmodules/network/bastionHost.bicep
files, as their responsibilities have been migrated to the newvirtualNetwork
module. [1] [2]Resource reference updates:
virtualNetwork
instead ofnetwork
, ensuring correct resource linkage after the module change. [1] [2] [3] [4] [5] [6] [7] [8] [9]This refactor streamlines the networking infrastructure, reduces duplication, and makes future maintenance easier by centralizing network-related resource definitions and outputs.