无法login到具有资源pipe理器的全新Azure虚拟机

我刚刚使用资源pipe理器模型在Azure中创build了一个虚拟机。 安装完成后,我用这个button下载了一个RDP客户端:

在这里输入图像说明

但无论我尝试什么,我都无法login。机器正在运行。 我收到的错误是:

Your credentials did not work 

我已经尝试了以下用户名称:

 myCompanyDomain\user user .\user \user NameOfVM\user 

我已经检查,双重检查,并tripple检查密码。 我已阅读并遵循本文中的所有步骤: https : //azure.microsoft.com/en-us/documentation/articles/virtual-machines-troubleshoot-remote-desktop-connections/#wincred

仍然无法连接。 我错过了什么?

要为VM用户使用RDP,请使用local\username.\username 。 两种forms都有效。 我只用我自己的虚拟机validation了这一点。

如果这不能让你进入,你还有其他一些与networking无关的问题(你得到的错误意味着你到达了虚拟机)。

那么这个问题的根源还是一个谜。 如果我们知道了,我会发布解决scheme。 无论什么奇怪的原因,当我创build虚拟机时,没有人(我的同事和我都不能)可以访问它。 当其他人使用相同的步骤创build一个VM时,我们都可以访问它。 但是,我们发现了一个工作。 这篇文章有所帮助,但并没有让我们一路走到那里。

以下是脚本的解决方法:

 Login-AzureRmAccount Get-AzureRmSubscription -SubscriptionName <Your Subscription Name> 

复制上面返回的租户ID

 Login-AzureRmAccount -TenantId <TenantId> $vm = Get-AzureRmVM -ResourceGroupName <Your Resource Group Name> -Name <Your VM Name> $cred = Get-Credential (this is the VM user credentials) Set-AzureRmVMAccessExtension -ResourceGroupName <Your Resource Group Name> -VMName <Your VM Name> -Name VMAccessAgent -TypeHandlerVersion "2.0" -UserName $cred.UserName -Password $cred.GetNetworkCredential().Password -Location <Location of VM> Update-AzureRmVM -ResourceGroupName <Your Resource Group Name> -VM $vm