-
Notifications
You must be signed in to change notification settings - Fork 3.4k
'credential reset -append' not idempotent #32933
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botGraph.MicrosoftMicrosoft Graph relatedMicrosoft Graph relatedService 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 botGraph.MicrosoftMicrosoft Graph relatedMicrosoft Graph relatedService 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
Type
Fields
Give feedbackNo fields configured for issues without a type.
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" --appendErrors
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
--appendswitch.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