Merge pull request #223 from jmenne/master

Update LAB_08-Manage_Virtual_Machines.md
This commit is contained in:
polichtm 2021-02-01 07:58:23 -05:00 committed by GitHub
commit a59f9b094a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ In this task, you will deploy Azure virtual machines into different availability
| Setting | Value | | Setting | Value |
| --- | --- | | --- | --- |
| OS disk type | **Standard HDD** | | OS disk type | **Premium SSD** |
| Enable Ultra Disk compatibility | **No** | | Enable Ultra Disk compatibility | **No** |
1. Click **Next: Networking >** and, on the **Networking** tab of the **Create a virtual machine** blade, click **Create new** below the **Virtual network** textbox. 1. Click **Next: Networking >** and, on the **Networking** tab of the **Create a virtual machine** blade, click **Create new** below the **Virtual network** textbox.
@ -80,8 +80,8 @@ In this task, you will deploy Azure virtual machines into different availability
| Subnet | **subnet0** | | Subnet | **subnet0** |
| Public IP | **default** | | Public IP | **default** |
| NIC network security group | **basic** | | NIC network security group | **basic** |
| Accelerated networking | **Off** | Public inbound Ports | **None** |
| Inbound Ports | **None** | | Accelerated networking | **Off**
| Place this virtual machine behind an existing load balancing solution? | **No** | | Place this virtual machine behind an existing load balancing solution? | **No** |
1. Click **Next: Management >** and, on the **Management** tab of the **Create a virtual machine** blade, specify the following settings (leave others with their default values): 1. Click **Next: Management >** and, on the **Management** tab of the **Create a virtual machine** blade, specify the following settings (leave others with their default values):
@ -163,7 +163,7 @@ In this task, you will install Windows Server Web Server role on the two Azure v
1. On the **Custom deployment** blade, click **Edit template**. 1. On the **Custom deployment** blade, click **Edit template**.
1. On the **Edit template** blade, in the section displaying the content of the template, insert the following code starting with line **20** (directly underneath the ` "resources": [` line): 1. On the **Edit template** blade, in the section displaying the content of the template, insert the following code starting with line **20** (directly underneath the `"resources": [` line):
>**Note**: If you are using a tool that pastes the code in line by line intellisense may add extra brackets causing validation errors. You may want to paste the code into notepad first and then paste it into line 20. >**Note**: If you are using a tool that pastes the code in line by line intellisense may add extra brackets causing validation errors. You may want to paste the code into notepad first and then paste it into line 20.
@ -226,10 +226,8 @@ In this task you will scale compute for Azure virtual machines by changing their
| Setting | Value | | Setting | Value |
| --- | --- | | --- | --- |
| Disk name | **az104-08-vm0-datadisk-0** | | Disk name | **az104-08-vm0-datadisk-0** |
| Source type | **None** | | Storage type | **Premium SSD** |
| Account type | **Premium SSD** | | Size (GiB| **1024** |
| Size | **1024 GiB** |
1. Back on the **az104-08-vm0 - Disks** blade, Under **Data disks** click **+ Create and attach a new disk**. 1. Back on the **az104-08-vm0 - Disks** blade, Under **Data disks** click **+ Create and attach a new disk**.
@ -238,9 +236,8 @@ In this task you will scale compute for Azure virtual machines by changing their
| Setting | Value | | Setting | Value |
| --- | --- | | --- | --- |
| Disk name | **az104-08-vm0-datadisk-1** | | Disk name | **az104-08-vm0-datadisk-1** |
| Source type | **None** | | Storage type | **Premium SSD** |
| Account type | **Premium SSD** | | Size (GiB)| **1024 GiB** |
| Size | **1024 GiB** |
1. Back on the **az104-08-vm0 - Disks** blade, click **Save**. 1. Back on the **az104-08-vm0 - Disks** blade, click **Save**.
@ -270,7 +267,7 @@ In this task you will scale compute for Azure virtual machines by changing their
>**Note**: Disregard the message stating **The resource group is in a location that is not supported by one or more resources in the template. Please choose a different resource group**. This is expected and can be ignored in this case. >**Note**: Disregard the message stating **The resource group is in a location that is not supported by one or more resources in the template. Please choose a different resource group**. This is expected and can be ignored in this case.
1. On the **Edit template** blade, in the section displaying the content of the template, replace the line **30** ` "vmSize": "Standard_D2s_v3"` with the following line): 1. On the **Edit template** blade, in the section displaying the content of the template, replace the line **30** `"vmSize": "Standard_D2s_v3"` with the following line):
```json ```json
"vmSize": "Standard_DS1_v2" "vmSize": "Standard_DS1_v2"
@ -279,7 +276,7 @@ In this task you will scale compute for Azure virtual machines by changing their
>**Note**: This section of the template defines the same Azure virtual machine size as the one you specified for the first virtual machine via the Azure portal. >**Note**: This section of the template defines the same Azure virtual machine size as the one you specified for the first virtual machine via the Azure portal.
1. On the **Edit template** blade, in the section displaying the content of the template, replace line **50** (` "dataDisks": [ ]` line) with the following code : 1. On the **Edit template** blade, in the section displaying the content of the template, replace line **50** (`"dataDisks": [ ]` line) with the following code :
```json ```json
"dataDisks": [ "dataDisks": [
@ -322,8 +319,8 @@ In this task you will scale compute for Azure virtual machines by changing their
New-Partition -DiskNumber 4 -UseMaximumSize -DriveLetter Z New-Partition -DiskNumber 4 -UseMaximumSize -DriveLetter Z
``` ```
> **Note**: Wait for the confirmation that the commands completed successfully.
> **Note**: Wait for the confirmation that the commands completed successfully.
#### Task 4: Register the Microsoft.Insights and Microsoft.AlertsManagement resource providers #### Task 4: Register the Microsoft.Insights and Microsoft.AlertsManagement resource providers
@ -356,7 +353,7 @@ In this task, you will deploy Azure virtual machine scale set across availabilit
| Virtual machine scale set name | **az10408vmss0** | | Virtual machine scale set name | **az10408vmss0** |
| Region | select one of the regions that support availability zones and where you can provision Azure virtual machines different from the one you used to deploy virtual machines earlier in this lab | | Region | select one of the regions that support availability zones and where you can provision Azure virtual machines different from the one you used to deploy virtual machines earlier in this lab |
| Availability zone | **Zones 1, 2, 3** | | Availability zone | **Zones 1, 2, 3** |
| Image | **Windows Server 2016 Datacenter** | | Image | **Windows Server 2019 Datacenter - Gen1** |
| Azure Spot instance | **No** | | Azure Spot instance | **No** |
| Size | **Standard D2s_v3** | | Size | **Standard D2s_v3** |
| Username | **Student** | | Username | **Student** |
@ -405,11 +402,10 @@ In this task, you will deploy Azure virtual machine scale set across availabilit
1. Back on the **Edit network interface** blade, in the **Public IP address** section, click **Enabled** and click **OK**. 1. Back on the **Edit network interface** blade, in the **Public IP address** section, click **Enabled** and click **OK**.
1. Back on the **Networking** tab of the **Create a virtual machine scale set** blade, specify the following settings (leave others with their default values) and click **Next : Scaling >**: 1. Back on the **Networking** tab of the **Create a virtual machine scale set** blade, under the **Load balancing** section, ensure that the **Use a load balancer** entry is selected and specify the following **Load balancing settings** (leave others with their default values) and click **Next : Scaling >**:
| Setting | Value | | Setting | Value |
| --- | --- | | --- | --- |
| Use a load balancer | **Yes** |
| Load balancing options | **Azure load balancer** | | Load balancing options | **Azure load balancer** |
| Select a load balancer | **(new) az10408vmss0-lb** | | Select a load balancer | **(new) az10408vmss0-lb** |
| Select a backend pool | **(new) bepool** | | Select a backend pool | **(new) bepool** |
@ -421,10 +417,17 @@ In this task, you will deploy Azure virtual machine scale set across availabilit
| Initial instance count | **2** | | Initial instance count | **2** |
| Scaling policy | **Manual** | | Scaling policy | **Manual** |
1. On the **Management** tab of the **Create a virtual machine scale set** blade, ensure that the **Boot diagnostics** opton is enabled, select **Create new**, on the **Create storage account** blade, in the **Name** text box, type a unique, valid storage account name, click **OK**, and click **Next : Health >**: 1. On the **Management** tab of the **Create a virtual machine scale set** blade, specify the following settings (leave others with their default values):
| Setting | Value |
| --- | --- |
| Boot diagnostics | **Enable with custom storage account** |
| Diagnostics storage account | accept the default value |
>**Note**: You will need the name of this storage account in the next task. >**Note**: You will need the name of this storage account in the next task.
Click **Next : Health >**:
1. On the **Health** tab of the **Create a virtual machine scale set** blade, review the default settings without making any changes and click **Next : Advanced >**. 1. On the **Health** tab of the **Create a virtual machine scale set** blade, review the default settings without making any changes and click **Next : Advanced >**.
1. On the **Advanced** tab of the **Create a virtual machine scale set** blade, specify the following settings (leave others with their default values) and click **Review + create**. 1. On the **Advanced** tab of the **Create a virtual machine scale set** blade, specify the following settings (leave others with their default values) and click **Review + create**.
@ -439,7 +442,6 @@ In this task, you will deploy Azure virtual machine scale set across availabilit
>**Note**: Wait for the virtual machine scale set deployment to complete. This should take about 5 minutes. >**Note**: Wait for the virtual machine scale set deployment to complete. This should take about 5 minutes.
#### Task 6: Configure Azure virtual machine scale sets by using virtual machine extensions #### Task 6: Configure Azure virtual machine scale sets by using virtual machine extensions
In this task, you will install Windows Server Web Server role on the instances of the Azure virtual machine scale set you deployed in the previous task by using the Custom Script virtual machine extension. In this task, you will install Windows Server Web Server role on the instances of the Azure virtual machine scale set you deployed in the previous task by using the Custom Script virtual machine extension.
@ -481,7 +483,6 @@ In this task, you will install Windows Server Web Server role on the instances o
>**Note**: Verify that the browser page displays the name of one of the instances of the Azure virtual machine scale set **az10408vmss0**. >**Note**: Verify that the browser page displays the name of one of the instances of the Azure virtual machine scale set **az10408vmss0**.
#### Task 7: Scale compute and storage for Azure virtual machine scale sets #### Task 7: Scale compute and storage for Azure virtual machine scale sets
In this task, you will change the size of virtual machine scale set instances, configure their autoscaling settings, and attach disks to them. In this task, you will change the size of virtual machine scale set instances, configure their autoscaling settings, and attach disks to them.
@ -547,6 +548,7 @@ In this task, you will change the size of virtual machine scale set instances, c
$pip = (Get-AzPublicIpAddress -ResourceGroupName $rgName -Name $lbpipName).IpAddress $pip = (Get-AzPublicIpAddress -ResourceGroupName $rgName -Name $lbpipName).IpAddress
``` ```
1. From the Cloud Shell pane, run the following to start and infinite loop that sends the HTTP requests to the web sites hosted on the instances of Azure virtual machine scale set **az10408vmss0**. 1. From the Cloud Shell pane, run the following to start and infinite loop that sends the HTTP requests to the web sites hosted on the instances of Azure virtual machine scale set **az10408vmss0**.
```pwsh ```pwsh
@ -561,14 +563,13 @@ In this task, you will change the size of virtual machine scale set instances, c
1. Close Cloud Shell pane. 1. Close Cloud Shell pane.
1. On the **az10408vmss0** blade, click **Disks**, click **+ Add data disk**, and attach a new managed disk with the following settings (leave others with their default values): 1. On the **az10408vmss0** blade, click **Disks**, click **+ Create and attach a new disk**, and attach a new managed disk with the following settings (leave others with their default values):
| Setting | Value | | Setting | Value |
| --- | --- | | --- | --- |
| LUN | **0** | | LUN | **0** |
| Size | **32** | | Storage type | **Standard HDD** |
| Account type | **Standard HDD** | | Size (GiB) | **32** |
| Host caching | **None** |
1. Save the change, in the **Settings** section of the **az10408vmss0** blade, click **Instances**, select the checkboxes next to the two instances of the virtual machine scale set, click **Upgrade**, and then, when prompted for confirmation, click **Yes**. 1. Save the change, in the **Settings** section of the **az10408vmss0** blade, click **Instances**, select the checkboxes next to the two instances of the virtual machine scale set, click **Upgrade**, and then, when prompted for confirmation, click **Yes**.
@ -634,9 +635,9 @@ In this task, you will change the size of virtual machine scale set instances, c
In this lab, you have: In this lab, you have:
- Deployed zone-resilient Azure virtual machines by using the Azure portal and an Azure Resource Manager template + Deployed zone-resilient Azure virtual machines by using the Azure portal and an Azure Resource Manager template
- Configured Azure virtual machines by using virtual machine extensions + Configured Azure virtual machines by using virtual machine extensions
- Scaled compute and storage for Azure virtual machines + Scaled compute and storage for Azure virtual machines
- Deployed zone-reslient Azure virtual machine scale sets by using the Azure portal + Deployed zone-reslient Azure virtual machine scale sets by using the Azure portal
- Configured Azure virtual machine scale sets by using virtual machine extensions + Configured Azure virtual machine scale sets by using virtual machine extensions
- Scaled compute and storage for Azure virtual machine scale sets + Scaled compute and storage for Azure virtual machine scale sets