Deploy BidNow to the Cloud
In order to setup BidNow and deploy it to the cloud, you will need to follow the same setup process (Getting Started with BidNow
) guide as when configuring BidNow to run locally. However, during the BidNow Configuration Wizard, you need to configure BidNow three items not required to run locally:
- Hosted Service DNS Name (e.g. bidnow.cloudapp.net)
- Storage Account Name
- Storage Account Key
Specifying these values will update BidNow to register Access Conrol with a Windows Azure hosted service and use Windows Azure storage accounts (i.e. not local development storage) for blobs and queues. Specifying these values will prepare you to deploy BidNow into Windows Azure.
Here are the steps required:
- Execute StartHere.cmd to setup BidNow and provide the credentials and endpoints required to run the application in the cloud environment. As a rule, this implies avoiding the default settings proposed by the setup scripts, which in general, use local settings as the default values.
- During the Access Control Service Configuration step, make sure to provide an Azure Hosted Service DNS name instead of using the Compute Emulator.
- During the “Importing Blobs” setup step, make sure to provide an Azure Storage Account Name instead of using the Storage Emulator.
- Enter the Storage Account name; this is the first piece of the Blob Url (e.g. storagaccountname.blob.core.windows.net).
- Enter the Storage Account key.
- Choose SQL Azure (option 2) as the database server type during the Database configuration step, and provide the appropriate credentials.
- Once the setup ends, you will need to upload the required certificates to Azure.
- Open IE and browse to https://windows.azure.com, sign in with your windows live credentials in which the Hosted Service is created.
- Enter the Hosted Services, Storage Accounts & CDN page and select the Hosted Services node in the left pane.
- Expand the hosted service node in which you will deploy BidNow, and select Certificates. Note: you will need to follow these three steps twice, one for each certificate (BidNowServicesClient.pfx and BidNowServicesServer.pfx).
- In the Hosted Service Certificates group of the ribbon, click on Add Certificate
- In the Dialog Window, choose browse, go to setup\scripts\certificates, and select the certificate to upload.
- Type Passw0rd! as the value for the Password field and again for the Retype Password field and press Create.
- Finally, you need to configure the SMTP Server in the Worker Role. BidNow uses email notifications as part of its bidding process. To do this:
- Open the BidNow.sln solution located at code\BidNow.sln
- Open App.Config configuration file located under the BidNow.Worker.Host project.
- Replace the default SMTP configuration with the following (note: Make sure to replace the placeholders with your Windows Live SMTP server. If you choose to use other SMTP Provider than Windows Live, you will need to update the hosts address and port to match the one from your provider):
<!-- remote smtp -->
<network host="smpt.live.com" enableSsl="true" port="25"
At this point, you can package your application and deploy.