Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm-repair: Invalid image "UbuntuLTS" #7828

Closed
taoyama opened this issue Jul 25, 2024 · 3 comments
Closed

vm-repair: Invalid image "UbuntuLTS" #7828

taoyama opened this issue Jul 25, 2024 · 3 comments
Labels
Auto-Assign Auto assign by bot Compute question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@taoyama
Copy link

taoyama commented Jul 25, 2024

Describe the bug

az vm repair create command without --distro option result in below error.

ERROR: Invalid image "UbuntuLTS". Use a valid image URN, custom image name, custom image id, VHD blob URI, or pick an image from ['CentOS85Gen2', 'Debian11', 'FlatcarLinuxFreeGen2', 'OpenSuseLeap154Gen2', 'RHELRaw8LVMGen2', 'SuseSles15SP3', 'Ubuntu2204', 'Win2022Datacenter', 'Win2022AzureEditionCore', 'Win2019Datacenter', 'Win2016Datacenter', 'Win2012R2Datacenter', 'Win2012Datacenter'].
See vm create -h for more information on specifying an image.

Repair create failed. Cleaning up created resources.

it looks like urnAlias UbuntuLTS was removed.

az vm image list --query [].urnAlias
You are viewing an offline list of images, use --all to retrieve an up-to-date list
[
  "CentOS85Gen2",
  "Debian11",
  "FlatcarLinuxFreeGen2",
  "OpenSuseLeap154Gen2",
  "RHELRaw8LVMGen2",
  "SuseSles15SP3",
  "Ubuntu2204",
  "Win2022Datacenter",
  "Win2022AzureEditionCore",
  "Win2019Datacenter",
  "Win2016Datacenter",
  "Win2012R2Datacenter",
  "Win2012Datacenter"
]

Related command

az vm repair create

Errors

ERROR: Invalid image "UbuntuLTS". Use a valid image URN, custom image name, custom image id, VHD blob URI, or pick an image from ['CentOS85Gen2', 'Debian11', 'FlatcarLinuxFreeGen2', 'OpenSuseLeap154Gen2', 'RHELRaw8LVMGen2', 'SuseSles15SP3', 'Ubuntu2204', 'Win2022Datacenter', 'Win2022AzureEditionCore', 'Win2019Datacenter', 'Win2016Datacenter', 'Win2012R2Datacenter', 'Win2012Datacenter'].
See vm create -h for more information on specifying an image.

Repair create failed. Cleaning up created resources.

Issue script & Debug output

N/A

Expected behavior

image Ubuntu2204 should be used instead of deprecated image UbuntuLTS

Environment Summary

azure-cli                         2.62.0

core                              2.62.0
telemetry                          1.1.0

Extensions:
aem                                0.3.0
azure-devops                      0.26.0
interactive                        0.5.2
resource-graph                     2.1.0
serial-console                     0.1.6
ssh                                2.0.1
support                            1.0.3
vm-repair                          1.0.7

Dependencies:
msal                              1.28.1
azure-mgmt-resource               23.1.1

Python location '/usr/bin/python3.9'
Extensions directory '/home/toaoyama/.azure/cliextensions'

Python (Linux) 3.9.14 (main, Oct 12 2023, 19:48:32)
[GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

Additional context

No response

@taoyama taoyama added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 25, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 25, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 25, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 25, 2024
@yonzhan yonzhan added this to the Backlog milestone Jul 25, 2024
@yonzhan yonzhan added Service Attention This issue is responsible by Azure service team. and removed Azure CLI Team The command of the issue is owned by Azure CLI team labels Jul 25, 2024
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @TravisCragg-MSFT, @nikhilpatel909, @sandeepraichura, @hilaryw29, @GabstaMSFT, @ramankumarlive, @ushnaarshadkhan.

@taoyama
Copy link
Author

taoyama commented Jul 25, 2024

it looks like the issue is already fixed in the latest version.

@taoyama taoyama closed this as completed Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Compute question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants