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
@@ -50,9 +50,51 @@ The example in this article shows you how a misconfigured network security group
50
50
51
51
---
52
52
53
-
## Create a virtual network and a Bastion host
53
+
## Create a resource group
54
54
55
-
In this section, you create a virtual network with two subnets and an Azure Bastion host. The first subnet is used for the virtual machine, and the second subnet is used for the Bastion host. You also create a network security group and apply it to the first subnet.
55
+
# [**Portal**](#tab/portal)
56
+
57
+
1. Sign in to the [Azure portal](https://portal.azure.com).
58
+
59
+
1. In the search box at the top of the portal, enter **Resource group**. Select **Resource groups** in the search results.
60
+
61
+
1. Select **+ Create**.
62
+
63
+
1. In the **Basics** tab of **Create a resource group**, enter, or select the following information:
64
+
65
+
| Setting | Value |
66
+
| --- | --- |
67
+
| Subscription | Select your subscription. |
68
+
| Resource group | Enter **myResourceGroup**. |
69
+
| Region | Select **East US**. |
70
+
71
+
1. Select **Review + create**.
72
+
73
+
1. Select **Create**.
74
+
75
+
# [**PowerShell**](#tab/powershell)
76
+
77
+
Create a resource group using [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup). An Azure resource group is a logical container into which Azure resources are deployed and managed.
Create a resource group using [az group create](/cli/azure/group#az-group-create). An Azure resource group is a logical container into which Azure resources are deployed and managed.
87
+
88
+
```azurecli-interactive
89
+
# Create a resource group.
90
+
az group create --name 'myResourceGroup' --location 'eastus'
91
+
```
92
+
93
+
---
94
+
95
+
## Create a virtual network
96
+
97
+
In this section, you create a virtual network with a subnet and a network security group applied to the subnet.
56
98
57
99
# [**Portal**](#tab/portal)
58
100
@@ -66,21 +108,14 @@ In this section, you create a virtual network with two subnets and an Azure Bast
66
108
| --- | --- |
67
109
|**Project Details**||
68
110
| Subscription | Select your Azure subscription. |
69
-
| Resource Group | Select **Create new**. </br> Enter ***myResourceGroup*** in **Name**. </br> Select **OK**. |
111
+
| Resource Group | Select **myResourceGroup**. |
70
112
|**Instance details**||
71
113
| Virtual network name | Enter ***myVNet***. |
72
114
| Region | Select **(US) East US**. |
73
115
74
-
1. Select the **Security** tab, or select the **Next** button at the bottom of the page.
75
-
76
-
1. Under **Azure Bastion**, select **Enable Azure Bastion** and accept the default values:
77
-
78
-
| Setting | Value |
79
-
| --- | --- |
80
-
| Azure Bastion host name |**myVNet-Bastion**. |
81
-
| Azure Bastion public IP Address |**(New) myVNet-bastion-publicIpAddress**. |
116
+
1. Select **Next** to proceed to the **Security** tab.
82
117
83
-
1. Select the **IP Addresses**tab, or select **Next**button at the bottom of the page.
118
+
1. Select **Next**to proceed to the **IP Addresses**tab.
84
119
85
120
1. Accept the default IP address space **10.0.0.0/16** and edit the default subnet by selecting the pencil icon. In the **Edit subnet** page, enter the following values:
86
121
@@ -91,64 +126,36 @@ In this section, you create a virtual network with two subnets and an Azure Bast
91
126
|**Security**||
92
127
| Network security group | Select **Create new**. </br> Enter ***mySubnet-nsg*** in **Name**. </br> Select **OK**. |
93
128
94
-
1. Select the **Review + create**.
129
+
1. Select **Save**.
95
130
96
-
1. Review the settings, and then select **Create**.
131
+
1.Select **Review + create** at the bottom of the screen, and when validation passes, select **Create**.
97
132
98
133
# [**PowerShell**](#tab/powershell)
99
134
100
-
1. Create a resource group using [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup). An Azure resource group is a logical container into which Azure resources are deployed and managed.
1. Create a subnet configuration for the virtual machine subnet and the Bastion host subnet using [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig).
142
+
1. Create subnet configurations for the virtual machine subnet and Azure Bastion subnet using [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig).
1. Create the public IP address resource required for the Bastion host using [New-AzPublicIpAddress](/powershell/module/az.network/new-azpublicipaddress).
1. Create a resource group using [az group create](/cli/azure/group#az-group-create). An Azure resource group is a logical container into which Azure resources are deployed and managed.
146
-
147
-
```azurecli-interactive
148
-
# Create a resource group.
149
-
az group create --name 'myResourceGroup' --location 'eastus'
150
-
```
151
-
152
159
1. Create a default network security group using [az network nsg create](/cli/azure/network/nsg#az-network-nsg-create).
153
160
154
161
```azurecli-interactive
@@ -162,24 +169,74 @@ In this section, you create a virtual network with two subnets and an Azure Bast
1. Create a public IP address for the Bastion host using [az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create).
178
+
---
179
+
180
+
## Deploy Azure Bastion
181
+
182
+
Azure Bastion uses your browser to connect to virtual machines (VMs) in your virtual network over secure shell (SSH) or remote desktop protocol (RDP) by using their private IP addresses. The virtual machines don't need public IP addresses, client software, or special configuration. For more information about Azure Bastion, see [Azure Bastion](/azure/bastion/bastion-overview).
0 commit comments