< Back

Add-AzureKeyVaultCertificateContact

Tue Jan 29, 2019 9:49 pm

NAME Add-AzureKeyVaultCertificateContact



SYNOPSIS

Adds a contact for certificate notifications.





SYNTAX

Add-AzureKeyVaultCertificateContact [-InputObject] <PSKeyVault> [-EmailAddress] <String[]> [-DefaultProfile <IAzureContextContainer>] [-PassThru]

[-Confirm] [-WhatIf] [<CommonParameters>]



Add-AzureKeyVaultCertificateContact [-VaultName] <String> [-EmailAddress] <String[]> [-DefaultProfile <IAzureContextContainer>] [-PassThru]

[-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Add-AzureKeyVaultCertificateContact cmdlet adds a contact for a key vault for certificate notifications in Azure Key Vault. The contact

receives updates about events such as certificate close to expiry, certificate renewed, and so on. These events are determined by the certificate

policy.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-EmailAddress <String[]>

Specifies the email address of the contact.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-InputObject <PSKeyVault>

KeyVault object.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-VaultName <String>

Specifies the name of the key vault.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

List<Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateContact>







NOTES









Example 1: Add a key vault certificate contact



PS C:\\>Add-AzureKeyVaultCertificateContact -VaultName "ContosoKV01" -EmailAddress "patti.fuller@contoso.com" -PassThru



This command adds Patti Fuller as a certificate contact for the ContosoKV01 key vault and returns the KeyVaultCertificateContact object.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... atecontact

Get-AzureKeyVaultCertificateContact

Remove-AzureKeyVaultCertificateContact