"默认" NSG? [英] "Default" NSG ?

查看:65
本文介绍了"默认" NSG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个与子网1相关联的VM("VM1"),该子网与我的一个NSG相关联,例如NSG1。现在我的期望是NSG1的入站/出站规则将应用于此VM。

I created a VM ("VM1") associated with a subnet1 which is associated with one of my NSG's, say NSG1. Now my expectation is that the inbound/outbound rules of NSG1 will apply to this VM.

然而,我注意到,当创建此VM时,"默认"是出现NSG,它需要"Servername"-nsg。并且看起来这个NSG的入站/出站规则对我的VM而不是NSG1有效。对于例如NSG1设置为
允许RDP,其中"默认"为NSG不是,我不能RDP。

However, I noticed that when this VM is created, a "default" NSG appears, and it takes the for "Servername"-nsg. And it appears that the inbound/outbound rules of this NSG are in effect for my VM, not of NSG1. For e.g. NSG1 is set to allow RDP, which the "default" NSG is not, and I cannot RDP.

我想帮助理解这个"默认"的含义。 nsg是它来自哪里,如果可能的话,我如何防止创建它。我在文档中没有看到与此相关的任何内容。

I wanted help in understanding what this "default" nsg is, where it's coming from, and how I can prevent if from being created, if possible. I did not see anything related to this in the documentation.

推荐答案

您好, 

Hi, 

基本上,您可以将NSG与您的VM的子网和NIC相关联。

Basically, you can associate NSG to subnet and NIC of your VM. 

在您的情况下,您需要将默认NSG与VM的NIC取消关联,然后将NSG1与NIC关联以实现所需的配置。 

In your case, you need to disassociate your default NSG from your VM's NIC and then associate your NSG1 to the NIC to achieve desired configuration. 

这是一篇关于NSG的博客,可以帮助您了解它的工作原理:https://blogs.msdn.microsoft.com/igorpag/2016/05/ 14 / azure-network-security-groups-nsg-best-practices-and-lessons-learned /

Here is a blog about NSG which helps you understand how it works: https://blogs.msdn.microsoft.com/igorpag/2016/05/14/azure-network-security-groups-nsg-best-practices-and-lessons-learned/

------------------ -------------------------------------------------- ---------------------------------------

如果您发现此帖子有帮助,请给它一个"有用的"投票。 

如果答案有帮助,请记得将答案标记为答案。


这篇关于"默认" NSG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