Skip to content

Commit 0532c43

Browse files
authored
Merge pull request #190214 from cherylmc/deploy
rewrite to add more features
2 parents 545b220 + dfb9404 commit 0532c43

File tree

4 files changed

+61
-28
lines changed

4 files changed

+61
-28
lines changed

articles/bastion/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
href: quickstart-host-portal.md
1212
- name: Tutorials
1313
items:
14-
- name: Deploy Bastion - Portal
14+
- name: Deploy Bastion with manual settings
1515
href: tutorial-create-host-portal.md
1616
- name: Concepts
1717
items:
Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,44 @@
11
---
2-
title: 'Create a Bastion host using Azure PowerShell | Microsoft Docs'
3-
description: Learn how to create an Azure Bastion host using PowerShell.
4-
services: bastion
2+
title: 'Deploy Bastion:PowerShell'
3+
description: Learn how to deploy Azure Bastion using PowerShell.
54
author: cherylmc
65
ms.service: bastion
76
ms.topic: how-to
8-
ms.date: 09/22/2021
7+
ms.date: 03/01/2022
98
ms.author: cherylmc
10-
# Customer intent: As someone with a networking background, I want to create an Azure Bastion host.
9+
# Customer intent: As someone with a networking background, I want to deploy Bastion and connect to a VM.
1110
ms.custom: ignite-fall-2021
1211
---
1312

14-
# Create an Azure Bastion host using Azure PowerShell
13+
# Deploy Bastion using Azure PowerShell
1514

16-
This article shows you how to create an Azure Bastion host using PowerShell. Once you provision the Azure Bastion service in your virtual network, the seamless RDP/SSH experience is available to all of the VMs in the same virtual network. Azure Bastion deployment is per virtual network, not per subscription/account or virtual machine.
15+
This article shows you how to deploy Azure Bastion using PowerShell. Azure Bastion is a PaaS service that's maintained for you, not a bastion host that you install on your VM and maintain yourself. An Azure Bastion deployment is per virtual network, not per subscription/account or virtual machine. For more information about Azure Bastion, see [What is Azure Bastion?](bastion-overview.md)
16+
17+
Once you deploy Bastion to your virtual network, you can connect to your VMs via private IP address. This seamless RDP/SSH experience is available to all the VMs in the same virtual network. If your VM has a public IP address that you don't need for anything else, you can remove it.
18+
19+
You can also deploy Bastion by using the following other methods:
1720

18-
Optionally, you can create an Azure Bastion host by using the following methods:
1921
* [Azure portal](./tutorial-create-host-portal.md)
2022
* [Azure CLI](create-host-cli.md)
21-
22-
[!INCLUDE [About SKUs](../../includes/bastion-sku-note.md)]
23+
* [ Quickstart - deploy with default settings](quickstart-host-portal.md)
2324

2425
## Prerequisites
2526

27+
### Azure subscription
28+
2629
Verify that you have an Azure subscription. If you don't already have an Azure subscription, you can activate your [MSDN subscriber benefits](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details) or sign up for a [free account](https://azure.microsoft.com/pricing/free-trial).
2730

31+
### Azure PowerShell
32+
2833
[!INCLUDE [PowerShell](../../includes/vpn-gateway-cloud-shell-powershell-about.md)]
2934

30-
> [!NOTE]
31-
> The use of Azure Bastion with Azure Private DNS Zones is not supported at this time. Before you begin, please make sure that the virtual network where you plan to deploy your Bastion resource is not linked to a private DNS zone.
32-
>
35+
> [!NOTE]
36+
> The use of Azure Bastion with Azure Private DNS Zones is not supported at this time. Before you begin, please make sure that the virtual network where you plan to deploy your Bastion resource is not linked to a private DNS zone.
37+
>
3338
34-
## <a name="createhost"></a>Create a bastion host
39+
## <a name="createhost"></a>Deploy Bastion
3540

36-
This section helps you create a new Azure Bastion resource using Azure PowerShell.
41+
This section helps you deploy Azure Bastion using Azure PowerShell.
3742

3843
1. Create a virtual network and an Azure Bastion subnet. You must create the Azure Bastion subnet using the name value **AzureBastionSubnet**. This value lets Azure know which subnet to deploy the Bastion resources to. This is different than a VPN gateway subnet.
3944

