mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-04 23:59:08 +00:00
addressing #260
This commit is contained in:
parent
4a642831a1
commit
2a1647c522
@ -99,6 +99,20 @@ In this task, you will configure local and global peering between the virtual ne
|
||||
|
||||
>**Note**: This step establishes two local peerings - one from az104-05-vnet0 to az104-05-vnet1 and the other from az104-05-vnet1 to az104-05-vnet0.
|
||||
|
||||
>**Note**: In case you run into an issue with the Azure portal interface not displaying the virtual networks created in the previous task, you can configure peering by running the following PowerShell commands from Cloud Shell:
|
||||
|
||||
```powershell
|
||||
$rgName = 'az104-05-rg1'
|
||||
|
||||
$vnet0 = Get-AzVirtualNetwork -Name 'az104-05-vnet0' -ResourceGroupName $rgname
|
||||
|
||||
$vnet1 = Get-AzVirtualNetwork -Name 'az104-05-vnet1' -ResourceGroupName $rgname
|
||||
|
||||
Add-AzVirtualNetworkPeering -Name 'az104-05-vnet0_to_az104-05-vnet1' -VirtualNetwork $vnet0 -RemoteVirtualNetworkId $vnet1.Id
|
||||
|
||||
Add-AzVirtualNetworkPeering -Name 'az104-05-vnet1_to_az104-05-vnet0' -VirtualNetwork $vnet1 -RemoteVirtualNetworkId $vnet0.Id
|
||||
```
|
||||
|
||||
1. On the **az104-05-vnet0** virtual network blade, in the **Settings** section, click **Peerings** and then click **+ Add**.
|
||||
|
||||
1. Add a peering with the following settings (leave others with their default values) and click **Add**:
|
||||
@ -120,6 +134,20 @@ In this task, you will configure local and global peering between the virtual ne
|
||||
|
||||
>**Note**: This step establishes two global peerings - one from az104-05-vnet0 to az104-05-vnet2 and the other from az104-05-vnet2 to az104-05-vnet0.
|
||||
|
||||
>**Note**: In case you run into an issue with the Azure portal interface not displaying the virtual networks created in the previous task, you can configure peering by running the following PowerShell commands from Cloud Shell:
|
||||
|
||||
```powershell
|
||||
$rgName = 'az104-05-rg1'
|
||||
|
||||
$vnet0 = Get-AzVirtualNetwork -Name 'az104-05-vnet0' -ResourceGroupName $rgname
|
||||
|
||||
$vnet2 = Get-AzVirtualNetwork -Name 'az104-05-vnet2' -ResourceGroupName $rgname
|
||||
|
||||
Add-AzVirtualNetworkPeering -Name 'az104-05-vnet0_to_az104-05-vnet2' -VirtualNetwork $vnet0 -RemoteVirtualNetworkId $vnet2.Id
|
||||
|
||||
Add-AzVirtualNetworkPeering -Name 'az104-05-vnet2_to_az104-05-vnet0' -VirtualNetwork $vnet2 -RemoteVirtualNetworkId $vnet0.Id
|
||||
```
|
||||
|
||||
1. Navigate back to the **Virtual networks** blade and, in the list of virtual networks, click **az104-05-vnet1**.
|
||||
|
||||
1. On the **az104-05-vnet1** virtual network blade, in the **Settings** section, click **Peerings** and then click **+ Add**.
|
||||
@ -143,6 +171,20 @@ In this task, you will configure local and global peering between the virtual ne
|
||||
|
||||
>**Note**: This step establishes two global peerings - one from az104-05-vnet1 to az104-05-vnet2 and the other from az104-05-vnet2 to az104-05-vnet1.
|
||||
|
||||
>**Note**: In case you run into an issue with the Azure portal interface not displaying the virtual networks created in the previous task, you can configure peering by running the following PowerShell commands from Cloud Shell:
|
||||
|
||||
```powershell
|
||||
$rgName = 'az104-05-rg1'
|
||||
|
||||
$vnet1 = Get-AzVirtualNetwork -Name 'az104-05-vnet1' -ResourceGroupName $rgname
|
||||
|
||||
$vnet2 = Get-AzVirtualNetwork -Name 'az104-05-vnet2' -ResourceGroupName $rgname
|
||||
|
||||
Add-AzVirtualNetworkPeering -Name 'az104-05-vnet1_to_az104-05-vnet2' -VirtualNetwork $vnet1 -RemoteVirtualNetworkId $vnet2.Id
|
||||
|
||||
Add-AzVirtualNetworkPeering -Name 'az104-05-vnet2_to_az104-05-vnet1' -VirtualNetwork $vnet2 -RemoteVirtualNetworkId $vnet1.Id
|
||||
```
|
||||
|
||||
#### Task 3: Test intersite connectivity
|
||||
|
||||
In this task, you will test connectivity between virtual machines on the three virtual networks that you connected via local and global peering in the previous task.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user