Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Azure Bastion ExtensionNew to Visual Studio Code? Get it now.
Azure Bastion Extension

Azure Bastion Extension

taizod1024

|
4 installs
| (0) | Free
A VS Code extension for Azure Bastion
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Azure Bastion Extension

A VS Code extension for Azure Bastion

Features

  • Easily create SSH tunnels through Azure Bastion directly from VS Code
  • One-click connection from the status bar
  • Secure remote development environment with Azure CLI integration

Install

  1. Install Azure CLI and required extensions
    1. Open a terminal
    2. Install Azure CLI: winget install Microsoft.AzureCLI
    3. Install required extensions:
      • az extension add -n ssh
      • az extension add -n bastion
  2. Install the VS Code extension
    1. Open VS Code
    2. Install the Azure Bastion extension from the extensions marketplace

Configuration

  1. Edit your ~/.ssh/config file with the following structure:
    Host example
        HostName example.com
        Port 60022
    
  2. Configure the extension settings in VS Code (azure-bastion):
    • Azure Subscription ID: Your Azure subscription ID
    • Bastion Resource Name: Name of the Azure Bastion resource
    • Resource Group: The resource group containing the Bastion resource
    • Remote Port: Port on the target VM (default: 22 for SSH)
    • Usernames: List of SSH usernames for connection
    • Target VM Resource IDs: List of Azure VM resource IDs to connect to
    • Local Ports: List of local ports to bind tunnels (example: 60022)

Usage

  1. Click the Azure Bastion button in the status bar
  2. Select operation type
    • Tunnel
    • SSH
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft