title: How Can I Turn On enableprivateipaddress Flag For Virtual Network Gateway?
body: <p>I'm following these tutorials to enable a site-to-site connection on Windows Azure. I'm trying to connect a VPN to a virtual machine so I can access it via private IP.</p>
  <p><a href="https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-multi-site-to-site-resource-manager-portal#part3" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-multi-site-to-site-resource-manager-portal#part3</a>
  <a href="https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-classic-portal" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-classic-portal</a></p>
  <p>While creating the connection for the device to the virtual private gateway, I am getting the following error:</p>
  <pre><code>Failed to update the configuration for connection
  ...Error:UseLocalAzureIpAddress cannot be set...virtual network 
  gateway...does note have 'EnablePrivateIpAddress' flag set.
  </code></pre>
  <p><a href="https://i.stack.imgur.com/UkGCn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UkGCn.jpg" alt="enter image description here" /></a></p>
  <p>Also, I have tried to enable it under Virtual Private Gateway -&gt; Configuration but there is no option for private IP.</p>
  <p>Does anyone know how I can enable this either through the Azure portal or powershell?</p>