Skip to content

Commit e981a79

Browse files
Merge pull request #295338 from halkazwini/rs-cli
Update Azure CLI quickstart
2 parents f7fe7a1 + a67bbcc commit e981a79

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

articles/route-server/quickstart-create-route-server-cli.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: 'Quickstart: Create an Azure Route Server - Azure CLI'
3-
description: In this quickstart, you learn how to create an Azure Route Server using the Azure CLI.
3+
description: In this quickstart, you learn how to create an Azure Route Server and peer it with an NVA using the Azure CLI.
44
author: halkazwini
55
ms.author: halkazwini
66
ms.service: azure-route-server
77
ms.topic: quickstart
8-
ms.date: 02/10/2025
8+
ms.date: 02/26/2025
99
ms.custom: mode-api, devx-track-azurecli
1010
ms.devlang: azurecli
1111
---
@@ -14,7 +14,7 @@ ms.devlang: azurecli
1414

1515
In this quickstart, you learn how to create an Azure Route Server to peer with a network virtual appliance (NVA) in your virtual network using the Azure CLI.
1616

17-
:::image type="content" source="./media/environment-diagram.png" alt-text="Diagram of Route Server deployment environment using the Azure CLI.":::
17+
:::image type="content" source="./media/route-server-diagram.png" alt-text="Diagram of Route Server deployment environment using the Azure CLI.":::
1818

1919
[!INCLUDE [route server preview note](../../includes/route-server-note-preview-date.md)]
2020

@@ -34,34 +34,34 @@ In this quickstart, you learn how to create an Azure Route Server to peer with a
3434

3535
In this section, you create a route server. Prior to creating the route server, create a resource group to host all resources including the route server. You'll also need to create a virtual network with a dedicated subnet for the route server.
3636

