Skip to content

Some Service Connector flags are unexpected given context #30295

@benjaminapetersen

Description

@benjaminapetersen

Describe the bug

I found this experience to be a little odd/unexpected:

# this was a little strange, name is ambiguous
# I would expect --name to be the name of the connection (or that <name> would be an arg, not a flag) as --connection implies a different thing (rather than "this" thing to show).  --name seems like it ought be "this" thing to show, which would be implied context.  If it was --cluster-name, then it would be a clear different context
az aks connection show --connection <name> --resource-group <rg-name> --name <i-think-this-is-aks-cluster-name-which-is-awkward>

I would find this more clear:

# for clarity, this would clarify ux:
az aks connection show <connection-name> --resource-group <rg-name> --cluster <aks-cluster-name>
# or alternatively
az aks connection show --name <connection-name> --resource-group <rg-name> --cluster <aks-cluster-name>

Related command

az aks connection

Errors

No error, this is a UX related bug.

Issue script & Debug output

No script needed.

Expected behavior

Clarification of resources given flags provided.

Environment Summary

az version
{
"azure-cli": "2.65.0",
"azure-cli-core": "2.65.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"interactive": "1.0.0b1",
"scenario-guide": "0.1.1"
}
}

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AKSaz aks/acs/openshiftAuto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions