Hello @JulienNiu-8910,
There could be multiple reasons for the reason behind the validation failure as explained here
https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/error-invalid-template
Please get more details and should be able to resolve it
Please mark as "Accept the answer" if the above steps helps you. Others with similar issues can also follow the solution as per your suggestion
Regards,
Manu