Hi Dennis Stolp , Thanks for posting your query on Microsoft Q&A.
To close the RDP port, you need to remove the security rule that allows incoming traffic to port 3389. You can do this by updating the ARM template to remove the security rule.
Here is an example of how you can remove the security rule:
Here is an example of how you can remove the security rule:
"securityRules": [
{
"name": "default-deny-3389",
"properties": {
"priority": 1001,
"access": "Deny",
"direction": "Inbound",
"destinationPortRange": "3389",
"protocol": "Tcp",
"sourcePortRange": "*",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*"
}
}
]
It is necessary to explicitly close or deny the port to ensure that the port is not open. If the port is still open, it could be due to a misconfiguration in the ARM template or a conflicting security rule. You may want to check the configuration of the security rules and ensure that there are no conflicting rules that allow incoming traffic to port 3389.
If you have any questions/concerns, please let me know in the" comments". I will be notified that way and can get back to you quickly. Thanks.