Firewall policies are enforced only when attached to a resource. Policies can be attached to VMs and databases.
Attach from a VM
- Open the VM detail page
- Go to the Firewall tab
- Select a policy from the Attach policy dropdown
- Click Attach
The policy's allow rules are enforced on that VM. The Attached resources count on the policy increments.
Attach from a database
- Open the database detail page
- Go to the Firewall tab
- Select a policy from the Attach policy dropdown
- Click Attach
Detach a policy
From the resource's Firewall tab, click Detach on the attached policy's card. When no policies remain attached, the resource reverts to its built-in network behavior.