[英]Function App with Vnet integration and Private Endpoint -> Server Response: Service Unavailable
i deployed a function app in our azure tenant.我在我们的 azure 租户中部署了 function 应用程序。 The function app is deployed in a dedicated subnet for private endpoint and in dedicated subnet with vnet integration.
function 应用程序部署在专用端点的专用子网和具有 vnet 集成的专用子网中。
We are trying to deploy from a vm with a devops agent installed(the vm have private endpoint) to test the configuration.我们正在尝试从安装了 devops 代理的 vm 进行部署(vm 具有私有端点)以测试配置。 If function is not configured with vnet integration and private endpoint, deploy works fine.
如果 function 未配置 vnet 集成和专用端点,则部署工作正常。 If function is deployed under vnet integration and private endpoint i'm getting this message:
如果 function 部署在 vnet 集成和私有端点下,我会收到以下消息:
function is reacheble from internet also is in vnet integration and with provate endpoint(i configured access restriction also for our vpn). function 可以从 Internet 访问,也可以在 vnet 集成中使用并具有证明端点(我也为我们的 vpn 配置了访问限制)。
The vm with devops agent is in the same vnet with nsg rule setup correctly.带有 devops 代理的 vm 与 nsg 规则设置正确位于同一个 vnet 中。
In function app configuration i configured this parameter:在 function 应用程序配置中,我配置了此参数:
WEBSITE_DNS_SERVER - 168.63.129.16 WEBSITE_VNET_ROUTE_ALL - 1 WEBSITE_DNS_SERVER - 168.63.129.16 WEBSITE_VNET_ROUTE_ALL - 1
as microsoft documentation(i tried without it when function was under vnet and private endpoint but i get same problem)作为 microsoft 文档(当 function 在 vnet 和专用端点下时,我尝试不使用它,但我遇到了同样的问题)
The command that i run is func azure functionapp publish functionname
我运行的命令是
func azure functionapp publish functionname
Nsg rule are configure as follow: Nsg规则配置如下:
INBOUND:入境:
source vm subnet - destination function private endpoint subnet -> allow any源 vm 子网 - 目标 function 私有端点子网 -> 允许任何
I forgot to setup something?我忘了设置什么?
Any advice is really appreciated:)任何建议都非常感谢:)
I suppose you have created a private endpoint for your Azure function in the same subnet that the VM deployed inside.我想你已经为你的 Azure function 创建了一个私有端点,该端点与部署在其中的 VM 相同。 The command
func azure functionapp publish functionname
required request over the Internet, the problem happened because you have configured access restriction in your Azure function, which blocking this access.命令
func azure functionapp publish functionname
required 通过 Internet 请求,出现问题是因为您在 Azure function 中配置了访问限制,从而阻止了此访问。 You may add the VM subnet in the access restriction.您可以在访问限制中添加虚拟机子网。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.