Hi @Tan Boon Huan ,
Thank you for reaching us again.
I have tried working with the YAML script you provided, and it is working fine. I am able to deploy it successfully. The issue might be with your subscription, as you mentioned you are using the free trial version
Azure free trial subscriptions have limits on resources, including public IP addresses. Both static and dynamic IPs are supported, but static IPs count towards your limit, even if unused.
Navigate to Public IP addresses list and delete which is not associated.
If you need any further assistance, please let us know. We are happy to help.