Remove-KeyVaultCertificateContact
Azure: Removes a Key Vault certificate contact
param(
[Parameter(Mandatory = $true)]
[string]$VaultName,
[Parameter(Mandatory = $true)]
[string[]]$EmailAddress
)
try {
Import-Module Az.KeyVault -ErrorAction Stop
Remove-AzKeyVaultCertificateContact -VaultName $VaultName -EmailAddress $EmailAddress -ErrorAction Stop
Write-Output "Successfully removed certificate contact(s) from vault '$VaultName'."
} catch {
Write-Error $_
exit 1
}The name of the Key Vault.
The email address of the certificate contact to remove.