简体   繁体   English

Function 具有 Vnet 集成和专用端点的应用程序 -> 服务器响应:服务不可用

[英]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.

相关问题 Azure 应用服务 - VNet 集成与专用终结点与混合连接 - Azure App Service - VNet Integration vs Private Endpoint vs Hybrid Connection App Service VNet与Azure存储服务端点集成 - App Service VNet Integration with Azure Storage Service Endpoint 服务总线和 Function App(Vnet) 集成 - Servicebus and Function App(Vnet) integration Azure App Service VNET 集成和网络优化 - Azure App Service VNET integration and network optimization Azure App Service VNET与内部DNS的集成 - Azure App Service VNET Integration with Internal DNS Azure VM 和 App Service 通过 VNET 集成 - Azure VM and App Service integration through VNET 从 Azure 函数(应用程序)使用专用终结点和 Vnet 集成访问 Azure 存储帐户 - Accessing Azure Storage Account using private endpoints and Vnet Integration from an Azure Function (app ) Azure 如何在 VNET 内部通过私有 IP 调用 Azure 私有终结点(Azure 私有链接服务) - Azure How can I call Azure Private Endpoint (Azure Private Link service) by private IP inside of VNET vnet 中的多个子网需要通过专用终结点/服务终结点访问同一存储帐户 - Multiple subnets in vnet needing access to same storage account via Private Endpoint/Service Endpoint 使用 vnet 集成的 azure 应用服务的静态 IP - Static ip for azure app service using vnet integration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM