LocalNetworkGatewayCannotHaveEmptyAddressPrefixAndBgpSettings Error when setting up local network gateway

178 views Asked by At

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.

[enter image description here](https://i.stack.imgur.com/K7WPy.jpg)

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.

1

There are 1 answers

1
Imran On

When I tried to create local network gateway I got the same error below:

LocalNetworkGatewayCannotHaveEmptyAddressPrefixAndBgpSettingsThe local network gateway /subscriptions/b83cxxxxxf/resourceGroups/imran-/providers/Microsoft.Network/localNetworkGateways/LNG1 cannot have both empty address prefix and empty BGP Settings.

enter image description here

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:

enter image description here

Now I am able to successfully create a local network gateway like below:

enter image description here

To view BGP setting while creating in advance tab you can see or once deployed, under configuration you can set shown below:

enter image description here