Submitting an image configuration to the VM Image Builder service in Azure Cloud Shell fails.
See original GitHub issueDescribe the bug
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:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- I followed the tutorial here: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/image-builder on Azure Cloud Shell
- Run
az resource create \ --resource-group $imageResourceGroup \ --properties @helloImageTemplateWin.json \ --is-full-object \ --resource-type Microsoft.VirtualMachineImages/imageTemplates \ -n helloImageTemplateWin01
Expected Behavior
When complete, this will return a success message back to the console, and create an Image Builder Configuration Template in the $imageResourceGroup.
Environment Summary
Linux-4.15.0-1077-azure-x86_64-with-debian-stretch-sid
Python 3.6.5
Installer: DEB
azure-cli 2.4.0 *
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Troubleshoot Azure VM Image Builder - Microsoft Learn
If you submit an image configuration template and the submission fails, a failed template artifact still exists. Delete the failed template. The ...
Read more >Azure Image Builder - Build and Maintain golden images with ...
Today we're going to talk about a managed service called Azure Image Builder, which allows us to implement a “DevOps” way of managing...
Read more >Chapter 1. Deploying a Red Hat Enterprise Linux image as a ...
To manually configure a virtual machine (VM), first create a base (starter) VM image. Then, you can modify configuration settings and add the...
Read more >Action modules supported by AWSTOE component manager
Image building services, such as EC2 Image Builder, use AWSTOE action modules to help ... The result of running the shell file is...
Read more >Building a RHEL gold image for Azure - GitLab
Be able to build your own Azure image for use in Cloud Access ... Anaconda's configuration file has been generated by Image Builder,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Closing this now that the docs are updated.