Skip to content

az repos create and delete operations arguments are inconsistent #27818

@paololazzari

Description

@paololazzari

Describe the bug

For creation:

az repos create --name
                [--detect {false, true}]
                [--open]
                [--org]
                [--project]

For deletion:

az repos delete --id
                [--detect {false, true}]
                [--org]
                [--project]
                [--yes]

the delete operation should also expect a --name instead of an --id

Environment Summary

$ az version
{
  "azure-cli": "2.46.0",
  "azure-cli-core": "2.46.0",
  "azure-cli-telemetry": "1.0.8",
  "extensions": {
    "alertsmanagement": "0.2.2",
    "azure-devops": "0.26.0"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botDevOpsService AttentionThis issue is responsible by Azure service team.act-platform-engineering-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions