title | description | services | documentationcenter | author | manager | editor | ms.assetid | ms.service | ms.workload | ms.tgt_pltfrm | ms.devlang | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Enable Remote Desktop Connection for a Role in Azure Cloud Services | Microsoft Docs |
How to configure your azure cloud service application to allow remote desktop connections |
cloud-services |
mmccrory |
timlt |
73ea1d64-1529-4d72-b58e-f6c10499e6bb |
cloud-services |
tbd |
na |
na |
article |
11/28/2016 |
mmccrory |
[!div class="op_single_selector"]
Remote Desktop enables you to access the desktop of a role running in Azure. You can use a Remote Desktop connection to troubleshoot and diagnose problems with your application while it is running.
You can enable a Remote Desktop connection in your role during development by including the Remote Desktop modules in your service definition or you can choose to enable Remote Desktop through the Remote Desktop Extension. The preferred approach is to use the Remote Desktop extension as you can enable Remote Desktop even after the application is deployed without having to redeploy your application.
The Azure portal uses the Remote Desktop Extension approach so you can enable Remote Desktop even after the application is deployed. The Remote Desktop blade for your cloud service allows you to enable Remote Desktop, change the local Administrator account used to connect to the virtual machines, the certificate used in authentication and set the expiration date.
-
Click Cloud Services, click the name of the cloud service, and then click Remote Desktop.
-
Choose whether you want to enable Remote Desktop for an individual role or for all roles, then change the value of the switcher to Enabled.
-
Fill in the required fields for user name, password, expiry, and certificate.
[!WARNING] All role instances will be restarted when you first enable Remote Desktop and click OK (checkmark). To prevent a reboot, the certificate used to encrypt the password must be installed on the role. To prevent a restart, upload a certificate for the cloud service and then return to this dialog.
-
In Roles, select the role you want to update or select All for all roles.
-
When you finish your configuration updates, click Save. It will take a few moments before your role instances are ready to receive connections.
Once Remote Desktop is enabled on the roles, you can initiate a connection directly from the Azure Portal:
-
Click Instances to open the Instances blade.
-
Select a role instance that has Remote Desktop configured.
-
Click Connect to download an RDP file for the role instance.
-
Click Open and then Connect to start the Remote Desktop connection.
Note
If your cloud service is sitting behind an NSG, you may need to create rules that allow traffic on ports 3389 and 20000. Remote Desktop uses port 3389. Cloud Service instances are load balanced, so you can't directly control which instance to connect to. The RemoteForwarder and RemoteAccess agents manage RDP traffic and allow the client to send an RDP cookie and specify an individual instance to connect to. The RemoteForwarder and RemoteAccess agents require that port 20000* be opened, which may be blocked if you have an NSG.
How to Configure Cloud Services Cloud services FAQ - Remote Desktop