Hi@akhtar,
Resource Manager Locks provide a way for administrators to lock down Azure resources to prevent deletion or changing of a resource. These locks sit outside of the Role-Based Access Controls (RBAC) hierarchy. You can use the below command to create the lock.
$ az group lock create --lock-type ReadOnly -n lockName -g MyResourceGroup