%3CLINGO-SUB%20id%3D%22lingo-sub-1997801%22%20slang%3D%22en-US%22%3EAccess%20Storage%20Accounts%20behind%20Firewalls%20from%20Logic%20Apps%20within%20the%20same%20region%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1997801%22%20slang%3D%22en-US%22%3E%3CP%3EStorage%20accounts%20behind%20firewalls%20will%20not%20be%20accessible%20by%20Logic%20apps%20within%20the%20same%20region%20using%20Azure%20blob%20storage%20connector%2C%20because%20we%20can%20not%20add%20firewall%20rules%20to%20give%20access%20for%20the%20connector%20outgoing%20IP%20addresses%3B%20please%20check%20the%20following%20link%20for%20details%3A%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fconnectors%252Fconnectors-create-api-azureblobstorage%2523access-storage-accounts-behind-firewalls%26amp%3Bdata%3D04%257C01%257Ctalsaifi%2540microsoft.com%257C24c8736dc9e04312d08d08d8a3344340%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637438792170093778%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DDNwumbpJQjdgJPrNc3D0mA8i7O%252Fap6xs34U3USZZnk4%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fconnectors%2Fconnectors-create-api-azureblobstorage%23access-storage-accounts-behind-firewalls%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20blob%20storage%20connector%20will%20be%20returning%20403%20error%2C%20as%20shown%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22403.png%22%20style%3D%22width%3A%20410px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F243815i37B305E92C07CC08%2Fimage-dimensions%2F410x347%3Fv%3D1.0%22%20width%3D%22410%22%20height%3D%22347%22%20role%3D%22button%22%20title%3D%22403.png%22%20alt%3D%22403.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20a%20workaround%2C%20we%20use%20the%20HTTP%20action%20to%20call%20storage%20account%20REST%20API's%20using%20managed%20identity%3B%20to%20do%20so%2C%20please%20follow%20the%20steps%20below%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EEnable%20your%20logic%20app%20managed%20identity%3A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EGo%20to%20your%20logic%20app.%3C%2FLI%3E%0A%3CLI%3EGo%20to%20%3CSTRONG%3ESettings%3C%2FSTRONG%3E%20-%26gt%3B%20%3CSTRONG%3EIdentity%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3ESystem%20assigned%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3EStatus%3C%2FSTRONG%3E%20-%26gt%3B%20%3CSTRONG%3EOn%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EClick%20%3CSTRONG%3ESave%3C%2FSTRONG%3E.%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Identity.png%22%20style%3D%22width%3A%20410px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F243800i7D32677940DB56E6%2Fimage-dimensions%2F410x354%3Fv%3D1.0%22%20width%3D%22410%22%20height%3D%22354%22%20role%3D%22button%22%20title%3D%22Identity.png%22%20alt%3D%22Identity.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3EIn%20your%20storage%20account%2C%20add%20role%20assignment%20for%20your%20logic%20app%3A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EGo%20to%20your%20storage%20account.%3C%2FLI%3E%0A%3CLI%3EClick%20on%20%3CSTRONG%3Eaccess%20Control%20(IAM)%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EClick%20on%20%3CSTRONG%3ERole%20assignments%3C%2FSTRONG%3E%20tab.%3C%2FLI%3E%0A%3CLI%3EClick%20%3CSTRONG%3EAdd%3C%2FSTRONG%3E%20and%20select%20%3CSTRONG%3EAdd%20role%20assignment%3C%2FSTRONG%3E%3A%3COL%20class%3D%22lia-list-style-type-lower-roman%22%3E%0A%3CLI%3EFrom%20the%20%3CSTRONG%3ERole%3C%2FSTRONG%3E%20dropdown%20list%2C%20select%20%3CSTRONG%3EStorage%20Blob%20Data%20Contributor%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EFrom%20%3CSTRONG%3EAssign%20access%20to%3C%2FSTRONG%3E%20dropdown%20list%2C%20select%20%3CSTRONG%3ELogic%20App%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EUnder%20the%20%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3ESelect%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%20field%2C%20type%20the%20name%20of%20your%20logic%20app%20to%20search%20for%20it%20and%20select%20it%20once%20it%E2%80%99s%20found%2C%20it%20will%20appear%20under%20the%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3Eselected%20members%20list%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EClick%20%3CSTRONG%3ESave%3C%2FSTRONG%3E.%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Role%20assignment.png%22%20style%3D%22width%3A%20430px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F243801i724ABBC192B38394%2Fimage-dimensions%2F430x204%3Fv%3D1.0%22%20width%3D%22430%22%20height%3D%22204%22%20role%3D%22button%22%20title%3D%22Role%20assignment.png%22%20alt%3D%22Role%20assignment.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3EConnect%20your%20logic%20app%20to%20storage%20account%20using%20HTTP%20action%20to%20call%20storage%20account%20REST%20API%3A%3COL%20class%3D%22lia-list-style-type-lower-alpha%22%3E%0A%3CLI%3EGo%20to%20your%20logic%20app%3C%2FLI%3E%0A%3CLI%3EClick%20on%20%3CSTRONG%3EView%20in%20logic%20apps%20designer%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EAdd%20an%20action%3C%2FLI%3E%0A%3CLI%3ESearch%20for%20and%20select%20%3CSTRONG%3EHTTP%20action%3C%2FSTRONG%3E%3A%3COL%20class%3D%22lia-list-style-type-lower-roman%22%3E%0A%3CLI%3EFrom%20%3CSTRONG%3Emethod%3C%2FSTRONG%3E%20dropdown%20list%2C%20select%20a%20method%20(GET%2C%20PUT%2C%20etc.).%3C%2FLI%3E%0A%3CLI%3EEnter%20the%20%3CSTRONG%3EURI%3C%2FSTRONG%3E%20for%20the%20folder%20under%20your%20storage%20account%20(%3CA%20href%3D%22https%3A%2F%2Fyour%2520account%2520name.blob.core.windows.net%2Fcontainer%2520name%2Ffile%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2F%3CSTRONG%3Eyour%20account%20name%3C%2FSTRONG%3E.blob.core.windows.net%2F%3CSTRONG%3Econtainer%20name%3C%2FSTRONG%3E%2F%3CSTRONG%3Efile%3C%2FSTRONG%3E%3C%2FA%3E%20%3CSPAN%3E%3CSTRONG%3EName%3C%2FSTRONG%3E%3C%2FSPAN%3E)%3C%2FLI%3E%0A%3CLI%3EUnder%20%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3Eheaders%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%2C%20add%20the%20following%20key%20value%20pairs%3A%3C%2FSPAN%3E%3COL%20class%3D%22lia-list-style-type-upper-roman%22%3E%0A%3CLI%3EKey%3A%20x-ms-blob-type%2C%20Value%3A%20BlockBlob.%3C%2FLI%3E%0A%3CLI%3EKey%3A%20x-ms-version%2C%20Value%3A%202019-07-07.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3EIn%20the%20%3CSTRONG%3Ebody%3C%2FSTRONG%3E%20field%2C%20enter%20or%20select%20the%20variable%20or%20data%20token%20that%20holds%20your%20file%20content%2C%20in%20case%20of%20using%20PUT%20method.%3C%2FLI%3E%0A%3CLI%3EFrom%20%3CSTRONG%3Eadd%20new%20parameter%3C%2FSTRONG%3E%2C%20select%20%3CSTRONG%3Eauthentication%3C%2FSTRONG%3E%3A%3COL%20class%3D%22lia-list-style-type-upper-roman%22%3E%0A%3CLI%3EFrom%20%3CSTRONG%3EAuthentication%20type%3C%2FSTRONG%3E%20dropdown%20list%2C%20select%20%3CSTRONG%3EManaged%20Identity%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EFrom%20%3CSTRONG%3EManaged%20Identity%3C%2FSTRONG%3E%20dropdown%20list%2C%20select%20%3CSTRONG%3ESystem%20Assigned%20Managed%20Identity%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EFor%20%3CSTRONG%3Eaudience%3C%2FSTRONG%3E%2C%20enter%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fstorage.azure.com%252F%26amp%3Bdata%3D04%257C01%257Ctalsaifi%2540microsoft.com%257C4cbffd500e0e421b139d08d8a034d71e%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637435496124105604%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DCgJWkDxXe%252BPH1QyGx2gnWFBXoUohw0TeTS1KB84%252FPeY%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fstorage.azure.com%3C%2FA%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Blob%20HTTP.png%22%20style%3D%22width%3A%20411px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F243803i2B9FF50271FC6AAF%2Fimage-dimensions%2F411x344%3Fv%3D1.0%22%20width%3D%22411%22%20height%3D%22344%22%20role%3D%22button%22%20title%3D%22Blob%20HTTP.png%22%20alt%3D%22Blob%20HTTP.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1997801%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AzureBlob.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F241366iA990B055FD4BD551%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AzureBlob.png%22%20alt%3D%22AzureBlob.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAccess%20Storage%20Accounts%20behind%20Firewalls%20from%20Logic%20Apps%20within%20the%20same%20region%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1997801%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELogic%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Storage accounts behind firewalls will not be accessible by Logic apps within the same region using Azure blob storage connector, because we can not add firewall rules to give access for the connector outgoing IP addresses; please check the following link for details: https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-azureblobstorage#access-stor...

 

