Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

'Endpoint not found.' when trying to create a virtual network VIA REST API

$
0
0

Hello, When I try and use the set network configuration REST API endpoint to create a new virtual network, I wind up with this response body:

{"string": {"_": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n  <head>\r\n    <title>Service</title>\r\n    <style>BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; } #content { margin-left: 30px; font-size: .70em; padding-bottom: 2em; } A:link { color: #336699; font-weight: bold; text-decoration: underline; } A:visited { color: #6699cc; font-weight: bold; text-decoration: underline; } A:active { color: #336699; font-weight: bold; text-decoration: underline; } .heading1 { background-color: #003366; border-bottom: #336699 6px solid; color: #ffffff; font-family: Tahoma; font-size: 26px; font-weight: normal;margin: 0em 0em 10px -20px; padding-bottom: 8px; padding-left: 30px;padding-top: 16px;} pre { font-size:small; background-color: #e5e5cc; padding: 5px; font-family: Courier New; margin-top: 0px; border: 1px #f0f0e0 solid; white-space: pre-wrap; white-space: -pre-wrap; word-wrap: break-word; } table { border-collapse: collapse; border-spacing: 0px; font-family: Verdana;} table th { border-right: 2px white solid; border-bottom: 2px white solid; font-weight: bold; background-color: #cecf9c;} table td { border-right: 2px white solid; border-bottom: 2px white solid; background-color: #e5e5cc;}</style>\r\n  </head>\r\n  <body>\r\n    <div id=\"content\">\r\n      <p class=\"heading1\">Service</p>\r\n      <p>Endpoint not found.</p>\r\n    </div>\r\n  </body>\r\n</html>","$": {"xmlns": "http://schemas.microsoft.com/2003/10/Serialization/"
        }
    }
}

Which somewhere along the way reports "Endpoint not found.". This is the request that I'm POSTing to the server (with the cert and key scrubbed):

{"host": "management.core.windows.net","path": "/a6b719be-2654-4481-94fd-6041c485cda8/services/networking/media","port": 443,"method": "POST","agent": false,"headers": {"content-type": "text/plain","x-ms-version": "2013-03-01"
  }
}

And the XML body is:

<NetworkConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2011/07/NetworkConfiguration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><VirtualNetworkConfiguration><VirtualNetworkSites><VirtualNetworkSite name="QA" AffinityGroup="QA"><Subnets><Subnet name="Subnet-1"><AddressPrefix>10.0.0.0/29</AddressPrefix></Subnet></Subnets><AddressSpace><AddressPrefix>10.0.0.0/26</AddressPrefix></AddressSpace></VirtualNetworkSite><VirtualNetworkSite name="QA2" AffinityGroup="QA"><Subnets><Subnet name="Subnet-1"><AddressPrefix>10.0.0.0/23</AddressPrefix></Subnet></Subnets><AddressSpace><AddressPrefix>10.0.0.0/20</AddressPrefix></AddressSpace></VirtualNetworkSite><VirtualNetworkSite name="blah" AffinityGroup="QA"><Subnets><Subnet name="default"><AddressPrefix>10.0.0.0/23</AddressPrefix></Subnet></Subnets><AddressSpace><AddressPrefix>10.0.0.0/20</AddressPrefix></AddressSpace></VirtualNetworkSite></VirtualNetworkSites></VirtualNetworkConfiguration></NetworkConfiguration>

Any idea why I might be getting this error?

Thanks in advance!

Branden


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>