共用方式為


New-AzApplicationGatewayAuthenticationCertificate

建立應用程式閘道的驗證憑證。

語法

New-AzApplicationGatewayAuthenticationCertificate
   -Name <String>
   -CertificateFile <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-AzApplicationGatewayAuthenticationCertificate Cmdlet 會建立 Azure 應用程式網關的驗證憑證。

範例

範例 1:建立驗證憑證

$cert = New-AzApplicationGatewayAuthenticationCertificate -Name "cert01" -CertificateFile "C:\cert.cer"

第一個命令會建立名為 cert01 的驗證憑證。

參數

-CertificateFile

指定驗證憑證的路徑。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Confirm

執行 Cmdlet 之前先提示您確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

指定驗證憑證的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

類型:SwitchParameter
別名:wi
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

None

輸出

PSApplicationGatewayAuthenticationCertificate

備註

  • 關鍵詞:azure、azurerm、arm、resource、management、manager、network、networking