network-security-groups

Getting list of NSG and corresponding Subnet or NIC

狂风中的少年 提交于 2021-02-10 11:43:30
问题 Thanks in advance. I'm working on Azure PowerShell Script which will get all the NSG and finds whether it is attached to NIC or Subnet and give the name of the same in CSV. I'm stuck in parsing the NSG as it has property SubnetsText which outputs the data in below format. I'm trying to parse it using substring method but it did not work. Anybody tried this before? [ { "TapConfigurations": [], "HostedWorkloads": [], "Id": "/subscriptions/xxxx-xxxx-xxx-xxx-xxxxxx/resourceGroups/vm-test-group

can not access Azure VM thru port 8888

a 夏天 提交于 2019-12-11 19:37:20
问题 I set up an Azure ubuntu VM, created the network security group, added port 80 and 8888 rules. firewall is inactive. associated nsg to the subnet of the VM. Not able to remote connect to port 8888, but telnet to port 80 ok, and port 8080 also ok, even though there is no rule allowing 8080. I experimented and removed port 80 inbound rule, but still can access port 80. netstat -ant | grep 8888 shows one process is listening tcp 0 0 127.0.0.1:8888 0.0.0.0:* LISTEN It just appears that the access

Terraform Azure network security

风格不统一 提交于 2019-12-10 16:26:25
问题 I'm trying to configure a network security rule for a network security group in Azure via Terraform with multiple source addresses. Based on the documentation https://www.terraform.io/docs/providers/azurerm/r/network_security_rule.html However, I'm not able to get this to work nor can I find any examples for it: https://www.terraform.io/docs/providers/azurerm/r/network_security_rule.html#source_address_prefixes I get the Error: Error: azurerm_network_security_rule.test0: "source_address