Skip to content

Fix Compute Tools Issues#2687

Draft
g2vinay wants to merge 1 commit into
microsoft:mainfrom
g2vinay:fix-compute-issues
Draft

Fix Compute Tools Issues#2687
g2vinay wants to merge 1 commit into
microsoft:mainfrom
g2vinay:fix-compute-issues

Conversation

@g2vinay
Copy link
Copy Markdown
Contributor

@g2vinay g2vinay commented May 20, 2026

Fixed multiple bugs in Compute VM/VMSS commands:
- vm delete now correctly reports 'not found' when the target VM does not exist instead of always reporting success.
- vm update and vmss update now correctly clear all tags when --tags '' is passed; fixed comma-separated tag delimiter mismatch between documentation and implementation.
- DetermineOsType now uses word-boundary token matching: no longer misidentifies images with 'win' mid-word (e.g., 'twin-ubuntu') as Windows, and now correctly identifies Visual Studio on Windows images (e.g., 'vs-2022-comm-latest-win11-n-gen2') as Windows.

- COMP-02: VmDeleteCommand now uses DeleteVmAsync bool return to report
  'not found' instead of always reporting success
- COMP-03: Clarify --user-data requires Base64-encoded content; ARM API
  requires this format (docs/description update only)
- COMP-04: vm/vmss update now correctly clears tags when --tags '' is
  passed; fix comma-separated tag delimiter mismatch in docs vs impl
- COMP-06: DetermineOsType uses word-boundary token matching to avoid
  false positives (twin-ubuntu) and false negatives (VS Windows images
  like vs-2022-comm-latest-win11-n-gen2)
- section: "Bugs Fixed"
description: |
Fixed multiple bugs in Compute VM/VMSS commands:
- `vm delete` now correctly reports 'not found' when the target VM does not exist instead of always reporting success.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is technically a breaking change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants