Skip to content

Add-KeyVaultCertificateContact

Azure: Adds a contact for Key Vault certificates

param(
	[Parameter(Mandatory = $true)]
	[string]$VaultName,

	[Parameter(Mandatory = $true)]
	[string[]]$EmailAddress
)

try {
	Import-Module Az.KeyVault -ErrorAction Stop
	Add-AzKeyVaultCertificateContact -VaultName $VaultName -EmailAddress $EmailAddress -ErrorAction Stop
	Write-Output "Successfully added certificate contact(s) to vault '$VaultName'."
} catch {
	Write-Error $_
	exit 1
}

The name of the Key Vault.

The email address of the certificate contact.

An interactive directory of PowerShell scripts.