title: Create Hybrid Connection Azure Rest API
body: <p>I am trying to create a hybrid connection in Azure BizTalk service using rest API. Nevertheless, I am receiving this error:</p>
  
  <pre><code>&lt;Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;Code&gt;InternalError&lt;/Code&gt;
    &lt;Message&gt;The server encountered an internal error. Please retry the request.&lt;/Message&gt;
  &lt;/Error&gt;
  </code></pre>
  
  <p>Request:</p>
  
  <pre><code>PUT https://management.core.windows.net/36be0e4b-0a10-4b12-8b1c-6aefd3df3fe9/cloudservices/Default-BizTalk-South-Central-US/resources/biztalkservices/~/biztalk/qwbiztalkservice/hybridconnection/namenewhybridconnection HTTP/1.1
  Accept: application/xml
  x-ms-version: 2012-08-01
  Content-Type: application/xml; charset=utf-8
  Host: management.core.windows.net
  Content-Length: 152
  Expect: 100-continue
  Connection: Keep-Alive
  
  &lt;HybridConnectionInput xmlns=\"http://schemas.microsoft.com/windowsazure\"&gt;
    &lt;HostName&gt;myhost&lt;/HostName&gt;
    &lt;Port&gt;443&lt;/Port&gt;
  &lt;/HybridConnectionInput&gt;
  </code></pre>
  
  <p>Documentation reference: <a href="https://msdn.microsoft.com/en-us/library/azure/dn743828.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/azure/dn743828.aspx</a></p>