Skip to content

az ad app credential delete does not delete from Azure #27832

@eddynaka

Description

@eddynaka

Describe the bug

Given an AppId + KeyId, by executing the command:

az ad app credential delete --id $app_id --key-id $secret_key_id

Observed that the command executes successfully, but in Azure, it does not remove the secret from the app.

What is strange is that if I execute:

az ad app credential list --id $app_id

It returns an empty list.

Related command

az ad app credential delete

Errors

No CLI error

Issue script & Debug output

  1. Execute
    az ad app credential list --id $app_id
  2. Delete a secret
    az ad app credential delete --id $app_id --key-id $secret_key_id
  3. Execute
    az ad app credential list --id $app_id
  4. Check the app in AzurePortal.

Expected behavior

Once delete is executed, AzurePortal should not show secret

Environment Summary

azure-cli 2.53.1

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamGraphaz adcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.potential-pruningquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions