MicrosoftLearning / AZ500-AzureSecurityTechnologies

Microsoft Azure Security Technologies
https://microsoftlearning.github.io/AZ500-AzureSecurityTechnologies/
MIT License
858 stars 827 forks source link

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

Closed SkillableBB closed 11 months ago

SkillableBB commented 11 months ago

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

serling1962 commented 11 months ago

What step is this command (Register-AzProviderFeature -FeatureName "EncryptionAtHost" -ProviderNamespace "Microsoft.Compute") syntax required?

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

From: SkillableBB @.> Sent: Monday, November 27, 2023 9:46 AM To: MicrosoftLearning/AZ500-AzureSecurityTechnologies @.> Cc: Subscribed @.***> Subject: [MicrosoftLearning/AZ500-AzureSecurityTechnologies] Azure VM can't deploy in Lab 11, Exercise 1 due to EAH being disabled (Issue #397)

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.png (view on web)https://github.com/MicrosoftLearning/AZ500-AzureSecurityTechnologies/assets/94069201/c60e7780-9dd2-4c2d-a0a7-29d30621cc95

[p2]

image.png (view on web)https://github.com/MicrosoftLearning/AZ500-AzureSecurityTechnologies/assets/94069201/91617d80-3d0c-4244-b2ad-4924e7654e6b

- Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftLearning/AZ500-AzureSecurityTechnologies/issues/397, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVY5XW2BQOMHDAFUMNQOJUTYGSYVLAVCNFSM6AAAAAA74H3O46VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTENJWHE3TCNQ. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

SkillableBB commented 11 months ago

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

serling1962 commented 11 months ago

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