SIMULATION -
You need to prepare a network security group (NSG) named az400-9940427-nsg1 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 complete this task, sign in to the Microsoft Azure portal.
See explanation below.
1. Open Microsoft Azure Portal and Log into your Azure account.
2. Select network security group (NSG) named az400-9940427-nsg1
3. Select Settings, Outbound security rules, and click Add
4. Click Advanced
5. Change the following settings:
-> Destination Port range: 8080
-> Protocol. TCP
-> Action: Allow
Note: By default, Azure DevOps Server uses TCP Port 8080.
https://robertsmit.wordpress.com/2017/09/11/step-by-step-azure-network-security-groups-nsg-security-center-azure-nsg-network/ https://docs.microsoft.com/en-us/azure/devops/server/architecture/required-ports?view=azure-devopsTo prepare a network security group (NSG) named az400-9940427-nsg1 to host an Azure DevOps pipeline agent, you can follow these steps:
Log in to the Azure portal (https://portal.azure.com/).
Select "Resource groups" from the left-hand menu, and then select the appropriate resource group that contains the virtual network where you want to create the NSG.
In the "Resource groups" blade, select the virtual network that you want to associate the NSG with.
In the "Virtual network" blade, select "Subnets" from the left-hand menu, and then select the appropriate subnet that you want to associate the NSG with.
In the "Subnets" blade, select "Network security group" from the toolbar.
In the "Network security group" blade, select "Create" to create a new NSG.
In the "Create network security group" blade, enter a name for the NSG, such as az400-9940427-nsg1.
Choose the appropriate subscription, resource group, and location for the NSG.
Select "Review + create" to review the settings, and then select "Create" to create the NSG.
Once the NSG is created, select it from the "Subnets" blade, and then select "Inbound security rules" from the left-hand menu.
In the "Inbound security rules" blade, select "Add" to create a new inbound security rule.
In the "Add inbound security rule" blade, configure the following settings:
Select "Add" to create the inbound security rule.
Next, select "Outbound security rules" from the left-hand menu.
In the "Outbound security rules" blade, select "Add" to create a new outbound security rule.
In the "Add outbound security rule" blade, configure the following settings:
Select "Add" to create the outbound security rule.
Finally, select "Overview" from the left-hand menu to verify that the