CmdID / az / az vm / az vm extension
az vm extension set
Set extensions for a VM. Azure CLI reference
3 options Its page in the Azure CLI reference
Options
--extension-instance-nameName of extension instance, which can be customized.--force-updateforce to update even if the extension configuration has not changed.--name, -nName of the extension.