The first command creates a network security rule configuration named rdp-rule, and then stores it in the $rule1 variable.
The second command creates a network security group using the rule in $rule1, and then stores the network security group in the $nsg variable.
The third command removes the network security rule configuration named rdp-rule from the network security group in $nsg.
The forth command saves the change.
Parameters
-AcquirePolicyToken
Acquire an Azure Policy token automatically for this resource operation.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.