This post is a conclusion to a series of blog entries on how to RPD into a Windows Azure instance. If you haven’t already done so, you may want to read the previous posts:
- Export & Upload a Certificate to an Azure Hosted Service
- Setting up RDP to a Windows Azure Instance: Part 1
- Setting up RDP to a Windows Azure Instance: Part 2
This post will provide two pieces of information: first, now that your Windows Azure Platform Portal has been configured for RPD, I will show you how to initialize the RDP Connection to a Windows Azure Instance. Second, I’ll step back and explain how to Setup the Cloud Service Configuration manually (which is typically automated by Visual Studio).
Connecting to Windows Azure via RDP
At this point you should have already uploaded a Certificate to the Hosted Service, checked the Enable checkbox in the Remote Access section of the Portal Ribbon and configured a Username and Password for accessing the particular Hosted Service.
In the Hosted Service Configuration page, select the Instance you would like to connect to.
This will enable the Connect button within the Remote Access section of the Portal Ribbon. Click on the Connect button to initialize a download of the RPD (.rpd) file to connect to that particular instance.
You can obviously choose open, however this is a good opportunity to save the RDP connection to an instance just for that odd chance you can’t access the Windows Azure Platform Portal to download it again. I would suggest saving at least one RDP file in a save location for this very reason.
You may need to accept a Security warning because the RDP file is Unsigned.
Then supply your username and password which was set up in the previous set of posts.
Once the connection has been initialized there is one last security warning to dismiss before the desktop of your Windows Azure Instance appears.
Welcome to your Windows Azure Instance in the Cloud!
Manually Configuring RDP Access to Windows Azure
In order to manually configure RDP access to a Windows Azure Instance in the csconfig file there are a few things that need to be done. There is a well written outline on MSDN in a post entitled “Setting up a Remote Desktop Connection for a Role”.
During Step 2 of the process outlined on MSDN, Encrypting the Password with Powershell, there is the need to provide a thumbprint for a Self-Signed Certificate. What isn’t mentioned within the article is that it is necessary to Capitalize the Letters and Remove the Spaces in the thumbprint in order for the Powershell script to work.
[Update – Jan 2, 2010]
A Common mistake for Manually Configuring RDP Access to Windows Azure is forgetting to add an important Configuration Setting. If you are creating your deployment outside of an IDE you will be working with the Cloud Service Definition (csdef) file. You will need to add 2 Import nodes within the Imports Node of your CSDEF file.
- RemoteAccess
- RemoteForwarder
These options will create the appropriate configuration setting xml in the Cloud Service Configuration (cscfg) file.
To Ensure that RPD Works set RemoteForwarder to True in the cscfg file.
[/Update]
Happy Clouding!