Get-AzKeyVaultCertificate -InRemovedState doesn't return soft deleted certificate specific information like serialnumber anymore from Az.KeyVault Module version 4.11.0 #24333
Labels
Azure PS Team
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
KeyVault
Tracking
We will track status and follow internally
Milestone
Description
Starting from Az.KeyVault version 4.11.0 until latest version 5.2.1 the command
-> Get-AzKeyVaultCertificate -VaultName -Name -InRemovedState
only return basic information about the soft deleted KeyVault certificate but no specific information like subject or serialnumber anymore.
All older versions up to 4.10.2 give back the expected result.
In the release notes for version 4.11.0 I could not find any hint that this information has been removed intentionally or was replaced by another mechanism.
Also the current help example for showing InRemovedState KV certificate shows specific certificate information output.
Therefore I assume it wasn't removed on purpose.
This behavior is not specific to PS 5.1 or 7.x.
Output before version 4.11.0:
Certificate : [Subject]
CN=...
KeyId : https://kv-....vault.azure.net:443/keys/.../2084c9
...
SecretId : https://kv-....vault.azure.net:443/secrets/.../208
...
Thumbprint : ...
RecoveryLevel : CustomizedRecoverable+Purgeable
ScheduledPurgeDate : 3/14/2024 10:23:19 AM
DeletedDate : 3/7/2024 10:23:19 AM
Enabled : True
Expires : 6/11/2024 11:59:59 PM
NotBefore : 6/11/2023 12:00:00 AM
Created : 6/11/2023 1:30:07 AM
Updated : 6/11/2023 1:30:07 AM
Tags :
VaultName : kv-...
Name : ...
Version : 2084c...
Id : https://kv-....vault.azure.net:443/certificates/...
/2084c...
Output from version 4.11.0:
Name : ...
Vault Name : kv-...
Version : 2084...
Id : https://kv-....vault.azure.net:443/certificates/.../2084c9
...
Enabled : True
Expires : 6/11/2024 11:59:59 PM
Not Before : 6/11/2023 12:00:00 AM
Created : 6/11/2023 1:30:07 AM
Updated : 6/11/2023 1:30:07 AM
Tags :
This is really valuable information missing currently. I workaround this issue by using module version 4.10.2 for the moment but would really appreciate to have the information back in the later versions as well.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: