Chi tiết các phương pháp Remote Access vào VM Azure 1. Remote Access vào VM Azure a) SSH/RDP (Traditional) # SSH vào Linux VM ssh -i ~/.ssh/mykey.pem azureuser@vm-public-ip # RDP vào Windows VM (sử dụng Remote Desktop Client) mstsc /v:vm-public-ip b) Azure Bastion (Recommended) bash # Tạo Azure Bastion az network bastion create \ --resource-group myRG \ --name myBastion \ --public-ip-address myBastionIP \ --vnet-name myVNet \ --location eastus c) VPN Gateway bash # Tạo Point-to-Site VPN az network vnet-gateway create \ --resource-group myRG \ --name myVPNGW \ --vnet myVNet \ --public-ip-addresses myGWIP \ --gateway-type Vpn \ --vpn-type RouteBased \ --sku VpnGw1 \ --vpn-gateway-generation Generation1 d) Run Command Extension bash # Chạy command từ xa mà không cần SSH az vm run-command invoke \ --resource-group myRG \ --name myVM \ --command-id RunShellScript \ --scripts "sudo apt update && sudo apt instal...
Microsoft System Engineer