0

我有一個.NET Web Api項目,其中有幾個REST終結點,我只想通過我創建的Azure虛擬網絡中的資源訪問這些終結點。像Azure Functions和Azure Web Roles這樣的資源只能訪問這些端點。換句話說,我不希望公開端點。如何製作Azure Web Api項目REST終結點僅適用於Azure虛擬網絡

因此,我將Web Api應用程序與我的虛擬網絡配置在一起,但顯然我還需要將Web Api應用程序添加到應用程序服務環境中(從我所閱讀的內容來看,這相當昂貴)。引述Azure的documentation

VNET Integration gives your web app access to resources in your virtual network but does not grant private access to your web app from the virtual network.

我是否確實需要使用的應用程序服務環境和公正的處理成本或有另一種方式,我可以實現我想要什麼?

回答

0

我不想公開端點。

到目前爲止,Azure Web應用程序僅支持使用具有應用程序服務環境功能的內部負載平衡器。如果你想讓你的Web API只能在內部訪問。應用程序服務環境是必需的。

如果您不想將Web API移動到應用服務環境,並且您的Azure功能和Web角色具有固定的IP地址,則可以在Web API中使用ipSecurity配置來配置IP白名單。有關ipSecurity的更多信息,以下鏈接供您參考。

IP and Domain Restrictions for Windows Azure Web Sites

相關問題