SIMULATION
Task 7
You need to prepare a network security group (NSG) named az400 38443478 nsgl to host an Azure DevOps pipeline agent. The solution must allow only the required outbound port for Azure DevOps and deny all other inbound and outbound access to the Internet
To prepare a Network Security Group (NSG) named az400-38443478-nsg1 for hosting an Azure DevOps pipeline agent, while allowing only the required outbound port for Azure DevOps and denying all other inbound and outbound access to the Internet, follow these steps:
Create the NSG:
Navigate to the Azure Portal.
Go to Network Security Groups and click on + Create.
Fill in the details, including the name az400-38443478-nsg1, and create the NSG.
Configure Outbound Security Rules:
Once the NSG is created, go to its settings.
Navigate to Outbound security rules.
Click on + Add to create a new rule.
Set the Destination port ranges to 443, which is the required port for Azure DevOps12.
Set the Protocol to TCP.
Set the Action to Allow.
Assign a Priority number (e.g., 100) that does not conflict with existing rules.
Provide a meaningful Name for the rule (e.g., AllowAzureDevOps).
Configure Default Rules to Deny All Other Traffic:
In the same Outbound security rules section, edit the default rule to deny all traffic.
Change the Action to Deny for the rule with the lowest priority (highest number).
Ensure that this rule applies to all protocols, source and destination IP ranges, and port ranges.
Associate the NSG with the Appropriate Resource:
Associate the NSG with the subnet or network interface of the virtual machine or resource where the Azure DevOps pipeline agent will be hosted.
By following these steps, you will ensure that the Azure DevOps pipeline agent can communicate with Azure DevOps services over the required port while blocking all other inbound and outbound Internet access, adhering to the principle of least privilege and security best practices.
Corinne
2 months agoLenita
1 months agoMi
1 months agoHaydee
1 months agoBarney
2 months agoCecil
2 months agoHildegarde
1 months agoKaitlyn
2 months agoNada
2 months agoMilly
2 months agoAntonio
2 months agoMilly
2 months ago