Skip to content

Commit 311a4a9

Browse files
committed
Adding pre-reqs back.
1 parent 4e465c2 commit 311a4a9

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

articles/virtual-machines/disks-enable-host-based-encryption-portal.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Use encryption at host to enable end-to-end encryption on your Azur
44
author: roygara
55
ms.service: storage
66
ms.topic: how-to
7-
ms.date: 09/26/2022
7+
ms.date: 09/27/2022
88
ms.author: rogarana
99
ms.subservice: disks
1010
ms.custom: references_regions
@@ -27,6 +27,45 @@ Temporary disks and ephemeral OS disks are encrypted at rest with platform-manag
2727

2828
Legacy VM Sizes are not supported. You can find the list of supported VM sizes by either using the [Azure PowerShell module](windows/disks-enable-host-based-encryption-powershell.md#finding-supported-vm-sizes) or [Azure CLI](linux/disks-enable-host-based-encryption-cli.md#finding-supported-vm-sizes).
2929

30+
## Prerequisites
31+
32+
You must enable the feature for your subscription before you use the EncryptionAtHost property for your VM/VMSS. Use the following steps to enable the feature for your subscription:
33+
34+
1. **Azure portal**: Select the Cloud Shell icon on the [Azure portal](https://portal.azure.com):
35+
36+
![Icon to launch the Cloud Shell from the Azure portal](../Cloud-Shell/media/overview/portal-launch-icon.png)
37+
38+
1. Execute the following command to register the feature for your subscription
39+
40+
### [Azure PowerShell](#tab/azure-powershell)
41+
42+
```powershell
43+
Register-AzProviderFeature -FeatureName "EncryptionAtHost" -ProviderNamespace "Microsoft.Compute"
44+
```
45+
46+
### [Azure CLI](#tab/azure-cli)
47+
48+
```azurecli
49+
az feature register --name EncryptionAtHost --namespace Microsoft.Compute
50+
```
51+
52+
---
53+
54+
1. Confirm that the registration state is **Registered** (takes a few minutes) using the command below before trying out the feature.
55+
56+
### [Azure PowerShell](#tab/azure-powershell)
57+
58+
```powershell
59+
Get-AzProviderFeature -FeatureName "EncryptionAtHost" -ProviderNamespace "Microsoft.Compute"
60+
```
61+
62+
### [Azure CLI](#tab/azure-cli)
63+
64+
```azurecli
65+
az feature show --name EncryptionAtHost --namespace Microsoft.Compute
66+
```
67+
---
68+
3069
## Deploy a VM with platform-managed keys
3170

3271
1. Sign in to the [Azure portal](https://aka.ms/diskencryptionupdates).

0 commit comments

Comments
 (0)