Skip to main content

PrivateIPAddressNotInSubnet: The private IP address is outside the subnet

The private IP address doesn't fall within the address range of the subnet the resource uses.

What to check​

  1. Verify the subnet ID and compare the requested address with that subnet's prefix, not the address range of the whole virtual network.
  2. Pick an available address within the subnet that Azure hasn't reserved, or correct the subnet reference if the deployment pointed to the wrong one.

Official reference​