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
Copy file name to clipboardExpand all lines: articles/networking/cli-samples.md
+5-13Lines changed: 5 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,11 @@
1
1
---
2
2
title: Azure CLI Samples - Networking
3
-
description: Learn about Azure CLI samples for networking, including samples for connectivity between Azure resources and samples for load balancing and traffic direction.
4
-
services: virtual-network
5
-
documentationcenter: virtual-network
6
-
author: mbender-ms
7
-
manager: kumudD
8
-
9
-
tags:
10
-
ms.assetid:
3
+
description: Learn about Azure CLI samples for networking that include connectivity between Azure resources and for load balancing and traffic direction.
4
+
author: asudbring
11
5
ms.service: virtual-network
12
6
ms.topic: article
13
-
ms.tgt_pltfrm:
14
-
ms.workload: infrastructure
15
-
ms.date: 04/25/2017
16
-
ms.author: kumud
7
+
ms.date: 03/23/2023
8
+
ms.author: allensu
17
9
ms.custom: devx-track-azurecli
18
10
19
11
---
@@ -27,7 +19,7 @@ The following table includes links to bash scripts built using the Azure CLI.
27
19
|[Create a virtual network for multi-tier applications](./scripts/virtual-network-cli-sample-multi-tier-application.md?toc=%2fazure%2fnetworking%2ftoc.json)| Creates a virtual network with front-end and back-end subnets. Traffic to the front-end subnet is limited to HTTP and SSH, while traffic to the back-end subnet is limited to MySQL, port 3306. |
28
20
|[Peer two virtual networks](./scripts/virtual-network-cli-sample-peer-two-virtual-networks.md?toc=%2fazure%2fnetworking%2ftoc.json)| Creates and connects two virtual networks in the same region. |
29
21
|[Route traffic through a network virtual appliance](./scripts/virtual-network-cli-sample-route-traffic-through-nva.md?toc=%2fazure%2fnetworking%2ftoc.json)| Creates a virtual network with front-end and back-end subnets and a VM that is able to route traffic between the two subnets. |
30
-
|[Filter inbound and outbound VM network traffic](./scripts/virtual-network-filter-network-traffic.md?toc=%2fazure%2fnetworking%2ftoc.json)| Creates a virtual network with front-end and back-end subnets. Inbound network traffic to the front-end subnet is limited to HTTP, HTTPS and SSH. Outbound traffic to the Internet from the back-end subnet is not permitted. |
22
+
|[Filter inbound and outbound VM network traffic](./scripts/virtual-network-filter-network-traffic.md?toc=%2fazure%2fnetworking%2ftoc.json)| Creates a virtual network with front-end and back-end subnets. Inbound network traffic to the front-end subnet is limited to HTTP, HTTPS and SSH. Outbound traffic to the Internet from the back-end subnet isn't permitted. |
31
23
|**Load balancing and traffic direction**||
32
24
|[Load balance multiple websites on VMs](./scripts/load-balancer-linux-cli-load-balance-multiple-websites-vm.md?toc=%2fazure%2fnetworking%2ftoc.json)| Creates two VMs with multiple IP configurations, joined to an Azure Availability Set, accessible through an Azure Load Balancer. |
33
25
|[Direct traffic across multiple regions for high application availability](./scripts/traffic-manager-cli-websites-high-availability.md?toc=%2fazure%2fnetworking%2ftoc.json)| Creates two app service plans, two web apps, a traffic manager profile, and two traffic manager endpoints. |
Copy file name to clipboardExpand all lines: articles/networking/scripts/virtual-network-cli-sample-multi-tier-application.md
+6-14Lines changed: 6 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,41 +1,33 @@
1
1
---
2
2
title: Azure CLI script sample - Create a network for multi-tier applications
3
3
description: Azure CLI script sample - Create a virtual network for multi-tier applications.
4
-
services: virtual-network
5
-
documentationcenter: virtual-network
6
-
author: mbender-ms
7
-
manager: kumudD
4
+
author: asudbring
8
5
ms.service: virtual-network
9
-
ms.devlang: azurecli
10
6
ms.topic: article
11
-
ms.tgt_pltfrm:
12
-
ms.workload: infrastructure
13
-
ms.date: 07/07/2017
14
-
ms.author: mbender
7
+
ms.date: 03/23/2023
8
+
ms.author: allensu
15
9
ms.custom: devx-track-azurecli
16
10
17
11
---
18
12
19
13
# Use an Azure CLI script sample to create a network for multi-tier applications
20
14
21
-
This script sample creates a virtual network with front-end and back-end subnets. Traffic to the front-end subnet is limited to HTTP and SSH, while traffic to the back-end subnet is limited to MySQL, port 3306. After running the script, you will have two virtual machines, one in each subnet that you can deploy web server and MySQL software to.
15
+
This script sample creates a virtual network with front-end and back-end subnets. Traffic to the front-end subnet is limited to HTTP and SSH, while traffic to the back-end subnet is limited to MySQL, port 3306. After running the script, you'll have two virtual machines, one in each subnet that you can deploy web server and MySQL software to.
[!code-azurecli-interactive[main](../../../cli_scripts/virtual-network/virtual-network-multi-tier-application/virtual-network-multi-tier-application.sh"Virtual network for multi-tier application")]
32
24
33
25
## Clean up deployment
34
26
35
27
Run the following command to remove the resource group, VM, and all related resources.
36
28
37
29
```azurecli
38
-
az group delete --name MyResourceGroup --yes
30
+
az group delete --name $resourceGroup --yes
39
31
```
40
32
41
33
## Script explanation
@@ -58,4 +50,4 @@ This script uses the following commands to create a resource group, virtual netw
58
50
59
51
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
60
52
61
-
Additional networking CLI script samples can be found in the [Azure Networking Overview documentation](../cli-samples.md)
53
+
More networking CLI script samples can be found in the [Azure Networking Overview documentation](../cli-samples.md)
Copy file name to clipboardExpand all lines: articles/networking/scripts/virtual-network-cli-sample-peer-two-virtual-networks.md
+7-13Lines changed: 7 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,17 @@
1
1
---
2
-
title: Azure CLI Script Sample - Peer two virtual networks | Microsoft Docs
2
+
title: Azure CLI Script Sample - Peer two virtual networks
3
3
description: Use an Azure CLI script sample to create and connect two virtual networks in the same region through the Azure network.
4
-
services: virtual-network
5
-
documentationcenter: virtual-network
6
-
author: mbender-ms
7
-
manager: kumudD
4
+
author: asudbring
8
5
ms.service: virtual-network
9
-
ms.devlang: azurecli
10
6
ms.topic: article
11
-
ms.tgt_pltfrm:
12
-
ms.workload: infrastructure
13
-
ms.date: 07/07/2017
14
-
ms.author: mbender
7
+
ms.date: 03/23/2023
8
+
ms.author: allensu
15
9
ms.custom: devx-track-azurecli
16
10
---
17
11
18
12
# Use an Azure CLI sample script to connect two virtual networks
19
13
20
-
This script creates and connects two virtual networks in the same region through the Azure network. After running the script, you will create a peering between two virtual networks.
14
+
This script creates and connects two virtual networks in the same region through the Azure network. After running the script, you'll create a peering between two virtual networks.
0 commit comments