Share via

Creating a new Bastion - Failed to deploy

Josie L 80 Reputation points
2026-03-25T21:25:27.6066667+00:00

Created a VM, and I am trying to secure it with Bastion. I believe all looks good, but when trying to deploy, I get "Failed to create new Bastion".

Azure Bastion
Azure Bastion

An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.


Answer accepted by question author
  1. Ganesh Patapati 11,915 Reputation points Microsoft External Staff Moderator
    2026-03-31T09:36:14.0366667+00:00

    Hello Josie Lewis

    We went around Bastion and used a virtual network connection.

    Firstly,

    1. Dedicated subnet requirement The virtual network must contain a subnet named exactly AzureBastionSubnet. The subnet name is not configurable and must be created explicitly before deployment. Additionally, the subnet must be at least /26 in size. Smaller subnets are not supported and will cause deployment failures. Microsoft docs: Azure Bastion Deployment and configuration issues
    2. No NSG or route table on AzureBastionSubnet The AzureBastionSubnet must not have a Network Security Group (NSG) or a user‑defined route (UDR) associated with it. Azure Bastion manages its own connectivity and attaching NSGs or routes to this subnet is not supported.
    3. Azure Bastion requires a Standard Public IP address. If the subscription has reached the Public IP quota limit, Bastion deployment will fail. Microsoft explicitly lists subscription limits and quotas as a common cause of Bastion deployment failures.
    4. Forced tunneling is not supported Azure Bastion does not support forced tunneling scenarios (for example, advertising 0.0.0.0/0 via VPN or ExpressRoute). Bastion requires direct connectivity to Azure control plane endpoints, and forced routing can prevent successful deployment.
    5. Same region requirement The Bastion host must be deployed in the same virtual network and region as the target virtual machine. Region mismatches can result in deployment or visibility issues.
    6. Try via CLI for clearer errors
         az group create --name TestRG1 --location eastus
         
         az network vnet create --resource-group TestRG1 --name VNet1 --address-prefix 10.1.0.0/16 --subnet-name default --subnet-prefix 10.1.0.0/24
         
         az network vnet subnet create --name AzureBastionSubnet --resource-group TestRG1 --vnet-name VNet1 --address-prefix 10.1.1.0/26
         
         az network public-ip create --resource-group TestRG1 --name VNet1-ip --sku Standard --location eastus
         
         az network bastion create --name VNet1-bastion --public-ip-address VNet1-ip --resource-group TestRG1 --vnet-name VNet1 --location eastus --sku Basic
         
      
      How to deploy Bastion with Azure CLI

    Should there be any follow-up questions or concerns, please let us know and we shall try to address them.

    If these answer your question, click "Upvote" and click "Accept Answer" which may be beneficial to other community members reading this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.