Azure / Azure/azure-cli

AzureStackHCI Image Create Should Validate --os-type Casing

Open
#26,247 2 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
AzureStackHCI feature-request Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**

`az azurestackhci image create`

**Describe the bug**

The resource provider uses an enum for OS type which expect specific casing ('Windows' or 'Linux'). If you attempt to create an image with --os-type 'windows' or 'linux', the RP returns an error message that is difficult for customers to interpret.

**To Reproduce**

If you attempt to create an image with --os-type 'windows' or 'linux', the RP returns an error message that is difficult for customers to interpret.

**Expected behavior**

The Azure CLI should validate the casing of the --os-type parameter or correct it on submission

**Environment summary**

{
"experimental": true,
"extensionType": "whl",
"name": "azurestackhci",
"path": "C:\\Users\\x\\.azure\\cliextensions\\azurestackhci",
"preview": false,
"version": "0.2.6"
},

**Additional context**

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.