Azure DebugConsole - Can't upload more than 299 files - azure

I am using Microsoft Azure for an WordPress website.
Recently, I created a folder in the root directory of my WordPress and I have to upload 4000 photos there.
Using the DebugConsole / Kudu I was able to create the folder and transfer the files but I noticed that only 299 files were transferred as shown here:
I tried to add the files again there but it won't work.
How can I upload the rest?

Looks like you hit the disk space limit. You can check the usage of disk space via Kudu (https://<your app name>.scm.azurewebsites.net/Env.cshtml).
Currently, there is a limitation of 299 files and directories we can view in Kudu. See Some folders are not visible in KUDU #2595. So, I'd recommend using the FTP client tool to connect to Azure and check exactly how many files were uploaded.
About how to connect to Azure App Service using FTP, please refer to:
https://learn.microsoft.com/en-us/azure/app-service/app-service-deploy-ftp
Another option is to use App Service Editor, which has fancier UI:
https://<your app name>.scm.azurewebsites.net/dev

Related

Azure Web App FTP permission is denied and cannot upload files and cannot create folders

I'm managing small web app, deploying with (always) FTP. My teammate requested me to upload a folder including small teaser website. As usual routine, I opened the Azure Web App Deployment Center FTP dashboard and copied server address and credentials and pasted them into FileZilla(latest version). Login went well and I could see file list and folders. However, when I tried to upload files, remove existing files, all of the writing attempts failed with 550 Access is denied error. What could be the cause of this?
On the other hands, I could remove existing files on KUDU debug console.
I check the ftp link the deployment center provide, looks like the portal provides a read-only ftp link. So go to your web app, click Get publish profile, choose the publishUrl under tag profileName=<yourwebname-FTP>.

Azure web app Back limit exceeded

I have an Azure Web App configured for Backups. It runs once a day and backup both website and database". I have checked the database size is just 170MB but now during taking backup I am facing error "The website + database size exceeds the 10 GB limit for backups. Your content size is 10 GB".
It necessarily need not be your Database that can cause the size to exceed. The Logfiles folder can also contributes to the size. If you are sure that the Database is not at fault, then look at the other areas that can cause the size to bloat. You can determine folder content size using the Azure Web Apps Disk Usage Site Extension.
This is how it looks like:
Installing the Site Extension:
Browse the Kudu site for your web app: https://sitename.scm.azurewebsites.net
Click on Site extensions and then click on Gallery.
Search for Azure Web Apps Disk Usage site extension.
Click on + icon to install the site extension.
Once installed, click on the Restart Site button.
Now, this should show up under Installed. Once installed, the + incon should change to play (>) as shown below
This should take you to the following url: https://sitename.scm.azurewebsites.net/DiskUsage/ (replace sitename with the name of the web app)
Excluding specific folders from the backup:
There is way to exclude specific folders from your backup.
Create a file called _backup.filter. Place it here: D:\home\site\wwwroot\_backup.filter.
specify the files and folders that you want to exclude in this file
for example I would add the following to my _backup.filter file:
\site\wwwroot\Logs
\LogFiles
\Data
For more information on how back up works, refer this blogpost: http://zainrizvi.io/2015/06/05/creating-partial-backups-of-your-site-with-azure-web-apps/
If none of this helps, create an Azure Support Ticket: How to create an Azure support request
It is very odd, please firstly check the Web Apps Disk Usage from quota in the web protal and have a try to use following two ways.
1.Scale up your web app then Scale down back. To refresh the web app.
2.I suggest you could create another server plan, then move this web app to that service plan.
If this two ways still don't solve this error.I suggest you could connect to the azure support.

Upload 18000 PDFs to Azure wwwroot/uploads floder using Kudu

Screen Shot added
I want to upload PDFs to azure webapp folder and i used Kudu service to do this. but when i drag and drop into area all are seems to have uploading but at the end it will only show 199 files. i'm new to windows azure services and any one have idea? Hope you all understand my issue.
Thanks..!
You could just package them as a Zip file and drag-n-drop that to Kudu, it will extract it automatically for you.

Azure Umbraco Web Site down after azure restore

Error running Reader:
SQL Statement:
SELECT id, domainName FROM umbracoDomains ORDER BY id
I performed an Azure restore of my umbraco website which is using the umbraco.sdf file in the App_Data folder. After the restore I have this error. It errors when I try to log into the Umbraco backend. The Umrbaco.sdf file is only 64KB is that normal? It seems like Azure deleted some of the tables from the .sdf file on restore? In the meantime my site is down and there's no hope in retrieving all my data in my db. Help please!
As far as I know, restoring the web app would replace your current web app data and settings with content stored in the backup. According to your description, please try to check your db file in the specific backup as you mentioned in the above snapshot via this tool Microsoft Azure Storage Explorer.
If the size of Umrbaco.sdf file seems as normal, you could try to upload the Umrbaco.sdf file to you web app manually via KUDU or FTP for a temporary processing to make your web app available.
Note: When you replace the Umrbaco.sdf file, you need to add a app_offline.htm file to the root of your webserver for releasing the Umrbaco.sdf file. After you replace the db file, you could remove the app_offline.htm file to make your web app online.

How to create simple static azure web app

I would like to create a simple static web site on Azure Web Apps. I don't want any VS or PowerShell so I have just connected my Azure Web App to my OneDrive account. I just want to edit my local files and see them on site.
I have created new web app, connected it to my OneDrive account and this step was fine, it created apps/Azure Web Apps/""app name"" folder in my OneDrive so I have placed some html/css files there. Web App was synchronized; however, I could not open any html file (404 could not get resource index.html).
I FTP-ed site and I have found that there is a following element in my Web.Config file:
<rule name="StaticContent">
<action url="public{REQUEST_URI}" type="Rewrite"/>
</rule>
Ok, so by default it assumes that static content will be in "public" folder so I have created "public" folder in my OneDrive and moved html file there. I have opened html file on my site url via browser and it was shown successfully!!!
Now, I have copied some other html/css files in subfolders of my "public" folder, but I cannot open them. Http requests to ""site""/somefolder/file.html ""site""/somefolder/file.css returns 404.
It seems that StaticContent rule do not matches subfolders.
I can continue hacking this and modifying iisnode rewrite rules, but am I missing something?
I just want simple static site connected to my OneDrive or Dropbox account, no VS, no power shell, no customization. Is it possible that this is a minefield if you are using the simple use case? Is there some tutorial or setting that I have not found?
It's actually a lot simpler than what you tried.
As CSharpRocks already suggested in a comment, you could place static HTML files and resource files into the root folder. However, you did say that you want to use your OneDrive account.
The trick is to identify the source location on your OneDrive account, after you set it up on Azure. It looks like you already tried that initially, but it appears that you also moved the files to a different "public" location.
Just to clarify, here are the steps that I performed.
In your Web App settings blade, click Continuous Deployment to select OneDrive, authenticate and choose the name, e.g. schtml5.
In your OneDrive account, find the source location, e.g. /Apps/Azure Web Apps/schtml5/
Place your static files into the above OneDrive location.
Since you already have continuous deployment set up (from Step 1), your website should be updated automatically every time that OneDrive folder (from Step 2) is updated. Make sure you choose to replace files when uploading any newer versions of files that already exist.
But you also mentioned that you have a Web.config file. Since you only have static files, you don't need this configuration file. Delete the Web.config file in Azure. You could use FTP to access your "/site/wwwroot" folder to delete the file. Make sure that you don't include the config file in OneDrive.
Hope that helps! :-)
Screenshots of my Azure portal and OneDrive below:
In MS Build 2020 Microsoft announced the support for hosting Static Web Apps which allows you to build JavaScript web applications that automatically publish from changes made in GitHub.
This new option is ideal for static site generators such as Hugo,
Jekyll and Hexo or for developers who use frameworks like
Angular, Vue and React and seek a simple interface to deploy
the cloud resources needed for a single-page application.
Here is an example to get started.

Resources