An enterprise is designing a secure administrative management solution for virtual machines deployed in a subnet named ComputeSubnet within a virtual network named VNet1. You deploy Azure Bastion in a subnet named AzureBastionSubnet to provide secure RDP and SSH access. To comply with security policies, you must configure a Network Security Group (NSG) associated with AzureBastionSubnet to restrict outbound traffic to only what is required for Azure Bastion to function properly, including connectivity to Azure public services (such as Azure Active Directory, Azure Monitor, and Azure Storage) for logging and diagnostics. The solution must minimize administrative overhead and avoid manual rule updates when Azure service IP addresses change. Which outbound NSG rule configuration should you recommend for AzureBastionSubnet?
- Create an outbound security rule with the destination set to the AzureCloud Service Tag for ports 443 and 12000.Answer
- BCreate outbound security rules with the destination set to the specific public IP address prefixes of the regional Azure Active Directory, Azure Monitor, and Azure Storage endpoints.
- CCreate an outbound security rule with the destination set to the VirtualNetwork Service Tag and associate a route table with AzureBastionSubnet that has a User Defined Route (UDR) for 0.0.0.0/0 pointing to an on-premises VPN gateway.
- DCreate an outbound security rule with the destination set to the Internet Service Tag for ports 22 and 3389 only, and deny all outbound traffic to the AzureCloud Service Tag.