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

Created on 1 May 2020  路  13Comments  路  Source: Azure/azure-cli

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


ARM Compute - Images Mgmt Service Attention customer-reported question

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.

All 13 comments

I can reproduce on Azure CLI on WSL:

Annotation 2020-05-01 165901 * subscriptionID blacked out on screenshot
Annotation 2020-05-01 165959

Annotation 2020-05-01 171307
Annotation 2020-05-01 171515

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?

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.

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.

Was this page helpful?
0 / 5 - 0 ratings