你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Set-AzKeyVaultCertificateIssuer

Sets a certificate issuer in a key vault.

语法

Expanded (默认值)

Set-AzKeyVaultCertificateIssuer
    [-VaultName] <String>
    [-Name] <String>
    -IssuerProvider <String>
    [-AccountId <String>]
    [-ApiKey <SecureString>]
    [-OrganizationDetails <PSKeyVaultCertificateOrganizationDetails>]
    [-PassThru]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ByValue

Set-AzKeyVaultCertificateIssuer
    [-VaultName] <String>
    [-Name] <String>
    -InputObject <PSKeyVaultCertificateIssuerIdentityItem>
    [-PassThru]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

The Set-AzKeyVaultCertificateIssuer cmdlet sets a certificate issuer in a key vault.

示例

Example 1: Set a certificate issuer

$AdminDetails = New-AzKeyVaultCertificateAdministratorDetail -FirstName user -LastName name -EmailAddress username@microsoft.com
$OrgDetails = New-AzKeyVaultCertificateOrganizationDetail -AdministratorDetails $AdminDetails
$Password = ConvertTo-SecureString -String "****" -AsPlainText -Force
Set-AzKeyVaultCertificateIssuer -VaultName "Contosokv01" -Name "TestIssuer01" -IssuerProvider "Test" -AccountId "555" -ApiKey $Password -OrganizationDetails $OrgDetails -PassThru
AccountId           : 555
ApiKey              :
OrganizationDetails : Microsoft.Azure.Commands.KeyVault.Models.PSKeyVaultCertificateOrganizationDetails
Name                : TestIssuer01
IssuerProvider      : Test
VaultName           : Contosokv01

This command sets the properties for a certificate issuer.

参数

-AccountId

Specifies the account ID for the certificate issuer.

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

Expanded
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ApiKey

Specifies the API key for the certificate issuer.

参数属性

类型:SecureString
默认值:None
支持通配符:False
不显示:False

参数集

Expanded
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Confirm

Prompts you for confirmation before running the cmdlet.

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-DefaultProfile

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

参数属性

类型:IAzureContextContainer
默认值:None
支持通配符:False
不显示:False
别名:AzContext, AzureRmContext, AzureCredential

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-InputObject

Specifies the certificate issuer to set.

参数属性

类型:PSKeyVaultCertificateIssuerIdentityItem
默认值:None
支持通配符:False
不显示:False
别名:Issuer

参数集

ByValue
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

-IssuerProvider

Specifies the type of certificate issuer.

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

Expanded
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Name

Specifies the name of the Issuer.

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False
别名:IssuerName

参数集

(All)
Position:1
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-OrganizationDetails

Organization details to be used with the issuer.

参数属性

类型:PSKeyVaultCertificateOrganizationDetails
默认值:None
支持通配符:False
不显示:False

参数集

Expanded
Position:Named
必需:False
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

-PassThru

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

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-VaultName

Specifies the name of the key vault.

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:0
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

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

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:wi

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

输入

PSKeyVaultCertificateOrganizationDetails

PSKeyVaultCertificateIssuerIdentityItem

输出

PSKeyVaultCertificatePolicy