CmdID / az / az network
az network bastion
Manage Azure Bastion host machines. Azure CLI extensions reference
9 commands 4 options Its page in the Azure CLI extensions reference
Commands
createCreate the specified Bastion Host.deleteDelete the specified Bastion Host.listList all Bastion Hosts in a resource group.rdpRDP to target Virtual Machine using Tunneling from Azure Bastion.showGet the specified Bastion Host.sshSSH to a virtual machine using Tunneling from Azure Bastion.tunnelOpen a tunnel through Azure Bastion to a target virtual machine.updateUpdate the specified Bastion Host.waitPlace the CLI in a waiting state until a condition is met.Options
--name, -nName of the bastion host.--resource-portResource port of the target VM to which the bastion will connect.--target-ip-addressIP address of target Virtual Machine.--target-resource-idResourceId of the target Virtual Machine.