Skip to content

solution#48

Open
DemqN96 wants to merge 2 commits into
mate-academy:mainfrom
DemqN96:dev
Open

solution#48
DemqN96 wants to merge 2 commits into
mate-academy:mainfrom
DemqN96:dev

Conversation

@DemqN96

@DemqN96 DemqN96 commented Jun 10, 2026

Copy link
Copy Markdown

No description provided.

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Your implementation is missing a critical requirement: CHECKLIST ITEM #2 requires that all subnets allow traffic from other subnets within the virtual network, but no such rule exists in any of the three NSGs. Each NSG (webservers, management, and database) needs an inter-subnet communication rule — for example, a rule with SourceAddressPrefix set to VirtualNetwork or 10.20.30.0/24 and a priority lower than the existing Internet-facing rules. Without this rule, VMs in different subnets cannot communicate, which would break application functionality. Please add the intra-VNet allow rules to all three NSGs and update task.ps1 accordingly.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread task.ps1 Outdated
Comment on lines +18 to +19
$webRule = New-AzNetworkSecurityRuleConfig -Name "Allow-HTTP-HTTPS" -Protocol Tcp -Direction Inbound -Priority 100 -SourceAddressPrefix * -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange @("80", "443") -Access Allow
$webNSG = New-AzNetworkSecurityGroup -Name $webSubnetName -ResourceGroupName $resourceGroupName -Location $location -SecurityRules $webRule

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checklist item #2 requires all subnets to allow traffic from other subnets within the virtual network. This rule is missing from the webservers NSG. Add a rule with SourceAddressPrefix set to the VNet address range (10.20.30.0/24) and appropriate priority.

Comment thread task.ps1 Outdated
Comment on lines +22 to +23
$mngRule = New-AzNetworkSecurityRuleConfig -Name "Allow-SSH" -Protocol Tcp -Direction Inbound -Priority 100 -SourceAddressPrefix * -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 22 -Access Allow
$mngNSG = New-AzNetworkSecurityGroup -Name $mngSubnetName -ResourceGroupName $resourceGroupName -Location $location -SecurityRules $mngRule

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checklist item #2 requires all subnets to allow traffic from other subnets within the virtual network. This rule is missing from the management NSG. Add a rule with SourceAddressPrefix set to the VNet address range (10.20.30.0/24) and appropriate priority.

Comment thread task.ps1 Outdated

Write-Host "Creating dbSubnet network security group..."
# Write your code for creation of management NSG here ->
$dbNSG = New-AzNetworkSecurityGroup -Name $dbSubnetName -ResourceGroupName $resourceGroupName -Location $location

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checklist item #2 requires all subnets to allow traffic from other subnets within the virtual network. The database NSG needs a rule to allow traffic from other subnets (10.20.30.0/24), even though it blocks Internet traffic. Consider adding an "Allow-Intra-VNet" rule to $dbNSG.

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Your implementation is approved. All requirements have been successfully met: each subnet (webservers, database, management) has its own properly named NSG, inter-subnet communication is enabled via the VirtualNetwork address prefix in all three NSGs, the webservers tier permits HTTP/HTTPS traffic from the Internet, the management tier permits SSH from the Internet, and the database tier is properly isolated with no Internet-facing rules—the implicit NSG deny rule handles blocking all external traffic. The critical inter-subnet communication issue from the previous review has been resolved, and your solution is ready for use.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants