Sharon demonstrates how to set up configuration policies to restrict the number of virtual machines to reduce Azure compute costs. In addition, learn how to assign users to the Azure DevTest Lab.
- [Instructor] In order to control our environment, We are going to configure and restrict our virtual machines and this is where Azure DevTest Labs' awesomeness comes from. Let's go ahead and start in policies and you'll find these under settings in our DevTest Labs environment. Next we'll start configuring our virtual machines under policy settings. First, the allowed virtual machines. Let's go ahead and open up that blade. Right now this is set to off. That means that our users can create any size virtual machine that they wish.
And again we have several sizes to choose from. And this can be overwhelming for our users. I'm gonna go ahead and enable this, and now I'm gonna go ahead and pick and choose the virtual machine sizes that our users can select from. I've picked four different sizes that they can choose. Once you've gone ahead and selected your sizes, you can go ahead and click Save. And that's it. The users can only now select from those four sizes.
Next, let's configure the number of virtual machines per user. Right now our users can create several virtual machines. We probably want to control this a little bit. I'm gonna go ahead and turn on Yes, and I'm gonna set a limit of five virtual machines that our users can set up. Next I have the option to limit the number of virtual machines using those premium SSD drives. In this case, I'm only going to allow them one machine that can use that SSD drive.
I'm gonna go ahead and click Save. Once that's saved, I'm gonna go ahead an configure the virtual machines allowed per lab. I'm gonna go ahead and enable that, turn it to Yes. I'm gonna say, I'm gonna allow 20 virtual machines for the entire lab. This way, our users could create a maximum of 5 virtual machines per user, maxing out at 20. And again, I have the option to limit the number of virtual machines within the lab that can use the SSD drives.
In this case, I'm going to go with No because each user can only create one anyways. Now I your numbers were higher, you may want to control this a little bit more. I'm gonna go ahead and click Save. Next, I would like to configure our schedules. I'm gonna go ahead and start Auto Shutdown. Ours is currently enabled because I left it as a default which is enabled when I created the DevTest Lab. You can feel free to modify these settings as necessary but keep in mind, that the user has the option to override this shutdown in their own virtual machine blade.
And I'll show you that when we create the virtual machine as the Dev user. We can also configure Auto Start. Here, we can have all the virtual machines start at a specific time. In our example here, they may have a scheduled start time at 7:00 a.m. That way when our Dev team comes in at 8:00, 8:30, those virtual machines are up and running for them. And because we have Shutdown also enabled, these virtual machines will shutdown at 7:00 p.m. in the evening.
Therefore, we're not being charged for the compute of those virtual machines while those virtual machines are not being used. Now we still will be charged for the storage and some of the other components. I'm gonna go ahead and click Save. As with the Auto Shutdown, the user can override this setting. And finally, let's go ahead and add a user to our DevTest Labs because right now nobody can access it. To add users, come down to Manage and Access control.
The only people who can access the DevTest Labs right now are subscription admins. I'm gonna go ahead and add a user. The first thing I need to do is Select a role, and this will be a DevTest Lab user. And I'm gonna select my user. And Watson will now have access to our DevTest Labs environment. Watson has now been assigned. To recap, we have created policies restricting the size and number of virtual machines that can be created within our environment.
We also enabled Shutdown and Startup, and also assigned a user. We are now ready to go ahead and configure a virtual machine basis. In the next lesson, we'll go ahead and configure a virtual machine basis.
- Configure DevTest
- Create the Azure DevTest Lab
- Create a DevTest Lab virtual machine
- Set policies, users, and schedules
- Configure and create virtual machine bases
- Remove Azure DevTest Lab