ADF ARM template deployment fails

Shalini 1 Reputation point
2022-11-22T16:23:57.103+00:00

Hello,

I have a pipeline as code for building and deploying ADF pipelines/resources. The ARM template is pretty huge and it is about 10MB. The deployment fails with the error:

[error]The request content size exceeds the maximum size of 4 MB.

[error]Task failed while creating or updating the template deployment.

I understand that there is a limit of 4MB however, the pipeline was working fine until sometime for ARM template upto 9MB but fails for 10MB. Is there a fix apart from using linkedtemplate solution

https://learn.microsoft.com/en-us/answers/questions/628466/arm-template-limitation-of-maximum-4mb-size.html

Thanks,
Suba

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,514 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 20,941 Reputation points MVP
    2022-11-23T13:36:48.85+00:00

    Hi,
    The size of your ARM template is hitting the limit of ARM. Try to divide your deployments by using linked templates. Other option is similar to link templates to divide your deployments to multiple ones by using separate templates. No other options are available to overcome this.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.