@@ -45,22 +50,35 @@ This section helps you create a new Azure Bastion resource using Azure PowerShel
4550
$vnet = New-AzVirtualNetwork -Name "myVnet" -ResourceGroupName "myBastionRG" -Location "westeurope" -AddressPrefix 10.0.0.0/16 -Subnet $subnet
4651
```
4752

48-
2. Create a public IP address for Azure Bastion. The public IP is the public IP address the Bastion resource on which RDP/SSH will be accessed (over port 443). The public IP address must be in the same region as the Bastion resource you are creating.
53+
1. Create a public IP address for Azure Bastion. The public IP is the public IP address the Bastion resource on which RDP/SSH will be accessed (over port 443). The public IP address must be in the same region as the Bastion resource you're creating.
54+
55+
The following example uses the **Standard SKU**. The Standard SKU lets you configure more Bastion features and connect to VMs using more connection types. For more information, see [Bastion SKUs](configuration-settings.md#skus).
4956

5057
```azurepowershell-interactive
5158
$publicip = New-AzPublicIpAddress -ResourceGroupName "myBastionRG" -name "myPublicIP" -location "westeurope" -AllocationMethod Static -Sku Standard
5259
```
5360

54-
3. Create a new Azure Bastion resource in the AzureBastionSubnet of your virtual network. It takes about 5 minutes for the Bastion resource to create and deploy.
61+
1. Create a new Azure Bastion resource in the AzureBastionSubnet of your virtual network. It takes about 10 minutes for the Bastion resource to create and deploy.
5562

5663
```azurepowershell-interactive
5764
$bastion = New-AzBastion -ResourceGroupName "myBastionRG" -Name "myBastion" -PublicIpAddress $publicip -VirtualNetwork $vnet
5865
```
59-
## Disassociate the VM public IP address
6066

61-
Azure Bastion does not use the public IP address to connect to the client VM. If you do not need the public IP address for your VM, you can disassociate the public IP address by using the steps in this article: [Dissociate a public IP address from an Azure VM](../virtual-network/ip-services/remove-public-ip-address-vm.md).
67+
## <a name="ip"></a>Disassociate VM public IP address
68+
69+
Azure Bastion doesn't use the public IP address to connect to the client VM. If you don't need the public IP address for your VM, you can disassociate the public IP address. See [Dissociate a public IP address from an Azure VM](../virtual-network/ip-services/remove-public-ip-address-vm.md).
70+
71+
## <a name="connect"></a>Connect to a VM
72+
73+
You can use any of the following articles to connect to a VM that's located in the virtual network to which you deployed Bastion. You can also use the [Connection steps](#steps) in the section below. Some connection types require the [Standard SKU](configuration-settings.md#skus).
74+
75+
[!INCLUDE [Links to Connect to VM articles](../../includes/bastion-vm-table.md)]
76+
77+
### <a name="steps"></a>Connection steps
78+
79+
[!INCLUDE [Links to Connect to VM articles](../../includes/bastion-vm-connect.md)]
6280

6381
## Next steps
6482

65-
* Read the [Bastion FAQ](bastion-faq.md) for additional information.
6683
* To use Network Security Groups with the Azure Bastion subnet, see [Work with NSGs](bastion-nsg.md).
84+
* To understand VNet peering, see [VNet peering and Azure Bastion](vnet-peering.md).

includes/bastion-subnet-size.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
---
22
author: cherylmc
33
ms.author: cherylmc
4-
ms.date: 07/02/2021
4+
ms.date: 03/01/2021
55
ms.service: bastion
66
ms.topic: include
77

88
---
9-
>[!IMPORTANT]
10-
>For Azure Bastion resources deployed on or after November 2, 2021, the minimum AzureBastionSubnet size is /26 or larger (/25, /24, etc.). All Azure Bastion resources deployed in subnets of size /27 prior to this date are unaffected by this change and will continue to work, but we highly recommend increasing the size of any existing AzureBastionSubnet to /26 in case you choose to take advantage of [host scaling](../articles/bastion/configure-host-scaling.md) in the future.
9+
> [!IMPORTANT]
10+
> For Azure Bastion resources deployed on or after November 2, 2021, the minimum AzureBastionSubnet size is /26 or larger (/25, /24, etc.). All Azure Bastion resources deployed in subnets of size /27 prior to this date are unaffected by this change and will continue to work, but we highly recommend increasing the size of any existing AzureBastionSubnet to /26 in case you choose to take advantage of [host scaling](../articles/bastion/configure-host-scaling.md) in the future.
1111
12-
13-
* The smallest subnet AzureBastionSubnet size you can create is /26. We recommend that you create a /26 or larger size to accommodate host scaling.
14-
* For more information about scaling, see [Configuration settings - Host scaling](../articles/bastion/configuration-settings.md#instance).
15-
* For more information about settings, see [Configuration settings - AzureBastionSubnet](../articles/bastion/configuration-settings.md#instance).
12+
* The smallest subnet AzureBastionSubnet size you can create is /26. We recommend that you create a /26 or larger size to accommodate host scaling.
13+
* For more information about scaling, see [Configuration settings - Host scaling](../articles/bastion/configuration-settings.md#instance).
14+
* For more information about settings, see [Configuration settings - AzureBastionSubnet](../articles/bastion/configuration-settings.md#instance).
1615
* Create the **AzureBastionSubnet** without any route tables or delegations.
1716
* If you use Network Security Groups on the **AzureBastionSubnet**, refer to the [Work with NSGs](../articles/bastion/bastion-nsg.md) article.

includes/bastion-vm-table.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
author: cherylmc
3+
ms.author: cherylmc
4+
ms.date: 03/01/2021
5+
ms.service: bastion
6+
ms.topic: include
7+
8+
---
9+
| Connect | Documentation|
10+
| --- | --- |
11+
| Windows - RDP | [Article](../articles/bastion/bastion-connect-vm-rdp-windows.md) |
12+
| Windows - SSH| [Article](../articles/bastion/bastion-connect-vm-ssh-windows.md) |
13+
| Linux - SSH| [Article](../articles/bastion/bastion-connect-vm-ssh-linux.md) |
14+
| Linux - RDP| [Article](../articles/bastion/bastion-connect-vm-rdp-linux.md) |
15+
| Scale Set | [Article](../articles/bastion/bastion-connect-vm-scale-set.md) |
16+
| Native client | [Article](../articles/bastion/connect-native-client-windows.md)|

0 commit comments

Comments
 (0)