Hi Jose Cintron,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
- Yes, you can assign a public IP address to a VM, and this action will not impact the existing NSG rules applied to the VM’s private IP address and public IP does not alter these rules.
- This allows you to restrict access to the VM based on the public IP address, such as allowing traffic only from certain public IP addresses.
- Adding the new public IP won’t affect the existing WAF rules for the private IP. The current WAF rules for the private IP will stay the same and keep functioning as they are.
- If you want the WAF to protect the new public IP as well, you’ll need to update its settings to cover the public IP in its monitoring and filtering. This involves adjusting the WAF configuration to handle traffic for the new public IP.
Additional Information: custom-waf-rules-overview,waf-front-door-custom-rules
Kindly let us know if the above helps or you need further assistance on this issue.
If you have any further queries, do let us know. If the answer is helpful, please click "Accept Answer" and "Upvote it."