Blocked all ports on Linux Azure VM

Oleg Salnikov 5 Reputation points
2023-02-14T15:21:43.36+00:00

Good afternoon, I accidentally blocked all ports through the ufw firewall. There is no access to the control panel, is it possible to somehow bypass the firewall, or reboot the VM. Tech support doesn't help.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,983 questions
Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
319 questions
Microsoft Intune Linux
Microsoft Intune Linux
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Linux: A family of open-source Unix-like operating systems.
41 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. vipullag-MSFT 23,731 Reputation points Microsoft Employee
    2023-02-15T02:25:06.5333333+00:00

    Hello Oleg Salnikov

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    You can try and see if resetting the network interface using the Azure portal helps here.

    1. Log in to the Azure portal and go to your VM's page.
    2. Click on "Networking" on the left-hand side menu.
    3. Under "Network Interfaces", click on the name of the network interface associated with your VM.
    4. In the network interface page, click on "IP configurations" under the "Settings" section.
    5. Click on the name of the IP configuration associated with your VM.
    6. Under the IP configuration page, toggle the "Public IP address" setting to "Disabled" and then back to "Enabled".
      Create a new IP as shown below:

    User's image

    Save your changes.

    Note: This will reset the network interface and assign a new public IP address to your VM, which should allow you to access it again. This will also reset any custom network settings you may have had on the VM.

    If this approach of resetting the network interface does not work, or if you need to recover data from the VM, you have to take a path of recovery services to restore the VM to a previous state.

    Hope this helps.

    If you need further help on this, tag me in a comment.

    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more