Azure / Azure/azure-rest-api-specs

[BUG] HybridCompute Machine Extension Create or Update "autoUpgradeMinorVersion" not working

Open
#37,591 1 comment 0 reactions 0 assignees View on GitHub
bug customer-reported question
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

### API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2025-01-13/HybridCompute.json

### API Spec version

2025-01-13

### Describe the bug

Hi,
it seems that auto_upgrade_minor_version is not being used (or saved) properly during deployments of arc extensions.

### Expected behavior

It should behave like the azure VM extension API that saves this value.

### Actual behavior

autoUpgradeMinorVersion will be false on get (or on the answer once async operation completes)

### Reproduction Steps

Simple reproducer:
`az rest --method put --url https://management.azure.com/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.HybridCompute/machines/xxx/extensions/AzureMonitorLinuxAgent?api-version=2025-01-13 --body @arcextension.json --debug`

arcextension.json content:
```
{
"location": "germanywestcentral",
"properties": {
"publisher": "Microsoft.Azure.Monitor",
"type": "AzureMonitorLinuxAgent",
"typeHandlerVersion": "1.36.3",
"autoUpgradeMinorVersion": true,
"enableAutomaticUpgrade": true
}
}
```

It will install, but the setting will be saved as "false". I did not verify if it actually upgrades.

### Environment

W11
Azure CLI 2.77.0

Contributor guide

Open the contributing guide

Research direction

Start with the HybridCompute 2025-01-13 API specification linked in the issue and review the PUT response and GET behavior using the provided az rest command and arcextension.json. Compare the autoUpgradeMinorVersion behavior with the Azure VM extension API referenced in the report. Done means the value set to true is preserved and returned as true after deployment.

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.