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.

az resource show fails for Azure Compute Gallery image versions with API 2022-01-03

See original GitHub issue

Describe the bug az resource show --ids /subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Compute/galleries/<gal>/images/<name>/versions/<version> fails with error:

(InvalidParameter) The value of parameter api-version is invalid.
Code: InvalidParameter
Message: The value of parameter api-version is invalid.
Target: api-version
Inner error: {
    "internalErrorCode": "ParameterValueInvalid"
}

Same error is returned if --api-version 2022-01-03 explicitly specified. The command works as expected with --api-version 2021-10-01.

To Reproduce Run command az resource show --ids /subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Compute/galleries/<gal>/images/<name>/versions/<version>

Expected behavior The resource JSON is returned.

Environment summary

Azure Cloud Shell:

azure-cli                         2.34.1

core                              2.34.1
telemetry                          1.0.6

Extensions:
azure-devops                      0.18.0
ai-examples                        0.2.5
ssh                                1.0.0

Dependencies:
msal                              1.16.0
azure-mgmt-resource               20.0.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stefanescommented, May 30, 2022

I can confirm this now seems to work with the Azure CLI version in Azure Cloud Shell:

PS /home/stefan> az --version
azure-cli                         2.37.0

core                              2.37.0
telemetry                          1.0.6

Extensions:
quota                              0.1.0
azure-devops                      0.18.0
ai-examples                        0.2.5
ssh                                1.1.1

Dependencies:
msal                            1.18.0b1
azure-mgmt-resource             21.1.0b1
0reactions
msftbot[bot]commented, May 11, 2022

Hi, we’re sending this friendly reminder because we haven’t heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don’t hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot images in an Azure Compute Gallery
Learn how to troubleshoot problems with shared images in Azure Compute Galleries.
Read more >
Gallery Image Versions - REST API (Azure Compute)
List gallery image versions in a gallery image definition. Update. Update a gallery image version. Recommended content ...
Read more >
Gallery Image Versions - Get - REST API (Azure Compute)
Service: Compute. API Version: 2022-03-03 ... Error response describing why the operation failed. ... Get a gallery image version with replication status.
Read more >
Gallery Image Versions - Update - REST API (Azure Compute)
The name of the gallery image version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and...
Read more >
List By Gallery Image - REST API (Azure Compute)
Learn more about Compute service - List gallery image versions in a gallery image definition.
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