Skip to content

Commit e8843b4

Browse files
authored
Add Azure CLI commands to enable EncryptionAtHost
The documentation only provides commands ready to cut and paste for PowerShell This PR adds the commands to use with Azure CLI
1 parent 33bba19 commit e8843b4

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,33 @@ 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+
```
4352

4453
1. Confirm that the registration state is **Registered** (takes a few minutes) using the command below before trying out the feature.
54+
55+
### [Azure PowerShell](#tab/azure-powershell)
4556

4657
```powershell
4758
Get-AzProviderFeature -FeatureName "EncryptionAtHost" -ProviderNamespace "Microsoft.Compute"
4859
```
49-
60+
61+
### [Azure CLI](#tab/azure-cli)
62+
63+
```azurecli
64+
az feature show --name EncryptionAtHost --namespace Microsoft.Compute
65+
```
5066

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

0 commit comments

Comments
 (0)