Jump to content

Logic App Standard Storage issues investigation using Slots


Recommended Posts

Guest Mohammed_Barqawi
Posted

Logic Apps require an Azure Storage Account file share to host their files. Even though the Logic App site will work without a storage account, it will not be scalable across multiple instances.

 

Unfortunately, if the storage is inaccessible due to DNS or other network issues, both the main site and the Kudu site will not work, resulting in the following error:

 

[iCODE]System.Private.CoreLib: The network path was not found. : 'C:\\home\\data\\Functions\\secrets\\Sentinels'[/iCODE]

 

largevv2px999.png.8672e7b2802ff9ec54985d39403ab929.png

 

 

 

Usually, to resolve network issues, we need the Kudu console working, but in this case, it is not because the site is broken. The option below should only be used when the site is completely non-functional. It is not intended for use when the runtime is operating correctly or for troubleshooting issues unrelated to Storage traffic.

 

We can make it work without a storage account by using the Slots option, which utilizes local storage.

 

 

 

 

 

 

31x28vv2.png.9bcf36f4c73990fa933be6fa2a4a02b0.png

 

 

 

The option below should only be used when the site is completely non-functional. It is not intended for use when the runtime is operating correctly or for troubleshooting issues unrelated to Storage traffic.

 

[HEADING=1]Steps[/HEADING]


  1. Rename the following two environment variables by adding
    X
    at the beginning of the key name:

    Make the changes in the environment variables section -> Advanced edit.

    largevv2px999.gif.c4e01856e40f06e1723c6cb1e122e37b.gif
     

     


WEBSITE_CONTENTAZUREFILECONNECTIONSTRING

WEBSITE_CONTENTSHARE

  1. Go to Slots and add a new one.

  2. Click on the new Slot and go to Advanced Tools (Kudu).

  3. In the CMD console, download the PS1 file responsible for diagnostics using the command:

 

[iCODE]curl -o "LADiag.ps1" https://raw.githubusercontent.com/mbarqawi/logicappfiles/main/LADiag.ps1[/iCODE]

  1. After downloading the PS1 file, switch to
    PowerShell
    to execute the script. You can find the script here:

  2. Run the PS1 script by typing:

 

[iCODE]./LADiag.ps1[/iCODE]

 

Check the file list; you will find an HTML file named ConnectionAndDnsResults.html.

 

AnimationTeams2.thumb.gif.6a5bb525e3faa3af345fb438be908343.gif

 

[HEADING=2]Test cases [/HEADING]

 

In the PowerShell:

 

  • TCPPing on all storage four endpoints. This command will ensure that the HTTPS endpoint is pingable.
  • Use NameResolver on all endpoints to ensure that the DNS is resolvable.
  • Connect to the file endpoint and list all the shares using REST HTTPS on port 443.
  • Perform TCPPing to the file endpoint on SMB port 445.

 

 

 

For additional network-related commands, you can follow this article: Networking related commands for Azure App Services.

 

[HEADING=1]Cleaning

[/HEADING]

 

After you generated the report and figure out the issue , you can delete the slot and rename back the environment variable

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...