Azure | Unable to edit/delete files through KUDU site(409 conflict: could not write to local resource)
Scenarios
Edit Error
When you open any file in KUDU and try to save after updating, you may get this error.
DELETE Error
When you try to delete the same file, you may get below error.
These errors are confusing. For example when you try to delete any file and get an exception, “404 Not found” but actually file is available in Folder and visible
Solution
This issue is pertaining to Files permission. You can check the permission of any file using below command,
attrib FileName
e.g.
attrib index.html
When we run this command, we will get details of all permission applied on that file,
We can clearly see that this file has been marked as “Read Only” and can’t be modified or deleted.
Once we remove this read-only permission using below command then the user will be able to edit/delete the file.
attrib -r index.html
Similarly, there might be some other permissions which can play an important role here.
Attrib Displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, attrib displays attributes of all files in the current directory. Syntaxattrib [{+r|-r}] [{+a|-a}] [{+s|-s}] [{+h|-h}] [[Drive:][Path] FileName] [/s[/d]] Parameters+r : Sets the read-only file attribute. -r : Clears the read-only file attribute. +a : Sets the archive file attribute. -a : Clears the archive file attribute. +s : Sets the system file attribute. -s : Clears the system file attribute. +h : Sets the hidden file attribute. -h : Clears the hidden file attribute. |
Please refer below URL for the complete list of Attrib command.
You can also use below alternative,
· FTP
· App Service Editor
I hope this is helpful. Feel free to add/update anything.
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 · We are not able to retrieve the keys for function · The function runtime is unable to start. |
Issue: Disable Azure functions |