This article will walk you through the syntax and usage of the az vm generalize Azure CLI command with specific examples.
Table of Contents
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 AzurelessonsNewVMAfter executing the above query, I got the expected output as shown in the screenshot below.

You may also like the following articles below.

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
