Skip to content

'credential reset -append' not idempotent #32933

@gabbsmo

Description

@gabbsmo

Describe the bug

When running the command again for the same certificate it will import a duplicate.

Related command

az ad app credential reset --id $appId --cert "@$cerPath" --append

Errors

None

Issue script & Debug output

N/A

Expected behavior

I propose that if a certificate with the same thumbprint already exists in the app, a duplicate should not be created - regardless of the --append switch.

Environment Summary

azure-cli 2.84.0

core 2.84.0
telemetry 1.1.0

Dependencies:
msal 1.35.0b1
azure-mgmt-resource 24.0.0

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\gsmol.azure'
Extensions directory 'C:\Users\gsmol.azure\cliextensions'

Python (Windows) 3.13.11 (tags/v3.13.11:6278944, Dec 5 2025, 16:26:58) [MSC v.1944 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botGraph.MicrosoftMicrosoft Graph relatedService AttentionThis issue is responsible by Azure service team.act-identity-squadcustomer-reportedIssues 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 that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions