Azure / Azure/azure-cli

`az ad app credential delete` does not delete from Azure

Open
#27,832 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-identity-squad Auto-Assign Azure CLI Team customer-reported Graph potential-pruning question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.