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

Create Virtual Network Gateway by API is failing

$
0
0

I am trying to create Virtual Network with Point-to-Site VPN connection by using API. I've done the Virtual Network creation step but stumble on the setting-up Gateway. I can do it manually but when I call API it's always failing by saying "400 Bad request". 

The x-ms-version I am using is 2012-03-01 

The body of the POST looks like this:

<?xml version=\"1.0\" encoding=\"utf-8\"?>
<CreateGatewayParameters xmlns="http://schemas.microsoft.com/windowsazure">
<GatewayType>DynamicRouting</GatewayType>
</CreateGatewayParameters>

And the URL is:  https://management.core.windows.net/{my_ID}/services/networking/{virtualNetworkName}/gateway

Can somebody see an issue with that?

Thanks,

Alex 




Viewing all articles
Browse latest Browse all 6513

Trending Articles



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