Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.66 KB

File metadata and controls

49 lines (33 loc) · 1.66 KB

Setting up WSL

There are numerous guides to setting up WSL, and this is not a comprehensive guide. Instead this might help you setup the basics.

If you are using Docker Desktop

To enable Developing inside a Container you must configure the integration between Docker Desktop and WSL on your machine.

  1. Launch Docker Desktop
  2. Open Settings > General. Make sure the *Use the WSL 2 based engine" is enabled.
  3. Navigate to Settings > Resources > WSL INTEGRATION.
    • Ensure *Enable Integration with my default WSL distro" is enabled.
    • Enable the Ubuntu-18.04 option.
  4. Select Apply & Restart

Configure Git in Ubuntu WSL environment

The next step is to configure Git for your Ubuntu WSL environment. We will use the bash prompt from the previous step to issue the following commands:

Set Git User Name and Email

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

Set Git UseHttps

git config --global credential.useHttpPath true

Configure Git to use the Windows Host Credential Manager

git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe"

Install Azure CLI On WSL

In your Ubuntu 18.04(WSL) terminal from the previous step, follow the directions here to install Azure CLI.

Install Azure CLI and authorize:

az login
az account set  --subscription="<your_subscription_guid>"
az account show