code: @Override
  	public VpnGateway createVpnGateway(String endpoint, String name,String description, VpnProtocol protocol, String bgpAsn)throws CloudException, InternalException {
          if( logger.isTraceEnabled() ) {
              logger.trace("ENTER: " + AzureVPNSupport.class.getName() + ".createVPNGateway()");
          }
          try {
              ProviderContext ctx = provider.getContext();
  
              if( ctx == null ) {
                  throw new AzureConfigException("No context was specified for this request");
              }
             
              
              AzureMethod method = new AzureMethod(provider);
              StringBuilder xml = new StringBuilder();
              xml.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
              xml.append("<NetworkConfiguration  xmlns=\"http://schemas.microsoft.com/windowsazure\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">");
              xml.append("<VirtualNetworkConfiguration>");            
              xml.append("<LocalNetworkSites>");
              
              xml.append("<LocalNetworkSite name=\"" + name +  "\">");
              xml.append("<AddressSpace>");
              xml.append("<AddressPrefix>"+ endpoint +"/32" + "</AddressPrefix>");
              xml.append("</AddressSpace>");
              xml.append("<VPNGatewayAddress>"+ endpoint + "</VPNGatewayAddress>");
              xml.append("</LocalNetworkSite>");
              
              xml.append("</LocalNetworkSites>");
              xml.append("</VirtualNetworkConfiguration>");
              xml.append("</NetworkConfiguration>");
                 
  
              if( logger.isDebugEnabled() ) {
                  try {
                      method.parseResponse(xml.toString(), false);
                  }
                  catch( Exception e ) {
                      logger.warn("Unable to parse outgoing XML locally: " + e.getMessage());
                      logger.warn("XML:");
                      logger.warn(xml.toString());
                  }
              }
  
              String resourceDir = NETWORKING_SERVICES + "/media";
              method.post(ctx.getAccountNumber(),resourceDir , xml.toString());
              // TODO: VPNGateway
              return null;
          }
          finally {
              if( logger.isTraceEnabled() ) {
                  logger.trace("EXIT: " + AzureVPNSupport.class.getName() + ".createVPNGateway()");
              }
          }
  		
  	}
docs: Create local network for connecting VPN?