Ubuntu VM on Azure completely unresponsive after CI/CD pipeline run, even after redeployment

Mr Hava 0 Points de réputation
2024-08-25T15:24:18.58+00:00

I recently created a new Ubuntu VM on Azure and successfully accessed it via SSH. I then ran a CI/CD pipeline that made three connections to the VM (for frontend, backend, and one other connection). After the pipeline completed, I can no longer access the VM via SSH, and even pinging the VM's IP address fails. The issue persists even after redeploying the VM.

Details:

  • New Ubuntu 24.04 LTS VM on Azure
  • Initially, SSH access was working fine
  • NSG rule allows SSH (port 22) from any IP
  • CI/CD pipeline (using GitHub Actions) connected successfully
  • After pipeline completion, all connectivity to VM lost (SSH and ping)
  • VM status in Azure portal shows as running
  • VM agent status is reported as ready
  • Redeployment of the VM did not resolve the issue
  • Ping to the VM's IP address does not return any response, despite the VM showing as started

Steps Taken:

  1. Verified VM is shown as running in Azure portal
  2. Checked NSG rules - SSH still allowed
  3. Attempted to access via Azure Serial Console
  4. Reviewed CI/CD logs for potential network configuration changes
  5. Redeployed the VM, but the issue persists

Questions:

  1. What could cause a VM to become completely unresponsive after a CI/CD run, even surviving a redeployment?
  2. Are there any Azure-specific networking issues that might lead to this situation?
  3. How can I troubleshoot network connectivity when the VM appears to be running but is completely unresponsive?
  4. What additional diagnostics or logs should I check to identify the root cause?
  5. Could this be related to a broader Azure networking issue, and if so, how can I verify this?

Any insights, suggestions, or similar experiences would be greatly appreciated. Thank you!

Azure
Azure
Plateforme et infrastructure de cloud computing pour la génération, le déploiement et la gestion d’applications et de services à travers un réseau mondial de centres de données gérés par Microsoft.
251 questions
0 commentaires Aucun commentaire
{count} votes

1 réponse

Trier par: Le plus utile
  1. Nina Kalenderska (Concentrix International) 275 Points de réputation Fournisseur Microsoft
    2024-08-26T10:01:04.46+00:00

    Bonjour,

    Merci d'avoir sollicité la communauté Q&A France.

    Suivez les étapes de dépannage décrites dans les articles suivants:

    Troubleshoot SSH connections to an Azure Linux VM that fails, errors out, or is refused

    Detailed SSH troubleshooting steps for issues connecting to a Linux VM in Azure

    Cordialement,

    Nina

    1 personne a trouvé cette réponse utile.

Votre réponse

Les réponses peuvent être marquées comme réponses acceptées par l’auteur de la question, ce qui aide les utilisateurs à savoir que la réponse a résolu le problème de l’auteur.