Skip to content

'az aks create' error if name contains character underscore(_) #17681

Closed

Description

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

$> az aks create --resource-group wooccdocker -n "aks_woocccluster" --node-count 1
--name cannot exceed 63 characters and can only contain letters, numbers, or dashes (-).

Expected behavior

According to the document, underscore can be used for names.

Entity Scope Length Valid Characters
managedClusters resource group 1-63 Alphanumerics, underscores, and hyphens.Start and end with alphanumeric.
openShiftManagedClusters resource group 1-30 Alphanumerics.

https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftcontainerservice

Environment summary
$ az --version
azure-cli 2.22.0

core 2.22.0
telemetry 1.0.6

Extensions:
subscription 0.1.4
blueprint 0.1.1
account 0.2.1

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

Metadata

Labels

AKSaz aks/acs/openshiftCXP AttentionThis issue is handled by CXP team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions