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="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
      <WebRole name="WebRole" enableNativeCodeExecution="true">
        <InputEndpoints>
          <!-- Must use port 80 for http and port 443 for https when running in the cloud -->
          <InputEndpoint name="HttpIn" protocol="http" port="80" />
        </InputEndpoints>
      </WebRole>
      <WorkerRole name="WorkerRole" enableNativeCodeExecution="true">
      </WorkerRole>
    </ServiceDefinition>
    
    

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