Azure | Some Files/Folders are not visible in KUDU or SCM site (KUDU File/Folder limit)

Azure | Some Files/Folders are not visible in KUDU or SCM site (KUDU File/Folder limit)

Issue

  • Why my files/folder are not visible in KUDU?
  • I can see folders/files in my local application but it is not visible in KUDU.
  • I know those folders are available there because without those folders my application will not work but somehow not visible in KUDU.
  • When I run "CD Folder_Name" command in KUDU console I am able to get into that folder but it is not visible in KUDU.
  • I can see those files/folders through FTP but not in KUDU.

Reason

I uploaded 338 items (files + folders) in KUDU and below is the result,


The limit for displaying the number of items is 299.

If you have more than 299 files or folder then some of them will not be visible due to this limitation.

This is by design and can be checked in KUDU code. You can clearly see MAX_VIEW_ITEMS = 300



The reason it doesn't display all is that performance becomes really bad with large folders. Thus it uses some algorithm in the backend to decide which files/folder should be displayed.

Solution

An immediate workaround which we can use,
  • Use “CD Folder_Name” command in KUDU Console.
  • Use FTP
  • Use App Service Editor

But still, if you want the folder to be visible in KUDU in spite of limitation then remember “Every problem has a solution in this world”. 😊

Please  use following steps,
  • if you are using chrome browser, go to your scm(kudu) site
  • open developer tools (F12)
  • in the console, run window.localStorage['maxViewItems'] = 300 (or any number)

I set the limit to 400.


And refresh the browser and here we go,


You can clearly see 338 items which I uploaded initially.

I am sure this will be very helpful.

Please refer below for more details,




Other useful references,


Issue: Azure Functions: The Consumption pricing tier is not allowed in this resource group


Issue: Azure function is throwing one of the following exception
·       Unable to retrieve Functions Keys
·       We are not able to retrieve the keys for function
·       The function runtime is unable to start.
·       Function host is not running.
·       Internal Server error.
·       Service Unavailable.


Issue: Disable Azure functions


1 comment:

  1. I didn't know this.. Thanks for sharing.

    ReplyDelete