
Submitting an image configuration to the VM Image Builder service in Azure Cloud Shell per documentation:
az resource create \
--resource-group $imageResourceGroup \
--properties @helloImageTemplateWin.json \
--is-full-object \
--resource-type Microsoft.VirtualMachineImages/imageTemplates \
-n helloImageTemplateWin01
Fails with a cryptic message:
location of the resource is required
Even when --location is specified:
az resource create \
--resource-group $imageResourceGroup \
--properties @helloImageTemplateWin.json \
--is-full-object \
--resource-type Microsoft.VirtualMachineImages/imageTemplates \
-n helloImageTemplateWin01
--location $location
Command Name
az resource create
Errors:
location of the resource is required
I cannot find reference to this error message anywhere in the documentation or even in the project.
The only reference to location in the template is complete:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az resource create \
--resource-group $imageResourceGroup \
--properties @helloImageTemplateWin.json \
--is-full-object \
--resource-type Microsoft.VirtualMachineImages/imageTemplates \
-n helloImageTemplateWin01When complete, this will return a success message back to the console, and create an Image Builder Configuration Template in the $imageResourceGroup.
Linux-4.15.0-1077-azure-x86_64-with-debian-stretch-sid
Python 3.6.5
Installer: DEB
azure-cli 2.4.0 *
I can reproduce on Azure CLI on WSL:
* subscriptionID blacked out on screenshot



Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @mjconnection, @Drewm3, @avirishuv.
@danielsollondon
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @mjconnection, @Drewm3, @vaibhav-agar.
@danielsollondon, could you take a look at this issue?
Thank you @danielsollondon those are very helpful.
Quick update, all the Azure docs PRs are in review now, I am hoping the updates will get out today.
Sorry for the delay, docs have been updated.
Thank you!
Closing this now that the docs are updated.
Most helpful comment
Looking now...
@sirredbeard - I had a quick look, apologies, this doc is in the process of being updated, I am working on this today, in the meantime, you can use either the sources for these:
I will come back when the updates have completed.