So in this section, I’m going to talk about resource groups.
Resource groups are a fundamental element of the Azure platform. A resource group is a logical container for resources deployed on Azure.
These resources are anything you create in an Azure subscription like virtual machines, Application Gateways, and CosmosDB instances.
Resource Groups are basically an organizational structure. Simply we can say as a folder structure.
So you can create as many resource groups as you need.
All resources must be in a resource group and a resource can only be a member of a single resource group.
Before any resource can be provisioned, you need a resource group for it to be placed in.
This is a way to separating out the different projects, or way to keeping unrelated things separately.
So you’ll see in my myvms resource group, as I create a virtual machine (vm1), all of the related disks, network interface cards, public IP address, the network security group, the virtual network, all inside the same resource group.
There are many different benefits to having things in a resource group.
From this plus sign, anytime you can adds resources to the resource group.
Also anytime you can delete the resource group and that will also clean-up all of the resources inside of it.
There is no cost to crate the resource group.so you can create any resource group as you wish
You can separately keeping your resources into a single resource group (like VMs) and that’s makes it very easy at the end of the day to delete it.
Deleting the resource group is straight forward, you actually have to type the name of the resource group into a text box in order for that delete to take effect.
Now, let’s talk about the Locks
The concept of locks is basically allowing you to place a lock on the resources, inside a resource group so that you don’t accidentally make changes to it, or you don’t accidentally delete it.
So in here I am going to apply locks for my resource group called myvms resource group, I want to add a lock and I want to say “please do not change anything “
And there are two types of locks. One restricts deletions, and one restricts any changes.
So if I put a read-only lock onto this resource group, and I’ll say, “please do not change anything.”
Now I’m basically restricting the contents of this resource group from changing.
So let’s show how that takes effect.
If I was to try to add a new resource. That is new VM.
You’ll see that there is this red exclamation point it says, “The selected resource group is read-only.”
So I can’t even create resources in the existing resource group because the resource group is locked.
Similarly, if I was to try to disconnect the IP address of the VM.
Then you can see the same results.
498 total views, 2 views today