无法通过Azure堡垒通过虚拟机连接

问题描述

通过Azure Bastion连接到虚拟机时遇到一些问题。我收到以下错误

堡垒处于失败状态。请删除并重新创建它。

请让我知道为什么我收到上述错误消息,有人可以建议我解决此问题的方法。

解决方法

当Azure堡垒无法很好地进行配置或您正在删除堡垒服务(删除该服务需要几分钟)时,可能会发生错误。

将堡垒部署到虚拟网络后,屏幕将切换到连接页面。

enter image description here

在这种情况下,您可以删除失败的堡垒服务。我建议使用Azure PowerShellCLI重新创建Azure Bastion主机,以避免出现某些门户问题。

例如

# create an AzureBastionSubnet in your Azure VNet.
az network vnet create -g $RgName -n $VNetName  --address-prefix 10.0.0.0/16 --subnet-name AzureBastionSubnet  --subnet-prefix 10.0.0.0/24

# create a public IP address. The public IP address must be in the same region as the Bastion resource you are creating.
az network public-ip create -g $RgName -n $publicip --sku Standard

# create a bastion host in the same region as your VM
az network bastion create --name $name --public-ip-address $publicip --resource-group $RgName --vnet-name $VNetName --location $location

创建和部署堡垒资源大约需要 5分钟。请耐心等候。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...