COnfiguring NSG rule using ARM template

sns 9,226 Reputation points
2022-12-08T06:38:57.223+00:00

I want to achieve that particular VM should be accessible only from my laptop not from not anywhere else
for this I want to use Azure ARM,

I have been trying but failing.

I configured the NSG inbound rule to do so with source as my laptop IP and by allowing RDP ( 3389 port) ,but when I test it is failing. Please suggest

Thanks

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,138 questions
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 22,776 Reputation points Microsoft Employee
    2022-12-13T19:39:28.1+00:00

    @sns ,
    Thank you for providing additional details here.

    I see that you have added the Private IP address 192.168.175.1 as the source IP address in your NSG rule. RDP connections work over the internet so unless you have a Point to site VPN set-up, the RDP communication will take place using your local machine's Public IP address and not the private IP mentioned above.

    If you are not using a Point to site VPN you will need to add the Public IP of your local machine as the source IP of the NSG rule.

    Alternate solution here will be to use Azure Bastion with Native Client support and using AAD you can restrict the access to the Virtual Machine.

    Please let me know if you have any additional questions. Thank you!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful