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/nat-gateway/tutorial-hub-spoke-nat-firewall.md
+45-22Lines changed: 45 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -876,46 +876,67 @@ Traffic from the spoke through the hub must be allowed through and firewall poli
876
876
877
877
### [PowerShell](#tab/powershell)
878
878
879
+
Use [New-AzFirewallPolicyRuleCollectionGroup](/powershell/module/az.network/new-azfirewallpolicyrulecollectiongroup) to create a rule collection group.
Use [Set-AzFirewallPolicy](/powershell/module/az.network/set-azfirewallpolicy) to update the firewall policy.
930
+
Use [Set-AzFirewallPolicyRuleCollectionGroup](/powershell/module/az.network/set-azfirewallpolicyrulecollectiongroup) to update the rule collection group.
@@ -997,13 +1018,15 @@ Wait for the virtual machine to finishing deploying before proceeding to the nex
997
1018
998
1019
### [PowerShell](#tab/powershell)
999
1020
1000
-
Use [Get-Credential](/powershell/module/microsoft.powershell.security/get-credential) to create a credential object for the virtual machine.
1021
+
Use [Get-Credential](/powershell/module/microsoft.powershell.security/get-credential) to set a user name and password for the VM and store them in the `$cred` variable.
1001
1022
1002
-
```powershell
1003
-
# Create credential object
1023
+
```azurepowershell
1004
1024
$cred = Get-Credential
1005
1025
```
1006
1026
1027
+
> [!NOTE]
1028
+
> A username is required for the VM. The password is optional and won't be used if set. SSH key configuration is recommended for Linux VMs.
1029
+
1007
1030
Use [New-AzNetworkSecurityGroup](/powershell/module/az.network/new-aznetworksecuritygroup) to create a network security group.
0 commit comments