Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
bguragain
Microsoft Employee
Microsoft Employee

ADF Template import fails for being too large

How can I deploy a large ADF export over 50 MB to another environment without hitting file size limits, and if linked templates must be hosted in storage, how can I make the deployment work with entra instead of a SAS token?

2 REPLIES 2
Shahid12523
Memorable Member
Memorable Member

1.Use linked (modular) templates: Split pipelines/datasets into smaller templates.

2.Host linked templates in Azure Storage:

  • Grant your SPN or user Storage Blob Data Reader access via Azure RBAC.
  • Use HTTPS URLs to the blobs (no SAS needed).

3.Deploy with Azure CLI / PowerShell using Azure AD (Entra) authentication:

 

az deployment group create \
--name MyADFDeployment \
--resource-group MyRG \
--template-uri https://<storage-account>.blob.core.windows.net/templates/mainTemplate.json \
--parameters @parameters.json


4.Alternative: Use ADF Git integration + DevOps pipelines to avoid template export size limits entirely.

Shahed Shaikh
v-agajavelly
Community Support
Community Support

Hi @bguragain ,

If your ADF export is too large to import directly (anything over a few MB will usually hit the ARM template limits), the supported approach is to use linked templates. When you export your factory, you’ll notice ADF generates a master template plus child templates the idea is that you host those child templates somewhere and deploy via the master.

Most examples show using a storage account + SAS token, but if you don’t want to manage SAS tokens, you don’t have to. A good alternative is to package everything into an Azure Template Spec. Template Specs let you store ARM templates natively in Azure, version them, and control access with Entra RBAC instead of generating tokens. Then in your deployment pipeline (CLI, PowerShell, or DevOps), you just point to the Template Spec resource ID and deploy it.

  • Use linked templates to get around the size limit.
  • Instead of storage + SAS, publish them into a Template Spec and secure it with Entra roles.
  • Deploy from the Template Spec resource ID – no SAS required, and it scales for big factories.

Follow the bellow official document this documents will help in the related issue.
Using linked Resource Manager templates - Azure Data Factory | Microsoft Learn
Best practices for templates - Azure Resource Manager | Microsoft Learn
Create & deploy template specs - Azure Resource Manager | Microsoft Learn
Create a template spec with linked templates - Azure Resource Manager | Microsoft Learn

Regards,
Akhil.

Helpful resources

Announcements
August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.