Hi @Muhammad Ansif ,
to prevent the deletion of Azure resources "by accident" you can set locks to a related resource:
Please tacke a look here for more details: Lock your resources to protect your infrastructure
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten