You have two Azure App Service web apps named webapp1 and api1. Both web apps run on the Standard S1 App Service plan. You configure regional virtual network integration for webapp1 to Subnet1 in a virtual network named VNet1. You need to ensure that api1 only accepts incoming traffic from webapp1. The solution must ensure that all communication from webapp1 to api1 traverses VNet1. You must minimize administrative effort and avoid using private endpoints. Which set of actions should you perform?
- Enable the Microsoft.Web service endpoint on Subnet1, enable the Route All setting on the virtual network integration of webapp1, and add an access restriction rule on api1 that allows traffic from Subnet1.Cevap
- BEnable the Microsoft.Web service endpoint on Subnet1, and add an access restriction rule on api1 that allows traffic from Subnet1.
- CScale down the App Service plan of api1 to the Free (F1) tier, enable the Microsoft.Web service endpoint on Subnet1, and add an access restriction rule on api1 that allows traffic from Subnet1.
- DConfigure an outbound Network Security Group (NSG) rule on Subnet1 that allows traffic to api1, and configure an inbound NSG rule on Subnet1 to block all other traffic.
Cevap
Enable the Microsoft.Web service endpoint on Subnet1, enable the Route All setting on the virtual network integration of webapp1, and add an access restriction rule on api1 that allows traffic from Subnet1.
The correct action is to enable the Microsoft.Web service endpoint on Subnet1, enable the Route All setting on webapp1's virtual network integration, and add an access restriction rule on api1 allowing Subnet1. By default, regional virtual network integration only routes traffic destined for private IP addresses (RFC1918). Because api1 has a public IP address, traffic from webapp1 to api1 will bypass VNet1 unless the Route All setting is enabled. Enabling Route All forces all outbound traffic from webapp1 through VNet1, applying the Microsoft.Web service endpoint identity from Subnet1, which is then permitted by api1's access restrictions.
Adım Adım Çözüm
Anahtar Kavram
Azure App Service Regional VNet Integration and Access Restrictions using Service Endpoints
Tahmini Süre:3m 0s