MicrosoftLearning/AZ500-AzureSecurityTechnologies

Azure VM can't deploy in Lab 11, Exercise 1 due to EAH being disabled

Closed this issue · 3 comments

Lab 11: Azure Monitor

Exercise 1: Deploy an Azure virtual machine

Task 1: Deploy an Azure virtual machine

Step 5: In the PowerShell session within the Cloud Shell pane, run the following to create a new Azure virtual machine.

New-AzVm -ResourceGroupName "AZ500LAB131415" -Name "myVM" -Location 'EastUS' -VirtualNetworkName "myVnet" -SubnetName "mySubnet" -SecurityGroupName "myNetworkSecurityGroup" -PublicIpAddressName "myPublicIpAddress" -PublicIpSku Standard -OpenPorts 80,3389 -Size Standard_DS1_v2

Description of issue:
Deployment of AZ VM in PS fails due to EAH not being enabled on the Azure subscription [p1]. Manually enabling EAH through Register-AzProviderFeature -FeatureName "EncryptionAtHost" -ProviderNamespace "Microsoft.Compute" resolves the issue and allows you to deploy the VM [p2].

[p1]

image

[p2]

image

Hi Serling, the command is needed before deploying the VM in Lab 11 Exercise 1.

Edits were applied in lab 11 exercise 1, step 5.