-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az keyvault secret list very slow with large numbers of secrets #27746
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botKeyVaultaz keyvaultaz keyvaultService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botKeyVaultaz keyvaultaz keyvaultService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
"az keyvault secret list" is very slow (approx 1 min for 350 secrets) which is unexpected but not a problem in itself, however when deleting 349 of those secrets into the soft delete bin and re-running "az keyvault secret list" the time to retrieve one secret is still the same indicating that it is enumerating the soft delete items as well when it doesn't need to and they are not returned by the list operation.
Get/Set of a single secret by ID doesn't display the same issue.
Related command
az keyvault secret list
Errors
No errors, but very slow performance to return non deleted secrets
Issue script & Debug output
az keyvault secret list --id
Expected behavior
When returning the non-deleted secrets it is not expected to take the time for the deleted secrets
Environment Summary
azure-cli 2.35.0 *
core 2.35.0 *
telemetry 1.0.6 *
Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0
Additional context
No response