Resource creation, tags and locks
1. Resource creation, tags and locks
Resources are important building blocks in Azure. Let’s create one in this video. In addition, we’ll look at how to add resource tags and locks. These help with organizing and protecting resources. Our starting point is the Azure Portal. By clicking on ‘Create a resource’, we can quickly get started. Here, we see an overview of the different resources we can create. For this video, we’ll create a virtual machine, a common resource in Azure. By clicking on ‘create’ we get to the actual creation process for the virtual machine. Don’t worry too much about the different options. Normally, you’ll configure these options based on the specific requirements of the project you need the resource for. Additionally, Azure fills in a lot of settings by default, and often, you can start off with the defaults. We only really need to do a couple of things here: assign the subscription we’re using, assign or create a resource group the resource will belong to, give the resource a name, select a size, and configure the administrator account. We can then continue configuring the resource by clicking ‘next’, or we can immediately create the resource by clicking ‘Review+Create’ and change settings later as needed. Before we do that, however, let’s first look at the tab ‘Tags’. Here, you can already assign resource tags during the creation process. Resource tags help identify and organize resources. We can, for example, tag resources for the same project or tag resources to identify them as critical, allowing us to apply the necessary security rules easily. Resource tags are name-value pairs. This is a common convention to structure meta-data. The name acts as a key or category, while the value is the specific instance of that category. For example, if the resource is critical, we could assign a tag with the name ‘type’ and value ‘critical’. Doing so for all critical resources will make it easier to retrieve those resources quickly, apply specific rules and policies, or analyze their performance. The resource field allows us to choose the resource type the tag is applied to. For example, only the virtual machine, or also all related resource types like network group of the VM. We can also add additional tags if needed. From this screen, we can also click on Review+create to create the resource. Azure will do some validation checks and throw an error if you forget to fill in a required field for example. You’ll also get an overview of your selected settings and the estimated cost for using the resource before you give the final go and the resource is deployed. Now suppose we need to add additional tags to the resource or change them. There are multiple ways to get to our newly created resource. We can type in its name in the search bar, or we can go to ‘all resources’ and access it from there. Once in the overview screen of the resource, we can easily edit the tags via the sidebar or at the top under ‘Essentials’. Finally, let’s also look at how to apply locks. Resource locks are useful to prevent modifications or deletion of important resources. From the resource overview screen, go to ‘Locks’ on the sidebar. To create a lock, click ’Add’, choose a name for the lock, select the right type, and add some notes if you want. Click ‘OK’ to apply the lock. You can also edit or delete locks here. Time to try out some things for yourself!2. Let's practice!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.