Azure Classroomnotes 30/Dec/2021

Activity 1: Lets create a virtual network using ARM Template contd

  • Order of deploying resources in ARM Template:
  • When deploying some resources, you may need to make sure some resources exist before other resources
  • In the example which we have dealt, the virtual network should exist before we create a subnet.
  • You can establish this relationship by making one resource as dependent on other resource, which can be done by dependsOn Refer Here
  • Depends on function accepts resource Id of the function which can be generated using resourceId function Refer Here
  • For the fix which we have done in last session
    Preview
  • Now lets also add the depends on between subnets to create subnets in the order
  • Refer Here for the changes
  • Now Execute the deployment
    Preview
  • In the template we have created multiple subnets by creating resources defintions, it would be good if we can have some kind of iteration. Azure Provides Resource iteration by using copy Refer Here
  • Refer Here for the changes done
  • Lets make our variables with different network name and subnet name.
  • Refer Here for the changes made
  • Now lets try to create a network security group which opens all the incoming connections on port 22, 80 and allows everything for outgoing traffic
  • Manual Steps
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
  • Exercise: Try to Create this from ARM Template
  • Default Outbound rules are enough.

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
Social Network Widget by Acurax Small Business Website Designers

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