You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Customer intent: As someone with a networking background, I want to deploy Azure Bastion to a virtual machine using a Bastion ARM Template.
11
+
#Customer intent: As someone with a networking background, I want to deploy Azure Bastion to a virtual machine by using an ARM template.
12
12
---
13
13
14
14
15
-
# Quickstart: Deploy Azure Bastion in a virtual network using an ARM template
15
+
# Quickstart: Deploy Azure Bastion to a virtual network by using an ARM template
16
16
17
-
This quickstart describes how to use Azure Bastion template to deploy to a virtual network.
17
+
This quickstart describes how to use an Azure Resource Manager template (ARM template) to deploy Azure Bastion to a virtual network.
18
18
19
19
An ARM template is a JavaScript Object Notation (JSON) file that defines the infrastructure and configuration for your project. The template uses declarative syntax. In declarative syntax, you describe your intended deployment without writing the sequence of programming commands to create the deployment.
The following diagram shows the architecture of Bastion.
22
22
23
-
If your environment meets the prerequisites and you're familiar with using ARM templates, select the Deploy to Azure button. The template will open in the Azure portal.
23
+
:::image type="content" source="./media/create-host/host-architecture.png" alt-text="Diagram that shows the Azure Bastion architecture." lightbox="./media/create-host/host-architecture.png":::
24
+
25
+
If your environment meets the prerequisites and you're familiar with using ARM templates, select the following **Deploy to Azure** button. The template opens in the Azure portal.
24
26
25
27
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3a%2f%2fraw.githubusercontent.com%2fAzure%2fazure-quickstart-templates%2fmaster%2fquickstarts%2fmicrosoft.network%2fazure-bastion-nsg%2fazuredeploy.json)
26
28
@@ -29,92 +31,92 @@ If your environment meets the prerequisites and you're familiar with using ARM t
29
31
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).
30
32
31
33
> [!NOTE]
32
-
> 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.
33
-
>
34
+
> The use of Bastion with Azure Private DNS zones is not supported at this time. Before you begin, make sure that the virtual network where you plan to deploy your Bastion resource is not linked to a private DNS zone.
35
+
34
36
## Review the template
35
37
36
-
To view the entire template used for this quickstart, see [Azure Quickstart Templates: Azure Bastion as a Service](https://azure.microsoft.com/resources/templates/azure-bastion-nsg/).
38
+
To view the entire template that this quickstart uses, see [Azure Bastion as a Service with NSG](https://azure.microsoft.com/resources/templates/azure-bastion-nsg/).
37
39
38
-
This template by default, creates an Azure Bastion deployment with a resource group, a virtual network, network security group settings, an AzureBastionSubnet subnet, a bastion host, and a public IP address resource that's used for the bastion host.
40
+
By default, this template creates a Bastion deployment with a resource group, a virtual network, network security group (NSG) settings, an AzureBastionSubnet subnet, a bastion host, and a public IP address resource that's used for the bastion host. Here's the purpose of each part of the template:
39
41
40
42
*[Microsoft.Network/bastionHosts](/azure/templates/microsoft.network/bastionhosts) creates the bastion host.
41
43
*[Microsoft.Network/virtualNetworks](/azure/templates/microsoft.network/virtualnetworks) creates a virtual network.
42
44
*[Microsoft.Network/virtualNetworks/subnets](/azure/templates/microsoft.network/virtualnetworks/subnets) creates the subnet.
43
-
*[Microsoft Network/networkSecurityGroups](/azure/templates/microsoft.network/virtualnetworks/subnets) controls the network security group settings.
44
-
*[Microsoft.Network/publicIpAddresses](/azure/templates/microsoft.network/publicIpAddresses) specifies the public IP address value used for the bastion host.
45
+
*[Microsoft Network/networkSecurityGroups](/azure/templates/microsoft.network/virtualnetworks/subnets) controls the NSG settings.
46
+
*[Microsoft.Network/publicIpAddresses](/azure/templates/microsoft.network/publicIpAddresses) specifies the public IP address value for the bastion host.
| Region | Azure region for Bastion and virtual network. |
51
-
| vnet-name | Name of new or existing virtual network to which Azure Bastion should be deployed. |
52
-
| vnet-ip-prefix | IP prefix for available addresses in virtual network address space. |
53
-
| vnet-new-or-existing |Specify whether to deploy new virtual network or deploy to an existing one. |
54
-
| bastion-subnet-ip-prefix | Bastion subnet IP prefix MUST be within the virtual network IP prefix address space. |
55
-
| bastion-host-name | Name of Azure Bastion resource. |
52
+
|`Region`| Azure region for Bastion and the virtual network. |
53
+
|`vnet-name`| Name of a new or existing virtual network to which Bastion should be deployed. |
54
+
|`vnet-ip-prefix`| IP prefix for available addresses in a virtual network address space. |
55
+
|`vnet-new-or-existing`|Choice of whether to deploy new virtual network or deploy to an existing one. |
56
+
|`bastion-subnet-ip-prefix`| Bastion subnet IP prefix, which must be within the virtual network IP prefix's address space. |
57
+
|`bastion-host-name`| Name of the Bastion resource. |
56
58
57
59
> [!NOTE]
58
-
> To find more templates, see [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Network&pageNumber=1&sort=Popular).
59
-
>
60
+
> To find more templates, see [Azure quickstart templates](https://azure.microsoft.com/resources/templates/?resourceType=Microsoft.Network&pageNumber=1&sort=Popular).
In this section, you'll deploy Bastion using the **Deploy to Azure** button below or in the Azure portal. You don't connect and sign in to your virtual machine or deploy Bastion from your VM directly.
67
+
In this section, you deploy Bastion by using the Azureportal. You don't connect and sign in to your virtual machine or deploy Bastion directly from your VM.
68
68
69
69
1. Sign in to the [Azure portal](https://portal.azure.com).
70
-
1. Select the **Deploy to Azure** button below.
70
+
1. Select the following **Deploy to Azure** button:
71
71
72
72
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3a%2f%2fraw.githubusercontent.com%2fAzure%2fazure-quickstart-templates%2fmaster%2fquickstarts%2fmicrosoft.network%2fazure-bastion-nsg%2fazuredeploy.json)
73
73
74
-
1. In the **Azure Bastion as a Service: Azure Quickstart Template**, enter or select the following information.
74
+
1. In the **Azure Bastion as a Service** template, enter or select information on the **Basics** tab. Keep these considerations in mind:
75
75
76
-
* If you're using the template for a test environment, you can use the example values specified.
77
-
* To view the template, click**Edit template**. On this page, you can adjust some of the values such as address space or the name of certain resources. **Save** to save your changes, or **Discard**.
78
-
* If you decide to create your bastion host in an existing VNet, make sure to fill in the values for the template as they are in your deployed environment, or the template will fail.
76
+
* If you're using the template for a test environment, you can use the example values that this step provides.
77
+
* To view the template, select**Edit template**. On this page, you can adjust some of the values, such as the address space or the name of certain resources. Select **Save** to save your changes, or select **Discard** to discard them.
78
+
* If you decide to create your bastion host in an existing virtual network, be sure to fill in the values for the template as they exist in your deployed environment, or the template will fail.
79
79
80
-
:::image type="content" source="./media/quickstart-host-arm-template/bastion-template-values.png" alt-text="Screenshot of Bastion ARM template example values." lightbox="./media/quickstart-host-arm-template/bastion-template-values.png":::
80
+
:::image type="content" source="./media/quickstart-host-arm-template/bastion-template-values.png" alt-text="Screenshot of example values for an Azure Bastion ARM template." lightbox="./media/quickstart-host-arm-template/bastion-template-values.png":::
| Resource Group|Select **Create new** enter **TestRG1**, and select **OK**|
86
-
| Region | Enter **East US**|
87
-
|vnet-name | Enter **VNet1**|
88
-
|vnet-ip-prefix | Enter **10.1.0.0/16**|
89
-
|vnet-new-or-existing | Select **new**|
90
-
|bastion-subnet-ip-prefix | Enter **10.1.1.0/24**|
91
-
|bastion-host-name | Enter **TestBastionHost**|
92
-
93
-
1. Select the **Review + create** tab or select the **Review + create** button. Select **Create**.
94
-
1. The deployment will complete within 10 minutes. You can view the progress on the template **Overview**page. If you close the portal, deployment will continue.
84
+
|**Subscription**| Select your Azure subscription.|
85
+
|**Resource group**|Select **Create new**, enter **TestRG1**, and then select **OK**.|
86
+
|**Region**| Enter **East US**.|
87
+
|**Vnet-name**| Enter **VNet1**.|
88
+
|**Vnet-ip-prefix**| Enter **10.1.0.0/16**.|
89
+
|**Vnet-new-or-existing**| Select **new**.|
90
+
|**Bastion-subnet-ip-prefix**| Enter **10.1.1.0/24**.|
91
+
|**Bastion-host-name**| Enter **TestBastionHost**.|
92
+
93
+
1. Select the **Review + create** tab, or select the **Review + create** button. Select **Create**.
94
+
1. The deployment finishes within 10 minutes. You can view the progress on the template **Overview**pane. If you close the portal, deployment continues.
95
95
96
96
## Validate the deployment
97
97
98
-
In this section, you'll validate the deployment of Azure Bastion.
98
+
To validate the deployment of Bastion:
99
99
100
100
1. Sign in to the [Azure portal](https://portal.azure.com).
101
101
1. Select the **TestRG1** resource group that you created in the previous section.
102
-
1. From the Overview page of the resource group, scroll down to **Resources** in the middle pane. Validate the Bastion resource.
103
-
:::image type="content" source="./media/quickstart-host-arm-template/bastion-validate-deployment-full.png" alt-text="Screenshot shows the Azure Bastion resource." lightbox="./media/quickstart-host-arm-template/bastion-validate-deployment.png":::
102
+
1. From the **Overview** pane of the resource group, scroll down to the **Resources** tab. Validate the Bastion resource.
103
+
104
+
:::image type="content" source="./media/quickstart-host-arm-template/bastion-validate-deployment-full.png" alt-text="Screenshot that shows the Azure Bastion resource in a resource group." lightbox="./media/quickstart-host-arm-template/bastion-validate-deployment.png":::
104
105
105
106
## Clean up resources
106
107
107
-
When you're done using the virtual network and the virtual machines, delete the resource group and all of the resources it contains:
108
+
When you finish using the virtual network and the virtual machines, delete the resource group and all of the resources that it contains:
108
109
109
-
1. Enter the name of your resource group in the **Search** box at the top of the portal and select it from the search results.
110
+
1. Enter the name of your resource group in the **Search** box at the top of the portal, and then select it from the search results.
110
111
1. Select **Delete resource group**.
111
-
1. Enter your resource group for **TYPE THE RESOURCE GROUP NAME** and select **Delete**.
112
+
1. Enter your resource group for **TYPE THE RESOURCE GROUP NAME**, and then select **Delete**.
112
113
113
114
## Next steps
114
115
115
-
In this quickstart, you deployed Bastion using the Bastion ARM template, and then connected to a virtual machine securely via Bastion. Next, you can continue with the following steps if you want to copy and paste to your virtual machine.
116
+
In this quickstart, you deployed Bastion by using an ARM template. You then connected to a virtual machine securely via Bastion. Continue with the following steps if you want to copy and paste to your virtual machine.
116
117
117
118
> [!div class="nextstepaction"]
118
119
> [Quickstart: Create a Windows virtual machine in the Azure portal](../virtual-machines/windows/quick-create-portal.md)
119
120
121
+
> [!div class="nextstepaction"]
120
122
> [Create an RDP connection to a Windows VM using Azure Bastion](../bastion/bastion-connect-vm-rdp-windows.md)
0 commit comments