An Azure service that is used to provision Windows and Linux virtual machines.
Hey Tucker, it’s great that you can still hit the serial console—that tells us your VM is up and SSHd is likely running, so a “Connection timed out” really points to something in the network path. Resizing sometimes leaves the NIC in a weird state. Here’s a targeted plan:
- Reset the NIC • CLI:
az vm repair reset-nic --resource-group <RG> --name <VMName> --subscription <SubID>• Portal:- VM → Networking → select the NIC → IP configurations
- Switch Private IP from Dynamic to Static (choose a free IP)
- Let the VM restart, confirm SSH connectivity, then you can revert to Dynamic if you like
- Run IP Flow Verify (Network Watcher) • Portal → Network Watcher → IP Flow Verify • VM: your Linux VM • Direction: Inbound, Protocol: TCP, Local port: 22, Remote IP: your client IP • This tells you if an NSG rule is blocking or allowing the traffic.
- Run Connection Troubleshoot (Network Watcher) • Network Watcher → Connection troubleshoot • Source: your VM, Destination: your client IP, Port 22, Protocol TCP • You’ll get a hop-by-hop path analysis and see exactly where packets drop.
- Check Effective Routes (Next Hop) • Network Watcher → Next hop • Select your VM’s NIC, enter your client IP as destination • Verify the next hop is “Internet” (or your expected gateway).
- Confirm SSHd inside the VM From the serial console or Run Command:
sudo systemctl status sshdsudo ss -tlnp | grep :22If SSHd isn’t listening, start/enable it:sudo systemctl start sshd && sudo systemctl enable sshd
If after Step 1 SSH still times out but the NSG shows “Allow,” then we know it’s truly a NIC or routing issue. Please share the results from the IP Flow Verify and Connection Troubleshoot tools so we can pinpoint where it’s getting dropped.
Hope this helps get you back on SSH quickly!
Reference list
• Reset NIC on Linux VM after resize:
• Quick SSH troubleshooting:
https://docs.microsoft.com/azure/virtual-machines/troubleshooting/troubleshoot-ssh-connection
• IP Flow Verify overview:
https://learn.microsoft.com/azure/network-watcher/ip-flow-verify-overview
• Connection troubleshoot (path analysis):
• Next hop (effective routes):
• Use the Azure VM serial console:
Note: This content was drafted with the help of an AI system. Please verify the information before relying on it for decision-making.