Azure / Azure/bicep-registry-modules
[AVM CI Environment Issue]: Deployment step is failing when template size exceeds the maximum size of 4 MB
- Dominant language
- Bicep
- Stars
- 736
- Forks
- 564
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 30
Description
### Check for previous/existing GitHub issues
- [x] I have checked for previous/existing GitHub issues
### Issue Type?
Bug
### Description
The deployment part of the CI workflow fails at the Validate Template File step when template size exceeds the maximum size of 4 MB.
```
WARNING: The request content size exceeds the maximum size of 4 MB.
Write-Error: /home/runner/work/_temp/36d402fe-2384-47c8-90c9-250096c1bdbc.ps1:70
Line |
70 | Test-TemplateDeployment @functionInput -Verbose
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Template is not valid.
Error: Error: The process '/usr/bin/pwsh' failed with exit code 1
```
[job-logs.txt](https://github.com/user-attachments/files/18266779/job-logs.txt)
Manual deployment using `Bicep build -f main.test.bicep` and `az deployment sub create` works and deploys the test correctly.
Contributor guide
Assessment
This issue has not been assessed yet.