This article was written using chatGPT.
Here are the steps to create an Azure Virtual Network (vnet):
- Log in to your Azure portal at https://portal.azure.com/.
- Click on "Virtual Network" in the left-hand menu.
- Click on the "Create" button to create a new Virtual Network.
- In the "Basics" tab, fill out the following information:
- Subscription: Select the subscription you want to use.
- Resource group: Select an existing resource group or create a new one.
- Name: Enter a name for the Virtual Network. I am calling this one: iroh_vnet.
- Region: Select the region where you want to deploy the Virtual Network. Make sure this region also has the resource this vnet will be associated with. See?Resource Group, Step 7 for more details.
- In the "Security" tab, you can leave these items uncheck as they all cost money the second they are all deployed.
- In the "Address space" section, you can add additional IP address space for use or use the predefined address space for the Virtual Network. These can also be added to the Virtual Network later.
- In the "Subnet" section, you can either create a new subnet or select an existing one. If creating a new subnet, you can also choose to enable or disable the "Service Endpoints" and "Private Endpoints" options for the subnet. The subnet is the range of IP addresses that will be used by the resources in the Virtual Network. These can also be added to the Virtual Network later.
- Review your settings and click on the "Review + create" button.
- Review your settings and click on the "Create" button to create the new Virtual Network.
- Once the Virtual Network is created, you can add resources to it by creating subnets and associating resources to those subnets.
That's it! You have successfully created an Azure Virtual Network that you can use to connect and isolate your Azure resources. You can create multiple subnets within a Virtual Network to segment resources based on their function or security requirements.
Note that creating a virtual network will automatically creates Network Watcher which in turns automatically creates additional resource group (NetworkWatcherRG).