SALES: 1-800-867-1380

How to: Configure an Azure-Hosted Service Bus Service or Client Application

Updated: May 18, 2015

Configuring a service or client application that runs on Microsoft Azure follows the same general programming patterns for both an Azure and a basic Service Bus application. However, note that Service Bus must have Full Trust authorization to run on Azure.

As with all other applications that use Service Bus, you must make sure that the operating system is running with Full Trust authorization. This can be set in the Servicedefinition.csdef file, using the procedure described in the following section.

  1. In your ServiceDefinition.csdef file, set the enableNativeCodeExecution field to true as shown in the following code, replacing ApplicationNameHere with the name of your application:

    <?xml version="1.0" encoding="utf-8"?>
    <ServiceDefinition name="ApplicationNameHere" xmlns="">
      <WebRole name="WebRole" enableNativeCodeExecution="true">
          <!-- Must use port 80 for http and port 443 for https when running in the cloud -->
          <InputEndpoint name="HttpIn" protocol="http" port="80" />
      <WorkerRole name="WorkerRole" enableNativeCodeExecution="true">

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