Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

How to: Host an Application on Windows Azure

You can deploy LightSwitch 3-tier desktop applications or Web applications to Windows Azure and can use SQL Azure databases. Use the LightSwitch Publish Application Wizard to deploy an application.

Note Note

You must have a subscription to Windows Azure to deploy an application to Windows Azure.

To publish an application to Windows Azure

  1. On the Build menu, click Publish <Application Name>.

    The LightSwitch Publish Application Wizard appears.

  2. On the Welcome to the LightSwitch Publish Wizard page, select either Desktop or Web and then click Next.

  3. On the Application Services page, select Windows Azure and then click Next.

  4. On the Connect to Windows Azure page, click Open the Windows Azure Portal, and then locate your subscription ID and copy it.

  5. In the publish wizard, paste the subscription ID in the Copy the subscription ID and paste it here box.

  6. In the Select a certificate to identify the project to Windows Azure list, select the certificate for your project and then click Next.

    Note Note

    The Windows Azure certificate store must contain a copy of the certificate. You can upload the certificate to the store by clicking Copy Path and then opening the Windows Azure portal and following the instructions.

  7. On the Select the Azure Service and Storage page, in the Service: list, select the service that the application will run under.

    If you are uploading the application to test it, in the Environment: list, select Staging.

  8. In the Storage: list, select the storage for the application binaries and then click Next.

  9. On the Security Settings page, select the security certificate that you want to use and then click Next.

    You can upload a certificate by clicking Upload a PFX File and specifying the certificate and passwords in the Upload PFX File dialog box.

  10. On the LightSwitch Application Data – SQL Database Connection page of the wizard, verify that the administrator connection string and user connection string are valid for the Windows Azure account. You can change the strings to specify a different database and different user credentials if they are required.

    To change the connection strings

    1. Select the connection string that you want to change and then click the ellipsis () button.

    2. In the Connection Properties dialog box, in the Server name field, type the name of the server where you want to publish the application database.

    3. In the Log on to the server section, select Use SQL Authentication and type a valid User name and Password for the server.

    4. In the Select or enter a database name, type the name of your application.

      This name must be the same as the one that you used for the Application Name property in the Application Designer.

    5. Click OK.

  11. In the publish wizard, click Next.

  12. If you have enabled authentication for your application, the Application Administrator page appears. On the Authentication page, in the Should the Application Administrator be created when the application is deployed? section, select Yes, create the Application Administrator at this time.

    Note Note

    If you have not enabled authentication, go to Step 18.

  13. In the User Name field, type the user name of the user who will be the default administrator.

  14. In the Full Name field, type the full name of the default administrator.

  15. In the Password field, type the password for the default administrator.

  16. In the Confirm Password field, type the password again.

    Remember the user name and password because they are required later.

  17. Click Next.

  18. If you have specified additional data sources for your application, the Other Connections page appears. Verify that the connection strings are correct and then click Next.

    Note Note

    Data sources outside Windows Azure may not be available from an application that is hosted on Windows Azure.

  19. On the Specify a Certificate page, select the Sign the Xap File option and then add a certificate (.pfx) file in one of the following three ways.

    To add a certificate from the local store

    1. On the Specify a Certificate page, click Select a certificate from this computer’s store.

    2. In the Windows Security dialog box, select the certificate that you want to use and then click OK.

      Basic information about the certificate is displayed. To see more information about the certificate, click More Details.

    To add a certificate from another location

    1. On the Specify a Certificate page, click Browse for a certificate.

    2. In the Select File dialog box, browse to the location of the certificate that you want to use and then click OK.

      Basic information about the certificate is displayed. To see more information about the certificate, click More Details.

    To create a test certificate

    1. On the Specify a Certificate page, click Create a Test Certificate.

      A password dialog box appears.

    2. Type a password for the new certificate, confirm it, and then click OK.

      Basic information about the certificate is displayed. To see more information about the certificate, click More Details.

  20. Click Next.

  21. On the Summary page, click Publish to publish the application.

    When the application is published, the Windows Azure portal is displayed.

    Note Note

    There may be a delay before the application is available on Windows Azure.

  22. The application administrator must authorize users before they can run the application. For more information, see How to: Create a Role-based Application.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft