Virtual Networks are isolated from each other by default unless you connect them (usually by using VNET Peering), this allows those resources to communicate via their private IP addresses. The AllowVnetInBound rule is pre-configured to allow traffic within any connected VNETs, note the source and destination on this rule are both VirtualNetwork.
If the VNETs are not connected then you use public IP addresses instead but you would need to add an Inbound access rule to your network security group as this traffic is denied by default due to the pre-configured DenyAllInBound rule which has a source and destination of Any.