Skip to content

Commit 80fe909

Browse files
authored
Merge pull request #88434 from johnlokerse/patch-1
Added formatting to pwsh-interactive code
2 parents 281c93f + a47e984 commit 80fe909

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

includes/vpn-gateway-connect-vm.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ You can connect to a VM that is deployed to your VNet by creating a Remote Deskt
1919

2020
```azurepowershell-interactive
2121
$VMs = Get-AzVM
22-
$Nics = Get-AzNetworkInterface | Where VirtualMachine -ne $null
22+
$Nics = Get-AzNetworkInterface | Where-Object VirtualMachine -ne $null
2323
24-
foreach($Nic in $Nics)
25-
{
24+
foreach ($Nic in $Nics) {
2625
$VM = $VMs | Where-Object -Property Id -eq $Nic.VirtualMachine.Id
2726
$Prv = $Nic.IpConfigurations | Select-Object -ExpandProperty PrivateIpAddress
2827
$Alloc = $Nic.IpConfigurations | Select-Object -ExpandProperty PrivateIpAllocationMethod
@@ -44,4 +43,4 @@ If you're having trouble connecting to a virtual machine over your VPN connectio
4443
4544
* If you can connect to the VM using the private IP address, but not the computer name, verify that you have configured DNS properly. For more information about how name resolution works for VMs, see [Name Resolution for VMs](../articles/virtual-network/virtual-networks-name-resolution-for-vms-and-role-instances.md).
4645
47-
* For more information about RDP connections, see [Troubleshoot Remote Desktop connections to a VM](/troubleshoot/azure/virtual-machines/troubleshoot-rdp-connection).
46+
* For more information about RDP connections, see [Troubleshoot Remote Desktop connections to a VM](/troubleshoot/azure/virtual-machines/troubleshoot-rdp-connection).

0 commit comments

Comments
 (0)