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