Exporteren (0) Afdrukken
Alles uitvouwen
EN
Deze inhoud is niet beschikbaar in uw taal, maar wel in het Engels.
4 van 5 hebben dit beoordeeld als nuttig - Dit onderwerp beoordelen

Enabling Remote Access for Azure Deployments in Eclipse

Updated: April 4, 2014

To help troubleshoot your deployed roles, you may enable and use Remote Access to connect to the virtual machine hosting your deployment. The Remote Access functionality relies on the Remote Desktop Protocol (RDP). The following image shows the Remote Access properties dialog used to enable remote access.

Remote access properties dialog

There are two ways to display the Remote Access properties dialog. You can display it by clicking the Advanced link in the Remote Access section of the Publish to Azure dialog, and you can display it by opening the Properties dialog of your Azure project.

When you create a new Azure deployment project, by default, the project will not have Remote Access enabled. However, you can easily enable remote access by specifying the user name and password in the Publish to Azure dialog. The Remote Access password is encrypted using X.509 certificates. If you do not use provide your own certificate, the encryption relies on a self-signed certificate shipped with the Azure Plugin for Eclipse with Java. This self-signed certificate is in the cert folder of your Azure project, stored both as a public certificate file (SampleRemoteAccessPublic.cer) and as a Personal Information Exchange (PFX) certificate file (SampleRemoteAccessPrivate.pfx). The latter contains the private key for the certificate, and it has a default password, Password1. However, since this password is public knowledge, the default certificate should be used only for learning purposes, not for a production deployment. So other than for learning purposes, when you want to enabled remote sessions for your deployments, you should click the Advanced link in the Publish to Azure dialog to specify your own certificate. Note that you’ll need to upload the PFX version of the certificate to your hosted service within the Azure Management Portal, so that Azure can decrypt the user password.

The remainder of the tutorial shows you how to enable remote access for an Azure deployment project that was initially created with remote access disabled. For purposes of this tutorial, we’ll create a new self-signed certificate, and its .pfx file will have a password of your choice. You also have the option of using a certificate issued by a certificate authority.

  1. Within Eclipse’s Project Explorer pane, right-click your Azure project and click Properties.

  2. In the Properties dialog, expand Azure in the left-hand pane and click Remote Access.

  3. In the Remote Access dialog, ensure Enable all roles to accept Remote Desktop Connections with these login credentials is checked.

  4. Specify a user name for the Remote Desktop connection.

  5. Specify and confirm the password for the user. The user name and password values set in this dialog will be used when you make a Remote Desktop connection. (Note that this is a separate password from your PFX password.)

  6. Specify the expiration date for the user account.

  7. Click New to create a new self-signed certificate. (Alternatively, you could select a certificate from your workspace or file system through the Workspace or FileSystem buttons, respectively, but for purposes of this tutorial we’ll create a new certificate.)

  8. In the New Certificate dialog, specify and confirm the password you’ll use for your PFX file.

  9. Accept the value provided for Name (CN), or use a custom name.

  10. Specify the path and file name where the new certificate, in .cer form, will be saved. For this step and the next step, you could use the cert folder of your Azure project, but you’re free to choose another location. For purposes of this tutorial, we’ll use c:\mycert\mycert.cer. (Create the c:\mycert folder prior to proceeding, or use an existing folder if desired.)

  11. Specify the path and file name where the new certificate and its private key, in .pfx form, will be saved. For purposes of this tutorial, we’ll use c:\mycert\mycert.pfx. Your New Certificate dialog should look similar to the following (update the folder paths if you did not use c:\mycert):

    New Certificate dialog
  12. Click OK to close the New Certificate dialog.

  13. Your Remote Access dialog should look similar to the following:

    Remote Access properties

    Click OK to close the Remote Access dialog.

Rebuild your application, with the build set for deployment to cloud.

Once your role instance is ready, you can remotely log in to the virtual machine that is hosting your application.

If you’ve set the Start remote desktop on deploy option during your deployment to Azure, you will be presented with a Remote Desktop Connection logon screen when your deployment starts. When asked for the user name and password, enter the values you specified for the remote user, and then you’ll be logged in.

Another way to log in remotely is through the Azure Management Portal. Within the Cloud Services view of the Azure Management portal, click your cloud service, click Instances, click an instance, and then click the Connect button. The Connect button appears as the following in the command bar:

Connect

After clicking the Connect button, you’ll be prompted to open an RDP file. Open the file and follow the prompts. (You could also save this file to your local computer, and then run the file by double-clicking it to remote log in to your virtual machine without needing to first go the management portal.) When asked for the user name and password, enter the values you specified for the remote user, and then you’ll be logged in.

Vindt u dit nuttig?
(1500 tekens resterend)
Bedankt voor uw feedback
Weergeven:
© 2014 Microsoft. Alle rechten voorbehouden.