Export (0) Print
Expand All

Accessing Azure Virtual Machines from Server Explorer

Updated: October 4, 2013

By using Server Explorer in Visual Studio, you can display information about your virtual machines hosted by Azure.

Accessing Virtual Machines in Server Explorer

If you have virtual machines hosted by Azure, you can access them in Server Explorer. You must first import a subscription so that Server Explorer has information about them. The information that is required is a .publishsettings file, and you must sign in to your Azure account to retrieve it.

To add a subscription

  1. If Server Explorer isn’t showing, choose the Ctrl+Alt+S keys or, on the menu bar, choose View, Server Explorer.

  2. In Server Explorer, open the shortcut menu for the Virtual Machines node, and then choose Import Subscriptions.

  3. In the Import Subscription dialog box, choose the link to sign into Azure. If asked, provide your credentials.

    When Azure has your credentials, a web page shows information about the .publishsettings file, and the download automatically starts.

  4. If asked, choose to save the file.

    By default, the file is saved to your Downloads folder.

  5. Choose Import, and then browse to the location where you saved the .publishsettings file.

  6. Choose the file, choose the Open button, and then choose the OK button.

    Your virtual machines appear in Server Explorer. Using the shortcut menu for the virtual machine, you can start, shut down, restart, and delete any of your virtual machines. When you shut down a virtual machine, it goes into a suspended state and doesn't incur compute charges until it's restarted. However, it still incurs storage charges. When you delete a machine, it no longer incurs charges.

To get information about your virtual machines

  1. In Server Explorer, choose a virtual machine, and then choose the F4 key to show its properties window.

    The following table shows what properties are available, but they are all read-only. To change them, use the management portal.

  2.  

    Property Description

    DNS Name

    The URL with the Internet address of the virtual machine.

    Environment

    For a virtual machine, the value of this property is always Production.

    Name

    The name of the virtual machine.

    Size

    The size of the virtual machine, which reflects the amount of memory and disk space that’s available. For more information, see How To: Configure Virtual Machine Sizes.

    Status

    Values include Starting, Started, Stopping, Stopped, and Retrieving Status. If Retrieving Status appears, the current status is unknown. The values for this property differ from the values that are used on the management portal.

    SubscriptionID

    The subscription ID for your Azure account. You can show this information on the management portal by viewing the properties for a subscription.

    The endpoints for each virtual machine appear in Server Explorer as child nodes of the virtual machine node.

  3. Choose an endpoint node, and then view the Properties window.

  4. The following table describes the available properties of endpoints, but they are read-only. To add or edit the endpoints for a virtual machine, use the management portal.

     

    Property Description

    Name

    An identifier for the endpoint.

    Private Port

    The port for network access internal to your application.

    Protocol

    The protocol that the transport layer for this endpoint uses, either TCP or UDP.

    Public Port

    The port that’s used for public access to your application.

To edit or delete Subscriptions

  1. Open the shortcut menu for the Azure Compute node, and then choose Add Deployment Environment.

  2. In the Add Deployment Environment dialog box, choose the subscription that you want to modify, and then choose the Manage button.

  3. In the Windows Azure Cloud Service Project Management Settings dialog box, choose the subscription that you want to modify, and then choose the Edit button to change subscription details or the Delete button to delete the subscription.

  4. For more information about subscription details, see Setting Up Named Authentication Credentials.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft