az network bastion

Manage Azure bastion host.

Commands

az network bastion create

Create a Azure bastion host machine.

az network bastion delete

Delete a Azure bastion host machine.

az network bastion list

List all Azure bastion host machines.

az network bastion show

Show a Azure bastion host machine.

az network bastion create

Create a Azure bastion host machine.

az network bastion create --name
                          --public-ip-address
                          --resource-group
                          --vnet-name
                          [--location]
                          [--subscription]

Examples

Create a Azure bastion host machine. (autogenerated)

az network bastion create --location westus2 --name MyBastionHost --public-ip-address MyPublicIpAddress --resource-group MyResourceGroup --vnet-name MyVnet

Required Parameters

--name -n

Name of the Bastion Host.

--public-ip-address

Name or ID of the Azure public IP. The SKU of the public IP must be Standard.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vnet-name

Name of the virtual network. It must have a subnet called AzureBastionSubnet.

Optional Parameters

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az network bastion delete

Delete a Azure bastion host machine.

az network bastion delete --name
                          --resource-group
                          [--subscription]

Examples

Delete a Azure bastion host machine. (autogenerated)

az network bastion delete --name MyBastionHost --resource-group MyResourceGroup

Required Parameters

--name -n

Name of the Bastion Host.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az network bastion list

List all Azure bastion host machines.

az network bastion list [--query-examples]
                        [--resource-group]
                        [--subscription]

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az network bastion show

Show a Azure bastion host machine.

az network bastion show --name
                        --resource-group
                        [--query-examples]
                        [--subscription]

Examples

Show a Azure bastion host machine (autogenerated)

az network bastion show --name MyBastionHost --resource-group MyResourceGroup

Required Parameters

--name -n

Name of the Bastion Host.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.