azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Create VM/VMSS CLI command needs to support specialized SIG Image Version based deployments

Open axayjo opened this issue 6 years ago • 4 comments

Is your feature request related to a problem? Please describe.

We launched specialized image support in SIG and there's no way to create a VM/VMSS with a specialized SIG image today.

Describe the solution you'd like

The current command needs to support a specialized flag which when passed shouldn't pass the OSProfile to the PUT VM call:

az vm create
--resource-group myGalleryRG
--name myVM
--image "/subscriptions/subscription ID where the gallery is located>/resourceGroups/myGalleryRG/providers/Microsoft.Compute/galleries/myGallery/images/myImageDefinition/versions/1.0.0"
--specialized --generate-ssh-keys The OSState property on the Image Definition determines if an image is Generalized/Specialized.

Describe alternatives you've considered

Additional context

axayjo avatar Apr 08 '20 23:04 axayjo

@qwordy please take a look

yonzhan avatar Apr 08 '20 23:04 yonzhan

Thanks @qwordy!

axayjo avatar Apr 10 '20 07:04 axayjo

You are welcome

qwordy avatar Apr 10 '20 07:04 qwordy

Azure CLI 2.4.0 is released. Now you can try this feature.

qwordy avatar Apr 22 '20 07:04 qwordy