`az webapp config ssl delete` returns "Certificate for thumbprint ... not found"
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Describe the bug
`az webapp config ssl delete` is not able to delete a certificate if you have more certificates. In our case we have 143 managed certificates.
`az webapp config ssl show` is able to succesfully find my certificate (I want to delete), but `az webapp config ssl delete` is not able to delete it.
I used --debug and if I understand well it is because `az webapp config ssl delete` works:
- obtains access_token
- via https://management.azure.com:443 "GET /subscriptions/****/resourceGroups/***/providers/Microsoft.Web/certificates?api-version=2023-01-01 HTTP/1.1" 200 reads "all" certificates
- there is a problem, because GET returns only (first) 64 certificates and my certificate is not here
- command returns with "Certificate for thumbprint ... not found"
So I expected:
- GET certificates doesn't return all certificates. Is there some paging?
- `az webapp config ssl delete` doesn't count with this situation. Reading certificates has to continue in next iteration?
### Related command
THUMBPRINT=$(az webapp config ssl show --resource-group $RESOURCE_GROUP --certificate-name $CUSTOM_DOMAIN --query "thumbprint" -o tsv)
echo THUMBPRINT=$THUMBPRINT
az webapp config ssl delete --certificate-thumbprint $THUMBPRINT --resource-group $RESOURCE_GROUP
### Errors
THUMBPRINT=E29B...
ERROR: Certificate for thumbprint 'E29B...' not found
### Issue script & Debug output
THUMBPRINT=$(az webapp config ssl show --resource-group $RESOURCE_GROUP --certificate-name $CUSTOM_DOMAIN --query "thumbprint" -o tsv)
az webapp config ssl delete --certificate-thumbprint $THUMBPRINT --resource-group $RESOURCE_GROUP
### Expected behavior
The certificate is deleted.
### Environment Summary
{
"azure-cli": "2.59.0",
"azure-cli-core": "2.59.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {}
}
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.