Merge pull request #302 from jmenne/Lab10EdgeInstall

IE11 no longer supported from the Azure portal
This commit is contained in:
polichtm 2021-05-23 18:30:08 -04:00 committed by GitHub
commit 8d4a72ab35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 360 additions and 34 deletions

View File

@ -0,0 +1,45 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"value": "Student"
},
"adminPassword": {
"value": "Pa55w.rd1234"
},
"vmNamePrefix": {
"value": "az104-10-vm"
},
"nicNamePrefix": {
"value": "az104-10-nic"
},
"imagePublisher": {
"value": "MicrosoftWindowsServer"
},
"imageOffer": {
"value": "WindowsServer"
},
"imageSKU": {
"value": "2019-Datacenter"
},
"vmSize": {
"value": "Standard_D2s_v3"
},
"virtualNetworkName": {
"value": "az104-10-vnet"
},
"addressPrefix": {
"value": "10.0.0.0/24"
},
"virtualNetworkResourceGroup": {
"value": "az104-10-rg0"
},
"subnet0Name": {
"value": "subnet0"
},
"subnet0Prefix": {
"value": "10.0.0.0/26"
}
}
}

View File

@ -0,0 +1,280 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"metadata": {
"description": "Admin username"
}
},
"adminPassword": {
"type": "securestring",
"metadata": {
"description": "Admin password"
}
},
"vmNamePrefix": {
"type": "string",
"defaultValue": "az104-10-vm",
"metadata": {
"description": "VM name prefix"
}
},
"pipNamePrefix": {
"type": "string",
"defaultValue": "az104-10-pip",
"metadata": {
"description": "Public IP address name prefix"
}
},
"nicNamePrefix": {
"type": "string",
"defaultValue": "az104-10-nic",
"metadata": {
"description": "Nic name prefix"
}
},
"imagePublisher": {
"type": "string",
"defaultValue": "MicrosoftWindowsServer",
"metadata": {
"description": "Image Publisher"
}
},
"imageOffer": {
"type": "string",
"defaultValue": "WindowsServer",
"metadata": {
"description": "Image Offer"
}
},
"imageSKU": {
"type": "string",
"defaultValue": "2019-Datacenter",
"allowedValues": [
"2019-Datacenter",
"2019-Datacenter-Server-Core",
"2019-Datacenter-Server-Core-smalldisk"
],
"metadata": {
"description": "Image SKU"
}
},
"vmSize": {
"type": "string",
"defaultValue": "Standard_D2s_v3",
"metadata": {
"description": "VM size"
}
},
"virtualNetworkName": {
"type": "string",
"defaultValue": "az104-10-vnet",
"metadata": {
"description": "Virtual network name"
}
},
"addressPrefix": {
"type": "string",
"defaultValue": "10.0.0.0/24",
"metadata": {
"description": "Virtual network address prefix"
}
},
"virtualNetworkResourceGroup": {
"type": "string",
"defaultValue": "az104-10-rg0",
"metadata": {
"description": "Resource group of the VNet"
}
},
"subnet0Name": {
"type": "string",
"defaultValue": "subnet0",
"metadata": {
"description": "VNet first subnet name"
}
},
"subnet0Prefix": {
"type": "string",
"defaultValue": "10.0.0.0/26",
"metadata": {
"description": "VNet first subnet prefix"
}
},
"nsgName": {
"type": "string",
"defaultValue": "az104-10-nsg01",
"metadata": {
"description": "Network security group name"
}
}
},
"variables": {
"vnetID": "[resourceId(parameters('virtualNetworkResourceGroup'), 'Microsoft.Network/virtualNetworks', parameters('virtualNetworkName'))]",
"subnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnet0Name'))]",
"numberOfInstances": 2,
"computeAPIVersion": "2018-10-01",
"networkAPIVersion": "2018-12-01"
},
"resources": [
{
"type": "Microsoft.Network/networkInterfaces",
"name": "[concat(parameters('nicNamePrefix'), copyindex())]",
"apiVersion": "[variables('networkAPIVersion')]",
"location": "[resourceGroup().location]",
"copy": {
"name": "nicLoop",
"count": "[variables('numberOfInstances')]"
},
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks/',parameters('virtualNetworkName'))]",
"[resourceId('Microsoft.Network/networkSecurityGroups/',parameters('nsgName'))]",
"pipLoop"
],
"properties": {
"ipConfigurations": [
{
"name": "ipconfig1",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"subnet": {
"id": "[variables('subnetRef')]"
},
"publicIpAddress": {
"id": "[resourceId('Microsoft.Network/publicIpAddresses',concat(parameters('pipNamePrefix'),copyindex()))]"
}
}
}
],
"networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('nsgName'))]"
}
}
},
{
"type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworkName')]",
"apiVersion": "[variables('networkAPIVersion')]",
"location": "[resourceGroup().location]",
"properties": {
"addressSpace": {
"addressPrefixes": [
"[parameters('addressPrefix')]"
]
},
"subnets": [
{
"name": "[parameters('subnet0Name')]",
"properties": {
"addressPrefix": "[parameters('subnet0Prefix')]"
}
}
]
}
},
{
"type": "Microsoft.Network/publicIpAddresses",
"name": "[concat(parameters('pipNamePrefix'), copyindex())]",
"apiVersion": "[variables('networkApiVersion')]",
"copy": {
"name": "pipLoop",
"count": "[variables('numberOfInstances')]"
},
"location": "[resourceGroup().location]",
"properties": {
"publicIpAllocationMethod": "Dynamic"
}
},
{
"type": "Microsoft.Network/networkSecurityGroups",
"name": "[parameters('nsgName')]",
"apiVersion": "[variables('networkApiVersion')]",
"location": "[resourceGroup().location]",
"properties": {
"securityRules": [
{
"name": "default-allow-rdp",
"properties": {
"priority": 1000,
"sourceAddressPrefix": "*",
"protocol": "Tcp",
"destinationPortRange": "3389",
"access": "Allow",
"direction": "Inbound",
"sourcePortRange": "*",
"destinationAddressPrefix": "*"
}
}
]
}
},
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[concat(parameters('vmNamePrefix'), copyindex())]",
"apiVersion": "[variables('computeAPIVersion')]",
"copy": {
"name": "virtualMachineLoop",
"count": "[variables('numberOfInstances')]"
},
"location": "[resourceGroup().location]",
"dependsOn": [
"nicLoop"
],
"properties": {
"hardwareProfile": {
"vmSize": "[parameters('vmSize')]"
},
"osProfile": {
"computerName": "[concat(parameters('vmNamePrefix'), copyIndex())]",
"adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('adminPassword')]"
},
"storageProfile": {
"imageReference": {
"publisher": "[parameters('imagePublisher')]",
"offer": "[parameters('imageOffer')]",
"sku": "[parameters('imageSKU')]",
"version": "latest"
},
"osDisk": {
"createOption": "FromImage",
"managedDisk": {
"storageAccountType": "Standard_LRS"
}
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces',concat(parameters('nicNamePrefix'),copyindex()))]"
}
]
}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmNamePrefix'), copyindex(), '/customScriptExtension')]",
"apiVersion": "2018-06-01",
"location": "[resourceGroup().location]",
"copy": {
"name": "cSELoop",
"count": "[variables('numberOfInstances')]"
},
"dependsOn": [
"[concat(parameters('vmNamePrefix'), copyindex())]"
],
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.10",
"autoUpgradeMinorVersion": true,
"Settings": {
"commandToExecute": "powershell.exe Set-ExecutionPolicy Bypass -Scope Process -Force && powershell.exe Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) && powershell.exe c:\\programdata\\chocolatey\\choco.exe install microsoft-edge -y"
}
}
}
]
}

