{"id":227,"date":"2021-06-13T14:44:00","date_gmt":"2021-06-13T12:44:00","guid":{"rendered":"https:\/\/greg.klonis.gr\/?p=227"},"modified":"2021-11-09T10:33:48","modified_gmt":"2021-11-09T08:33:48","slug":"lock-azure-resources-to-prevent-changes","status":"publish","type":"post","link":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes","title":{"rendered":"Lock Azure resources to prevent changes"},"content":{"rendered":"\n<p>Resource Manager Locks are using by administrators to lock down Azure resources to prevent deletion or changing of a resource.<br>These locks, when applied, will place restrictions on the resource for all users.<br>These are very useful when you have an important resource in your subscription that users should not be able to delete or change and can help prevent accidental and malicious changes or deletion.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>There are two types of resource locks that can be applied:<\/p>\n\n\n\n<p>CanNotDelete: This prevents anyone from deleting a resource whilst the lock is in place. However, they may make changes to it.<br>ReadOnly: As the name suggests, it makes the resource read only, so no changes can be made and it cannot be deleted.<br>Resource locks can be applied to subscriptions, resource groups, or individual resources as required. When you lock a subscription, all resources in that subscription (including ones added later) inherit the same lock.<br>Once applied, these locks impact all users regardless of their roles. If it becomes necessary to delete or change a resource with a lock in place, then the lock will need to be removed before this can occur.<\/p>\n\n\n\n<p class=\"has-large-font-size\" style=\"line-height:0.1\"><strong>Adding Locks using Azure Portal<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>1.Select the resource you wish to lock. In the main blade, click the \u201cLocks\u201d icon<br>2. Click Add<br>3. Give the lock a name and description, then select the type, deletion or read only.<br>4. Click OK to save the lock: The resource is now protected.<br>5. To remove the lock, simply come back to the same interface, select the lock, and then go to delete<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"574\" src=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-1024x574.jpg\" alt=\"\" class=\"wp-image-228\" srcset=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-1024x574.jpg 1024w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-300x168.jpg 300w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-768x430.jpg 768w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-1200x672.jpg 1200w, https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock.jpg 1203w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Hope to find this &#8220;feature&#8221; useful.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Resource Manager Locks are using by administrators to lock down Azure resources to prevent deletion or changing of a resource.These locks, when applied, will place restrictions on the resource for all users.These are very useful when you have an important resource in your subscription that users should not be able to delete or change and &hellip; <a href=\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Lock Azure resources to prevent changes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,49],"tags":[22,57,58],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-cloud","category-microsoft-azure-cloud","tag-azure","tag-lock","tag-resources"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Lock Azure resources to prevent changes &#8226; Gregory Klonis IT Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lock Azure resources to prevent changes &#8226; Gregory Klonis IT Blog\" \/>\n<meta property=\"og:description\" content=\"Resource Manager Locks are using by administrators to lock down Azure resources to prevent deletion or changing of a resource.These locks, when applied, will place restrictions on the resource for all users.These are very useful when you have an important resource in your subscription that users should not be able to delete or change and &hellip; Continue reading &quot;Lock Azure resources to prevent changes&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes\" \/>\n<meta property=\"og:site_name\" content=\"Gregory Klonis IT Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/gklonis\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/gklonis\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-13T12:44:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-09T08:33:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-1024x574.jpg\" \/>\n<meta name=\"author\" content=\"gklonis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@gklonis\" \/>\n<meta name=\"twitter:site\" content=\"@gklonis\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gklonis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#article\",\"isPartOf\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes\"},\"author\":{\"name\":\"gklonis\",\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04\"},\"headline\":\"Lock Azure resources to prevent changes\",\"datePublished\":\"2021-06-13T12:44:00+00:00\",\"dateModified\":\"2021-11-09T08:33:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes\"},\"wordCount\":269,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04\"},\"image\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-1024x574.jpg\",\"keywords\":[\"Azure\",\"Lock\",\"Resources\"],\"articleSection\":[\"Cloud\",\"Microsoft Azure\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes\",\"url\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes\",\"name\":\"Lock Azure resources to prevent changes &#8226; Gregory Klonis IT Blog\",\"isPartOf\":{\"@id\":\"https:\/\/greg.klonis.gr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-1024x574.jpg\",\"datePublished\":\"2021-06-13T12:44:00+00:00\",\"dateModified\":\"2021-11-09T08:33:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#primaryimage\",\"url\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock.jpg\",\"contentUrl\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock.jpg\",\"width\":1203,\"height\":674},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greg.klonis.gr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lock Azure resources to prevent changes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greg.klonis.gr\/#website\",\"url\":\"https:\/\/greg.klonis.gr\/\",\"name\":\"Gregory Klonis IT Blog\",\"description\":\"IT Infrastructure Blog\",\"publisher\":{\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greg.klonis.gr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04\",\"name\":\"gklonis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2025\/03\/cropped-Removal-489.png\",\"contentUrl\":\"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2025\/03\/cropped-Removal-489.png\",\"width\":240,\"height\":136,\"caption\":\"gklonis\"},\"logo\":{\"@id\":\"https:\/\/greg.klonis.gr\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/greg.klonis.gr\",\"https:\/\/www.facebook.com\/gklonis\/\",\"https:\/\/www.linkedin.com\/in\/gklonis\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lock Azure resources to prevent changes &#8226; Gregory Klonis IT Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes","og_locale":"en_US","og_type":"article","og_title":"Lock Azure resources to prevent changes &#8226; Gregory Klonis IT Blog","og_description":"Resource Manager Locks are using by administrators to lock down Azure resources to prevent deletion or changing of a resource.These locks, when applied, will place restrictions on the resource for all users.These are very useful when you have an important resource in your subscription that users should not be able to delete or change and &hellip; Continue reading \"Lock Azure resources to prevent changes\"","og_url":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes","og_site_name":"Gregory Klonis IT Blog","article_publisher":"https:\/\/www.facebook.com\/gklonis\/","article_author":"https:\/\/www.facebook.com\/gklonis\/","article_published_time":"2021-06-13T12:44:00+00:00","article_modified_time":"2021-11-09T08:33:48+00:00","og_image":[{"url":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-1024x574.jpg","type":"","width":"","height":""}],"author":"gklonis","twitter_card":"summary_large_image","twitter_creator":"@gklonis","twitter_site":"@gklonis","twitter_misc":{"Written by":"gklonis","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#article","isPartOf":{"@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes"},"author":{"name":"gklonis","@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04"},"headline":"Lock Azure resources to prevent changes","datePublished":"2021-06-13T12:44:00+00:00","dateModified":"2021-11-09T08:33:48+00:00","mainEntityOfPage":{"@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes"},"wordCount":269,"commentCount":0,"publisher":{"@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04"},"image":{"@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#primaryimage"},"thumbnailUrl":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-1024x574.jpg","keywords":["Azure","Lock","Resources"],"articleSection":["Cloud","Microsoft Azure"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes","url":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes","name":"Lock Azure resources to prevent changes &#8226; Gregory Klonis IT Blog","isPartOf":{"@id":"https:\/\/greg.klonis.gr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#primaryimage"},"image":{"@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#primaryimage"},"thumbnailUrl":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock-1024x574.jpg","datePublished":"2021-06-13T12:44:00+00:00","dateModified":"2021-11-09T08:33:48+00:00","breadcrumb":{"@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#primaryimage","url":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock.jpg","contentUrl":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2021\/09\/lock.jpg","width":1203,"height":674},{"@type":"BreadcrumbList","@id":"https:\/\/greg.klonis.gr\/index.php\/lock-azure-resources-to-prevent-changes#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greg.klonis.gr\/"},{"@type":"ListItem","position":2,"name":"Lock Azure resources to prevent changes"}]},{"@type":"WebSite","@id":"https:\/\/greg.klonis.gr\/#website","url":"https:\/\/greg.klonis.gr\/","name":"Gregory Klonis IT Blog","description":"IT Infrastructure Blog","publisher":{"@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greg.klonis.gr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/94626c43ab702708882d359305b7fd04","name":"gklonis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/image\/","url":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2025\/03\/cropped-Removal-489.png","contentUrl":"https:\/\/greg.klonis.gr\/wp-content\/uploads\/2025\/03\/cropped-Removal-489.png","width":240,"height":136,"caption":"gklonis"},"logo":{"@id":"https:\/\/greg.klonis.gr\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/greg.klonis.gr","https:\/\/www.facebook.com\/gklonis\/","https:\/\/www.linkedin.com\/in\/gklonis\/"]}]}},"_links":{"self":[{"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":1,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":229,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/posts\/227\/revisions\/229"}],"wp:attachment":[{"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greg.klonis.gr\/index.php\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}