azlin listcommand times out- Error: "VM list operation timed out"
- Command takes longer than 30 seconds
If you have 100+ VMs, listing operations may take time even with caching.
Solution:
# List VMs in specific resource group
azlin list --rg your-specific-rg
# Use caching (enabled by default)
azlin listHigh latency to Azure regions can cause timeouts.
Check:
# Test Azure CLI connectivity
az account show
az vm list --output tableSolution:
- Use Azure Cloud Shell for better connectivity
- Check your network/VPN connection
- Try from a different network
Occasionally Azure APIs are slow.
Solution:
# Retry after a few minutes
azlin list
# Check Azure status: https://status.azure.comWithout cache, every list operation makes fresh API calls.
Check cache status:
ls -la ~/.azlin/vm_list_cache.jsonSolution:
- Ensure cache file exists and is readable
- Cache automatically updates every 5 minutes (mutable data) / 24 hours (immutable data)
As of PR #557, azlin uses these timeouts:
| Operation | Timeout | Reason |
|---|---|---|
| VM list | 30s | Handles large deployments |
| Public IP list | 30s | Batch retrieval of IPs |
| Resource group list | 30s | Cross-RG operations |
If timeouts persist after trying the above:
- Report the issue: https://github.com/rysweet/azlin/issues
- Include details:
- Number of VMs in resource group
- Your Azure region
- Network setup (VPN, corporate network, etc.)
- Error message
- Issue #556: Timeout after cache PR
- PR #557: Increased timeouts to 30s
- PR #553: Cache implementation