Virtual Machine Inbound RDP Rule disappears

Karl Swierenga 45 Reputation points Microsoft Employee
2023-08-04T21:59:43.9+00:00

I create a Network Security Group inbound port rule to give RDP access to my ip address. After a few minutes this rule disappears. Does anyone know why this is happening?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,678 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bhardwaj, Rajeev 110 Reputation points
    2023-08-05T02:38:12.92+00:00

    Are you trying this in free tier account ?

    If you are trying in organization account, it can be happen due to defined policy/rules. Apart form it, please check the Azure Activity Logs to see if there are any entries related to the removal of the NSG rule. This could provide insights into what's causing the change.

    0 comments No comments

  2. Prrudram-MSFT 28,146 Reputation points
    2023-08-07T06:28:53.6+00:00

    Hello @Karl Swierenga

    It's possible that an automated process or script is deleting the Network Security Group (NSG) rule. Azure provides several automation tools that can be used to manage resources, including NSG rules.

    To troubleshoot the issue, I would recommend checking the following:

    • Check if there are any automation scripts or processes that are deleting the NSG rule. This could include Azure Automation, Azure Functions, or other custom scripts.
    • Check the activity logs in the Azure portal to see if there are any events related to the deletion of the NSG rule. This can help you identify if the rule is being deleted by an automated process or by a user.
    • Check if there are any policies or initiatives in place that could delete the NSG rule. Azure Policy and Azure Security Center can be used to enforce compliance and security policies across your Azure environment.
    • Check if there are any other users or administrators who have access to the NSG and could be deleting the rule.

    If you are unable to identify the root cause of the issue, I would recommend opening a technical support case with Microsoft Azure support. They can help you troubleshoot the issue and provide guidance on how to resolve it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.