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.
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.