2017-08-27 83 views

回答

0

(1)對於我來說,與

<VMName>\Username 
Password 

如工作

Windows8VM\MyUserName 
[email protected] 

(2)有些人只需要使用一個領先 '\',即

\Username 
Password 

Your credentials did not work Azure VM

(3)您現在可以重新從應用程序的用戶名/密碼門戶。有powershell腳本,這也可以讓你做到這一點,但不應該有必要了。

(4)您也可以嘗試重新部署虛擬機,你可以從應用程序門戶網站做

(5)該博客說:「密碼不能包含用戶名或用戶名的一部分」,但必須是過時的,因爲我嘗試過,一旦我得到它的工作,它工作得很好

https://blogs.msdn.microsoft.com/narahari/2011/08/29/your-credentials-did-not-work-error-when-connecting-to-windows-azure-vms/

(6)您可能會發現鏈接,如低於該提GET-AzureVM,這似乎是對經典的虛擬機,似乎有資源管理器虛擬機的等價物,例如Get-AzureRMVM

https://blogs.msdn.microsoft.com/mast/2014/03/06/enable-rdp-or-reset-password-with-the-vm-agent/

對於PowerShell的新手來說,如果你確實想要走下這條路,那麼你可能需要這些基礎知識。最後,我不認爲我需要這,只是1點

unInstall-Module AzureRM 
Install-Module AzureRM -allowclobber 
Import-Module AzureRM 
Login-AzureRmAccount (this will open a window which takes you through the usual logon process) 

Add-AzureAccount (not sure why you need both, but I couldn’t log on without this) 

Select-AzureSubscription -SubscriptionId <the guid for your subscription> 

Set-AzureRmVMAccessExtension -ResourceGroupName "<your RG name>" -VMName "Windows8VM" -Name "myVMAccess" -Location "northeurope" -username <username> -password <password> 

(7)可以連接到虛擬機的默認設置爲分的負載平衡器會從端口50000起NAT規則映射,即遠程桌面到IP地址:端口。您也可以從不在比例集中的虛擬機執行此操作。進入規模集的概述,點擊「虛擬網絡/子網」,它會給你內部IP地址。從另一個遠程桌面