az-image Verified for current stable LTS

Az Image Command: Create Custom Image From Disks Or Snapshots

Use for create custom image from disks or snapshots with Az Image. Exact CLI syntax to create custom image from disks or snapshots using Az Image.

When to use this: Use for create custom image from disks or snapshots with Az Image.

Command Syntax

az image create -g <resource_group> -n <name> --os-type <windows|linux> --source <os_disk_source>

Command Breakdown

-g
Command Option
Tool-specific option used by this command invocation.
-n
Command Option
Tool-specific option used by this command invocation.
--os-type
Command Option
Tool-specific option used by this command invocation.
--source
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to create custom image from disks or snapshots using Az Image.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Az Image directory