What is the primary function of applying locks to Azure resources?
To restrict access to resources based on user roles
To prevent accidental deletion or modification of resources
To track changes made to resources over time
To encrypt data stored within the resources