In Azure you can use a network security group to filter network traffic between Azure resources in an Azure virtual…