In a development environmentThe solution can be built and run in a development environment using the Azure emulators as is using Visual Studio 2010 (if adequate disk space is available). Since this solution uses Cloud Drive you cannot run from a development environment against Azure cloud storage. Instead, when you run in your development environment it uses development storage:
In the Azure environmentLogin to the Azure management portal using your azure credentials Azure setup (first time only per deployment)Affinity GroupCreate an affinity group for your deployment. Choose your required location for the group. Storage accountCreate the required number of storage account(s) to store the blobs. For region/affinity choose the affinity group you created earlier. Note The access key for the storage account created is the one you need to specify in your cloud configuration. ServiceCreate a new hosted service to host your Mongo package. For region/affinity group use the same affinity group as your storage account. Note for cloud drives the compute and storage instances should be in the same azure domain. Choose do not deploy Deployment configuration for Mvc RoleIf deploying the sample app you can use the default settings as is. You would only need to set the storage settings for diagnostics SettingsIn the Settings tab
Deployment configuration for Replica Set RoleConfiguration
SettingsChange connection setting from UseDevelopment storage to actual storage account credentials. It is recommended to use different storage accounts for data and diagnostics. This would allow you to give access to external monitors for diagnostics information without giving access to your data.
Note - If deploying multiple Azure instances make sure you use different storage accounts for each of the deployments or different replica set names if using the same storage account. Local StorageConfigure the amount of local storage required depending on the VM size chosen. Ensure Clean on recycle role is unchecked. The following are recommendations of Local Storage Note All sizes are in MB.
Package and PublishCreate the Azure package by right clicking on the cloud project and choosing Package. Choose the Service Configuration as Cloud and Build Configuration as Release.
When deploying to the Azure cloud make sure to check deployment warnings/errors to see for any breaking issues. Some common errors are
|

PLEASE POST QUESTIONS IN THE USER GROUPS FORUM. Post non-question comments and helpful hints here.
blog comments powered by Disqus