From a33ae210f634e5e38c5314867bc2698c1f9df719 Mon Sep 17 00:00:00 2001 From: Marcin Policht Date: Tue, 2 Feb 2021 12:34:46 -0500 Subject: [PATCH] addresssing #226 --- .../LAB_02a_Manage_Subscriptions_and_RBAC.md | 6 ++--- ..._02b-Manage_Governance_via_Azure_Policy.md | 2 +- ...ure_Resources_by_Using_Azure_PowerShell.md | 18 +++++++-------- .../LAB_04-Implement_Virtual_Networking.md | 12 +++++----- ...LAB_05-Implement_Intersite_Connectivity.md | 22 +++++++++---------- ...06-Implement_Network_Traffic_Management.md | 20 ++++++++--------- .../Labs/LAB_07-Manage_Azure_Storage.md | 12 +++++----- .../Labs/LAB_08-Manage_Virtual_Machines.md | 22 +++++++++---------- .../Labs/LAB_09a-Implement_Web_Apps.md | 10 ++++----- ...09b-Implement_Azure_Container_Instances.md | 4 ++-- ..._09c-Implement_Azure_Kubernetes_Service.md | 2 +- .../Labs/LAB_10-Implement_Data_Protection.md | 8 +++---- .../Labs/LAB_11-Implement_Monitoring.md | 10 ++++----- 13 files changed, 74 insertions(+), 74 deletions(-) diff --git a/Instructions/Labs/LAB_02a_Manage_Subscriptions_and_RBAC.md b/Instructions/Labs/LAB_02a_Manage_Subscriptions_and_RBAC.md index 4342a88f..05804929 100644 --- a/Instructions/Labs/LAB_02a_Manage_Subscriptions_and_RBAC.md +++ b/Instructions/Labs/LAB_02a_Manage_Subscriptions_and_RBAC.md @@ -96,7 +96,7 @@ In this task, you will create a definition of a custom RBAC role. 1. From the Cloud Shell pane, run the following to create the custom role definition: - ```pwsh + ```powershell New-AzRoleDefinition -InputFile $HOME/az104-02a-customRoleDefinition.json ``` @@ -157,7 +157,7 @@ In this task, you will create an Azure Active Directory user, assign the RBAC ro 1. From the Cloud Shell pane, run the following to remove the assignment of the custom role definition (replace the `[object_ID]` placeholder with the value of the **object ID** attribute of the **az104-02-aaduser1** Azure Active Directory user account you copied earlier in this task): - ```pwsh + ```powershell $scope = (Get-AzRoleAssignment -RoleDefinitionName 'Support Request Contributor (Custom)').Scope Remove-AzRoleAssignment -ObjectId '[object_ID]' -RoleDefinitionName 'Support Request Contributor (Custom)' -Scope $scope @@ -165,7 +165,7 @@ In this task, you will create an Azure Active Directory user, assign the RBAC ro 1. From the Cloud Shell pane, run the following to remove the custom role definition: - ```pwsh + ```powershell Remove-AzRoleDefinition -Name 'Support Request Contributor (Custom)' -Force ``` diff --git a/Instructions/Labs/LAB_02b-Manage_Governance_via_Azure_Policy.md b/Instructions/Labs/LAB_02b-Manage_Governance_via_Azure_Policy.md index 2dc4a0ce..f51409e9 100644 --- a/Instructions/Labs/LAB_02b-Manage_Governance_via_Azure_Policy.md +++ b/Instructions/Labs/LAB_02b-Manage_Governance_via_Azure_Policy.md @@ -41,7 +41,7 @@ In this task, you will create and assign a tag to an Azure resource group via th 1. From the Cloud Shell pane, run the following to identify the name of the storage account used by Cloud Shell: - ```pwsh + ```powershell df ``` diff --git a/Instructions/Labs/LAB_03c-Manage_Azure_Resources_by_Using_Azure_PowerShell.md b/Instructions/Labs/LAB_03c-Manage_Azure_Resources_by_Using_Azure_PowerShell.md index 4b36b502..c9bbe92e 100644 --- a/Instructions/Labs/LAB_03c-Manage_Azure_Resources_by_Using_Azure_PowerShell.md +++ b/Instructions/Labs/LAB_03c-Manage_Azure_Resources_by_Using_Azure_PowerShell.md @@ -45,7 +45,7 @@ In this task, you will create a resource group and an Azure managed disk by usin 1. To create a resource group in the same Azure region as the **az104-03b-rg1** resource group you created in the previous lab, from the PowerShell session within Cloud Shell, run the following: - ```pwsh + ```powershell $location = (Get-AzResourceGroup -Name az104-03b-rg1).Location $rgName = 'az104-03c-rg1' @@ -54,12 +54,12 @@ In this task, you will create a resource group and an Azure managed disk by usin ``` 1. To retrieve properties of the newly created resource group, run the following: - ```pwsh + ```powershell Get-AzResourceGroup -Name $rgName ``` 1. To create a new managed disk with the same characteristics as those you created in the previous labs of this module, run the following: - ```pwsh + ```powershell $diskConfig = New-AzDiskConfig ` -Location $location ` -CreateOption Empty ` @@ -76,7 +76,7 @@ In this task, you will create a resource group and an Azure managed disk by usin 1. To retrieve properties of the newly created disk, run the following: - ```pwsh + ```powershell Get-AzDisk -ResourceGroupName $rgName -Name $diskName ``` @@ -86,31 +86,31 @@ In this task, you will managing configuration of the Azure managed disk by using 1. To increase the size of the Azure managed disk to **64 GB**, from the PowerShell session within Cloud Shell, run the following: - ```pwsh + ```powershell New-AzDiskUpdateConfig -DiskSizeGB 64 | Update-AzDisk -ResourceGroupName $rgName -DiskName $diskName ``` 1. To verify that the change took effect, run the following: - ```pwsh + ```powershell Get-AzDisk -ResourceGroupName $rgName -Name $diskName ``` 1. To verify the current SKU as **Standard_LRS**, run the following: - ```pwsh + ```powershell (Get-AzDisk -ResourceGroupName $rgName -Name $diskName).Sku ``` 1. To change the disk performance SKU to **Premium_LRS**, from the PowerShell session within Cloud Shell, run the following: - ```pwsh + ```powershell New-AzDiskUpdateConfig -Sku Premium_LRS | Update-AzDisk -ResourceGroupName $rgName -DiskName $diskName ``` 1. To verify that the change took effect, run the following: - ```pwsh + ```powershell (Get-AzDisk -ResourceGroupName $rgName -Name $diskName).Sku ``` diff --git a/Instructions/Labs/LAB_04-Implement_Virtual_Networking.md b/Instructions/Labs/LAB_04-Implement_Virtual_Networking.md index b6a1b80b..993c0096 100644 --- a/Instructions/Labs/LAB_04-Implement_Virtual_Networking.md +++ b/Instructions/Labs/LAB_04-Implement_Virtual_Networking.md @@ -83,7 +83,7 @@ In this task, you will deploy Azure virtual machines into different subnets of t 1. From the Cloud Shell pane, run the following to deploy two virtual machines by using the template and parameter files you uploaded: - ```pwsh + ```powershell $rgName = 'az104-04-rg1' New-AzResourceGroupDeployment ` @@ -239,7 +239,7 @@ In this task, you will configure DNS name resolution within a virtual network by 1. In the Windows PowerShell console window, run the following to test internal name resolution of the **az104-04-vm1** DNS record set in the newly created private DNS zone: - ```pwsh + ```powershell nslookup az104-04-vm1.contoso.org ``` 1. Verify that the output of the command includes the private IP address of **az104-04-vm1** (**10.40.1.4**). @@ -296,14 +296,14 @@ In this task, you will configure external DNS name resolution by using Azure pub 1. From the Cloud Shell pane, run the following to test external name resolution of the **az104-04-vm0** DNS record set in the newly created DNS zone (replace the placeholder `[Name server 1]` including the [] brackets, with the name of **Name server 1** you noted earlier in this task and the `[domain name] placeholder with the name of the DNS domain you created earlier in this task): - ```pwsh + ```powershell nslookup az104-04-vm0.[domain name] [Name server 1] ``` 1. Verify that the output of the command includes the public IP address of **az104-04-vm0**. 1. From the Cloud Shell pane, run the following to test external name resolution of the **az104-04-vm1** DNS record set in the the newly created DNS zone (replace the placeholder `[Name server 1]` with the name of **Name server 1** you noted earlier in this task and the `[domain name] placeholder with the name of the DNS domain you created earlier in this task): - ```pwsh + ```powershell nslookup az104-04-vm1.[domain name] [Name server 1] ``` 1. Verify that the output of the command includes the public IP address of **az104-04-vm1**. @@ -316,13 +316,13 @@ In this task, you will configure external DNS name resolution by using Azure pub 1. List all resource groups created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-04*' ``` 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-04*' | Remove-AzResourceGroup -Force -AsJob ``` diff --git a/Instructions/Labs/LAB_05-Implement_Intersite_Connectivity.md b/Instructions/Labs/LAB_05-Implement_Intersite_Connectivity.md index fd04c197..6034a248 100644 --- a/Instructions/Labs/LAB_05-Implement_Intersite_Connectivity.md +++ b/Instructions/Labs/LAB_05-Implement_Intersite_Connectivity.md @@ -39,7 +39,7 @@ 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 first resource group that will be hosting the first virtual network and the pair of virtual machines (replace the `[Azure_region_1]` placeholder with the name of an Azure region where you intend to deploy these Azure virtual machines): - ```pwsh + ```powershell $location = '[Azure_region_1]' $rgName = 'az104-05-rg0' @@ -50,7 +50,7 @@ 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 first virtual network and deploy a virtual machine into it by using the template and parameter files you uploaded: - ```pwsh + ```powershell New-AzResourceGroupDeployment ` -ResourceGroupName $rgName ` -TemplateFile $HOME/az104-05-vnetvm-template.json ` @@ -60,14 +60,14 @@ 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 second resource group that will be hosting the second virtual network and the second virtual machine - ```pwsh + ```powershell $rgName = 'az104-05-rg1' New-AzResourceGroup -Name $rgName -Location $location ``` 1. From the Cloud Shell pane, run the following to create the second virtual network and deploy a virtual machine into it by using the template and parameter files you uploaded: - ```pwsh + ```powershell New-AzResourceGroupDeployment ` -ResourceGroupName $rgName ` -TemplateFile $HOME/az104-05-vnetvm-template.json ` @@ -77,7 +77,7 @@ 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 third resource group that will be hosting the third virtual network and the third virtual machine (replace the `[Azure_region_2]` placeholder with the name of another Azure region where you can deploy Azure virtual machines, different from the Azure region you used for the other two deployments): - ```pwsh + ```powershell $location = '[Azure_region_2]' $rgName = 'az104-05-rg2' @@ -86,7 +86,7 @@ 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 third virtual network and deploy a virtual machine into it by using the template and parameter files you uploaded: - ```pwsh + ```powershell New-AzResourceGroupDeployment ` -ResourceGroupName $rgName ` -TemplateFile $HOME/az104-05-vnetvm-template.json ` @@ -197,7 +197,7 @@ In this task, you will test connectivity between virtual machines on the three v 1. In the Windows PowerShell console window, run the following to test connectivity to **az104-05-vm1** (which has the private IP address of **10.51.0.4**) over TCP port 3389: - ```pwsh + ```powershell Test-NetConnection -ComputerName 10.51.0.4 -Port 3389 -InformationLevel 'Detailed' ``` >**Note**: The test uses TCP 3389 since this is this port is allowed by default by operating system firewall. @@ -206,7 +206,7 @@ In this task, you will test connectivity between virtual machines on the three v 1. In the Windows PowerShell console window, run the following to test connectivity to **az104-05-vm2** (which has the private IP address of **10.52.0.4**): - ```pwsh + ```powershell Test-NetConnection -ComputerName 10.52.0.4 -Port 3389 -InformationLevel 'Detailed' ``` 1. Switch back to the Azure portal on your lab computer and navigate back to the **Virtual machines** blade. @@ -225,7 +225,7 @@ In this task, you will test connectivity between virtual machines on the three v 1. In the Windows PowerShell console window, run the following to test connectivity to **az104-05-vm2** (which has the private IP address of **10.52.0.4**) over TCP port 3389: - ```pwsh + ```powershell Test-NetConnection -ComputerName 10.52.0.4 -Port 3389 -InformationLevel 'Detailed' ``` >**Note**: The test uses TCP 3389 since this is this port is allowed by default by operating system firewall. @@ -240,13 +240,13 @@ In this task, you will test connectivity between virtual machines on the three v 1. List all resource groups created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-05*' ``` 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-05*' | Remove-AzResourceGroup -Force -AsJob ``` diff --git a/Instructions/Labs/LAB_06-Implement_Network_Traffic_Management.md b/Instructions/Labs/LAB_06-Implement_Network_Traffic_Management.md index 8f1e533c..6a4d1461 100644 --- a/Instructions/Labs/LAB_06-Implement_Network_Traffic_Management.md +++ b/Instructions/Labs/LAB_06-Implement_Network_Traffic_Management.md @@ -46,7 +46,7 @@ In this task, you will deploy four virtual machines into the same Azure region. 1. From the Cloud Shell pane, run the following to create the first resource group that will be hosting the first virtual network and the pair of virtual machines (replace the `[Azure_region]` placeholder with the name of an Azure region where you intend to deploy Azure virtual machines)(you can use the "(Get-AzLocation).Location" cmdlet to get the region list): - ```pwsh + ```powershell $location = '[Azure_region]' $rgName = 'az104-06-rg1' @@ -55,7 +55,7 @@ In this task, you will deploy four virtual machines into the same Azure region. ``` 1. From the Cloud Shell pane, run the following to create the first virtual network and deploy a pair of virtual machines into it by using the template and parameter files you uploaded: - ```pwsh + ```powershell New-AzResourceGroupDeployment ` -ResourceGroupName $rgName ` -TemplateFile $HOME/az104-06-vms-template.json ` @@ -65,14 +65,14 @@ In this task, you will deploy four virtual machines into the same Azure region. 1. From the Cloud Shell pane, run the following to create the second resource group that will be hosting the second virtual network and the third virtual machine - ```pwsh + ```powershell $rgName = 'az104-06-rg2' New-AzResourceGroup -Name $rgName -Location $location ``` 1. From the Cloud Shell pane, run the following to create the second virtual network and deploy a virtual machine into it by using the template and parameter files you uploaded: - ```pwsh + ```powershell New-AzResourceGroupDeployment ` -ResourceGroupName $rgName ` -TemplateFile $HOME/az104-06-vm-template.json ` @@ -82,14 +82,14 @@ In this task, you will deploy four virtual machines into the same Azure region. ``` 1. From the Cloud Shell pane, run the following to create the third resource group that will be hosting the third virtual network and the fourth virtual machine: - ```pwsh + ```powershell $rgName = 'az104-06-rg3' New-AzResourceGroup -Name $rgName -Location $location ``` 1. From the Cloud Shell pane, run the following to create the third virtual network and deploy a virtual machine into it by using the template and parameter files you uploaded: - ```pwsh + ```powershell New-AzResourceGroupDeployment ` -ResourceGroupName $rgName ` -TemplateFile $HOME/az104-06-vm-template.json ` @@ -252,7 +252,7 @@ In this task, you will configure and test routing between the two spoke virtual 1. On the **Run Command Script** blade, type the following and click **Run** to install the Remote Access Windows Server role. - ```pwsh + ```powershell Install-WindowsFeature RemoteAccess -IncludeManagementTools ``` @@ -260,7 +260,7 @@ In this task, you will configure and test routing between the two spoke virtual 1. On the **Run Command Script** blade, type the following and click **Run** to install the Routing role service. - ```pwsh + ```powershell Install-WindowsFeature -Name Routing -IncludeManagementTools -IncludeAllSubFeature Install-WindowsFeature -Name "RSAT-RemoteAccess-Powershell" @@ -567,13 +567,13 @@ In this task, you will implement an Azure Application Gateway in front of the tw 1. List all resource groups created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-06*' ``` 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-06*' | Remove-AzResourceGroup -Force -AsJob ``` diff --git a/Instructions/Labs/LAB_07-Manage_Azure_Storage.md b/Instructions/Labs/LAB_07-Manage_Azure_Storage.md index 22838b72..fc25e3c5 100644 --- a/Instructions/Labs/LAB_07-Manage_Azure_Storage.md +++ b/Instructions/Labs/LAB_07-Manage_Azure_Storage.md @@ -46,7 +46,7 @@ In this task, you will deploy an Azure virtual machine that you will use later i >**Note**: To list the names of Azure regions, run `(Get-AzLocation).Location` - ```pwsh + ```powershell $location = '[Azure_region]' $rgName = 'az104-07-rg0' @@ -55,7 +55,7 @@ In this task, you will deploy an Azure virtual machine that you will use later i ``` 1. From the Cloud Shell pane, run the following to deploy the virtual machine by using the uploaded template and parameter files: - ```pwsh + ```powershell New-AzResourceGroupDeployment ` -ResourceGroupName $rgName ` -TemplateFile $HOME/az104-07-vm-template.json ` @@ -256,7 +256,7 @@ In this task, you will create and configure Azure Files shares. 1. Replace the content of the **PowerShell Script** pane with the following script and click **Run**: - ```pwsh + ```powershell New-Item -Type Directory -Path 'Z:\az104-07-folder' New-Item -Type File -Path 'Z:\az104-07-folder\az-104-07-file.txt' @@ -294,7 +294,7 @@ In this task, you will configure network access for Azure Storage. 1. From the Cloud Shell pane, run the following to attempt downloading of the LICENSE blob from the **az104-07-container** container of the storage account (replace the `[blob SAS URL]` placeholder with the blob SAS URL you generated in the previous task): - ```pwsh + ```powershell Invoke-WebRequest -URI '[blob SAS URL]' ``` 1. Verify that the download attempt failed. @@ -311,13 +311,13 @@ In this task, you will configure network access for Azure Storage. 1. List all resource groups created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-07*' ``` 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-07*' | Remove-AzResourceGroup -Force -AsJob ``` diff --git a/Instructions/Labs/LAB_08-Manage_Virtual_Machines.md b/Instructions/Labs/LAB_08-Manage_Virtual_Machines.md index 9feb562b..471ff2b7 100644 --- a/Instructions/Labs/LAB_08-Manage_Virtual_Machines.md +++ b/Instructions/Labs/LAB_08-Manage_Virtual_Machines.md @@ -201,7 +201,7 @@ In this task, you will install Windows Server Web Server role on the two Azure v 1. On the **Run Command Script** blade, type the following and click **Run** to access the web site hosted on **az104-08-vm0**: - ```pwsh + ```powershell Invoke-WebRequest -URI http://10.80.0.4 -UseBasicParsing ``` @@ -245,7 +245,7 @@ In this task you will scale compute for Azure virtual machines by changing their 1. On the **Run Command Script** blade, type the following and click **Run** to create a drive Z: consisting of the two newly attached disks with the simple layout and fixed provisioning: - ```pwsh + ```powershell New-StoragePool -FriendlyName storagepool1 -StorageSubsystemFriendlyName "Windows Storage*" -PhysicalDisks (Get-PhysicalDisk -CanPool $true) New-VirtualDisk -StoragePoolFriendlyName storagepool1 -FriendlyName virtualdisk1 -Size 2046GB -ResiliencySettingName Simple -ProvisioningType Fixed @@ -310,7 +310,7 @@ In this task you will scale compute for Azure virtual machines by changing their 1. On the **Run Command Script** blade, type the following and click **Run** to create a drive Z: consisting of the two newly attached disks with the simple layout and fixed provisioning: - ```pwsh + ```powershell New-StoragePool -FriendlyName storagepool1 -StorageSubsystemFriendlyName "Windows Storage*" -PhysicalDisks (Get-PhysicalDisk -CanPool $true) New-VirtualDisk -StoragePoolFriendlyName storagepool1 -FriendlyName virtualdisk1 -Size 2046GB -ResiliencySettingName Simple -ProvisioningType Fixed @@ -332,7 +332,7 @@ In this task you will scale compute for Azure virtual machines by changing their 1. From the Cloud Shell pane, run the following to register the Microsoft.Insights and Microsoft.AlertsManagement resource providers. - ```pwsh + ```powershell Register-AzResourceProvider -ProviderNamespace Microsoft.Insights Register-AzResourceProvider -ProviderNamespace Microsoft.AlertsManagement @@ -541,7 +541,7 @@ In this task, you will change the size of virtual machine scale set instances, c 1. From the Cloud Shell pane, run the following to identify the public IP address of the load balancer in front of the Azure virtual machine scale set **az10408vmss0**. - ```pwsh + ```powershell $rgName = 'az104-08-rg02' $lbpipName = 'az10408vmss0-ip' @@ -551,7 +551,7 @@ In this task, you will change the size of virtual machine scale set instances, c 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 + ```powershell while ($true) { Invoke-WebRequest -Uri "http://$pip" } ``` @@ -587,7 +587,7 @@ In this task, you will change the size of virtual machine scale set instances, c 1. From the Cloud Shell pane, run the following to display the content of the script: - ```pwsh + ```powershell Set-Location -Path $HOME Get-Content -Path ./az104-08-configure_VMSS_disks.ps1 @@ -597,7 +597,7 @@ In this task, you will change the size of virtual machine scale set instances, c 1. From the Cloud Shell pane, run the following to excecute the script and configure disks of Azure virtual machine scale set: - ```pwsh + ```powershell ./az104-08-configure_VMSS_disks.ps1 ``` @@ -613,19 +613,19 @@ In this task, you will change the size of virtual machine scale set instances, c 1. Remove az104-08-configure_VMSS_disks.ps1 by running the following command: - ```pwsh + ```powershell rm ~\az104-08* ``` 1. List all resource groups created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-08*' ``` 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-08*' | Remove-AzResourceGroup -Force -AsJob ``` diff --git a/Instructions/Labs/LAB_09a-Implement_Web_Apps.md b/Instructions/Labs/LAB_09a-Implement_Web_Apps.md index d618a4da..754640de 100644 --- a/Instructions/Labs/LAB_09a-Implement_Web_Apps.md +++ b/Instructions/Labs/LAB_09a-Implement_Web_Apps.md @@ -122,7 +122,7 @@ In this task, you will deploy code to the staging deployment slot. 1. From the Cloud Shell pane, run the following to clone the remote repository containing the code for the web app. - ```pwsh + ```powershell git clone https://github.com/Azure-Samples/php-docs-hello-world ``` @@ -213,7 +213,7 @@ In this task, you will configure and test autoscaling of Azure web app. 1. From the Cloud Shell pane, run the following to identify the URL of the Azure web app. - ```pwsh + ```powershell $rgName = 'az104-09a-rg1' $webapp = Get-AzWebApp -ResourceGroupName $rgName @@ -221,7 +221,7 @@ In this task, you will configure and test autoscaling of Azure web app. 1. From the Cloud Shell pane, run the following to start and infinite loop that sends the HTTP requests to the web app: - ```pwsh + ```powershell while ($true) { Invoke-WebRequest -Uri $webapp.DefaultHostName } ``` @@ -245,13 +245,13 @@ In this task, you will configure and test autoscaling of Azure web app. 1. List all resource groups created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-09a*' ``` 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-09a*' | Remove-AzResourceGroup -Force -AsJob ``` diff --git a/Instructions/Labs/LAB_09b-Implement_Azure_Container_Instances.md b/Instructions/Labs/LAB_09b-Implement_Azure_Container_Instances.md index ed0516f9..269de779 100644 --- a/Instructions/Labs/LAB_09b-Implement_Azure_Container_Instances.md +++ b/Instructions/Labs/LAB_09b-Implement_Azure_Container_Instances.md @@ -81,13 +81,13 @@ In this task, you will review the deployment of the container instance. 1. List all resource groups created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-09b*' ``` 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-09b*' | Remove-AzResourceGroup -Force -AsJob ``` diff --git a/Instructions/Labs/LAB_09c-Implement_Azure_Kubernetes_Service.md b/Instructions/Labs/LAB_09c-Implement_Azure_Kubernetes_Service.md index 76383315..15b946dd 100644 --- a/Instructions/Labs/LAB_09c-Implement_Azure_Kubernetes_Service.md +++ b/Instructions/Labs/LAB_09c-Implement_Azure_Kubernetes_Service.md @@ -39,7 +39,7 @@ In this task, you will register resource providers necessary to deploy an Azure 1. From the Cloud Shell pane, run the following to register the Microsoft.Kubernetes and Microsoft.KubernetesConfiguration resource providers. - ```pwsh + ```powershell Register-AzResourceProvider -ProviderNamespace Microsoft.Kubernetes Register-AzResourceProvider -ProviderNamespace Microsoft.KubernetesConfiguration diff --git a/Instructions/Labs/LAB_10-Implement_Data_Protection.md b/Instructions/Labs/LAB_10-Implement_Data_Protection.md index 0e849720..e813fc5b 100644 --- a/Instructions/Labs/LAB_10-Implement_Data_Protection.md +++ b/Instructions/Labs/LAB_10-Implement_Data_Protection.md @@ -45,7 +45,7 @@ In this task, you will deploy two virtual machines that will be used to test dif 1. From the Cloud Shell pane, run the following to create the resource group that will be hosting the virtual machines (replace the `[Azure_region]` placeholder with the name of an Azure region where you intend to deploy Azure virtual machines): - ```pwsh + ```powershell $location = '[Azure_region]' $rgName = 'az104-10-rg0' @@ -54,7 +54,7 @@ In this task, you will deploy two virtual machines that will be used to test dif ``` 1. From the Cloud Shell pane, run the following to create the first virtual network and deploy a virtual machine into it by using the template and parameter files you uploaded: - ```pwsh + ```powershell New-AzResourceGroupDeployment ` -ResourceGroupName $rgName ` -TemplateFile $HOME/az104-10-vms-template.json ` @@ -433,13 +433,13 @@ In this task, you will restore a file from the Azure virtual machine-level snaps 1. List all resource groups created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-10*' ``` 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-10*' | Remove-AzResourceGroup -Force -AsJob ``` diff --git a/Instructions/Labs/LAB_11-Implement_Monitoring.md b/Instructions/Labs/LAB_11-Implement_Monitoring.md index cc51046a..d381d16a 100644 --- a/Instructions/Labs/LAB_11-Implement_Monitoring.md +++ b/Instructions/Labs/LAB_11-Implement_Monitoring.md @@ -46,7 +46,7 @@ In this task, you will deploy a virtual machine that will be used to test monito >**Note**: Make sure to choose one of the regions listed as **Log Analytics Workspace Region** in the referenced in [Workspace mappings documentation](https://docs.microsoft.com/en-us/azure/automation/how-to/region-mappings) - ```pwsh + ```powershell $location = '[Azure_region]' $rgName = 'az104-11-rg0' @@ -56,7 +56,7 @@ In this task, you will deploy a virtual machine that will be used to test monito 1. From the Cloud Shell pane, run the following to create the first virtual network and deploy a virtual machine into it by using the template and parameter files you uploaded: - ```pwsh + ```powershell New-AzResourceGroupDeployment ` -ResourceGroupName $rgName ` -TemplateFile $HOME/az104-11-vm-template.json ` @@ -70,7 +70,7 @@ In this task, you will deploy a virtual machine that will be used to test monito 1. From the Cloud Shell pane, run the following to register the Microsoft.Insights and Microsoft.AlertsManagement resource providers. - ```pwsh + ```powershell Register-AzResourceProvider -ProviderNamespace Microsoft.Insights Register-AzResourceProvider -ProviderNamespace Microsoft.AlertsManagement @@ -313,13 +313,13 @@ In this task, you will configure Azure virtual machine diagnostic settings. 1. List all resource groups created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-11*' ``` 1. Delete all resource groups you created throughout the labs of this module by running the following command: - ```pwsh + ```powershell Get-AzResourceGroup -Name 'az104-11*' | Remove-AzResourceGroup -Force -AsJob ```