Create a resource group
Create Public IP ranges with Public IP Prefix – Create Public IP addresses for Azure firewall
Create a Virtual Network – Add Azure Firewall and subnet, attach the public IP address
Create a Firewall Policy with Firewall Manager
Attach the created Firewall Policy to Virtual network with “Manage security”
Create a VM, and select the subnet created.