Skip to content

Solution#28

Open
Alex13-th wants to merge 3 commits into
mate-academy:mainfrom
Alex13-th:develop
Open

Solution#28
Alex13-th wants to merge 3 commits into
mate-academy:mainfrom
Alex13-th:develop

Conversation

@Alex13-th

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

There is a critical issue in your task.ps1 script: the variable $ruleDb is used before it is defined, which will cause the script to fail or misconfigure the database NSG. Additionally, the required result.json file is missing from your submission. Please define $ruleDb properly, ensure all required files are committed, and then resubmit. You're almost there—just a couple of fixes needed! 😊


✨ 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 +28 to +30
$dbNsg = New-AzNetworkSecurityGroup -Name "nsg-database" `
-ResourceGroupName $resourceGroupName -Location $location `
-SecurityRules $ruleDb

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Error: The variable $ruleDb is used here but is not defined anywhere in the script. You need to create a security rule for the database subnet (e.g., allowing only necessary ports such as 1433 for SQL or as required by your database) and assign it to $ruleDb before using it in the New-AzNetworkSecurityGroup command.

@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 script logic is correct and meets all the task requirements for NSGs and subnet rules—great job! 🎉 However, your submission is missing the required result.json file, which is essential for validating your deployment. Please generate and commit result.json as instructed, and you'll be all set!


✨ 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
Comment on lines +28 to +30
$dbNsg = New-AzNetworkSecurityGroup -Name "nsg-database" `
-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.

Issue: The database NSG (nsg-database) is created without any security rules. According to typical requirements, you should define and assign the necessary security rules for the database subnet. Please check the task checklist and add the required rules 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

Great work! Your implementation of the NSG and subnet configuration in task.ps1 fully meets the technical requirements, with correct rules and associations as specified by the task. However, your submission is missing the required result.json file, which is essential for validating your deployment and is explicitly required by the instructions. Please make sure to run the artifact generation and validation scripts (scripts/generate-artifacts.ps1 and scripts/validate-artifacts.ps1) and commit the resulting result.json file. This is a critical step for future submissions—without it, your work cannot be fully validated or accepted, even if the infrastructure code is correct.

No other issues were found, and your code is otherwise well-structured and compliant with all constraints. Keep up the good work! 🚀 Please address the missing artifact in your next submission to ensure a smooth review process. If you need more guidance, check the task instructions or reach out for help. You're making great progress—keep learning and improving!


✨ 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