CmdID / az / az vm / az vm encryption
az vm encryption enable
Enable disk encryption on the OS disk and/or data disks. Azure CLI reference
5 options Its page in the Azure CLI reference
Options
--aad-client-cert-thumbprintThumbprint of the AAD app certificate with permissions to write secrets to the key vault.--aad-client-idClient ID of an AAD app with permissions to write secrets to the key vault.--aad-client-secretClient secret of the AAD app with permissions to write secrets to the key vault.--encrypt-format-allEncrypts-formats data disks instead of encrypting them.--encryption-identityResource Id of the user managed identity which can be used for Azure disk encryption