AZ-900 Episode 29 | Azure Resource Locks

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ก.ค. 2024
  • Resource Locks protect our Azure resources from accidental deletions or modifications. In this episode we will find out how!
    Skills Learned
    - Describe the functionality and usage of resource locks
    🌐 Site: marczak.io/az-900/#ep29
    Episode Resources
    - 📚 Study cheat sheet marczak.io/az-900/episode-29/...
    - 🧠 Practice Test marczak.io/az-900/episode-29/...
    Study Guide
    - Microsoft Learn: Resource Locks docs.microsoft.com/en-us/learn...
    - Azure Documentation: Resource Locks docs.microsoft.com/en-us/azur...
    Agenda
    00:00 Episode introduction
    00:22 What are Resource Locks?
    03:19 Demo
    06:19 Resource Locks Summary
    Want to connect?
    - Blog marczak.io/
    - Twitter / marczakio
    - Facebook / marczakio
    - LinkedIn / adam-marczak
    - Site azure4everyone.com
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 69

  • @GTorchify
    @GTorchify ปีที่แล้ว +5

    Passed my exams today thanks to your videos. So grateful. Was blessed to have your teaching for free on youtube, best teaching on the internet, your the real MVP, thanks a million🎉🎉🎉🎉🎉

  • @_indrid_cold_
    @_indrid_cold_ 3 ปีที่แล้ว +17

    Phenomenal! Your Azure content is absolutely astonishing. Microsoft need to send you a million dollars.

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว +11

      I'm waiting for that million :D Thanks for the kind words!

    • @pranavbakare8922
      @pranavbakare8922 3 ปีที่แล้ว +1

      Absolutely 💯!!!!!!

  • @Angel_Dinev
    @Angel_Dinev 3 ปีที่แล้ว +1

    One more beneficial video lesson towards my quest to pass AZ-900. Thanks Adam, for supporting our efforts so generously!

  • @shubhis2466
    @shubhis2466 3 ปีที่แล้ว +5

    This whole series of AZ-900 is so helpful. I love how you pick up each topic from basics! I was completely new to the world of cloud computing. But you made it so easy and interesting at the same time. Thank you so much :) :)

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว +1

      Glad you like them! Thanks!

  • @natsumiyukipeachii
    @natsumiyukipeachii 3 ปีที่แล้ว +1

    What I love the most about your videos are the diagrams! They sure help a lot :) I am almost done with you playlist and I sure did learn a lot

  • @ByteBurstAcademy
    @ByteBurstAcademy 3 ปีที่แล้ว +4

    first of all, it was a great video again and I like all your videos :)
    what I found interesting in resource lock is when you assign a "Delete" resource lock to RG and if you create a new RG without any lock, you can move the resource from Locked RG to No Lock RG and delete the resource.
    You have to make sure you give proper permissions to other users so that they cant move the resource to other RG's otherwise purpose of resource lock would fail :)

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว

      Hehe, sneaky! But yea, totally agree. Only owner can remove lock, but contributor can move resources. Need to stay vigilant with access management.

  • @jabrouni2
    @jabrouni2 3 ปีที่แล้ว +2

    Timely video and a very important one. Thank you for this.
    Just one drawback I can think of Azure resource locks is that they only protect against operations aimed at ARM APIs for some Azure resources. It does not protect against programmatic deletions. For ex - even if you apply a resource lock against deleting an Azure Service bus Queue, it will prevent it from deleting in the portal. But it won't protect against deletions initiated say by a ASB .net client or ASB Explorer.
    Azure resource locks are very important but they are one among the various measures that that needs to be enforced(Granular control, audit logs, diagnostic settings, etc)

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว

      Azure evolves all the time, hopefully in the future all missing pieces will be there. It's the same with Azure Policies which doesn't cover all APIs either :(

  • @Noursbear
    @Noursbear 2 หลายเดือนก่อน

    another fantastic explanation and demo

  • @AimOnTargets
    @AimOnTargets ปีที่แล้ว

    This series is awesome!

  • @RameshwarPoudel
    @RameshwarPoudel 2 ปีที่แล้ว

    what an amazing content. So easy to follow and use

  • @kb8570
    @kb8570 ปีที่แล้ว

    Thank you for this video!!

  • @GodIsWithin3
    @GodIsWithin3 9 หลายเดือนก่อน

    Great video, thank you.

  • @rupamshaw8713
    @rupamshaw8713 ปีที่แล้ว +1

    Hi Adam,
    Thanks for such wonderful course content
    I have scored 850 AZ 900 today

    • @ianchenjerai-wj3zu
      @ianchenjerai-wj3zu หลายเดือนก่อน +1

      how is the exam? i am planning to write it soon and I am scared

    • @ememetok
      @ememetok 19 วันที่ผ่านมา

      @@ianchenjerai-wj3zu Did you end up writing the exams? I'm scared too!!!

  • @ramazanbulbul5036
    @ramazanbulbul5036 2 ปีที่แล้ว

    Adam gibi adam!

  • @sandeeptembare
    @sandeeptembare 7 หลายเดือนก่อน

    Amazing Explaination !

  • @idougy18091809
    @idougy18091809 ปีที่แล้ว

    Love it!

  • @buddhiprab
    @buddhiprab 2 ปีที่แล้ว

    😍 thanks for the great video

  • @shariqueimam4653
    @shariqueimam4653 10 หลายเดือนก่อน

    Top work

  • @MohammadSameerA
    @MohammadSameerA 3 ปีที่แล้ว +1

    That was totally informative. Big like and subscribe.

  • @dougspindler4947
    @dougspindler4947 2 ปีที่แล้ว

    Excellent

  • @mfalkie
    @mfalkie 2 ปีที่แล้ว

    Hi Adam, thanks for awesome content! I do not know what was possible when you recorded this material, but currently it’s possible to un-delete a storage account within 7 days. I’ve been there :)

  • @xdonat
    @xdonat 3 ปีที่แล้ว +2

    Hey Adam, you do an awesome job with those videos, that is really helpful thank you so much.
    Az900 Certification question: Can you add two DELETE locks on a same resource / resource group?
    I thought that was a tricky one...

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว +2

      Thanks :) You can have as many locks as you like on the same resource/rg. :)

  • @stevengibson4773
    @stevengibson4773 3 ปีที่แล้ว +1

    What would be the best practice given many resources require deletion locks be lifted in order to perform updates (such as AKS clusters) or to make changes to the resources? My team finds it very difficult to manage resource-group level locks while also making changes to the environment as we need to constantly take the locks off. It seems taking the locks off is a security risk as in that window of time, the resources can be deleted, which defeats the purpose of the locks.

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว +2

      A great question Steven. In general, tools are to assist you, not the other way around :) unless a specific scenario is presented, it's hard to propose the 'best' solution.
      For example, referring to the points you made.
      1. AKS creates a separate resource group for node management so it can easily create and destroy worker nodes at will. As such, it's not affected by a lock on the resource group where the service resides.
      2. Delete locks do not forbid from making changes. So your team should not be affected. But in general resource locks are more for production use because deleted services can be recreated easily. But lost data is a business continuity issue, so resource locks help with that.
      3. Dev team shouldn't make constant changes in production.
      4. Lastly, locks are just complementary to RBAC roles. So maybe custom roles with custom permissions and no delete action would better fit your scenario.
      Hopefully agree with me here, it really does depend on the scenario. When it comes to 'best' practices you will find as many opinions as there are people out there. But if you ask me, what would I do? Then I use RBAC to provide fine-grained permissions and restrict access as if there were no locks anyway. Then I provide only access to my dev team to dev environment. Only allow the operations team to perform prod deployment and always ONLY using scripts that were tested in QA/UAT before prod. Never by hand. Often via Azure DevOps (in this case even ops team can't change resources). Lastly, I add resource locks (delete) to all services that contain data and have no external backups, especially storage account. Everything else can be easily recreated as I keep my code and infrastructure in Git/GitHub/DevOps.

    • @stevengibson4773
      @stevengibson4773 3 ปีที่แล้ว

      @@AdamMarczakYT Thanks for this thoughtful reply. I agree with many of your points. My organization is having a meeting around this soon and your perspective is appreciated.

  • @jyotidatta2126
    @jyotidatta2126 3 ปีที่แล้ว +1

    Thank you for your videos. They are very helpful in understanding Azure. However more content can be added in this lesson like "Can a delete lock be applied on top of a read only lock", " Can multiple read only or delete locks can be applied"?

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว

      There always can be more content. But this is just introduction, not an in-depth admin course. This is why the docs exist :) thanks for watching.

  • @jackgleeson8321
    @jackgleeson8321 3 ปีที่แล้ว +2

    Will you be making a video about the az-900 changes in November? I am enjoying your videos so far.

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว +2

      Agenda from episode 28-th already follows updates. I will later release content catch up videos for the topics that were added before ep-28.

    • @nikitarajpoot
      @nikitarajpoot ปีที่แล้ว

      @@AdamMarczakYT Plz provide update adam asap.Thanx for the awesome content.

  • @baybarsbagryank7515
    @baybarsbagryank7515 3 ปีที่แล้ว +2

    Hey Adam,
    Thank you for this great video. I want to ask a question. Which program do you prepare the slides with? It has very stylish things like animations, transitions, handwriting.

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว +2

      That's just PowerPoint and hand drawn animations using surface pen. Thanks for the kind words ;)

    • @Southpaw07
      @Southpaw07 3 ปีที่แล้ว

      @@AdamMarczakYT Hand drawn? Wow! this is just Pure talent. Adam, u da man... And love all your video's. TY I am a subscriber

  • @brahmanandareddyb9134
    @brahmanandareddyb9134 2 ปีที่แล้ว

    888 like its me.... nice class...THX....

  • @pareshdehadray7414
    @pareshdehadray7414 3 ปีที่แล้ว +1

    If I have a resource lock on one resource and if I delete its resource group then what will happen?
    1. delete the resource group along with all resources?
    2. delete the other resources which are not having lock?
    3. will not delete any resource as at least one resource is having lock?

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว

      Part of learning Azure is also playing around with it. Try this yourself if you have Azure account :)

    • @pareshdehadray7414
      @pareshdehadray7414 3 ปีที่แล้ว +1

      @@AdamMarczakYT Thanks Adam. I tried it and found that if any of the resource is having Delete Lock in a Resource Group then we cannot delete that Resource Group even other resources are not having any lock in that resource group.

  • @asifsomi
    @asifsomi 3 ปีที่แล้ว

    Lock will be applicable to resouce level only or it will reflect the inner functions of resouce ? like delete lock shouldnt prevent delete /udpate sql in sql server. pls clarify

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว +1

      It applies to all actions that go through resource manager. Which is quite tricky unfortunately because some actions do and some don't, it's just legacy thing. But in general it applies to properties of the resource not inner parts. For example Blob Containers are considered resource properties (configuration) and are affected. But blob files are not.

  • @madridosv
    @madridosv 2 ปีที่แล้ว

    Thank you so much for your knowledge and ¡¡¡ teaching skill !!!. Unfortunately from Argentina the subtitles of this episode can only be seen in "Dutch". ;)

  • @rosesandhoney
    @rosesandhoney ปีที่แล้ว

    I have repeated the steps over and over but am not getting that message. I receive "Are you sure want to delete....." is there an update?

  • @Pratimakhillari
    @Pratimakhillari 3 ปีที่แล้ว

    Can we move locked resource to another resource group?

  • @Ma1efcent
    @Ma1efcent 3 ปีที่แล้ว

    Can you *Move* an application into a Read Only Resource Group?

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว

      What do you mean by 'move application' ?

  • @abhishekkhemani3755
    @abhishekkhemani3755 3 ปีที่แล้ว

    how many videos of yours should i watch to give an AZ-900 Exam ??

  • @GTorchify
    @GTorchify ปีที่แล้ว

    How about az-140? Pleaseeeee

  • @jha.brajesh
    @jha.brajesh 2 ปีที่แล้ว

    In this episode, you did not blink your eye on "stay tuned"😅

  • @artisticcheese
    @artisticcheese 3 ปีที่แล้ว +1

    You have 14 days to recover deleted storage account by creating helpdesk ticket with Microsoft, just FYI

    • @AdamMarczakYT
      @AdamMarczakYT  3 ปีที่แล้ว

      True. Although not all scenarios are supported (as described in the link). I'd say it's better to assume it's gone and treat this as exception rather than a 'plan B' :). Also 14 days are not guarantees, entire recovery thing is most likely not guaranteed. But it's an excellent point.
      docs.microsoft.com/en-us/troubleshoot/azure/general/data-restore-storage?WT.mc_id=AZ-MVP-5003556

    • @iraju9964
      @iraju9964 3 ปีที่แล้ว

      I think it may take less time sometimes based upon the priority and weightage Microsoft helpdesk may respond. I heard it, is it not true Adam Marckzac...

  • @abhinavsharma-xb5bq
    @abhinavsharma-xb5bq 3 ปีที่แล้ว +6

    You didn't wink this time while saying " so stay tuned "😭.
    My disappointment is immeasurable and my day is ruined.

  • @syedqasim936
    @syedqasim936 3 ปีที่แล้ว

    you didn't blink this time.

  • @tycoon1661
    @tycoon1661 3 ปีที่แล้ว

    For some reason, the subtitles are in dutch. Great video though.