Enabling Remote Desktop in Windows Azure
Remote Desktop enables you to access the desktop of a role instance running in Windows Azure. You can use a remote desktop connection to configure the virtual machine or troubleshoot problems with your application.
Note
The steps in this article only apply to node applications hosted as a Windows Azure Cloud Service.
This task includes the following steps:
Step 1: Configure the service for Remote Desktop access using Windows Azure PowerShell
To use Remote Desktop, you need to configure your service definition and service configuration with a username, password, and certificate to authenticate with role instances in the cloud. Windows Azure PowerShell includes the Enable-AzureServiceProjectRemoteDesktop cmdlet, which does this configuration for you.
Perform the following steps from the computer where the service definition was created.
-
From the Start menu, select Windows Azure PowerShell.

-
Change directory to the service directory, type Enable-AzureServiceProjectRemoteDesktop, and then enter a user name and password to use when authenticating with role instances in the cloud.

-
Publish the service configuration changes to the cloud. At the Windows Azure PowerShell prompt, type Publish-AzureServiceProject.

When these steps have been completed, the role instances of the service in the cloud are configured for Remote Desktop access.
Step 2: Connect to the role instance
With your deployment up and running in Windows Azure, you can connect to the role instance.
-
In the Windows Azure Management Portal, select Cloud Services and then the service deployed in Step 1 above

-
Click Instances, and then click Production or Staging to see the instances for your service. Select an instance and then click Connect at the bottom of the page.

-
When you click Connect, the web browser prompts you to save an .rdp file. If you’re using Internet Explorer, click Open.

-
When the file is opened, the following security prompt appears:

-
Click Connect, and a security prompt will appear for entering credentials to access the instance. Enter the password you created in Step 1, and then click OK.

When the connection is made, Remote Desktop Connection displays the desktop of the instance in Windows Azure. You have successfully gained remote access to your instance and can perform any necessary tasks to manage your application.

Step 3: Configure the service to disable Remote Desktop access using Windows Azure PowerShell
When you no longer require remote desktop connections to the role instances in the cloud, disable remote desktop access using the Windows Azure PowerShell
-
From the Start menu, select Windows Azure PowerShell.
-
Change directory to the service directory, and type Disable-AzureServiceProjectRemoteDesktop:
-
Publish the service configuration changes to the cloud. At the Windows Azure PowerShell prompt, type Publish-AzureServiceProject:
Additional Resources