3 hours 51 minutes
Welcome back to Microsoft Azure Fundamentals. This is Module 11. Azure resource Manager
in this module will get an introduction to azure resource groups. Then we will see how we can use tags to further organized resources.
At the end, we will use the resource locks to protect resources from accidental modification.
Let's get started.
Let's see what azure resource group and azure resource manager are
as your resource manager or also called arm, is a set of features that allow you to organize, deploy and protect resources.
For example, you can use azure resource groups and tax to organize resources, arm templates to deploy resources or resource locks to protect resources from modification or deletion.
Let's look at those in more detail.
Azure resource groups are logical containers for resources deployed in azure. Every resource and azure must belong to a single resource group.
Resource groups are created within a subscription and used to organize the resources In a single subscription.
You can move resources between resource groups if you determine that their placement isn't really appropriate.
Resource groups are also used to apply role based access control permissions for easier access management.
If you delete a resource group all resources within are also deleted.
For example, this would make it easy to clean up temporary environments but can also be dangerous. If someone deletes an entire production resource group,
we'll see how we can protect from such mistakes. Later in this module,
you can create resource groups in several different ways.
Using the portal using azure power shell using azure CLI using blueprints and using azure sdk.
Let's see how we can create a resource group in the portal.
Here's how you create a resource group in the azure portal.
You can start either by clicking on resource groups or going to all services and searching for resource group.
When you click on Resource Group, the new page opens up.
You can click on the button. Add
next. You'll be asked to specify the subscription where you want this resource group created as well as the name.
I'll call it cyber relearning R G and the region where you want this resource group created.
Selecting the region for the resource group doesn't require that all resources be in the same region.
This is just the region for the resource group where the actual object, the resource group, object is created,
you can click on review and then click on Create to create the resource Group.
Now the resource group is created.
We can go there and let's create also one resource in the in this resource group.
I'll click on Add Resource and I'll search the marketplace.
Let's try to create a virtual network.
I'll select virtual Network and click on that create button.
I can specify the virtual network or the name of the virtual network.
Let's say it'll be cyber relearning wien it.
You can choose the other space.
The other spaces. C I. D R. That can have slash eight and above, I'll say 10.0 point 0.0 slash eight.
The subscription is the state.
The resource group is the same. The location is pre populated automatically by the resource group.
I can change that if I want to put my veena in a different location.
It also automatically needs to create at least one sub net.
You can call it default, and you can choose a range for the sub net.
Let's say 1.0 point 24
I can click on Create
the virtual network will soon be created and placed in my resource group.
You can go back to resource groups and you'll see that your resource group is already available.
If you click on it, you should see the resources. Once they're created,
the virtual network is still in creation.
You can check the notifications and you'll see that it says the deployment is in progress.
We can wait a few minutes, and after a minute or so the vignette will be created.
You can click on the refresh button, and you can see your newly created Vonette
as we mentioned, you can use azure resource groups for resource organization.
There is no one right method for organization, and it's going to depend on your needs.
Here are some guidelines.
First, develop a consistent naming convention for your resource groups.
For example, Cyberia Marketing Front and R G is much more meaningful than Resource Group one.
The name of the resource group should give an indication as to what the resource group is used for. In this case, it's used for cyber marketing. And what are the resources in it?
Well, in this case, the front end,
the R G part is just the type of resource
from azure resource managers. Point of view. The resource group is just another resource.
There are many different ways to organize your resources. For example, you can use resource types.
Here we have resources organized by type using network security, compute and data bases.
You can use the development lifecycle for organization
here we have naming based on environments development, test and production.
You could organize resources by department
marketing, finance, human resources, etcetera.
You can also combine these strategies. For example, you can have department and development life cycle together
when you think about your organization. Also, think about who's going to need access. In our last example, The Marketing I T department will have access to the Marketing Production Resource group, while the development team will have access to the marketing, development and marketing test resource groups.
You can also apply different policies to each one of the resource groups.
You could also organize the resource groups by life cycle.
If you have resources for temporary projects, you may want to group them together so you can delete them all at once.
you can now organize the resources for billing purposes. This way, you can have detailed spending information for each one of your environments in the marketing department