用于Azure上的Linux VM的PTR

我有一台运行在Azure上的Linux(Ubuntu)虚拟机,该机器运行一个向注册用户发送电子邮件的网站。 这些电子邮件是灰色的一些邮件服务。

经过一番研究,我意识到最可能的原因是PTRlogging丢失。

下一步 – 我开始search手段为我的服务器创buildPTRlogging。 我发现这篇文章http://azure.microsoft.com/blog/2014/07/21/announcing-reverse-dns-for-azure-cloud-services/ 。 它说,可以使用Azure PowerShell创buildPTRlogging。

我已经下载并安装了azure-cli,这是一个用于pipe理azure服务和资源的linux命令行界面。 不幸的是,在azure-cli中,没有命令为云服务添加PTRlogging。 Web界面也没有这样的function。

有没有办法在Azure上创buildLinux虚拟机的PTRlogging?

您不需要从Linux VM机器内部运行该命令,可以从PowerShell连接到Azure订阅的任何位置虚拟运行该命令。

您需要做的是在连接到互联网的任何Windows机器上安装PowerShell,并configurationPowerShell以远程连接到您的Azure订阅,有两种方法可以实现:

  1. 使用“ Add-AzureAccount ”PowerShell命令。
  2. 使用“ Get-AzurePublishSettingsFile ”和“ Import-AzurePublishSettingsFile ”PowerShell命令。

我不会详细说明哪种方式更好,因为它们最终将为您的云服务添加PTRlogging。 这两个方法都将logging在这个链接: http : //azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/

您可以使用Azure提供的REST界面(又名Service Management API或SMAPI)。 以http://blogs.msdn.com/b/cie/archive/2014/08/07/reverse-dns-for-azure-cloud-services-using-service-management-api.aspx为例。