This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install xrdp and related packages | |
| sudo apt update | |
| sudo apt install -y xrdp | |
| # Configure xrdp to use vsock for Hyper-V | |
| sudo sed -i 's/port=3389/port=vsock:\/\/-1:3389/g' /etc/xrdp/xrdp.ini | |
| # Allow any user to start X sessions | |
| sudo sed -i 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # # Setup | |
| # PREFIX=jrtest-lb | |
| # REGION=eastus | |
| # Create Resource Group | |
| az group create --name $PREFIX --location $REGION | |
| # Create VNet | |
| az network vnet create --resource-group $PREFIX --name $PREFIX-vnet --address-prefix 10.1.0.0/16 | |
| az network vnet subnet create --resource-group $PREFIX --vnet-name $PREFIX-vnet --name $PREFIX-sub-a --address-prefixes 10.1.0.0/24 |