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

New-AzIntegrationAccountCertificate

创建集成帐户证书。

语法

PrivateKey

New-AzIntegrationAccountCertificate
    -ResourceGroupName <String>
    -Name <String>
    -CertificateName <String>
    -KeyName <String>
    -KeyVersion <String>
    -KeyVaultId <String>
    [-PublicCertificateFilePath <String>]
    [-Metadata <Object>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

PublicKey

New-AzIntegrationAccountCertificate
    -ResourceGroupName <String>
    -Name <String>
    -CertificateName <String>
    -PublicCertificateFilePath <String>
    [-KeyName <String>]
    [-KeyVersion <String>]
    [-KeyVaultId <String>]
    [-Metadata <Object>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Both

New-AzIntegrationAccountCertificate
    -ResourceGroupName <String>
    -Name <String>
    -CertificateName <String>
    -KeyName <String>
    -KeyVersion <String>
    -KeyVaultId <String>
    -PublicCertificateFilePath <String>
    [-Metadata <Object>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

New-AzIntegrationAccountCertificate cmdlet 创建集成帐户证书。 此 cmdlet 返回一个表示集成帐户证书的对象。 指定集成帐户名称、资源组名称、证书名称、密钥名称、密钥版本和密钥保管库 ID。 在命令行中指定的模板参数文件值优先于模板参数对象中的模板参数值。 此模块支持动态参数。 若要使用动态参数,请在命令中键入它。 若要发现动态参数的名称,请在 cmdlet 名称后面键入连字符(-),然后重复按 Tab 键循环访问可用参数。 如果省略所需的模板参数,cmdlet 会提示输入值。

示例

示例 1:创建集成帐户证书

New-AzIntegrationAccountCertificate -ResourceGroupName "ResourceGroup11" -Name "IntegrationAccount31" -CertificateName "IntegrationAccountCertificate01" -KeyName "TestKey" -KeyVersion "1.0" -KeyVaultId "/subscriptions/<subscriptionId>/resourcegroups/ResourceGroup11/providers/microsoft.keyvault/vaults/keyvault" -PublicCertificateFilePath "c:\temp\Certificate.cer"
Id                : /subscriptions/<SubscriptionId>/resourceGroups/ResourceGroup11/providers/Microsoft.Logic/integrationAccounts/IntegrationAccount31/certificates/IntegrationAccountCertificate01
Name              : IntegrationAccountCertificate01
Type              : Microsoft.Logic/integrationAccounts/certificates
CreatedTime       : 3/26/2016 6:59:07 PM
ChangedTime       : 3/26/2016 6:59:07 PM
KeyName           : TestKey
KeyVersion        : 1.0
KeyVaultId        : /subscriptions/<SubscriptionId>/resourcegroups/ResourceGroup11/providers/microsoft.keyvault/vaults/<name>
KeyVaultName      : testkeyvault
KeyVaultName      : testkeyvault
PublicCertificate :
MetaData          :

此命令在指定的资源组中创建集成帐户证书。

参数

-CertificateName

指定集成帐户证书的名称。

参数属性

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

参数集

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

-Confirm

在运行 cmdlet 之前,提示你进行确认。

参数属性

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

参数集

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

-DefaultProfile

用于与 azure 通信的凭据、帐户、租户和订阅

参数属性

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

参数集

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

-KeyName

指定密钥保管库中证书密钥的名称。

参数属性

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

参数集

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

-KeyVaultId

指定密钥保管库 ID。

参数属性

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

参数集

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

-KeyVersion

指定密钥保管库中证书密钥的版本。

参数属性

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

参数集

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

-Metadata

指定证书的元数据对象。

参数属性

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

参数集

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

-Name

指定集成帐户的名称。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False
别名:IntegrationAccountName, 资源名称

参数集

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

-PublicCertificateFilePath

指定公共证书(.cer)文件的路径。

参数属性

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

参数集

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

-ResourceGroupName

指定资源组的名称。

参数属性

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

参数集

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

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

参数属性

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

参数集

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

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

String

输出

IntegrationAccountCertificate