You will need to figure out which portion of the deployment failed and the error message received. You can do this by viewing the Activity log in the portal or by using the command az deployment operation list --name <deployment_name> --resource-group <resource_group_name>
to get a list of all the deployment operations for the specified deployment and resource group. Look for any operations that have a status of "Failed" or "Canceled". These are the operations that have caused the deployment to fail. For each failed operation, check the "error" field to see the specific error message. This will give you more information on what went wrong during the deployment.
Hope this helps. If you are still facing issues with your deployment let me know and we can work with you directly to troubleshoot the error.
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.