Encountered internal server error while processing the deployment what-if request

Engineer1 20 Reputation points
2025-07-30T13:39:34.21+00:00

Hi,

We're seeing unusual behaviour from Azure when we run bicept scripts - in a simple example we have a script that just creates a new resource group - the script fails to run in whatif mode:

InternalServerError - Encountered internal server error while processing the deployment what-if request. Diagnostic information: timestamp '20250730T131756Z', scope '/subscriptions/XXXXXXX', tracking id '928576a7-6525-4d7e-bec2-99b350d3a11b', request correlation id '55b844a3-b16d-482a-a3f6-76e52e716b25'.

However the exact same script successfully deploys the resource group when executed without what if - this script is well tested and has never failed in what if previously - wondering if this is a problem with what-if in uk-south?

Happy to share more details securely.

Thanks in advance for your help

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
0 comments No comments
{count} votes

Accepted answer
  1. Jose Benjamin Solis Nolasco 4,906 Reputation points
    2025-07-30T14:16:53.6733333+00:00

    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:

    1. Remove Secure Parameters from Resource Names: If you're using @secure() in names, switch to regular parameters for preview purposes.
    2. Run with --debug: Add the --debug flag to your az deployment what-if command to get more detailed logs.
    3. Isolate Modules: If your script uses modules, try validating them individually to pinpoint the failing resource.
    4. 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!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.