Hello Nagaraj Kadade
Thanks for reaching out on Microsoft Q&A and really appreciate your patience while we looked into this.
Understand from description that you are facing issue the deployment size limit because your Bicep file is exceeding the 1 MB limit after compression.
Steps you can take to resolve this issue and proceed with your deployment in the Development environment:
Simplify Your Template:
Break down your main Bicep file into smaller, more manageable modules. This will help you organize your resources logically and reduce the overall size of the deployment. You can find more on using modules in Bicep here. Reduce Name Sizes:
Shorten the names of parameters, variables, and outputs. Since these values can be repeated in loops, shorter names will help reduce the size of the compressed template. This is particularly essential if you're working with resources that use copy loops. Use External Storage for Large Data:
If your parameters or resources include large amounts of data (e.g., certificates or binaries), consider offloading this data to external storage (like Azure Blob Storage) instead of embedding it directly in the template. This can significantly decrease the payload size. Be Cautious with Resource Dependencies:
Use implicit dependencies whenever possible. Complex dependencies can quickly consume the deployment size limits. Check Your Template Limits:
Remember that the total size of the request, including metadata, cannot exceed 1 MB after compression. Ensure that your template does not hit the other limits as well: 256 parameters, 256 variables, 800 resources (including copy counts), and others.
References:
Deployment Size Limits Resolve errors for job size exceeded
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Upvote" and Accept the Answer if the information helped you. This will help us and others in the community as well.
Thanks