Azure / Azure/azure-linux-extensions

ADE: issues with the CLI when using the new method

Open
#647 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

The first issue is when enabling encryption on the VM using the old method with the _--aad_ options I can see the **- Running ..** prompt indicating that the command is executing.
When using the new method without the _--aad_ options I do not see that **- Running ..** prompt.

The second issue is when checking the disk status, the CLI returns the disks status when using the old method but just a blank line when using the new method.

Please have a look the code block below, *test1* has been encrypted using the old method, *test2* with the new method the data disks are encrypted on both but the CLI does not report the status for *test2*.

Screenshot: https://i.imgur.com/USMGYNb.png
```
johan@Azure:~$ az vm encryption enable --resource-group test1 --name test1 --aad-client-id $sp_id --aad-client-secret $sp_password --disk-encryption-keyvault vaultest1 --volume-type data --encrypt-format-all --output table
johan@Azure:~$ az vm encryption show --resource-group test1 --name test1 --output table
DataDisk OsDisk OsType ProgressMessage
-------------------- ------------ -------- ---------------------------------------------------------------------------------------------------------------
EncryptionInProgress NotEncrypted Linux https://vaultest1.vault.azure.net/secrets/3bf925b7-e8f7-4223-8236-8f452be2eb02/475e1a060320431a8ecdbb3e55018f80
johan@Azure:~$
johan@Azure:~$
johan@Azure:~$ az vm encryption enable --resource-group test2 --name test2 --disk-encryption-keyvault vaultest2 --volume-type data --encrypt-format-all --output table
johan@Azure:~$ az vm encryption show --resource-group test2 --name test2 --output table

johan@Azure:~$
johan@Azure:~$
johan@Azure:~$
johan@Azure:~$
johan@Azure:~$
johan@Azure:~$ az vm encryption show --resource-group test1 --name test1 --output table
DataDisk OsDisk OsType ProgressMessage
---------- ------------ -------- -------------------------------------
Encrypted NotEncrypted Linux Encryption succeeded for data volumes
johan@Azure:~$ az vm encryption show --resource-group test2 --name test2 --output table

johan@Azure:~$
johan@Azure:~$ az vm encryption show --resource-group test2 --name test2 --output table

johan@Azure:~$
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.