Using powershell you can do the following commands:
Add-VMNetworkAdapterAcl -VMName $vmName -LocalIPAddress $vmIP -Direction Both -Action Allow
Add-VMNetworkAdapterAcl -VMName $vmName -LocalIPAddress Any -Direction Both -Action Deny
Read the full TechNet guide here:
http://technet.microsoft.com/en-us/library/jj679878.aspx#bkmk_portacls