az vm generalize

This article will walk you through the syntax and usage of the az vm generalize Azure CLI command with specific examples.

az vm generalize

This command helps you mark a generalized VM.

Syntax

Below is the syntax of the az vm generalize command.

az vm generalize [--name][--resource-group]

Example

The below script will generalize the virtual machine AzurelessonsNewVM that belongs to the Testing Resource Group.

az vm generalize -g Testing -n AzurelessonsNewVM

After executing the above query, I got the expected output as shown in the screenshot below.

az vm generalize

You may also like the following articles below.