Azure blob storage connector will be returning 403 error, as shown below:

403.png

 

As a workaround, we use the HTTP action to call storage account REST API's using managed identity; to do so, please follow the steps below:

 

  1. Enable your logic app managed identity:
    1. Go to your logic app.
    2. Go to Settings -> Identity.
    3. Select System assigned.
    4. Select Status -> On.
    5. Click Save.                                                                                                                                   Identity.png
  2. In your storage account, add role assignment for your logic app:
    1. Go to your storage account.
    2. Click on access Control (IAM).
    3. Click on Role assignments tab.
    4. Click Add and select Add role assignment:
      1. From the Role dropdown list, select Storage Blob Data Contributor.
      2. From Assign access to dropdown list, select Logic App.
      3. Under the Select field, type the name of your logic app to search for it and select it once it’s found, it will appear under the selected members list.
      4. Click Save.                                                                                                                         Role assignment.png
  3. Connect your logic app to storage account using HTTP action to call storage account REST API:
    1. Go to your logic app
    2. Click on View in logic apps designer
    3. Add an action
    4. Search for and select HTTP action:
      1. From method dropdown list, select a method (GET, PUT, etc.).
      2. Enter the URI for the folder under your storage account (https://your account name.blob.core.windows.net/container name/file Name)
      3. Under headers, add the following key value pairs:
        1. Key: x-ms-blob-type, Value: BlockBlob.
        2. Key: x-ms-version, Value: 2019-07-07.
      4. In the body field, enter or select the variable or data token that holds your file content, in case of using PUT method.
      5. From add new parameter, select authentication:
        1. From Authentication type dropdown list, select Managed Identity.
        2. From Managed Identity dropdown list, select System Assigned Managed Identity.
        3. For audience, enter https://storage.azure.com                                                        Blob HTTP.png