[BUG] Throws "Bicep compilation hasn't completed within the timeout window" if Bicep can't fetch external modules from private ACR, error BCP192 #2896
Labels
bug
Something isn't working
feature: pre-flight-expansion
Issues relating to expansion of ARM and Bicep.
Existing rule
No response
Description of the issue
Running PSRule with PSRule.Rules.Azure throws an error
Bicep compilation hasn't completed within the timeout window. This can be caused by errors or warnings. Check the Bicep output by running bicep build and addressing any issues.
when the actual cause is that the context it runs from isn't authorized to get the external Bicep modules from a private ACR. I noticed it because I addedbicep restore <file>.bicep
to my workflow before running PSRule, and it threw following error:Request: Expose the error thrown by Azure CLI (if using
az bicep
) or Bicep (if usingbicep
directly).Error messages
No response
Reproduction
Run PSRule on Bicep that references Bicep modules in a private ACR, without being authenticated and authorized to get those modules.
Version of PSRule
2.9.0
Version of PSRule for Azure
1.36.0
Additional context
No response
The text was updated successfully, but these errors were encountered: