1

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

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

您能否让我知道为什么我会收到上述错误消息,任何人都可以建议我解决此问题。

4

1 回答 1

1

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

在将 Bastion 部署到虚拟网络后,屏幕将变为连接页面。

在此处输入图像描述

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

例如

# 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

创建和部署 Bastion 资源大约需要5 分钟。请耐心等待。

于 2020-09-02T06:17:00.493 回答