question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Submitting an image configuration to the VM Image Builder service in Azure Cloud Shell fails.

See original GitHub issue

image

Describe 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:

image

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

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:closed
  • Created 3 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
danielsollondoncommented, May 4, 2020

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.

1reaction
Drewm3commented, Jul 23, 2020

Closing this now that the docs are updated.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found