Identify usable regions for Ex 1, Task 1, Step 6

Changed the code block to use two known good regions for Azure Pass subscriptions, then added a note outlining what should be done if the learner wants or needs to use different regions.
This commit is contained in:
James Finley 2022-05-08 10:47:58 +12:00 committed by GitHub
parent a76efb47bb
commit 499c17b7c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,16 +46,24 @@ In this task, you will deploy three virtual machines, each into a separate virtu
1. From the Cloud Shell pane, run the following to create the resource group that will be hosting the lab environment. The first two virtual networks and a pair of virtual machines will be deployed in [Azure_region_1]. The third virtual network and the third virtual machine will be deployed in the same resource group but another [Azure_region_2]. (replace the [Azure_region_1] and [Azure_region_2] placeholder, including the square brackets, with the names of two different Azure regions where you intend to deploy these Azure virtual machines. An example is $location1 = 'eastus'. You can use Get-AzLocation to list all locations.):
```powershell
$location1 = '[Azure_region_1]'
$location1 = 'eastus'
$location2 = '[Azure_region_2]'
$location2 = 'westus'
$rgName = 'az104-05-rg1'
New-AzResourceGroup -Name $rgName -Location $location1
```
>**Note**: In order to identify Azure regions, from a PowerShell session in Cloud Shell, run **(Get-AzLocation).Location**
>**Note**: The regions used above were tested and known to work when this lab was last officially reviewed. If you would prefer to use different locations, or they no longer work, you will need to identify two different regions that Standard D2Sv3 virtual machines can be deployed into.
>
>In order to identify Azure regions, from a PowerShell session in Cloud Shell, run **(Get-AzLocation).Location**
>
>Once you have identified two regions you would like to use, run the command below in the Cloud Shell for each region to confirm that you can deploy Standard D2Sv3 virtual machines
>
>```az vm list-skus --location <Replace with your location> -o table --query "[? contains(name,'Standard_D2s')].name" ```
>
>If the command returns no results, then you need to choose another region. Once you have identified two suitable regions, you can adjust the regions in the code block above.
1. From the Cloud Shell pane, run the following to create the three virtual networks and deploy virtual machines into them by using the template and parameter files you uploaded: