title: How to check if Azure Service bus in another region is working using Azure Functions?
body: <p>I'm creating a ping function using azure functions that needs to check if a service bus in another region is operating so it can update the status of the whole system (two regions). What is the best way to check the status of the other service bus \ topics in the other service bus?</p>
  <p>I found this code which I could adapt to GetTopic() instead of the Queue:</p>
  <pre><code>string connectionString = &quot;connection string&quot;;
  var namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString);
  var queueDescription = namespaceManager.GetQueue(&quot;queue name&quot;);
  var status = queueDescription.Status;
  </code></pre>
  <p>However, it has been recommended that this library (WindowsAzure.ServiceBus) has been updated to Azure.Messaging.ServiceBus and I can't find a similar way to do this in the newer library.</p>
  <p>Please point me in the right direction?</p>