Skip to content

Commit 89b50ff

Browse files
Merge pull request #209461 from zioproto/disk-encryption-linux-azcli
Add Azure CLI commands to enable EncryptionAtHost
2 parents 65e980d + 101d40d commit 89b50ff

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,36 @@ You must enable the feature for your subscription before you use the EncryptionA
3636
![Icon to launch the Cloud Shell from the Azure portal](../Cloud-Shell/media/overview/portal-launch-icon.png)
3737

3838
1. Execute the following command to register the feature for your subscription
39+
40+
### [Azure PowerShell](#tab/azure-powershell)
3941

4042
```powershell
4143
Register-AzProviderFeature -FeatureName "EncryptionAtHost" -ProviderNamespace "Microsoft.Compute"
4244
```
45+
46+
### [Azure CLI](#tab/azure-cli)
47+
48+
```azurecli
49+
az feature register --name EncryptionAtHost --namespace Microsoft.Compute
50+
```
51+
52+
---
4353

4454
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)
4557

4658
```powershell
4759
Get-AzProviderFeature -FeatureName "EncryptionAtHost" -ProviderNamespace "Microsoft.Compute"
4860
```
49-
61+
62+
### [Azure CLI](#tab/azure-cli)
63+
64+
```azurecli
65+
az feature show --name EncryptionAtHost --namespace Microsoft.Compute
66+
```
67+
68+
---
5069

5170
Sign in to the Azure portal using the [provided link](https://aka.ms/diskencryptionupdates).
5271

0 commit comments

Comments
 (0)