无法登录到使用资源管理器创建的 Azure 虚拟机
Can't Log into Azure Virtual Machine created w/ Resource Manager
我刚刚使用资源管理器模型在 Azure 中创建了一个 VM。而且我无法通过 RDP 访问它。机器是运行。我收到的错误是:
Your credentials did not work
我试过以下用户名:
myCompanyDomain\user
user
.\user
\user
NameOfVM\user
我已经对密码进行了检查、双重检查和三次检查。我已阅读并遵循本文中的所有步骤:https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-troubleshoot-remote-desktop-connections/#wincred
仍然无法连接。我错过了什么?
嗯,这个问题的根源仍然是个谜。如果我们弄清楚了,我会 post 解决方案。无论出于何种奇怪的原因,当我创建 VM 时,没有人(none 我的同事和我)都无法访问它。当其他人使用相同的步骤创建 VM 时,我们都可以访问它。但是,我们找到了解决方法。 This article 有所帮助,但并没有让我们一路走到那里。
这是脚本的解决方法:
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
我刚刚使用资源管理器模型在 Azure 中创建了一个 VM。而且我无法通过 RDP 访问它。机器是运行。我收到的错误是:
Your credentials did not work
我试过以下用户名:
myCompanyDomain\user
user
.\user
\user
NameOfVM\user
我已经对密码进行了检查、双重检查和三次检查。我已阅读并遵循本文中的所有步骤:https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-troubleshoot-remote-desktop-connections/#wincred
仍然无法连接。我错过了什么?
嗯,这个问题的根源仍然是个谜。如果我们弄清楚了,我会 post 解决方案。无论出于何种奇怪的原因,当我创建 VM 时,没有人(none 我的同事和我)都无法访问它。当其他人使用相同的步骤创建 VM 时,我们都可以访问它。但是,我们找到了解决方法。 This article 有所帮助,但并没有让我们一路走到那里。
这是脚本的解决方法:
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