Skip to content

az security task list --resource-group $rg returns tasks like "$rg*" #29684

Description

@DTGitRepository

Describe the bug

The list search appears to default to "$rg*".
Should wildcard/like searches not be explicit?

It is duplicating tasks as one resource group is the same name as another with a string appended.
I.e.

  1. ResourceGroupName: marketing-rg
  2. ResourceGroupName: marketing-rg-mngd

Running a list for 1. would return tasks for both resource groups.

Related command

az security task list

Errors

N/A

Issue script & Debug output

N/A

Expected behavior

When --resource-group is included, it only returns tasks for that resource group.

Environment Summary

azure-cli 2.62.0

core 2.62.0
telemetry 1.1.0

Extensions:
automation 1.0.0b1

Dependencies:
msal 1.28.1
azure-mgmt-resource 23.1.1

Python location '...\AzCLI\python.exe'
Extensions directory '....azure\cliextensions'

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-ResolveAuto resolve by botSecurityaz securityService AttentionThis issue is responsible by Azure service team.act-codegen-extensibility-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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions