简体   繁体   English

Azure 如何在 VNET 内部调用私有 IP 的内部 API 管理服务

[英]Azure How can I call internal API Management service by private IP inside VNET

I created VNET in Azure.我在 Azure 中创建了 VNET。 I put in one subset internal API Management which call Azure Function outside of the VNET and in another one Virtual machine.我将一个子集放在内部 API 管理中,它调用 Azure Function 在 VNET 外部和另一台虚拟机中。 When I tried to call API Management I got a 503 exception.当我尝试调用 API 管理时,我收到了 503 异常。 And if I try to ping private IP from the VM it doest work.而且,如果我尝试从 VM ping 私有 IP 它将不起作用。

The other solution was to create Azure private link but in this case, I got the info by the link but did not be able to ping or call by private IP(got 400)另一个解决方案是创建 Azure 私有链接,但在这种情况下,我通过链接获取信息但无法通过私有 IP ping 或调用(得到 400)

My solution was to run the web app instead of the AF in the VM because VM can be easily called by private IP in VNET.我的解决方案是在 VM 中运行 web 应用程序而不是 AF,因为 VNET 中的私有 IP 可以轻松调用 VM。

How can I call API Management and other azure services(Azure private link) by private API?如何通过私有 API 调用 API 管理和其他 azure 服务(Azure 私有链接)?

From the official document ,从官方文档来看,

API Management service does not listen to requests coming from IP addresses . API 管理服务不监听来自 IP 地址的请求 It only responds to requests to the hostname configured on its service endpoints.它仅响应对其服务端点上配置的主机名的请求。 These endpoints include gateway, the Azure portal and the Developer portal, direct management endpoint, and Git.这些端点包括网关、Azure 门户和开发人员门户、直接管理端点和 Git。

You only could access API management service via hostname instead of private IP in an internal mode API Management.您只能在内部模式 API 管理中通过主机名而不是私有 IP 访问 API 管理服务。 For this mode, you have to manage your own routing.对于这种模式,您必须管理自己的路由。 If you use a custom DNS server in a virtual network, you can also create A DNS records and access these endpoints from anywhere in your virtual network.如果您在虚拟网络中使用自定义 DNS 服务器,您还可以创建 DNS 记录并从虚拟网络中的任何位置访问这些端点。

暂无
暂无

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

相关问题 Azure 如何在 VNET 内部通过私有 IP 调用 Azure 私有终结点(Azure 私有链接服务) - Azure How can I call Azure Private Endpoint (Azure Private Link service) by private IP inside of VNET 如何从Web应用程序内部的容器(两个资源都在同一VNet上)访问Azure VM的私有IP地址? - How can I reach the private IP address of an Azure VM from the container which is inside a Web App (both of the resources are on the same VNet)? Azure API管理到VNet - Azure API Management To VNet 我是否需要 .net 集成用于私人出站流量 - Azure API 管理 - Do I require vnet integration for private outbount traffic - Azure API management Azure Vnet 专用 IP 范围 - Azure Vnet Private IP Ranges 如何将azure应用服务计划连接到vnet,该vnet也通过对等连接到另一个vnet - How can I connect an azure app service plan to a vnet which is also connected through peering to another vnet Azure API 管理 - 如何使用 Azure CLI 设置 VNET/子网? - Azure API Management - How to set the VNET/SubNet using Azure CLI? 如何将来自与包含服务终结点的 VNet 集成的应用服务的出站流量路由到外部 Azure 托管 API? - How can I route outbound traffic from an App Service integrated with a VNet containing a Service Endpoint to an external Azure hosted API? 将 API 管理设置为 VNET 内部的外部时,是否可以在内部路由流量? - Can I route traffic internally when setting up API Management as External inside VNET? 我可以在Azure API管理策略IP筛选器中设置多少个IP? - How many IP's can I set in the Azure API Management Policy IP Filter?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM