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.
参数属性
参数集
Expanded
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-Confirm
Prompts you for confirmation before running the cmdlet.
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure
参数属性
参数集
(All)
Position: Named
必需: False
来自管道的值: False
来自管道的值(按属性名称): False
来自剩余参数的值: False
Specifies the certificate issuer to set.
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.
参数属性
参数集
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.
参数属性
参数集
(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.
参数属性
参数集
(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 .
输出