Azure Classroomnotes 22/Oct/2022

Activity 3

  • Assume our webserver works on port 80 and 443, temporarily we would want to enable 22 port.
  • Manual Steps:
    • Create a resource group
    • Create a nsg
    • Add rules
  • Now try creating this from ARM template
  • To use the location of the resource group Refer Here
  • Created the template with web nsg in location of the resource group. Refer Here for the changes.
  • Now lets create an app nsg which opens
    • 22 port from anywhere
    • 8080 port from anywhere
  • Refer Here for the changes done
  • Create deployment.
  • Lets create a virtual network which allows users to pass the address spaces for vnet.
  • For values to be provided during deployment we can use parameters Refer Here
  • To use the parameter Refer Here
  • Refer Here for the changes
  • Now lets try to add 3 subnets. To do with iterations we can use copy function Refer Here
  • Refer Here for the changes with copy function to create subnets

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner