2016-05-09 59 views
1

我目前正在进行Azure免费试用并尝试设置反向DNS PTR记录。 我已通过证书登录,使用下载文件:Get-AzurePublishSettingsFile。我还使用Import-AzurePublishSettingsFile C:certs<SubscriptionName>-credentials.publishsettings导入了该文件。无法在Azure免费试用版中找到“ServiceName”

但是,当我运行Get-AzureService | fl ServiceName我没有得到任何列出的服务。

当我尝试运行Set-AzureService –ServiceName "my hostname" –Description "Reverse DNS" –ReverseDnsFqdn "mail.my domain."

我得到的托管服务名称不存在。

免费试用有没有限制,不允许设置?

回答

0

导入后......添加

Select-AzureSubscription -SubscriptionName "nameofyoursubscription" 

只导入您的订阅发布设置文件不选择你需要的订阅。

UPD:我无法重现该问题。请尝试执行:

$subscr = "subscriptionid" 
$csname = "mytestcloudservice14" 
Select-AzureSubscription -SubscriptionId $subscr –Current 
New-AzureService -ServiceName $csname -Location "Central US" -Label "mytestcloudservice" 
Set-AzureService –ServiceName $csname –Description "Reverse DNS" –ReverseDnsFqdn "mytestcloudservice14.cloudapp.net." 
Get-AzureService -ServiceName $csname 

我刚刚创建了试用帐户并对其进行了测试。 enter image description here

+0

道歉,忘了补充说我也使用过。当我运行该命令时,它只是返回到命令提示符。 – DFlack

+0

也尝试重新运行“Get-AzureService | fl ServiceName”并返回到正常提示。 – DFlack

+0

如果我然后运行“Set-AzureService -ServiceName”my hostname“-Description”Reverse DNS“-ReverseDnsFqdn”mail.my domain。“我仍然收到同样的错误,说”托管的服务名称不存在“ – DFlack

0

由于Get-AzureService描述说,它返回一个有关当前订阅,这意味着云服务信息的对象,这是对Azure云服务的操作而已,Set-AzureService为好。

所以,如果你没有部署任何云服务,Get-AzureService一定不会列出任何东西,如果你的“我的主机名”不是云服务,那么你也不会奇怪,你会得到错误信息The hosted service does not exist.

此外,Azure网站不支持反向DNS。反向DNS支持Azure PaaS角色和IaaS虚拟机。

+0

我的无知道歉,但是Windows VM不是云服务? – DFlack

+0

不,只有这些在左侧导航**云服务**中的[经典门户](https://manage.windowsazure.com)是。 – Derek

+0

因此,当我在新的VM服务下的新门户网站https://portal.azure.com/中创建我的项目时,它不支持反向DNS? – DFlack