View File

@ -37,9 +37,9 @@ In this task, you will deploy two virtual machines that will be used to test dif
1. In the Azure portal, open the **Azure Cloud Shell** by clicking on the icon in the top right of the Azure Portal.
1. If prompted to select either **Bash** or **PowerShell**, select **PowerShell**.
1. If prompted to select either **Bash** or **PowerShell**, select **PowerShell**.
>**Note**: If this is the first time you are starting **Cloud Shell** and you are presented with the **You have no storage mounted** message, select the subscription you are using in this lab, and click **Create storage**.
>**Note**: If this is the first time you are starting **Cloud Shell** and you are presented with the **You have no storage mounted** message, select the subscription you are using in this lab, and click **Create storage**.
1. In the toolbar of the Cloud Shell pane, click the **Upload/Download files** icon, in the drop-down menu, click **Upload** and upload the files **\\Allfiles\\Labs\\10\\az104-10-vms-template.json** and **\\Allfiles\\Labs\\10\\az104-10-vms-parameters.json** into the Cloud Shell home directory.
@ -52,13 +52,14 @@ In this task, you will deploy two virtual machines that will be used to test dif
New-AzResourceGroup -Name $rgName -Location $location
```
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:
```powershell
New-AzResourceGroupDeployment `
-ResourceGroupName $rgName `
-TemplateFile $HOME/az104-10-vms-template.json `
-TemplateParameterFile $HOME/az104-10-vms-parameters.json `
-TemplateFile $HOME/az104-10-vms-edge-template.json `
-TemplateParameterFile $HOME/az104-10-vms-edge-parameters.json `
-AsJob
```
@ -87,7 +88,7 @@ In this task, you will create a recovery services vault.
>**Note**: Wait for the deployment to complete. The deployment should take less than 1 minute.
1. When the deployment is completed, click **Go to Resource**.
1. When the deployment is completed, click **Go to Resource**.
1. On the **az104-10-rsv1** Recovery Services vault blade, in the **Settings** section, click **Properties**.
@ -97,7 +98,7 @@ In this task, you will create a recovery services vault.
>**Note**: This setting can be configured only if there are no existing backup items.
1. Back on the **az104-10-rsv1 - Properties** blade, click the **Update** link under **Security Settings** label.
1. Back on the **az104-10-rsv1 - Properties** blade, click the **Update** link under **Security Settings** label.
1. On the **Security Settings** blade, note that **Soft Delete (For Azure Virtual Machines)** is **Enabled**.
@ -136,7 +137,7 @@ In this task, you will implement Azure virtual-machine level backup.
1. On the **Select virtual machines** blade, select **az-104-10-vm0**, click **OK**, and, back on the **Backup** blade, click **Enable backup**.
>**Note**: Wait for the backup to be enabled. This should take about 2 minutes.
>**Note**: Wait for the backup to be enabled. This should take about 2 minutes.
1. Navigate back to the **az104-10-rsv1** Recovery Services vault blade, in the **Protected items** section, click **Backup items**, and then click the **Azure virtual machines** entry.
@ -160,9 +161,9 @@ In this task, you will implement file and folder backup by using Azure Recovery
1. When prompted, sign in by using the **Student** username and **Pa55w.rd1234** password.
1. Within the Remote Desktop session to the **az104-10-vm1** Azure virtual machine, in the **Server Manager** window, click **Local Server**, click **IE Enhanced Security Configuration** and turn it **Off** for Administrators.
>**Note:** Because the Azure portal doesn't support IE11 anymore, you'll have to use the Microsoft Edge Browser for this task.
1. Within the Remote Desktop session to the **az104-10-vm1** Azure virtual machine, start a web browser, browse to the [Azure portal](https://portal.azure.com), and sign in using your credentials.
1. Within the Remote Desktop session to the **az104-10-vm1** Azure virtual machine, start an Edge web browser, browse to the [Azure portal](https://portal.azure.com), and sign in using your credentials.
1. In the Azure portal, search for and select **Recovery Services vaults** and, on the **Recovery Services vaults**, click **az104-10-rsv1**.
@ -181,7 +182,7 @@ In this task, you will implement file and folder backup by using Azure Recovery
1. On the **Prepare infrastructure** blade, click the **Download Agent for Windows Server or Windows Client** link.
1. When prompted, click **Run** to start installation of **MARSAgentInstaller.exe** with the default settings.
1. When prompted, click **Run** to start installation of **MARSAgentInstaller.exe** with the default settings.
>**Note**: On the **Microsoft Update Opt-In** page of the **Microsoft Azure Recovery Services Agent Setup Wizard**, select the **I do not want to use Microsoft Update** installation option.
@ -226,7 +227,7 @@ In this task, you will implement file and folder backup by using Azure Recovery
1. On the **Choose Initial Backup type** page, accept the defaults, and then click **Next**.
1. On the **Confirmation** page, click **Finish**. When the backup schedule is created, click **Close**.
1. In the **Microsoft Azure Backup** console, in the Actions pane, click **Back Up Now**.
>**Note**: The option to run backup on demand becomes available once you create a scheduled backup.
@ -239,7 +240,7 @@ In this task, you will implement file and folder backup by using Azure Recovery
1. When the backup is complete, click **Close**, and then close Microsoft Azure Backup.
1. Switch to the web browser window displaying the Azure portal, navigate back to the **Recovery Services vault** blade, in the **Protected items** section, and click **Backup items**.
1. Switch to the web browser window displaying the Azure portal, navigate back to the **Recovery Services vault** blade, in the **Protected items** section, and click **Backup items**.
1. On the **az104-10-rsv1 - Backup items** blade, click **Azure Backup Agent**.
@ -257,7 +258,7 @@ In this task, you will perform file restore by using Azure Recovery Services age
1. On the **Select Recovery Mode** page, ensure that **Individual files and folders** option is selected, and click **Next**.
1. On the **Select Volume and Date** page, in the **Select the volume** drop down list, select **C:\\**, accept the default selection of the available backup, and click **Mount**.
1. On the **Select Volume and Date** page, in the **Select the volume** drop down list, select **C:\\**, accept the default selection of the available backup, and click **Mount**.
>**Note**: Wait for the mount operation to complete. This might take about 2 minutes.
@ -267,11 +268,11 @@ In this task, you will perform file restore by using Azure Recovery Services age
1. From the Command Prompt, run the following to copy the restore the **hosts** file to the original location (replace `[recovery_volume]` with the drive letter of the recovery volume you identified earlier):
```
```sh
robocopy [recovery_volume]:\Windows\System32\drivers\etc C:\Windows\system32\drivers\etc hosts /r:1 /w:1
```
1. Switch back to the **Recover Data Wizard** and, on the **Browse and Recover Files**, click **Unmount** and, when prompted to confirm, click **Yes**.
1. Switch back to the **Recover Data Wizard** and, on the **Browse and Recover Files**, click **Unmount** and, when prompted to confirm, click **Yes**.
1. Terminate the Remote Desktop session.
@ -291,25 +292,25 @@ In this task, you will restore a file from the Azure virtual machine-level snaps
1. When prompted, sign in by using the **Student** username and **Pa55w.rd1234** password.
1. Within the Remote Desktop session to the **az104-10-vm0** Azure virtual machine, in the **Server Manager** window, click **Local Server**, click **IE Enhanced Security Configuration** and turn it **Off** for Administrators.
>**Note:** Because the Azure portal doesn't support IE11 anymore, you'll have to use the Microsoft Edge Browser for this task.
1. Within the Remote Desktop session to the **az104-10-vm0**, click **Start**, expand the **Windows System** folder, and click **Command Prompt**.
1. From the Command Prompt, run the following to delete the **hosts** file:
```
```sh
del C:\Windows\system32\drivers\etc\hosts
```
>**Note**: You will restore this file from the Azure virtual machine-level snapshot-based backup later in this task.
1. Within the Remote Desktop session to the **az104-10-vm0** Azure virtual machine, start a web browser, browse to the [Azure portal](https://portal.azure.com), and sign in using your credentials.
1. Within the Remote Desktop session to the **az104-10-vm0** Azure virtual machine, start an Edge web browser, browse to the [Azure portal](https://portal.azure.com), and sign in using your credentials.
1. In the Azure portal, search for and select **Recovery Services vaults** and, on the **Recovery Services vaults**, click **az104-10-rsv1**.
1. On the **az104-10-rsv1** Recovery Services vault blade, in the **Protected items** section, click **Backup items**.
1. On the **az104-10-rsv1 - Backup items** blade, click **Azure Virtual Machine**.
1. On the **az104-10-rsv1 - Backup items** blade, click **Azure Virtual Machine**.
1. On the **Backup Items (Azure Virtual Machine)** blade, click **az104-10-vm0**.
@ -341,7 +342,7 @@ In this task, you will restore a file from the Azure virtual machine-level snaps
1. From the Command Prompt, run the following to copy the restore the **hosts** file to the original location (replace `[os_volume]` with the drive letter of the operating system volume you identified earlier):
```
```sh
robocopy [os_volume]:\Windows\System32\drivers\etc C:\Windows\system32\drivers\etc hosts /r:1 /w:1
```
@ -377,11 +378,11 @@ In this task, you will restore a file from the Azure virtual machine-level snaps
1. Navigate back to the **az104-10-rsv1 - Backup items** blade and click **Azure Virtual Machines**.
1. On the **az104-10-rsv1 - Backup items** blade, click **Azure Virtual Machine**.
1. On the **az104-10-rsv1 - Backup items** blade, click **Azure Virtual Machine**.
1. On the **Backup Items (Azure Virtual Machine)** blade, click **az104-10-vm0**.
1. On the **az104-10-vm0** Backup Item blade, click **Stop backup**.
1. On the **az104-10-vm0** Backup Item blade, click **Stop backup**.
1. On the **Stop backup** blade, select **Delete Backup Data**, specify the following settings and click **Stop backup**:
@ -397,13 +398,13 @@ In this task, you will restore a file from the Azure virtual machine-level snaps
1. Click the **Azure Virtual Machine** entry and, on the **Backup Items (Azure Virtual Machine)** blade, click the **az104-10-vm0** entry.
1. On the **az104-10-vm0** Backup Item blade, note that you have the option to **Undelete** the deleted backup.
1. On the **az104-10-vm0** Backup Item blade, note that you have the option to **Undelete** the deleted backup.
>**Note**: This functionality is provided by the soft-delete feature, which is, by default, enabled for Azure virtual machine backups.
1. Navigate back to the **az104-10-rsv1** Recovery Services vault blade, and in the **Settings** section, click **Properties**.
1. On the **az104-10-rsv1 - Properties** blade, click the **Update** link under **Security Settings** label.
1. On the **az104-10-rsv1 - Properties** blade, click the **Update** link under **Security Settings** label.
1. On the **Security Settings** blade, Disable **Soft Delete (For Azure Virtual Machines)** and click **Save**.
@ -411,9 +412,9 @@ In this task, you will restore a file from the Azure virtual machine-level snaps
1. Close the **Security Settings** blade and, back on the **az104-10-rsv1** Recovery Services vault blade, click **Overview**.
1. Navigate back to the **az104-10-vm0** Backup Item blade and click **Undelete**.
1. Navigate back to the **az104-10-vm0** Backup Item blade and click **Undelete**.
1. On the **Undelete az104-10-vm0** blade, click **Undelete**.
1. On the **Undelete az104-10-vm0** blade, click **Undelete**.
1. Wait for the undelete operation to complete, refresh the web browser page, if needed, navigate back to the **az104-10-vm0** Backup Item blade, and click **Delete backup data**.
@ -451,10 +452,10 @@ In this task, you will restore a file from the Azure virtual machine-level snaps
In this lab, you have:
- Provisioned the lab environment
- Created a Recovery Services vault
- Implemented Azure virtual machine-level backup
- Implemented File and Folder backup
- Performed file recovery by using Azure Recovery Services agent
- Performed file recovery by using Azure virtual machine snapshots
- Reviewed the Azure Recovery Services soft delete functionality
+ Provisioned the lab environment
+ Created a Recovery Services vault
+ Implemented Azure virtual machine-level backup
+ Implemented File and Folder backup
+ Performed file recovery by using Azure Recovery Services agent
+ Performed file recovery by using Azure virtual machine snapshots
+ Reviewed the Azure Recovery Services soft delete functionality