ADF ARM template deployment fails

Shalini 1 Reputation point


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


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

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 22,251 Reputation points MVP

    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.