title: Adding a second ExpressRoute connection to an Azure virtual network with networkconfig.xml
body: <p>We are trying to add a second ExpressRoute connection to a vNet in an Azure subscription. We have already successfully completed the connection to our first ExpressRoute (we are using the Exchange Provider method) using a combination of the virtual network GUI and powershell cmdlet tools.</p>
  <p>However... the GUI only supports adding one site-to-site VPN via ExpressRoute.</p>
  <p>The method for adding a secondary site-to-site connection is to export the network configuration (via the Azure portal) and edit the resulting NetworkConfig.xml file - and then re-import this via the portal.</p>
  <p>All good, in theory.</p>
  <p>The NetworkConfig.xml file exported from the gui:</p>
  <pre><code>&lt;Gateway&gt;
  &lt;ConnectionsToLocalNetwork&gt;
   &lt;LocalNetworkSiteRef name=&quot;XXXX&quot;&gt;
    &lt;Connection type=&quot;Dedicated&quot; /&gt;
   &lt;/LocalNetworkSiteRef&gt;
  &lt;/ConnectionsToLocalNetwork&gt;
  &lt;/Gateway&gt;
  </code></pre>
  <p>In conjunction with MS Support (with whom we are still engaged), we determined the following should work:</p>
  <pre><code>&lt;Gateway&gt;
  &lt;ConnectionsToLocalNetwork&gt;
   &lt;LocalNetworkSiteRef name=&quot;XXXX&quot;&gt;
    &lt;Connection type=&quot;Dedicated&quot; /&gt;
   &lt;/LocalNetworkSiteRef&gt;
   &lt;LocalNetworkSiteRef name=&quot;YYYY&quot;&gt;
    &lt;Connection type=&quot;Dedicated&quot; /&gt;
   &lt;/LocalNetworkSiteRef&gt;
  &lt;/ConnectionsToLocalNetwork&gt;
  &lt;/Gateway&gt;
  </code></pre>
  <p>However, attempting to import this generates the following error message:</p>
  <blockquote>
  <p>&quot;The gateway in virtual network site XXX-XXX-XX referenced multiple local
  network sites and uses a connection type different than 'IPsec' for at
  least one of the connections. If a gateway references more than one local
  network site, the connection type to all local network sites must be
  'IPsec'. 'IPsec' is the default connection type.&quot;</p>
  </blockquote>
  <p>This appears to suggest multiple ExpressRoute connections on a single vNet are not supported, which would be contrary to the MS FAQ here:</p>
  <blockquote>
  <p>Can I have one virtual network connected to more than one ExpressRoute
  circuit?</p>
  <p>Yes. You can link a single virtual network with up to 4 ExpressRoute
  circuits. All ExpressRoute circuits must be in the same continent. They
  can be ordered through different service providers and in different
  locations.</p>
  </blockquote>
  <p>(from <a href="https://azure.microsoft.com/en-us/documentation/articles/expressroute-coexist/" rel="nofollow noreferrer">https://azure.microsoft.com/en-us/documentation/articles/expressroute-coexist/</a>)</p>
  <p>Does anyone have any idea how we should proceed?</p>
  <p>Thanks</p>