Azure / Azure/azure-cli

Not known attribute warn for az sig image-version create

Open
#24,570 2 comments 1 reaction 1 assignee Claimed by @zhoxing-ms View on GitHub
act-observability-squad Auto-Assign Azure CLI Team Compute customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Describe the bug
`az sig image-version create` outputs warning message cited below, while the command itself seems completed successfully.

**Command Name**
`az sig image-version create`

**Warning:**
```
source is not a known attribute of class and will be ignored
```

## To Reproduce:

- Create image source Linux VM, and get it generalized with `az vm generalize`
- Create shared image gallery and image definition with default settings (for Linux)
- `az sig image-version create -g {} --gallery-name {} --gallery-image-definition {} --gallery-image-version {} --virtual-machine {}`

## Expected Behavior
Completed w/o any warnings.

## Environment Summary
Reproduced on Azure CloudShell
```
Linux-5.4.0-1094-azure-x86_64-with-glibc2.35 (Cloud Shell), CBL-Mariner/Linux
Python 3.9.14
Installer: RPM

azure-cli 2.42.0

Extensions:
ai-examples 0.2.5
ml 2.10.0
ssh 1.1.3

Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1
```

## Additional Context
Tried with different Azure CLI versions (2.40.0 and 2.41.0) with docker image `mcr.microsoft.com/azure-cli:` to find it reproduces with 2.41.0, while it doesn't with 2.40.0.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.