Skip to content

Allow or Deny external computer to access Azure VM

About:

Give access from a computer in the office to azure vm.

 

 

Example:

You want to copy files between any computer and azure vm.

You will need to have public IP address (of the computer) connecting to the azure vm.

 

 

Steps:

  • You will need the public IP address of the office computer.
  • If the environment has a static public IP address, on the office computer do that following:
    • Open browser
    • Search for “what is my ip “
    • Google 
what is my ip 
C) Maps Shopping 
Q All @ Videos 
About 3,100.000000 results (0.32 seconds) 
What's my IP 
202.59.40.243 
Your public IP address 
Learn more about IP addresses 
Images 
More
  • Login to azure portal. Portal.azure.com
  • Go to virtual machine
  • Azure services 
Create a 
resource 
Resources 
Search resources, services, end docs (G 
O 
C 
Connections 
Virtual 
machines 
Manageme 
Recent 
Name 
Favorite 
RDHTC-DEV-VM-nsg

 

  • Click on the VM you want to give access to
  • Name 
HTC-COM-VM 
RDHTC-DEV-VM 
Type 
Virtual machine 
Virtual machine

 

  • Go to networking
  • P Search (Ctrl+/) 
Overview 
Activity log 
PA Access control (IAM) 
Tags 
Diagnose and solve problems 
Settings 
Networking 
Connect 
Windows Admin Center 
(preview) 
Disks 
Attach network interface Detach networ; 
rdhtc-dev-vm96 
IP configuration O 
rdhtc-dev-vm97 
ipconfigl (Primary) 
Network Interface: rdhtc-dev-vm96 
Virtual network/subnet: RD-HTC-RG-vnet/default 
Inbound port rules Outbound port rules 
Network security group RDHTC-DEV-VM r 
Impacts O subnets, 1 nenvork interfaces 
Priority 
Name

  •  
  • Click on “Add inbound port rule”
  • Disabled 
i.227.178 
i.227.178 
Destination 
Any 
Any 
Any 
Any 
Add inbound port rule 
Action 
9 Allow 
9 Allow 
9 Allow 
9 Allow

 


  •  
  • Source
    • Choose “IP Addresses”
  • Source IP Address/CIDR range
    • Enter the public ip address of the office computer
  • Source port range
    • Use *
  • Destination
    • Any
  • Service
    • Custom
  • Destination Port Ranges
    • Here you specify the service you want to allow access to:
      • Ftp
        • Type 21
      • Sftp
        • Type 22
      • RDP
        • 3389
      • SMB (to copy files between shared folders)
        • 445
      • And so on.
  • Protocol
    • Any
  • Action
    • Allow
      • To allow the connection
    • Deny
      • To deny the connection
  • Click Add
    • The rule will take time to be in effect.
      • Usually wait minimum 2 hours.

 

 

 

Add inbound security rule 
RDHTC-DEV-VM-nsg 
Source O 
IP Addresses 
Source IP addresses/ClDR ranges* O 
10.0.0.0/24 or 
Source port ranges* O 
Destination O 
Any 
Service O 
Custom 
Destination port ranges* O 
x 
Protocol 
@ Any 
C) cp 
C) ICMp 
Action 
@ Allow 
O Deny 
Priority* O 
Name * 
8080 
Description 
Add 
Cancel