-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az webapp config ssl delete returns "Certificate for thumbprint ... not found" #28722
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Web Appsaz webappaz webappact-observability-squadapp-service-certs-domainsbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Web Appsaz webappaz webappact-observability-squadapp-service-certs-domainsbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
az webapp config ssl deleteis not able to delete a certificate if you have more certificates. In our case we have 143 managed certificates.az webapp config ssl showis able to succesfully find my certificate (I want to delete), butaz webapp config ssl deleteis not able to delete it.I used --debug and if I understand well it is because
az webapp config ssl deleteworks:So I expected:
az webapp config ssl deletedoesn'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