Trying to setup a local network gateway and hitting this error:
LocalNetworkGatewayCannotHaveEmptyAddressPrefixAndBgpSettingsThe local network gateway /subscriptions/XXXXXX/resourceGroups/XXXXXX/providers/Microsoft.Network/localNetworkGateways/XXXXX cannot have both empty address prefix and empty BGP Settings.
All the XX are just obfuscations of my org's specifics. I'm not seeing a place wwhere i can set the address prefix, and I'm not setting up BGP. Not sure where to look next.
When I tried to create local network gateway I got the same error below:
This error usually occurs when the address space is set to
None
. No address space details or BGP settings are configured.Make sure to add address space like below:
Now I am able to successfully create a local network gateway like below:
To view BGP setting while creating in advance tab you can see or once deployed, under configuration you can set shown below: