Azure Classroom notes 26/Dec/2023

Activity 3: Create a virtual network with 3 subnets in ARM Template

  • ARM Template with 3 subnets
{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "vnet-address": {
            "type": "string",
            "metadata": {
                "description": "description"
            }, 
            "defaultValue": "10.100.0.0/16"
        }
    },
    "functions": [],
    "variables": {},
    "resources": [
        {
            "name": "test",
            "type": "Microsoft.Network/virtualNetworks",
            "apiVersion": "2023-04-01",
            "location": "[resourceGroup().location]",
            "tags": {
                "displayName": "test"
            },
            "properties": {
                "addressSpace": {
                    "addressPrefixes": [
                        "[parameters('vnet-address')]"
                    ]
                },
                "subnets": [
                    {
                        "name": "web",
                        "properties": {
                            "addressPrefix": "10.100.0.0/24"
                        }
                    },
                    {
                        "name": "business",
                        "properties": {
                            "addressPrefix": "10.100.1.0/24"
                        }
                    },
                    {
                        "name": "data",
                        "properties": {
                            "addressPrefix": "10.100.2.0/24"
                        }
                    }
                ]
            }
        }
    ],
    "outputs": {}
}

Activity 4: Realize the below architecture in ARM

  • Architecture
    Preview
  • Functions: Refer Here
  • Refer Here for the changes done to create a vnet with 3 subnets
    Preview
    Preview
  • Now lets add network security groups Refer Here
    • web: open 22,80 port from anywhere
    • business, data: default security groups (allow all internal communication)
  • Refer Here for the changes done to add nsgs
    Preview
  • Lets create a network interface for web vm Refer Here for the changes done
  • Now we need to add the linux vm in web subnet

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube