Backup

您所在的位置:网站首页 t细胞的免疫效应和转归 Backup

Backup

2024-07-17 00:31:44| 来源: 网络整理| 查看: 265

Backup-AzKeyVaultSecret Reference Module: Az.KeyVault

Backs up a secret in a key vault.

Syntax Backup-AzKeyVaultSecret [-VaultName] [-Name] [[-OutputFile] ] [-Force] [-DefaultProfile ] [-WhatIf] [-Confirm] [] Backup-AzKeyVaultSecret [-InputObject] [[-OutputFile] ] [-Force] [-DefaultProfile ] [-WhatIf] [-Confirm] [] Description

The Backup-AzKeyVaultSecret cmdlet backs up a specified secret in a key vault by downloading it and storing it in a file. If there are multiple versions of the secret, all versions are included in the backup. Because the downloaded content is encrypted, it cannot be used outside of Azure Key Vault. You can restore a backed-up secret to any key vault in the subscription that it was backed up from. Typical reasons to use this cmdlet are:

You want to escrow a copy of your secret, so that you have an offline copy in case you accidentally delete your secret in your key vault. You added a secret to a key vault and now want to clone the secret into a different Azure region, so that you can use it from all instances of your distributed application. Use the Backup-AzKeyVaultSecret cmdlet to retrieve the secret in encrypted format and then use the Restore-AzKeyVaultSecret cmdlet and specify a key vault in the second region. (Note that the regions must belong to the same geography.) Examples Example 1: Back up a secret with an automatically generated file name Backup-AzKeyVaultSecret -VaultName 'MyKeyVault' -Name 'MySecret' C:\Users\username\mykeyvault-mysecret-1527029447.01191

This command retrieves the secret named MySecret from the key vault named MyKeyVault and saves a backup of that secret to a file that is automatically named for you, and displays the file name.

Example 2: Back up a secret to a specified file name, overwriting the existing file without prompting Backup-AzKeyVaultSecret -VaultName 'MyKeyVault' -Name 'MySecret' -OutputFile 'C:\Backup.blob' -Force C:\Backup.blob

This command retrieves the secret named MySecret from the key vaultnamed MyKeyVault and saves a backup of that secret to a file named Backup.blob.

Example 3: Back up a secret previously retrieved to a specified file name $secret = Get-AzKeyVaultSecret -VaultName 'MyKeyVault' -Name 'MySecret' Backup-AzKeyVaultSecret -Secret $secret -OutputFile 'C:\Backup.blob' C:\Backup.blob

This command uses the $secret object's vault name and name to retrieves the secret and saves its backup to a file named Backup.blob.

Parameters -Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter Aliases:cf Position:Named Default value:False Accept pipeline input:False Accept wildcard characters:False -DefaultProfile

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

Type:IAzureContextContainer Aliases:AzContext, AzureRmContext, AzureCredential Position:Named Default value:None Accept pipeline input:False Accept wildcard characters:False -Force

Prompts you for confirmation before overwriting the output file, if that exists.

Type:SwitchParameter Position:Named Default value:False Accept pipeline input:False Accept wildcard characters:False -InputObject

Secret to be backed up, pipelined in from the output of a retrieval call.

Type:PSKeyVaultSecretIdentityItem Aliases:Secret Position:0 Default value:None Accept pipeline input:True Accept wildcard characters:False -Name

Specifies the name of the secret to back up.

Type:String Aliases:SecretName Position:1 Default value:None Accept pipeline input:False Accept wildcard characters:False -OutputFile

Specifies the output file in which the backup blob is stored. If you do not specify this parameter, this cmdlet generates a file name for you. If you specify the name of an existing output file, the operation will not complete and returns an error message that the backup file already exists.

Type:String Position:2 Default value:None Accept pipeline input:False Accept wildcard characters:False -VaultName

Specifies the name of the key vault that contains the secret to back up.

Type:String Position:0 Default value:None Accept pipeline input:False Accept wildcard characters:False -WhatIf

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

Type:SwitchParameter Aliases:wi Position:Named Default value:False Accept pipeline input:False Accept wildcard characters:False Inputs

PSKeyVaultSecretIdentityItem

Outputs

String

Related Links Set-AzKeyVaultSecret Get-AzKeyVaultSecret Remove-AzKeyVaultSecret Restore-AzKeyVaultSecret


【本文地址】

公司简介

联系我们

今日新闻


点击排行

实验室常用的仪器、试剂和
说到实验室常用到的东西,主要就分为仪器、试剂和耗
不用再找了,全球10大实验
01、赛默飞世尔科技(热电)Thermo Fisher Scientif
三代水柜的量产巅峰T-72坦
作者:寞寒最近,西边闹腾挺大,本来小寞以为忙完这
通风柜跟实验室通风系统有
说到通风柜跟实验室通风,不少人都纠结二者到底是不
集消毒杀菌、烘干收纳为一
厨房是家里细菌较多的地方,潮湿的环境、没有完全密
实验室设备之全钢实验台如
全钢实验台是实验室家具中较为重要的家具之一,很多

推荐新闻


图片新闻

实验室药品柜的特性有哪些
实验室药品柜是实验室家具的重要组成部分之一,主要
小学科学实验中有哪些教学
计算机 计算器 一般 打孔器 打气筒 仪器车 显微镜
实验室各种仪器原理动图讲
1.紫外分光光谱UV分析原理:吸收紫外光能量,引起分
高中化学常见仪器及实验装
1、可加热仪器:2、计量仪器:(1)仪器A的名称:量
微生物操作主要设备和器具
今天盘点一下微生物操作主要设备和器具,别嫌我啰嗦
浅谈通风柜使用基本常识
 众所周知,通风柜功能中最主要的就是排气功能。在

专题文章

    CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