Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

NSG Creation

$
0
0

I am trying to create two rules following the link https://docs.microsoft.com/en-in/azure/virtual-network/virtual-networks-create-nsg-arm-ps.

I have created two rules $rule1 and $rule2 which are inbound web rule and rdp rule.

But when i try to run the command 

nsg = New-AzureRmNetworkSecurityGroup -ResourceGroupName pallabrg -Location southeastasia
 -Name "NSGFrontEnd1" -SecurityRules $rule1,$rule2, only the NSG-FrontEnd NSG gets created but the rules don't get attached to the NSG.

-Name : The term '-Name' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify 
that the path is correct and try again.
At line:2 char:2
+  -Name "NSGFrontEnd1" -SecurityRules $rule1,$rule2
+  ~~~~~
    + CategoryInfo          : ObjectNotFound: (-Name:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Can anyone tell me what is the issue here. It just throws me an error


Pallab Chakraborty


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>