37-
1. Create a resource group using [az group create](/cli/azure/group#az-group-create) command. The following example creates a resource group named **RouteServerRG** in the **WestUS** region:
37+
1. Create a resource group using [az group create](/cli/azure/group#az-group-create) command. The following example creates a resource group named **myResourceGroup** in the **EastUS** region:
3838

3939
```azurecli-interactive
4040
# Create a resource group.
41-
az group create --name 'RouteServerRG' --location 'westus'
41+
az group create --name 'myResourceGroup' --location 'eastus'
4242
```
4343
44-
1. Create a virtual network using [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create) command. The following example creates a default virtual network named **myRouteServerVNet** in the **WestUS** region with **RouteServerSubnet** subnet. The route server requires a dedicated subnet named *RouteServerSubnet*. Please configure a subnet size of minimum /26 or larger.
44+
1. Create a virtual network using [az network vnet create](/cli/azure/network/vnet#az-network-vnet-create) command. The following example creates a default virtual network named **myVirtualNetwork** in the **EastUS** region with **RouteServerSubnet** subnet. The route server requires a dedicated subnet named *RouteServerSubnet*. Please configure a subnet size of minimum /26 or larger.
4545
4646
```azurecli-interactive
4747
# Create a virtual network and a route server subnet.
48-
az network vnet create --resource-group 'RouteServerRG' --name 'myRouteServerVNet' --subnet-name 'RouteServerSubnet' --subnet-prefixes '10.0.1.0/26'
48+
az network vnet create --resource-group 'myResourceGroup' --name 'myVirtualNetwork' --subnet-name 'RouteServerSubnet' --subnet-prefixes '10.0.1.0/26'
4949
# Place the subnet ID into a variable.
50-
subnetId=$(az network vnet subnet show --name 'RouteServerSubnet' --resource-group 'RouteServerRG' --vnet-name 'myRouteServerVNet' --query id -o tsv)
50+
subnetId=$(az network vnet subnet show --name 'RouteServerSubnet' --resource-group 'myResourceGroup' --vnet-name 'myVirtualNetwork' --query id -o tsv)
5151
```
5252
5353
1. To ensure connectivity to the backend service that manages Route Server configuration, assigning a public IP address is required. Create a Standard Public IP named **RouteServerIP** using [az network public-ip create](/cli/azure/network/public-ip#az-network-public-ip-create) command.
5454
5555
```azurecli-interactive
5656
# Create a Standard public IP.
57-
az network public-ip create --resource-group 'RouteServerRG' --name 'RouteServerIP' --sku Standard --version 'IPv4'
57+
az network public-ip create --resource-group 'myResourceGroup' --name 'RouteServerIP' --sku Standard --version 'IPv4'
5858
```
5959
60-
1. Create the route server using [az network routeserver create](/cli/azure/network/routeserver#az-network-routeserver-create) command. The following example creates a route server named **myRouteServer** in the **WestUS** region. The *HostedSubnet* is the resource ID of the RouteServerSubnet created in the previous steps.
60+
1. Create the route server using [az network routeserver create](/cli/azure/network/routeserver#az-network-routeserver-create) command. The following example creates a route server named **myRouteServer** in the **EastUS** region. The *HostedSubnet* is the resource ID of the RouteServerSubnet created in the previous steps.
6161
6262
```azurecli-interactive
6363
# Create the route server.
64-
az network routeserver create --name 'myRouteServer' --resource-group 'RouteServerRG' --hosted-subnet $subnetId --public-ip-address 'RouteServerIP'
64+
az network routeserver create --name 'myRouteServer' --resource-group 'myResourceGroup' --hosted-subnet $subnetId --public-ip-address 'RouteServerIP'
6565
```
6666
6767
[!INCLUDE [Deployment note](../../includes/route-server-note-creation-time.md)]
@@ -72,7 +72,7 @@ In this section, you learn how to configure BGP peering with a network virtual a
7272
7373
```azurecli-interactive
7474
# Add a peer.
75-
az network routeserver peering create --name 'myNVA' --peer-ip '10.0.0.4' --peer-asn '65001' --routeserver 'myRouteServer' --resource-group 'RouteServerRG'
75+
az network routeserver peering create --name 'myNVA' --peer-ip '10.0.0.4' --peer-asn '65001' --routeserver 'myRouteServer' --resource-group 'myResourceGroup'
7676
```
7777

7878
## Complete the configuration on the NVA
@@ -81,7 +81,7 @@ To complete the peering setup, you must configure the NVA to establish a BGP ses
8181

8282
```azurecli-interactive
8383
# Get the route server details.
84-
az network routeserver show --resource-group 'RouteServerRG' --name 'myRouteServer'
84+
az network routeserver show --resource-group 'myResourceGroup' --name 'myRouteServer'
8585
```
8686

8787
The output should look similar to the following example:
@@ -91,12 +91,12 @@ The output should look similar to the following example:
9191
"allowBranchToBranchTraffic": false,
9292
"etag": "W/\"aaaa0000-bb11-2222-33cc-444444dddddd\"",
9393
"hubRoutingPreference": "ExpressRoute",
94-
"id": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/RouteServerRG/providers/Microsoft.Network/virtualHubs/myRouteServer",
94+
"id": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualHubs/myRouteServer",
9595
"kind": "RouteServer",
96-
"location": "westus",
96+
"location": "eastus",
9797
"name": "myRouteServer",
9898
"provisioningState": "Succeeded",
99-
"resourceGroup": "RouteServerRG",
99+
"resourceGroup": "myResourceGroup",
100100
"routeTable": {
101101
"routes": []
102102
},
@@ -123,7 +123,7 @@ When no longer needed, delete the resource group and all of the resources it con
123123

124124
```azurecli-interactive
125125
# Delete the resource group and all the resources it contains.
126-
az group delete --name 'RouteServerRG' --yes --no-wait
126+
az group delete --name 'myResourceGroup' --yes --no-wait
127127
```
128128

129129
## Next step

0 commit comments

Comments
 (0)