Azure / Azure/azure-rest-api-specs

[BUG] Azure Compute VM etag double escaped

Open
#37,661 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug customer-reported question
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 21h
Merged PRs (30d)
432

Description

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/compute/Compute.Management/VirtualMachine.tsp

API Spec version

2025-04-01

Describe the bug

Hi,
the etag in virtualmachine is double escaped.

Expected behavior

Should be:
"etag": "2",

Actual behavior

Current:
"etag": "\"2\"",

Reproduction Steps

Get any VM resource with a current api version (current stable as of this writing 2025-04-01)

az rest --method get --url "https://management.azure.com/subscriptions/xxxxxxxxxx/resourceGroups/xxxx/providers/Microsoft.Compute/virtualMachines/xxxx?api-version=2025-04-01"

Environment

current azure-cli (2.77.0)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked specification/compute/Compute.Management/VirtualMachine.tsp file and inspect the etag definition for API version 2025-04-01. Run the supplied az rest request against a VM, then confirm the specification change produces an etag value of "2" rather than the double-escaped value shown in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.