Hello @Engineer1 I hope you are doing well,
We have some post with similar issues here https://learn.microsoft.com/en-us/answers/questions/2339530/%28bicep%29-what-if-throwing-error-internalservererror if you want to take a look
In resume most people resolved following this recommendations:
- Remove Secure Parameters from Resource Names: If you're using @secure() in names, switch to regular parameters for preview purposes.
- Run with --debug: Add the --debug flag to your az deployment what-if command to get more detailed logs.
- Isolate Modules: If your script uses modules, try validating them individually to pinpoint the failing resource.
- Temporarily Skip what-if: If you're confident in the script and just need to deploy, skip what-if until the issue is resolved.
😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!