An organization is designing the network security for an Azure environment. A subnet named Subnet1 in a virtual network named VNet1 hosts virtual machines that run batch processing jobs. The virtual machines must access Azure Key Vault and Azure SQL Database instances over their public endpoints. You need to configure a Network Security Group (NSG) associated with Subnet1 to restrict outbound traffic so that the virtual machines can access only these specific Azure services and are blocked from all other public internet destinations. The solution must minimize administrative overhead. Which two actions should you recommend?
- Create an outbound security rule in the NSG with the destination set to the AzureKeyVault Service Tag.Answer
- Create an outbound security rule in the NSG with the destination set to the Sql Service Tag.Answer
- CCreate individual outbound security rules in the NSG for each public IP address range currently used by the Azure Key Vault and SQL Database instances.
- DCreate a custom route table with User-Defined Routes (UDRs) that map individual public IP addresses of the Azure services to the Internet gateway to override default routing.
Answer
Create an outbound security rule in the NSG with the destination set to the AzureKeyVault Service Tag, and create an outbound security rule in the NSG with the destination set to the Sql Service Tag.
To securely allow outbound traffic to Azure Key Vault and Azure SQL Database over public endpoints while blocking all other public internet traffic, you should configure NSG outbound rules using the built-in Service Tags 'AzureKeyVault' and 'Sql'. Service Tags represent the IP address prefixes of these services and are automatically managed and updated by Microsoft, which minimizes administrative overhead.
Step-by-Step Solution
Key Concept
Using Service Tags in Network Security Groups (NSGs) to manage outbound access to Azure services with minimal administrative overhead.
Estimated Time:1m 30s