Closed barakAtSoluto closed 4 years ago
@barakAtSoluto, I apologize for missing this earlier this summer when I started tracking these issues. The error you are seeing is due to the fact that the certificate is still in use by a deployment. You will need to remove this certificate from the deployment, and then you will be able to delete the certificate.
Description
The "Remove-AzureCertificate" command fails to delete certificates with status "Expired" from Cloud Services. It says it's used in a deployment but this is wrong.
The error thrown:
Steps to reproduce
Connect-AzAccount
Select-AzureSubscription -SubscriptionName <subscription_name>
Remove-AzureCertificate -ServiceName <name> -Thumbprint <thumb> -ThumbprintAlgorithm "sha1"
Environment data
Module versions
Executing
Get-Module -Name Az.* -ListAvailable
has no output.Debug output
Error output