You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network-manager/how-to-block-network-traffic-powershell.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Before you start configuring security rules, confirm the following steps:
27
27
28
28
## Create a SecurityAdmin configuration
29
29
30
-
1. Create a new SecurityAdmin configuration with [New-AzNetworkManagerSecurityAdminConfiguration](/powershell/module/az.network/new-aznetworkmanagersecurityadminconfiguration).
30
+
1. Create a new SecurityAdmin configuration with New-AzNetworkManagerSecurityAdminConfiguration.
31
31
32
32
```azurepowershell-interactive
33
33
$config = @{
@@ -38,7 +38,7 @@ Before you start configuring security rules, confirm the following steps:
1. Store network group to a variable with [Get-AzNetworkManagerGroup](/powershell/module/az.network/get-aznetworkmanagergroup).
41
+
1. Store network group to a variable with Get-AzNetworkManagerGroup.
42
42
43
43
```azurepowershell-interactive
44
44
$ng = @{
@@ -49,7 +49,7 @@ Before you start configuring security rules, confirm the following steps:
49
49
$networkgroup = Get-AzNetworkManagerGroup @ng
50
50
```
51
51
52
-
1. Create a connectivity group item to add a network group to with [New-AzNetworkManagerSecurityGroupItem](/powershell/module/az.network/new-aznetworkmanagersecuritygroupitem).
52
+
1. Create a connectivity group item to add a network group to with New-AzNetworkManagerSecurityGroupItem.
53
53
54
54
```azurepowershell-interactive
55
55
$gi = @{
@@ -65,7 +65,7 @@ Before you start configuring security rules, confirm the following steps:
65
65
$configGroup.Add($groupItem)
66
66
```
67
67
68
-
1. Create a security admin rules collection with [New-AzNetworkManagerSecurityAdminRuleCollection](/powershell/module/az.network/new-aznetworkmanagersecurityadminrulecollection).
68
+
1. Create a security admin rules collection with New-AzNetworkManagerSecurityAdminRuleCollection.
69
69
70
70
```azurepowershell-interactive
71
71
$collection = @{
@@ -78,7 +78,7 @@ Before you start configuring security rules, confirm the following steps:
1. Define the variables for the source and destination address prefixes and ports with [New-AzNetworkManagerAddressPrefixItem](/powershell/module/az.network/new-aznetworkmanageraddressprefixitem).
81
+
1. Define the variables for the source and destination address prefixes and ports with New-AzNetworkManagerAddressPrefixItem.
82
82
83
83
```azurepowershell-interactive
84
84
$sourceip = @{
@@ -101,7 +101,7 @@ Before you start configuring security rules, confirm the following steps:
101
101
$destinationPortList.Add("443”)
102
102
```
103
103
104
-
1. Create a security rule with [New-AzNetworkManagerSecurityAdminRule](/powershell/module/az.network/new-aznetworkmanagersecurityadminrule).
104
+
1. Create a security rule with New-AzNetworkManagerSecurityAdminRule.
105
105
106
106
```azurepowershell-interactive
107
107
$rule = @{
@@ -124,7 +124,7 @@ Before you start configuring security rules, confirm the following steps:
124
124
125
125
## Commit deployment
126
126
127
-
Commit the security configuration to target regions with [Deploy-AzNetworkManagerCommit](/powershell/module/az.network/deploy-aznetworkmanagercommit).
127
+
Commit the security configuration to target regions with Deploy-AzNetworkManagerCommit.
@@ -151,7 +151,7 @@ If you no longer need the security configuration, you'll need to make sure the f
151
151
152
152
### Remove security configuration deployment
153
153
154
-
Remove the security deployment by deploying a configuration with [Deploy-AzNetworkManagerCommit](/powershell/module/az.network/deploy-aznetworkmanagercommit).
154
+
Remove the security deployment by deploying a configuration with Deploy-AzNetworkManagerCommit.
Delete the security configuration with [Remove-AzNetworkManagerSecurityAdminConfiguration](/powershell/module/az.network/remove-aznetworkmanagersecurityadminconfiguration).
198
+
Delete the security configuration with Remove-AzNetworkManagerSecurityAdminConfiguration.
0 commit comments