az vm install-patches
Install patches on a VM. Azure CLI reference
10 options Its page in the Azure CLI reference
Options
--classifications-to-include-linuxSpace-separated list of classifications to include for Linux VM.--classifications-to-include-winSpace-separated list of classifications to include for Windows VM.--exclude-kbs-requiring-rebootFilter out KBs that don't have a reboot behavior of 'NeverReboots' when this is set.--kb-numbers-to-excludeSpace-separated list of KBs to exclude in the patch operation.--kb-numbers-to-includeSpace-separated list of KBs to include in the patch operation.--max-patch-publish-date--maximum-durationSpecify the maximum amount of time that the operation will run.--package-name-masks-to-excludeSpace-separated list of packages to exclude in the patch operation.--package-name-masks-to-includeSpace-separated list of packages to include in the patch operation.--reboot-settingDefine when it is acceptable to reboot a VM during a software update operation.