你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Add-AzureApplicationGatewaySslCertificate
将 SSL 证书添加到应用程序网关。
注意
本文档中引用的 cmdlet 用于管理使用 Azure Service Manager (ASM) API 的旧 Azure 资源。 创建新的资源时,不建议使用此旧版 PowerShell 模块,因为 ASM 计划停用。 有关详细信息,请参阅 Azure Service Manager 停用。
Az PowerShell 模块是推荐的 PowerShell 模块,用于使用 PowerShell 管理 Azure 资源管理器 (ARM) 资源。
语法
Add-AzureApplicationGatewaySslCertificate
-Name <String>
-CertificateName <String>
-Password <String>
-CertificateFile <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
说明
Add-AzureApplicationGatewaySslCertificate cmdlet 将安全套接字层(SSL)证书添加到Azure 应用程序网关。
示例
示例 1:添加 SSL 证书
PS C:\> Add-AzureApplicationGatewaySslCertificate -Name "ApplicationGateway08" -CertificateName "SslCertificate13" -Password "password" -CertificateFile "c:\Certs\sslCertificate.pfx"
此命令将名为 SslCertificate13 的 SSL 证书添加到名为 ApplicationGateway08 的 应用程序网关。 该命令指定证书文件和证书密码的路径。
参数
-CertificateFile
指定 SSL 证书文件的路径。 此 cmdlet 在此参数指定的文件中添加证书。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-CertificateName
指定 SSL 证书的名称。 此 cmdlet 添加此参数指定的证书。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
指定此 cmdlet 向其添加 SSL 证书的应用程序网关的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Password
指定此 cmdlet 添加的 SSL 证书的密码。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Profile
指定此 cmdlet 从中读取的 Azure 配置文件。 如果未指定配置文件,此 cmdlet 将从本地默认配置文件中读取。
类型: | AzureSMProfile |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
输出
Microsoft.WindowsAzure.Management.ApplicationGateway.Models.ApplicationGatewayOperationResponse