简体   繁体   English

Azure 应用服务集成到只能通过 vnet 网关 VPN 访问

[英]Azure App Service integrate to accessible only via vnet gateway VPN

Im Trying to Create a web application that can only accessible via vnet or only network connected to vnet VPN.我正在尝试创建只能通过 vnet 或仅连接到 vnet VPN 的网络访问的 web 应用程序。

I setup vnet and create a Gateway that has point-to-site configured.我设置了 vnet 并创建了一个配置了点到站点的网关。 I setup the Web Service and on the network side i allow the gateway to access the Web.我设置了 Web 服务,在网络端我允许网关访问 Web。 Then i connect to vpn on my local machine but still not able to access the web app.然后我连接到本地机器上的 vpn,但仍然无法访问 web 应用程序。

what i did wrong?我做错了什么?

Please check when you create webapp.请在创建 webapp 时检查。 Under basic configuration sku and Size is not Standard S1 because its not working on standard S1.在基本配置下,sku 和 Size不是标准 S1 ,因为它不适用于标准 S1。

Check its if its Standard S1 then its not working.检查它的标准 S1 是否不工作。在此处输入图像描述

Steps to create.创建步骤。

  1. Create Vnet and under vnet go to subnet.创建 Vnet 并在 vnet go 下创建子网。 create two more sub net, first subnet and second Gateway subnet.再创建两个子网,第一个子网和第二个网关子网。

在此处输入图像描述

  1. Create App service plan.创建应用服务计划。 make sourer not select Standard S1不酸 select标准 S1

在此处输入图像描述

在此处输入图像描述

  1. Create web app.创建 web 应用程序。

在此处输入图像描述

  1. At this time its access to publicly.此时其访问权公开。

在此处输入图像描述

在此处输入图像描述

  1. Under left hand side panel select Networking.在左侧面板下方 select 网络。

在此处输入图像描述

  1. Open private endpoint connections.打开专用端点连接。

在此处输入图像描述

在此处输入图像描述

after approved click go to app service and click on URL.批准后单击 go 应用服务并单击 URL。 at this time its not accessible to publicly.目前它无法公开访问。

在此处输入图像描述

在此处输入图像描述

  1. Create a VM, under networking section select virtual network those created.在网络部分 select 虚拟网络下创建一个 VM。

在此处输入图像描述

  1. Go to resource and connect to this VM. Go 资源并连接到此 VM。

在此处输入图像描述

  1. Connect and open web application.连接并打开 web 应用程序。 its run fine on VM.它在VM上运行良好。

在此处输入图像描述

More information read these document Use Azure Private Endpoints to Restrict Public Access to WebApps by Neeraj Kumar.更多信息请阅读这些文档使用 Azure 私有端点来限制 Neeraj Kumar 对 WebApps 的公共访问

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM