<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ARULMOUZHI</title>
    <description>The latest articles on DEV Community by ARULMOUZHI (@arulmouzhi).</description>
    <link>https://dev.to/arulmouzhi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F237534%2Fd04ba49c-f81f-4eea-b1c2-55c5445c3316.jpg</url>
      <title>DEV Community: ARULMOUZHI</title>
      <link>https://dev.to/arulmouzhi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arulmouzhi"/>
    <language>en</language>
    <item>
      <title>Azure Resource Lock – Simple 2 Steps</title>
      <dc:creator>ARULMOUZHI</dc:creator>
      <pubDate>Sat, 21 Nov 2020 10:34:19 +0000</pubDate>
      <link>https://dev.to/arulmouzhi/azure-resource-lock-simple-2-steps-d16</link>
      <guid>https://dev.to/arulmouzhi/azure-resource-lock-simple-2-steps-d16</guid>
      <description>&lt;h1&gt;What is Resource Lock?&lt;/h1&gt;

&lt;p&gt;The &lt;b&gt;Resource Lock in Azure&lt;/b&gt; is Super powerful &lt;b&gt;Resource Manager&lt;/b&gt; that provides Azure Admins a way to lock-down required Azure Resources and prevent them from accidental deletions and modifying of the resources. It is powerful than Role Based Access Control (RBAC), puts restrictions on the azure resources that is applicable for all type of users.&lt;/p&gt;

&lt;h2&gt;Another way to easily remember&lt;/h2&gt;

&lt;p&gt;Admin – “We have all access“&lt;/p&gt;

&lt;p&gt;Developers – “We have some access“&lt;/p&gt;

&lt;p&gt;Read users – “We have read alone access“&lt;/p&gt;

&lt;p&gt;RESOURCE LOCK be like – “Whoever you are (Admin, Developers, Read Users), you all are same to me, Face me first (Edit/Delete), Go to the Resources then!“&lt;/p&gt;

&lt;h2&gt;How to implement this? Answer is very Simple, Check the below steps with pics!&lt;/h2&gt;

&lt;h3&gt;&lt;b&gt;STEP 1 – Sample Resource&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--13fOqdv4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wwvnv62sqiaybx20k87z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--13fOqdv4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wwvnv62sqiaybx20k87z.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sample here shown is Storage Account. Mostly, all the azure resources that supports Resource Locks.&lt;/p&gt;

&lt;p&gt;Resource Level is granularity, if we planning to go at Resources level, it’s fine but may be time consuming. We can put resource locks at Resource Group level too. (Even Subscription also supports Resource Locks, but it is up to us and our purpose of doing so)&lt;/p&gt;

&lt;h3&gt;&lt;b&gt;STEP 2 – Locks Blade/Option in each Azure Resource’s Left side menu list&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--E5r7LbWu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/oi1esk5xo6umpsw8r93r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--E5r7LbWu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/oi1esk5xo6umpsw8r93r.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All Azure Resources/ Resource groups/ even Subscriptions have RESOURCE LOCK Option (Locks Blade).&lt;/p&gt;

&lt;h3&gt;&lt;b&gt;STEP 3 – Click + Add in Locks blade, to add Resource Locks&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ULlYElox--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zqjn7ik0qt70bsu183ra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ULlYElox--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zqjn7ik0qt70bsu183ra.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;&lt;b&gt;STEP 4 – Provide Lock Name &amp;amp; Notes of Lock and Understand Choosing Lock Types&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--M0dznYzM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hjbx0984inukh2l0hnyj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--M0dznYzM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/hjbx0984inukh2l0hnyj.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;u&gt;Lock Types&lt;/u&gt;&lt;/b&gt; – &lt;b&gt;1.&lt;/b&gt; Delete &lt;b&gt;2.&lt;/b&gt; Read-alone&lt;/p&gt;

&lt;p&gt;&lt;b&gt;1.Delete Lock&lt;/b&gt; Type – This type of resource lock prevents resources from deleting, but it will not stop updating/making changes of the resources.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;2.Read-alone Lock&lt;/b&gt; Type – This type of resource lock prevents resources from deleting/updating/making changes. Read alone it will permits. Even API calling sometimes it thinks it may be update and it would throw error. (so, it is risky to use in hot access things, for cold access things, its recommendable like archives)&lt;/p&gt;

&lt;p&gt;Choosing Lock Types is up to us and as per our use case. DELETE as RESOURCE LOCK is recommendable to prevent accidental deletes!&lt;/p&gt;

&lt;h3&gt;&lt;b&gt;STEP 5 – Edit or Delete Locks to change Lock Types and Notes&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KLONYL18--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/35jgl4ntcev7cx1cmd9i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KLONYL18--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/35jgl4ntcev7cx1cmd9i.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Azure Admins can change Lock types and notes in Locks by clicking &lt;b&gt;Edit&lt;/b&gt; icon and can click &lt;b&gt;Delete&lt;/b&gt; to remove locks!&lt;/p&gt;

&lt;p&gt;&lt;b&gt;By default, none of the resources have any Resource Locks.&lt;/b&gt;&lt;/p&gt;

&lt;h3&gt;&lt;b&gt;STEP 6 – What happens if anyone deletes resources when Resource Lock is there?&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7kjR7vzk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/u8ybvn8fqn6uvfcoi1gp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7kjR7vzk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/u8ybvn8fqn6uvfcoi1gp.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;&lt;b&gt;STEP 7 – Resources won’t get deleted by anyone (even admin can’t do) unless Resource Lock gets Edited or Deleted&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7o728rjk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wyafnfu5q875umn7vuy7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7o728rjk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/wyafnfu5q875umn7vuy7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;&lt;b&gt;STEP 8 – If Non-Admins tried…&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--a3F21G_S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ie2ng9c6rz0836eyj7nq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--a3F21G_S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ie2ng9c6rz0836eyj7nq.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;Summary&lt;/h2&gt;

&lt;p&gt;&lt;b&gt;Steps 1, 2&lt;/b&gt; – To Understand regarding Resource Locks, how it sits outside and different from RBAC, and Sample Resources.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps 3, 4&lt;/b&gt; – &lt;b&gt;Actual 2 steps to put Resource Locks!&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Step 5&lt;/b&gt; – To Edit or Delete Resource Locks!&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps 6, 7, 8&lt;/b&gt; – what will happen if we delete the resource that is having Resource Locks, and how it looks like if we don’t have access and try Resource Lock!&lt;/p&gt;

</description>
      <category>azure</category>
      <category>management</category>
      <category>security</category>
      <category>cloudskills</category>
    </item>
  </channel>
</rss>
