Upload Maps larger than 4 MB to an Integration Account

Published Mar 14 2022 09:34 AM 748 Views
Microsoft

The current reference documentation of the Limits and configuration for Logic Apps for maps in an Integration Account: https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-limits-and-config?tabs=azure-portal#:~:... points out that: "To upload files larger than 2 MB, use the Azure Logic Apps REST API - Maps."

 

However, there is a slight difference for maps larger than 4MB, refer the below steps related to the same.

 

  1. For maps larger than 4MB, it is needed to be first uploaded to an Azure blob. Then the REST API(https://docs.microsoft.com/en-us/rest/api/logic/maps/create-or-update) should be used to create the map, by referencing the Azure blob.
  2. Here is an example of what the request body will look like for the REST API where the URI is that of an Azure Blob including the SAS token:

 

{
   "properties":{
      "mapType":"Xslt",
      "contentLink":{
         "uri":
https://<storageaccountname>.blob.core.windows.net/ganai/test111.xslt?sp=r&st=2022-02-02T22:54:23Z&se=2022-02-03T06:54:23Z&spr=...,
         "contentVersion":"1.0"
      },
      "contentType":"application/xml",
      "metadata":{
         
      }
   },
   "location":"northcentralus"

 

 

And the reason for this is:

 

ARM request size limit is 4MB: https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-..., which is a recent ARM limit:

 

 

nidubey_0-1647268176218.png

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-3256551%22%20slang%3D%22en-US%22%3EUpload%20Maps%20larger%20than%204%20MB%20to%20an%20Integration%20Account%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3256551%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20current%20reference%20documentation%20of%20the%20Limits%20and%20configuration%20for%20Logic%20Apps%20for%20maps%20in%20an%20Integration%20Account%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flogic-apps%2Flogic-apps-limits-and-config%3Ftabs%3Dazure-portal%23%3A~%3Atext%3Dand%2520blob%2520container.-%2CMap%2520(XSLT%2520file)%2C-8%2520MB%2C%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flogic-apps%2Flogic-apps-limits-and-config%3Ftabs%3Dazure-portal%23%3A~%3A...%3C%2FA%3E%26nbsp%3Bpoints%20out%20that%3A%20%22%3CEM%3ETo%20upload%20files%20larger%20than%202%20MB%2C%20use%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Flogic%2Fmaps%2Fcreateorupdate%22%20rel%3D%22noopener%20noreferrer%22%20data-linktype%3D%22absolute-path%22%20target%3D%22_blank%22%3EAzure%20Logic%20Apps%20REST%20API%20-%20Maps%3C%2FA%3E%3C%2FEM%3E%3CSPAN%3E.%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EHowever%2C%20there%20is%20a%20slight%20difference%26nbsp%3B%3C%2FSPAN%3Efor%20maps%20larger%20than%204MB%2C%20refer%20the%20below%20steps%20related%20to%20the%20same.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EFor%20maps%20larger%20than%204MB%2C%20it%20is%20needed%20to%20be%20first%20uploaded%20to%20an%20Azure%20blob.%20Then%20the%20REST%20API(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Flogic%2Fmaps%2Fcreate-or-update%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Flogic%2Fmaps%2Fcreate-or-update%3C%2FA%3E)%20should%20be%20used%20to%20create%20the%20map%2C%20by%20referencing%20the%20Azure%20blob.%3C%2FLI%3E%0A%3CLI%3EHere%20is%20an%20example%20of%20what%20the%20request%20body%20will%20look%20like%20for%20the%20REST%20API%20where%20the%20URI%20is%20that%20of%20an%20Azure%20Blob%20including%20the%20SAS%20token%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2060px%3B%20%22%3E%3CEM%3E%7B%3C%2FEM%3E%3CEM%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%22properties%22%3A%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22mapType%22%3A%22Xslt%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22contentLink%22%3A%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22uri%22%3A%3C%2FEM%3E%3CEM%3E%3CA%20href%3D%22https%3A%2F%2F%26lt%3Bstofage%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2F%3CSTORAGEACCOUNTNAME%3E%3C%2FSTORAGEACCOUNTNAME%3E%3C%2FA%3E%3CA%20href%3D%22https%3A%2F%2Fganai.blob.core.windows.net%2Fganai%2Ftest111.xslt%3Fsp%3Dr%26amp%3Bst%3D2022-02-02T22%3A54%3A23Z%26amp%3Bse%3D2022-02-03T06%3A54%3A23Z%26amp%3Bspr%3Dhttps%26amp%3Bsv%3D2020-08-04%26amp%3Bsr%3Db%26amp%3Bsig%3DThGjoXeW3iKMoPeFPCMSdzNgJJILUM5mM2YAJj3IeKI%253D%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%26gt%3B.blob.core.windows.net%2Fganai%2Ftest111.xslt%3Fsp%3Dr%26amp%3Bst%3D2022-02-02T22%3A54%3A23Z%26amp%3Bse%3D2022-02-03T06%3A54%3A23Z%26amp%3Bspr%3Dhttps%26amp%3Bsv%3D2020-08-04%26amp%3Bsr%3Db%26amp%3Bsig%3D%3CXXXXXXXXXXXXXXXXXXXXXX%3E%3C%2FXXXXXXXXXXXXXXXXXXXXXX%3E%3C%2FA%3E%3C%2FEM%3E%3CEM%3E%2C%3C%2FEM%3E%3CEM%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%22contentVersion%22%3A%221.0%22%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22contentType%22%3A%22application%2Fxml%22%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%22metadata%22%3A%7B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%7D%2C%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%22location%22%3A%22northcentralus%22%3CBR%20%2F%3E%7D%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CU%3EAnd%20the%20reason%20for%20this%20is%3A%3C%2FU%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EARM%20request%20size%20limit%20is%204MB%3A%26nbsp%3B%3C%2FEM%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Fmanagement%2Fazure-subscription-service-limits%23subscription-limits%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CEM%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Fmanagement%2Fazure-subscription-service-limits%23subscription-limits%3C%2FEM%3E%3C%2FA%3E%3CEM%3E%2C%20which%20is%20a%20recent%20ARM%20limit%3A%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22nidubey_0-1647268176218.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355524i3AB31FACB4153A6E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22nidubey_0-1647268176218.png%22%20alt%3D%22nidubey_0-1647268176218.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3256551%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20current%20reference%20documentation%20of%20the%20Limits%20and%20configuration%20for%20Logic%20Apps%20for%20maps%20in%20an%20Integration%20Account%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flogic-apps%2Flogic-apps-limits-and-config%3Ftabs%3Dazure-portal%23%3A~%3Atext%3Dand%2520blob%2520container.-%2CMap%2520(XSLT%2520file)%2C-8%2520MB%2C%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flogic-apps%2Flogic-apps-limits-and-config%3Ftabs%3Dazure-portal%23%3A~%3Atext%3Dand%2520blob%2520container.-%2CMap%2520(XSLT%2520file)%2C-8%2520MB%2C%3C%2FA%3E%26nbsp%3Bpoints%20out%20that%3A%20%22%3CEM%3ETo%20upload%20files%20larger%20than%202%20MB%2C%20use%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Flogic%2Fmaps%2Fcreateorupdate%22%20data-linktype%3D%22absolute-path%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20Logic%20Apps%20REST%20API%20-%20Maps%3C%2FA%3E%3C%2FEM%3E%3CSPAN%3E.%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EHowever%2C%20there%20is%20a%20slight%20difference%26nbsp%3B%3C%2FSPAN%3Efor%20maps%20larger%20than%204MB.%20Refer%20this%20article%20for%20the%20steps%20related%20to%20the%20same.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3256551%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELogic%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Mar 14 2022 09:11 AM
Updated by: