In this video, learn how to configure an Azure Virtual Network.
- [Instructor] You can create a new virtual network on demand. You can also add virtual networks when you create a virtual machine. You need to define the network address space prefix and at least one network subnet. I've taken the liberty to log in to the Azure management portal. I'm also going to select a tool known as Cloud Shell to be able to create the virtual network. I've logged into this resource where this article helps me create a virtual network using the CLI. I'm going to select Try It. This will use my account, which I select as a default. Then using that default account subscription, I'm going to Create Storage. This is necessary in order for me to use this Cloud Shell. It's creating the necessary resources in order for me to use the browser-based IDE. Once it's done creating the resource, it starts to initialize our Cloud Shell. It's requesting and it's connecting to a terminal that will allow me to easily create our resources. We can see that I'm at a prompt. And I'm going to use this article to copy the contents of the code that we see under Azure CLI where it states az group create. Once I copy, I can paste the contents into this terminal. You'll see the command will create a resource group logical object in a region known as eastus. I'll select the Enter on my keyboard, and we can see it's creating a resource group. This resource group will be provisioned where I can use it to create resources and manage them. The next step is to create a VNet. It's as simple as selecting the contents within this CLI command. Notice the command says az network vnet create. Provides a name, myVirtualNetwork. It also leverages the resource logical group that we created known as myResourceGroup, and it's going to provision that virtual network with a default subnet which we can later determine the default subnet's IP address range, once created. I'll select Enter to pass my command and wait for the prompt. We can see some output. There's the IP address prefix, a tag, a unique identifier, and some additional properties for this virtual network. From IP configuration, route tables, and even type. Now here's some insight. You can use address spaces that are not already in use in your organization, either on premises or in other virtual networks. Furthermore, here's a scenario when you want to use a virtual network. You have a web application running in a Microsoft App Service using a backend database running in a compute instance. You can put the backend database in the same virtual network as the App Service. The web application accesses the database over the virtual network, which allows you to connect securely to the backend database from the web application without the database being accessible on the public internet. Navigating back to the management console, I'll refresh my resource groups. We can see that there's a new resource group object labeled myResourceGroup. And we can see the virtual network that we created. If you no longer require the resource, we can remove the resource and any of its dependencies. To do that we'll navigate over to Resource groups, and then we can select the resource group object, and on the right in the ellipses we can click to open the menu and you can the option for Delete a resource group. This is very important. One of the benefits of the cloud is known as its elasticity, where we can not just scale out and provision new resources on demand, but also the ability to scale back in and control costs and improve how we can remove resources. To do so, we can use the Delete resource group option. I'll simply select Delete resource group. I'll copy the myResourceGroup name or I'll type the resource group name and ensure that the format is correct, and the syntax. Once I'm ready I will see a green check mark. Then I'll select to delete. The system will automatically delete any resources within that resource group.
- Azure service-oriented architecture
- Microsoft Azure network resources
- Configuring an Azure Virtual Network
- Azure and AWS compute resources
- Azure and AWS storage services
- Azure infrastructure as code resources
- AWS cloud formation templates