|
1 | 1 | ---
|
2 | 2 | title: Use internal DNS for VM name resolution with the Azure CLI
|
3 | 3 | description: How to create virtual network interface cards and use internal DNS for VM name resolution on Azure with the Azure CLI.
|
4 |
| -author: cynthn |
| 4 | +author: mattmcinnes |
5 | 5 | ms.service: virtual-machines
|
6 | 6 | ms.subservice: networking
|
7 | 7 | ms.workload: infrastructure-services
|
8 | 8 | ms.custom: devx-track-azurecli
|
9 | 9 | ms.topic: how-to
|
10 |
| -ms.date: 02/16/2017 |
11 |
| -ms.author: cynthn |
| 10 | +ms.date: 04/06/2023 |
| 11 | +ms.author: mattmcinnes |
| 12 | +ms.reviewer: cynthn |
12 | 13 | ---
|
13 | 14 |
|
14 | 15 | # Create virtual network interface cards and use internal DNS for VM name resolution on Azure
|
@@ -54,9 +55,9 @@ az vm create \
|
54 | 55 |
|
55 | 56 | ## Detailed walkthrough
|
56 | 57 |
|
57 |
| -A full continuous integration and continuous deployment (CiCd) infrastructure on Azure requires certain servers to be static or long-lived servers. It is recommended that Azure assets like the virtual networks and Network Security Groups are static and long lived resources that are rarely deployed. Once a virtual network has been deployed, it can be reused by new deployments without any adverse affects to the infrastructure. You can later add a Git repository server or a Jenkins automation server delivers CiCd to this virtual network for your development or test environments. |
| 58 | +A full continuous integration and continuous deployment (CiCd) infrastructure on Azure requires certain servers to be static or long-lived servers. It's recommended that Azure assets like the virtual networks and Network Security Groups are static and long lived resources that are rarely deployed. Once a virtual network has been deployed, it can be reused in new deployments without any adverse affects to the infrastructure. You can later add a Git repository server or a Jenkins automation server delivers CiCd to this virtual network for your development or test environments. |
58 | 59 |
|
59 |
| -Internal DNS names are only resolvable inside an Azure virtual network. Because the DNS names are internal, they are not resolvable to the outside internet, providing additional security to the infrastructure. |
| 60 | +Internal DNS names are only resolvable inside an Azure virtual network. Because the DNS names are internal, they aren't resolvable to the outside internet, providing extra security to the infrastructure. |
60 | 61 |
|
61 | 62 | In the following examples, replace example parameter names with your own values. Example parameter names include `myResourceGroup`, `myNic`, and `myVM`.
|
62 | 63 |
|
@@ -124,7 +125,7 @@ az network vnet subnet update \
|
124 | 125 |
|
125 | 126 |
|
126 | 127 | ## Create the virtual network interface card and static DNS names
|
127 |
| -Azure is very flexible, but to use DNS names for VM name resolution, you need to create virtual network interface cards (vNics) that include a DNS label. vNics are important as you can reuse them by connecting them to different VMs over the infrastructure lifecycle. This approach keeps the vNic as a static resource while the VMs can be temporary. By using DNS labeling on the vNic, we are able to enable simple name resolution from other VMs in the VNet. Using resolvable names enables other VMs to access the automation server by the DNS name `Jenkins` or the Git server as `gitrepo`. |
| 128 | +To use DNS names for VM name resolution, you need to create virtual network interface cards (vNics) that include a DNS label. vNics are important as you can reuse them by connecting them to different VMs over the infrastructure lifecycle. This approach keeps the vNic as a static resource while the VMs can be temporary. By using DNS labeling on the vNic, we're able to enable simple name resolution from other VMs in the VNet. Using resolvable names enables other VMs to access the automation server by the DNS name `Jenkins` or the Git server as `gitrepo`. |
128 | 129 |
|
129 | 130 | Create the vNic with [az network nic create](/cli/azure/network/nic). The following example creates a vNic named `myNic`, connects it to the `myVnet` virtual network named `myVnet`, and creates an internal DNS name record called `jenkins`:
|
130 | 131 |
|
|
0 commit comments