Over the course of this 3-part introduction series we are going to walk through how to stand up a functioning web server through the Azure portal and then introduce you to how easy it can be to write Infrastructure as Code with Tuono in a format that is natural to read with terminology you already know. Each article in the series will include the Tuono code to allow you to try it for yourself in our Community Edition.
We will start this series by creating a virtual network through the Azure Portal which is the groundwork that allows Azure resources to communicate with each other.
How do I create a Resource Group in the Azure Portal?
Our first step is to create a resource group in which we will be placing our manually created objects in. You can navigate to a specific resource page in the side blade or search for specific resources using the Search bar in the Azure portal.
Navigate to the Resource Groups page in the Portal and click “Add”.
Add a name to your resource group as well as Region and click “Next: Tags > ” to place identifiers on your resources or “Review + create”.
Once you have manually verified the details of your resource group click “Create”
How do I create a Virtual Network and a Subnet in the Azure Portal?
Now that you have created your resource group let’s create a Virtual Network by navigating to the Virtual Networks page by the side blade or using the search like we did previously when creating a resource group.
Select the Resource Group you created and assign the Virtual Network a name then click “Next: IP addresses” to customize the default subnet and IPv4 address space or take the defaults by clicking “Review + create”.
Click “Create” to deploy the new Virtual Network
This leaves us with a virtual network and subnet.
How do I build network infrastructure with Tuono?
Now let’s take a look at how we can turn code into infrastructure with Tuono by creating a Virtual Network like we did manually through the Azure portal.
location: region: my-region: country: USA area: northwest folder: azure-walkthrough: region: my-region
Define the network range.
networking: network: vnet-walkthrough: range: 10.0.0.0/16 public: true
Lastly, we create a subnet that we will use for our webserver.
subnet: subnet-walkthrough: range: 10.0.0.0/24 network: vnet-walkthrough
With these pieces of a Tuono Blueprint we create a resource group, assign a Virtual Network and associate a specific subnet!
In the next part of this series we will look at how to create a firewall and associate network security groups to harden our network interface by specifying only the ports we need to open for our web service.
Our complete Blueprint currently looks like the following and when applied to an Environment through the Tuono portal it forms a groundwork of communication for future resources.
# # This is an example blueprint that demonstrates the creation of an Azure webservice # --- location: region: my-region: country: USA area: northwest folder: azure-walkthrough: region: my-region networking: network: vnet-walkthrough: range: 10.0.0.0/16 public: true subnet: subnet-walkthrough: range: 10.0.0.0/24 network: vnet-walkthrough
Interested in turning code into infrastructure? Tuono’s “infrastructure as code” platform automates the deployment and ongoing management of web servers and many other Azure infrastructure objects. Our free Community Edition makes it easy to try and experience how Tuono’s complete automation platform enables you to quickly and confidently build repeatable infrastructure in Azure.