Before creating a network interface, you must have an existing virtual network in the same location and subscription you create a network interface in. Reference: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface