mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-10 02:47:03 +00:00
Lab08,Task1: Step4 Image to WS 2019, Step 6 Table
fixed Markdown violations
This commit is contained in:
parent
446f706465
commit
3ef0bb1532
@ -63,7 +63,7 @@ In this task, you will deploy two Azure virtual machines into different availabi
|
|||||||
| Availability options | **Availability zone** |
|
| Availability options | **Availability zone** |
|
||||||
| Availability zone | **Zone 1, 2** (read the note about using virtual machine scale sets) |
|
| Availability zone | **Zone 1, 2** (read the note about using virtual machine scale sets) |
|
||||||
| Security type | **Standard** |
|
| Security type | **Standard** |
|
||||||
| Image | **Ubuntu Server 20.04 LTS - x64 Gen2** |
|
| Image | **Windows Server 2019 Datacenter - x64 Gen2** |
|
||||||
| Azure Spot instance | **unchecked** |
|
| Azure Spot instance | **unchecked** |
|
||||||
| Size | **Standard D2s v3** |
|
| Size | **Standard D2s v3** |
|
||||||
| Authentication type | **Password** |
|
| Authentication type | **Password** |
|
||||||
@ -84,8 +84,10 @@ In this task, you will deploy two Azure virtual machines into different availabi
|
|||||||
|
|
||||||
1. Click **Next: Networking >** take the defaults but do not provide a load balancer.
|
1. Click **Next: Networking >** take the defaults but do not provide a load balancer.
|
||||||
|
|
||||||
|
| Setting | Value |
|
||||||
|
| --- | --- |
|
||||||
| Load balancing options | **None** |
|
| Load balancing options | **None** |
|
||||||
| Delete NIC when VM is deleted | **Checked** (default) |
|
| Delete public IP and NIC when VM is deleted | **Checked** |
|
||||||
|
|
||||||
1. Click **Next: Management >** and specify the following settings (leave others with their default values):
|
1. Click **Next: Management >** and specify the following settings (leave others with their default values):
|
||||||
|
|
||||||
@ -105,7 +107,6 @@ In this task, you will deploy two Azure virtual machines into different availabi
|
|||||||
|
|
||||||
>**Note:** The virtual machine NIC, disk, and public IP address (if configured) are independently created and managed resources.
|
>**Note:** The virtual machine NIC, disk, and public IP address (if configured) are independently created and managed resources.
|
||||||
|
|
||||||
|
|
||||||
1. Wait for the deployment to complete, then select **Go to resource**.
|
1. Wait for the deployment to complete, then select **Go to resource**.
|
||||||
|
|
||||||
>**Note:** Monitor the **Notification** messages.
|
>**Note:** Monitor the **Notification** messages.
|
||||||
@ -327,7 +328,7 @@ In this task, you scale the virtual machine scale set using a custom scale rule.
|
|||||||
|
|
||||||
1. On the **vmss1** page, select **Instances**. This is where you would monitor the number of virtual machine instances.
|
1. On the **vmss1** page, select **Instances**. This is where you would monitor the number of virtual machine instances.
|
||||||
|
|
||||||
>**Note:** If you are interested in using Azure PowerShell for virtual machine creation, try Task 5. If are interested in using the CLI to create virtual machines, try Task 6.
|
>**Note:** If you are interested in using Azure PowerShell for virtual machine creation, try Task 5. If you are interested in using the CLI to create virtual machines, try Task 6.
|
||||||
|
|
||||||
## Task 5: Create a virtual machine using Azure PowerShell (option 1)
|
## Task 5: Create a virtual machine using Azure PowerShell (option 1)
|
||||||
|
|
||||||
@ -360,7 +361,7 @@ In this task, you scale the virtual machine scale set using a custom scale rule.
|
|||||||
|
|
||||||
1. Use **Stop-AzVM** to deallocate your virtual machine. Type **Yes** to confirm.
|
1. Use **Stop-AzVM** to deallocate your virtual machine. Type **Yes** to confirm.
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
Stop-AzVM `
|
Stop-AzVM `
|
||||||
-ResourceGroupName 'az104-rg8' `
|
-ResourceGroupName 'az104-rg8' `
|
||||||
-Name 'myPSVM' `
|
-Name 'myPSVM' `
|
||||||
@ -378,7 +379,6 @@ In this task, you scale the virtual machine scale set using a custom scale rule.
|
|||||||
|
|
||||||
1. Run the following command to create a virtual machine. When prompted, provide a username and password for the VM. While you wait check out the [az vm create](https://learn.microsoft.com/cli/azure/vm?view=azure-cli-latest#az-vm-create) command reference for all the parameters associated with creating a virtual machine.
|
1. Run the following command to create a virtual machine. When prompted, provide a username and password for the VM. While you wait check out the [az vm create](https://learn.microsoft.com/cli/azure/vm?view=azure-cli-latest#az-vm-create) command reference for all the parameters associated with creating a virtual machine.
|
||||||
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
az vm create --name myCLIVM --resource-group az104-rg8 --image Ubuntu2204 --admin-username localadmin --generate-ssh-keys
|
az vm create --name myCLIVM --resource-group az104-rg8 --image Ubuntu2204 --admin-username localadmin --generate-ssh-keys
|
||||||
```
|
```
|
||||||
@ -412,7 +412,6 @@ Congratulations on completing the lab. Here are the main takeaways for this lab.
|
|||||||
+ The virtual machines in a Virtual Machine Scale Set are created from the same image and configuration.
|
+ The virtual machines in a Virtual Machine Scale Set are created from the same image and configuration.
|
||||||
+ In a Virtual Machine Scale Set the number of VM instances can automatically increase or decrease in response to demand or a defined schedule.
|
+ In a Virtual Machine Scale Set the number of VM instances can automatically increase or decrease in response to demand or a defined schedule.
|
||||||
|
|
||||||
|
|
||||||
## Learn more with self-paced training
|
## Learn more with self-paced training
|
||||||
|
|
||||||
+ [Create a Windows virtual machine in Azure](https://learn.microsoft.com/training/modules/create-windows-virtual-machine-in-azure/). Create a Windows virtual machine using the Azure portal. Connect to a running Windows virtual machine using Remote Desktop
|
+ [Create a Windows virtual machine in Azure](https://learn.microsoft.com/training/modules/create-windows-virtual-machine-in-azure/). Create a Windows virtual machine using the Azure portal. Connect to a running Windows virtual machine using Remote Desktop
|
||||||
@ -426,5 +425,3 @@ If you are working with your own subscription take a minute to delete the lab re
|
|||||||
+ In the Azure portal, select the resource group, select **Delete the resource group**, **Enter resource group name**, and then click **Delete**.
|
+ In the Azure portal, select the resource group, select **Delete the resource group**, **Enter resource group name**, and then click **Delete**.
|
||||||
+ Using Azure PowerShell, `Remove-AzResourceGroup -Name resourceGroupName`.
|
+ Using Azure PowerShell, `Remove-AzResourceGroup -Name resourceGroupName`.
|
||||||
+ Using the CLI, `az group delete --name resourceGroupName`.
|
+ Using the CLI, `az group delete --name resourceGroupName`.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user