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 of the Bastion Host.
Name or ID of the Azure public IP. The SKU of the public IP must be Standard.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual network. It must have a subnet called AzureBastionSubnet.
Optional Parameters
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
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 of the Bastion Host.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az network bastion list
List all Azure bastion host machines.
az network bastion list [--query-examples]
[--resource-group]
[--subscription]
Optional Parameters
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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
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 of the Bastion Host.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
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.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.