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.
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