< Back

Undo-AzureKeyVaultSecretRemoval

Tue Jan 29, 2019 9:51 pm

NAME Undo-AzureKeyVaultSecretRemoval



SYNOPSIS

Recovers a deleted secret in a key vault into an active state.





SYNTAX

Undo-AzureKeyVaultSecretRemoval [-InputObject] <PSDeletedKeyVaultSecretIdentityItem> [-DefaultProfile <IAzureContextContainer>] [-Confirm]

[-WhatIf] [<CommonParameters>]



Undo-AzureKeyVaultSecretRemoval [-VaultName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

The Undo-AzureKeyVaultSecretRemoval cmdlet will recover a previously deleted secret. The recovered secret will be active and can be used for all

normal secret operations. Caller needs to have 'recover' permission in order to perform this operation.





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



-InputObject <PSDeletedKeyVaultSecretIdentityItem>

Deleted secret object



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String>

Secret name. Cmdlet constructs the FQDN of a secret from vault name, currently selected environment and secret name.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-VaultName <String>

Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment.



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

System.String







OUTPUTS

Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultSecret







NOTES









Example 1



PS C:\\> Undo-AzureKeyVaultSecretRemoval -VaultName 'MyKeyVault' -Name 'MySecret'



This command will recover the secret 'MySecret' that was previously deleted, into an active and usable state.







RELATED LINKS

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

Remove-AzureKeyVaultSecret

Add-AzureKeyVaultSecret

Get-AzureKeyVaultSecret