Azure Basics Part 3 – NSG

In Part 1 we created VNet and in Part 2 we talked about how to create new VM. Once your VM is deployed, it’s ready to be used for whatever purpose you have for it. But you’ll probably want some of VMs to be accessible from outside your VNet, especially if this VM is webserver with IIS role installed.

For this we need to configure NSG – Network Security Group. NSG contains a list of Access Control List (ACL) rules that allow or deny specific traffic on your VM in your VNet. NSG can be associated with either subnet in VNet or individual VM instance where subnet rule applies to entire subnet and individual rule applies to specific VM.

In this case we’ll talk about opening port 80 (http) so your webserver can be accessed over internet. I also got lot of questions about this specific subject (in person, e-mail, forums) as a lot of people have issue setting up HTTP in ARM.

First go to ‘Virtual Machines’ in Azure portal.

1

Select VM with IIS role from list of your VMs.

2

In new tile, select ‘Network Interfaces’.

3

Click on your network interface.

4

In new tile select ‘Network Security Group’.

5

Select security group to edit.

6

In new tile, select ‘Inbound security rules’.

7

Click ‘Add’ and wait for new tile to open.

8

You need to enter parameters for new rule. First enter name for your rule (‘http’ in this case but can be anything, I just find it easier to manage when name tells me what it’s about), set priority to ‘100’, Source to ‘Any’, leave service as ‘Custom’, set protocol to ‘Any’, enter 80 for port range and set action to allow. Finally click OK and wait for few seconds (this can vary but usually it’s created under 1 minute).

9

Once your rule is created, go to your VM overview page and check your Public IP address/ DNS name.

10

Enter your IP address to browser and here it is – your IIS server is accessible from internet and ready to be used.

11

Article by Mustafa Toroman

I’m System Engineer at Authority Partners. I love to test and explore new technologies. Have over 20 active MS certificates such as MCSA for Windows Server and SQL Server, MCSE Private Cloud, Data Platform, Business Intelliegence and Server Infrastracture. Lately most interested in BI and Azure solutions. MCT since 2012. From 2016 MVP for Microsoft Azure.

73 Comments


  1. Great blog you have here but I was wanting to know if you knew of any
    community forums that cover the same topics talked about in this article?
    I’d really like to be a part of group where I can get suggestions from
    other knowledgeable people that share the same interest.
    If you have any suggestions, please let me know. Many thanks!

  2. Thanks for another informative blog. I have a project that I’m just now working on, and I’ve been on the look out for such information.

  3. Thank you for sharing your thoughts. I truly appreciate your efforts and I
    will be waiting for your further write ups thanks once again.

  4. If some one wishes expert view concerning running a blog
    after that i advise him/her to pay a visit this weblog, Keep up the nice job.

  5. I blog frequently and I really thank you for
    your information. Your article has truly peaked my interest.
    I’m going to bookmark your website and keep checking for new details about once a week.

    I subscribed to your Feed too.

  6. I delight in, cause I found just what I was looking for.
    You have ended my four day long hunt! God Bless you man. Have a great
    day. Bye

  7. You saved me. I spent hours trying to figure it out. Who would thought just changeing from http to custom would fix it. Thank you!

  8. This is a excellent blog, would you be involved in doing an interview about just how you designed it? If so e-mail me!

  9. Very quickly this website will be famous among all blogging people, due to it’s fastidious articles or reviews.

  10. Hiya! I simply wish to give a huge thumbs up for the good information you will have right here on this post. I might be coming back to your blog for more soon.

  11. I really like your post. I will get back on your website in the next few days and i will promote it to my facebook group. I think most of our group member will like it. Thanks

  12. After study a few of the weblog posts in your website now, and I truly like your manner of blogging. I bookmarked it to my bookmark website checklist and shall be checking again soon.

  13. magnificent issues altogether, you just gained a emblem new reader. What may you recommend about your publish that you made some days ago? Any certain?

  14. Hi there, just became aware of your blog through Google, and found that it is really informative. I’m going to watch out for brussels. I will appreciate if you continue this in future. A lot of people will be benefited from your writing. Cheers!

  15. I’ve been having problems with this for few days now, read lot of posts and articles. None of it helped me!
    Finally I found answer on MSDN that pointed me to this blog. This tutorial actually works! Thank you very, very much!

  16. you are actually a good webmaster. The website loading pace is incredible. It sort of feels that you are doing any distinctive trick. Also, The contents are masterpiece. you’ve done a great process in this topic!

  17. I’m impressed, I must say. Truly rarely do I encounter a weblog that’s both educative and entertaining, and without a doubt, you’ve hit the nail on the head. Your notion is outstanding; ab muscles an element that there are not enough persons are speaking intelligently about. I’m happy i always found this at my search for something relating to this.

  18. This site is actually amazing. We constantly run into something new & diverse correct right here. Appreciate which data.

  19. You are very cool! I dont suppose I have read something similar to this before. So nice to search out somebody with authentic applying for grants this subject. I really appreciate starting this up. Your website is one area that is needed on the net. Totally a helpful project for bringing new things for the web!

  20. Just want to say your article is as surprising. The clarity to your post is simply excellent and that i could suppose you’re knowledgeable in this subject. Well with your permission let me to clutch your RSS feed to keep updated with approaching post. Thank you one million and please continue the enjoyable work.

  21. Intimately, the article is in reality the freshest on that valuable topic. I fit in with your conclusions and definitely will eagerly look forward to your coming updates. Simply just saying thanks will not just be acceptable, for the extraordinary lucidity in your writing. I will certainly ideal away grab your rss feed to stay abreast of any updates. De lightful work and also much success in your business endeavors!

  22. I like the valuable information you provide in your articles. I will bookmark your blog and check again here frequently. I am quite sure I’ll learn lots of new stuff right here! Best of luck for the next!

  23. I think this is one of the most significant info for me. And i am glad reading your article. But wanna remark on few general things, The site style is ideal, the articles is really nice : D. Good job, cheers

  24. Great post. I used to be checking constantly this blog and I’m inspired! Extremely useful info specially the ultimate part 🙂 I take care of such information a lot. I was looking for this certain info for a very lengthy time. Thank you and good luck.

Leave a Reply

Your email address will not be published. Required fields are marked *