Connect Web App to On-Premises SMB Share with Azure VPN

Connect Web App to Share1 SMB Share

Question

Your on-premises network contains an SMB share named Share1.

You have an Azure subscription that contains the following resources:

-> A web app named webapp1

-> A virtual network named VNET1

You need to ensure that webapp1 can connect to Share1.

What should you deploy?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C.

C

A Site-to-Site VPN gateway connection can be used to connect your on-premises network to an Azure virtual network over an IPsec/IKE (IKEv1 or IKEv2) VPN tunnel.

This type of connection requires a VPN device, a VPN gateway, located on-premises that has an externally facing public IP address assigned to it.

Incorrect Answers:

B: Application Proxy is a feature of Azure AD that enables users to access on-premises web applications from a remote client.

https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal

To enable webapp1 in Azure to connect to an SMB share in an on-premises network, we need to establish a secure and reliable connection between the two environments. There are several ways to achieve this, but in this scenario, we need to choose the most appropriate one.

Option A: Azure Application Gateway Azure Application Gateway is a web traffic load balancer that can route HTTP and HTTPS requests to multiple servers for better performance and scalability. It provides SSL termination, URL-based routing, and session affinity features, among others. However, it is not suitable for connecting to an SMB share, which uses the SMB protocol for file and printer sharing over a network.

Option B: Azure Active Directory (Azure AD) Application Proxy Azure AD Application Proxy allows you to securely publish on-premises web applications and access them from anywhere with a web browser, without the need for a VPN or DMZ. It uses Azure AD for authentication and authorization, and it provides several security features such as multifactor authentication, conditional access, and user/group filtering. However, it is designed for web applications only and cannot connect to an SMB share directly.

Option C: Azure Virtual Network Gateway Azure Virtual Network Gateway is a networking solution that provides secure and scalable connectivity between Azure virtual networks and on-premises networks, including remote sites and mobile users. It supports various VPN protocols, including Point-to-Site (P2S) and Site-to-Site (S2S), and it can handle a high volume of network traffic with low latency and high throughput. It also provides several security features such as encryption, authentication, and routing policies. Therefore, this is the correct option for our scenario.

To deploy Azure Virtual Network Gateway, we need to follow these steps:

  1. Create a virtual network in Azure (VNET1) that is connected to the on-premises network using a VPN gateway.
  2. Configure the VPN gateway to use a Site-to-Site VPN connection with the on-premises network.
  3. Configure the SMB share to allow inbound traffic from the VNET1 subnet or the VPN gateway public IP address.
  4. Deploy webapp1 in the VNET1 subnet and configure it to access the SMB share using its UNC path (e.g., \Server\Share1).

With these steps, webapp1 can securely and reliably connect to Share1 in the on-premises network, and users can access the files and folders in the SMB share as needed.