Prevent Accidental Resource Deletion Using Locks in Azure Data Factory


Introduction

While working in Azure Data Factory a user can delete a resource unknowingly. We can implement Azure Locks to prevent this accidental resource deletion. You can create your own custom roles to give users read-only access to the Azure Data Factory, but developers or administrators have full access and they might delete resources accidentally in a production environment. If you are using any code version control then it will be easier to revert back any changes but otherwise, locks are very helpful to create restrictions in such scenarios.

There are two types of lock levels available CanNotDelete and ReadOnly.