The AzureRM Provider Team states, "breaking change" went out in AzureRM v3.21.0 [a]. The virtual_network block was removed from azurerm_container_registry resource. This block is under the network_rule_set block [b].
Customers reported an error with this argument and the AzureRM team investigated [c].
An argument named "virtual_network" is not expected here.