How to: Publish a Cloud Service to a Windows Azure Appliance
By publishing a cloud service to a Windows Azure appliance, you make that service available to a private instance of the Windows Azure infrastructure that your organization hosts.
Before you can publish a service to an appliance for the first time, you must download, obtain, or create a .publishsettings file, which contains the appropriate credentials and connection information for that appliance. If you generally publish one or more services to the same appliance repeatedly, you can download a .publishsettings file from the management portal for the appliance. However, this approach requires you to redirect links in Visual Studio by updating your registry. As an alternative, you can obtain a .publishsettings file from an administrator or other source, or you can create your own by following the steps in Setting Up Named Authentication Credentials.
After you download the .publishsettings file, you can reuse the same version instead of downloading a newer one when you publish the same service again to the same appliance. We recommend that you reuse the .publishsettings file because the management portal creates another certificate every time that you download that file. After the portal creates 100 certificates, the portal can’t create any more until you delete older credentials.
Publishing a Cloud Service to a Windows Azure Appliance
To configure your registry to automatically download a .publishsettings file
Obtain the service-management URL for the appliance from its administrator or your Microsoft partners.
In one of the following registry locations, set or create the Download Publish Settings URL key, of type string, with the value of that URL:
// For Visual Studio 2010 [HKEY_CURRENT_USER\Software\Microsoft\Windows Azure Tools for Microsoft Visual Studio\10.0\Core] // For Visual Studio 2012 [HKEY_CURRENT_USER\Software\Microsoft\Windows Azure Tools for Microsoft Visual Studio\11.0\Core] // For Visual Studio 2013 [HKEY_CURRENT_USER\Software\Microsoft\Windows Azure Tools for Microsoft Visual Studio\12.0\Core]
For example, for Windows Azure itself, the value of this registry key is https://management.core.windows.net.
Now that you’ve updated the registry, Windows Azure Tools can download the .publishsettings file just as it would when you publish a service to Windows Azure itself, as the next procedure describes.
To publish a cloud service to an appliance
In Visual Studio, open the project that you want to deploy.
Open the shortcut menu for that project, and then choose Publish.
The Publish Wizard appears.
If you've already published this service to this appliance, skip the next step.
If you've never published this service to this appliance, perform one of the following steps on the Sign In page:
If you've set the registry key as described earlier in this topic, choose the Sign in to download credentials link, sign in to your appliance, and then download the .publishsettings file.
If you've created your own .publishsettings file or obtained one from an administrator or another source, choose the Import button, and then browse to the appropriate file.
When you download or import the .publishsettings file, you populate the Publish Wizard with information about the default subscription and the storage account.
- If you've set the registry key as described earlier in this topic, choose the Sign in to download credentials link, sign in to your appliance, and then download the .publishsettings file.
In the Choose your subscription list, choose your subscription.
If you just created a subscription, it’s chosen by default.
On the Settings page, accept the defaults, or choose the subscription to which you want to deploy.
On the Summary page, verify all the other settings for your deployment. In particular, confirm the service-management URL.
For more information about the available settings, see Publish Windows Azure Application Wizard.
Choose the Publish button.