Working in Azure creating VMs with certificates it’s helpful to know what you have.
function Get-AzureCertificates { $i = 1 $array= @() foreach ( $item in (Get-AzureService | Select ServiceName) ) { $Certs = Get-AzureCertificate -ServiceName $item.ServiceName foreach($Cert in $Certs) { $Object = New-Object System.Object $Object | Add-Member -Type NoteProperty -name "ServiceName" -Value $item.ServiceName $Object | Add-Member -Type NoteProperty -name "Thumbprint" -Value $Cert.Thumbprint $Object | Add-Member -Type NoteProperty -name "ThumbprintAlgorithm" -Value $Cert.ThumbprintAlgorithm $Object | Add-Member -Type NoteProperty -name "URL" -Value $Cert.Url $array += $Object } } $array } Get-AzureCertificates | FT -AutoSize -Wrap # To Remove Certificate # Remove-AzureCertificate -ServiceName <ServiceName> -ThumbprintAlgorithm <ThumbprintAlgorithm> -Thumbprint <Thumbprint>