title | description | services | author | ms.service | ms.topic | ms.date | ms.author | ms.custom |
---|---|---|---|---|---|---|---|---|
include file |
include file |
virtual-network |
asudbring |
virtual-network |
include |
06/20/2023 |
allensu |
include file |
Before you deploy the NAT gateway resource and the other resources, a resource group is required to contain the resources deployed. In the following steps, you create a resource group, NAT gateway resource, and a public IP address. You can use one or more public IP address resources, public IP prefixes, or both.
For information about public IP prefixes and a NAT gateway, see Manage NAT gateway.
-
In the search box at the top of the portal, enter NAT gateway. Select NAT gateways in the search results.
-
Select + Create.
-
In Create network address translation (NAT) gateway, enter or select this information in the Basics tab:
Setting Value Project Details Subscription Select your Azure subscription. Resource Group Select Create new.
Enter test-rg.
Select OK.Instance details NAT gateway name Enter nat-gateway Region Select East US 2 Availability Zone Select No Zone. TCP idle timeout (minutes) Leave the default of 4. For information about availability zones and NAT gateway, see NAT gateway and availability zones.
-
Select the Outbound IP tab, or select the Next: Outbound IP button at the bottom of the page.
-
In the Outbound IP tab, enter or select the following information:
Setting Value Public IP addresses Select Create a new public IP address.
In Name, enter public-ip-nat.
Select OK. -
Select the Review + create tab, or select the blue Review + create button at the bottom of the page.
-
Select Create.
The following procedure creates a virtual network with a resource subnet, an Azure Bastion subnet, and an Azure Bastion host.
-
In the portal, search for and select Virtual networks.
-
On the Virtual networks page, select + Create.
-
On the Basics tab of Create virtual network, enter or select the following information:
Setting Value Project details Subscription Select your subscription. Resource group Select test-rg. Instance details Name Enter vnet-1. Region Select East US 2. :::image type="content" source="./media/virtual-network-create-with-nat-bastion/create-virtual-network-basics.png" alt-text="Screenshot of Basics tab of Create virtual network in the Azure portal.":::
-
Select Next to proceed to the Security tab.
-
Select Enable Bastion in the Azure Bastion section of the Security tab.
Azure Bastion uses your browser to connect to VMs in your virtual network over secure shell (SSH) or remote desktop protocol (RDP) by using their private IP addresses. The VMs don't need public IP addresses, client software, or special configuration. For more information about Azure Bastion, see Azure Bastion
[!NOTE] [!INCLUDE Pricing]
-
Enter or select the following information in Azure Bastion:
Setting Value Azure Bastion host name Enter bastion. Azure Bastion public IP address Select Create a public IP address.
Enter public-ip in Name.
Select OK.:::image type="content" source="./media/virtual-network-create-with-nat-bastion/enable-bastion.png" alt-text="Screenshot of enable bastion host in Create virtual network in the Azure portal.":::
-
Select Next to proceed to the IP Addresses tab.
-
In the address space box in Subnets, select the default subnet.
-
In Edit subnet, enter or select the following information:
Setting Value Subnet details Subnet template Leave the default Default. Name Enter subnet-1. Starting address Leave the default of 10.0.0.0. Subnet size Leave the default of /24(256 addresses). Security NAT gateway Select nat-gateway. :::image type="content" source="./media/virtual-network-create-with-nat-bastion/address-subnet-space.png" alt-text="Screenshot of default subnet rename and configuration.":::
-
Select Save.
-
Select Review + create at the bottom of the screen, and when validation passes, select Create.