I have created a new Windows 2012 image in Azure and have configured WinRM with the following commands:
winrm quickconfig -q
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}
winrm set winrm/config @{MaxTimeoutms="1800000"}
I am attempting to bootstrap the vm using knife:
knife bootstrap mymachine.cloudapp.net x username -P password "mymachine"
The error returned is:
ERROR: Network Error: No connection could be made because the target machine actively refused it. - connect(2)
Check your knife configuration and network settings
I have enabled an endpoint in Azure for the following (public ports):
PowerShell 5985
SSH 22
WinRM 2985
Any help would be appreciated.