MBrace on Azure
Manually Creating a Custom Package to Deploy
An MBrace cluster is provisioned on Azure by deploying an Azure Cloud Service with MBrace Worker Roles. The basic provisioning process creates storage, service bus and virtual machine assets in Azure using default packages created as part of MBrace.Azure releases.
You can build your own artisan packages that contain pre-installed software, adjusted settings or installation scripts. The directory contains template solutions for this.
By building an artisan cloud service you can:
adjust the endpoints to your cloud service from the defaults (so your MBrace cluster can publish TCP and HTTP endpoints, either public or to your virtual network, for example, you want your MBrace cluster to publish a web server); or
enable Remote Access to MBrace cluster worker instances; or
specify the size of local storage available on MBrace cluster worker instances; or
upload certificates as part of your provisioning process; or
specify Azure-specific local caching options; or
include additional web and worker roles in your cloud service; or
compile and deploy your own version of the MBrace cluster worker instance software.
In order to provision explicitly, as a prerequisite you need to have an Azure account and basic knowledge of Azure computing.
You will need the Azure SDK 2.7.
Provisioning your custom MBrace service
- Make any appropriate changes to your Worker role implementation.
- Set the desired VM size by double clicking the
Roles/MBrace.Azure.WorkerRoleitem in the cloud service project.
- Right click the
MBrace.Azure.CloudServiceproject and hit
Package... This will create a new cspkg in your local bin folder.
HandsOnTutorial.slnin the StarterKit and find
AzureCluster.fsx. Follow the instructions and be sure to set the
true. Save any changes to
- Open 0-provision-azure-cluster.fsx. Follow the instructions and provision your custom cloud service.
- Run any of the supplied samples and tutorials. with the script-based deployment process above:
Provisioning using Visual Studio
Alternatively, you can provision and deploy from Visual Studio. Right click and Publish the
MBrace.Azure.CloudService project. During publication, choose a new name for your cloud service. After your service is published it should appear as a cloud service in the Azure management portal.