2016-02-23 55 views
0

我剛剛使用資源管理器模型在Azure中創建了一個虛擬機。我不能RDP。機器正在運行。我收到的錯誤是:無法登錄到使用資源管理器創建的Azure虛擬機

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

仍然無法連接。我錯過了什麼?

+0

嘗試重置遠程訪問服務爲這裏解釋。 https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-troubleshoot-remote-desktop-connections/向下滾動到ARM部分的一半。 –

+0

@RickRainey,你鏈接到我在OP中鏈接到的同一篇文章,以及我所說的「我已閱讀並遵循本文中的所有步驟」! –

+0

Doh!對於那個很抱歉。我沒有密切關注你發佈的鏈接。嘗試使用「。\ 」連接。如果這不起作用,您可能需要聯繫支持人員或重新創建虛擬機。 –

回答

0

那麼,這個問題的根源仍然是一個謎。如果我們弄清楚了,我會發布解決方案。無論什麼奇怪的原因,當我創建虛擬機時,沒有人(我的同事和我都不能)可以訪問它。當其他人使用相同步驟創建虛擬機時,我們都可以訪問它。但是,我們發現了一個工作。 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 
相關問題