简体   繁体   English

Azure应用服务IP地址是否被视为用于DNS的静态IP?

[英]Is an Azure App Service IP Address considered a static IP for DNS purposes?

I can't find any information about whether or not the IP address that Azure App Services gives you to add to your DNS A record for custom domains is a truly fixed IP address. 我找不到有关Azure App Services为您添加到自定义域的DNS A记录的IP地址是否为真正固定IP地址的任何信息。

As far as I can tell you can't use Reserved IP's for App Services. 据我所知,你不能使用保留IP用于应用服务。

According to the official documentation here and some of the comments, the IP Address we get is a Virtual IP. 根据这里官方文档和一些评论,我们得到的IP地址是虚拟IP。 Does that mean there is a chance we may need to change the A DNS record in the future to a different IP address, even if we never change the App Service? 这是否意味着我们可能需要将A DNS记录在未来更改为不同的IP地址,即使我们从未更改App Service? If so, when might this happen? 如果是这样,何时会发生这种情况?

from the page you linked to 从您链接的页面

Note: 注意:
The IP address may change if you delete and recreate your web app, or change the web app mode back to free. 如果删除并重新创建Web应用程序,或者将Web应用程序模式更改回免费,则IP地址可能会更改。

This means that as long as you're not on the free tier you will get a static IP, which you will keep unless you change to the free tier or delete your app. 这意味着只要您不在免费套餐中,您将获得静态IP,除非您更改为免费套餐或删除您的应用,否则您将保留该IP。 - which used to be on the Portal, but I can't seem to find it at the moment! - 曾经在门户网站上,但我现在似乎无法找到它! - All of my deployment scripts just ping the *.azurewebsites.net address though, and then add that to DNS - 我的所有部署脚本只是ping * .azurewebsites.net地址,然后将其添加到DNS

App Service Environment (ASE) is the dedicated environment that provides such capability ( reference for ASE ). 应用服务环境(ASE)是提供此类功能的专用环境(ASE的参考 )。 That was asked as well on the UserVoice - and answer was to use ASE if you need static IP. 在UserVoice上也被问过 - 如果你需要静态IP,那么答案就是使用ASE。

I think that is the only way to achieve what you need. 我认为这是实现您所需要的唯一途径。 Another way could be to see the outbound IPs in the Resource Manager for your WebApp, but it is a pool so not applicable. 另一种方法是在Web Explorer的资源管理器中查看出站IP,但它是一个池,因此不适用。

if you want to be sure that your IP will never change, you can configure a cloud service instance with a reserved IP; 如果您想确保您的IP永远不会更改,您可以使用保留的IP配置云服务实例; in this way you do not have to worry about any IP change. 通过这种方式,您不必担心任何IP更改。 In this link https://azure.microsoft.com/en-gb/documentation/articles/virtual-networks-reserved-public-ip/ you will find How and When you can use a reserved IP, hope it helps!! 在此链接https://azure.microsoft.com/en-gb/documentation/articles/virtual-networks-reserved-public-ip/您将找到如何以及何时可以使用保留的IP,希望它有所帮助!

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

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