SOLVED

Can Others Connect to my VM

%3CLINGO-SUB%20id%3D%22lingo-sub-140646%22%20slang%3D%22en-US%22%3ECan%20Others%20Connect%20to%20my%20VM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140646%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20there%20a%20way%20to%20configure%20one%20of%20my%20VMs%20so%20a%20friend%20of%20mine%20could%20use%20RDP%20and%20connect%20to%20it%3F%26nbsp%3B%20Just%20curious%20to%20know%20this.%26nbsp%3B%20I%20was%20thinking%20I%20would%20create%20the%20VM%20using%20my%20account.%26nbsp%3B%20Send%20my%20friend%20the%20RDP%20file%20for%20that%20VM.%26nbsp%3B%20Maybe%20I%20need%20to%20give%20my%20friend%20permissions%20so%20they%20could%20login.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20time.%3C%2FP%3E%0A%3CP%3ECharles%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-140646%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-140691%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20Others%20Connect%20to%20my%20VM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140691%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20much%20Vineet!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-140690%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20Others%20Connect%20to%20my%20VM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140690%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20so%20much%20Ray.%26nbsp%3B%20I%20can't%20wait%20to%20test%20this%20with%20my%20friend.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-140685%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20Others%20Connect%20to%20my%20VM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140685%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20Ray%20mentioned%2C%20you%20can%20do%20this.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20try%20if%20you%20can%20secure%20it%20using%20Network%20Security%20Group.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-networks-create-nsg-arm-pportal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-networks-create-nsg-arm-pportal%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheck%20if%20your%20friend%20has%20a%20static%20IP%2C%20then%20allow%20access%20only%20from%20his%20IP%20address%20and%20block%20all%20other%20ports.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20seen%20issues%20if%20internet%20access%20is%20all%20open%20on%20the%20VM%2C%20it%20can%20get%20compromised.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-140680%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20Others%20Connect%20to%20my%20VM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140680%22%20slang%3D%22en-US%22%3E%3CP%3ENo%20problem.%26nbsp%3B%20Set%20up%20a%20.rdp%20file%20using%20mstsc%2C%20save%20locally%2C%20and%20send.%20Or%20connect%20via%20the%20portal%20and%20save%20the%20.rdp%20file.%26nbsp%3B%20Edit%20the%20file%20for%20your%20friend's%20credentials%2C%20assuming%20you%20have%20created%20a%20local%20account%20for%20him%2Fher.%26nbsp%3B%20Domain%20account%20if%20your%20VM%20belongs%20to%20a%20domain.%26nbsp%3B%20On%20the%20VM%2C%26nbsp%3B%20authorize%20your%20friend's%20account%20for%20remote%20access.%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi Everyone:

 

Is there a way to configure one of my VMs so a friend of mine could use RDP and connect to it?  Just curious to know this.  I was thinking I would create the VM using my account.  Send my friend the RDP file for that VM.  Maybe I need to give my friend permissions so they could login.

 

Thanks for your time.

Charles

4 Replies
Best Response confirmed by Charles Bradley (New Contributor)
Solution

No problem.  Set up a .rdp file using mstsc, save locally, and send. Or connect via the portal and save the .rdp file.  Edit the file for your friend's credentials, assuming you have created a local account for him/her.  Domain account if your VM belongs to a domain.  On the VM,  authorize your friend's account for remote access.  

Hi,

 

As Ray mentioned, you can do this.

 

However, try if you can secure it using Network Security Group.

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-pportal

 

Check if your friend has a static IP, then allow access only from his IP address and block all other ports.

 

I have seen issues if internet access is all open on the VM, it can get compromised.

 

Thanks,

Thanks so much Ray.  I can't wait to test this with my friend.

Thanks much Vineet!