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
If Server Explorer isn’t showing, choose the Ctrl+Alt+S keys or, on the menu bar, choose View, Server Explorer.
In Server Explorer, open the shortcut menu for the Virtual Machines node, and then choose Import Subscriptions.
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.
If asked, choose to save the file.
By default, the file is saved to your Downloads folder.
Choose Import, and then browse to the location where you saved the .publishsettings file.
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
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.
The URL with the Internet address of the virtual machine.
For a virtual machine, the value of this property is always Production.
The name of the virtual machine.
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.
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.
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.
Choose an endpoint node, and then view the Properties window.
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.
An identifier for the endpoint.
The port for network access internal to your application.
The protocol that the transport layer for this endpoint uses, either TCP or UDP.
The port that’s used for public access to your application.
To edit or delete Subscriptions
Open the shortcut menu for the Azure Compute node, and then choose Add Deployment Environment.
In the Add Deployment Environment dialog box, choose the subscription that you want to modify, and then choose the Manage button.
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.
For more information about subscription details, see Setting Up Named Authentication Credentials.