Bewerken

Delen via


Get-AzWebAppCertificate

Gets an Azure Web App certificate.

Syntax

Get-AzWebAppCertificate
   [[-ResourceGroupName] <String>]
   [[-Thumbprint] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzWebAppCertificate cmdlet gets information about Azure Web App certificates associated with a specified resource group. If you know the certificate thumbprint you can also use this cmdlet to get information about a specified certificate.

Examples

Example 1: Get Web App certificates in a resource group

Get-AzWebAppCertificate -ResourceGroupName "ContosoResourceGroup"

This command returns information about the uploaded Web App certificates associated with the resource group ContosoResourceGroup.

Example 2: Get a specified web app certificate

Get-AzWebAppCertificate -ResourceGroupName "ContosoResourceGroup" -Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3"

This command gets the ContosoResourceGroup Web App certificate with the thumbprint E3A38EBA60CAA1C162785A2E1C44A15AD450199C3.

Parameters

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Specifies the name of the resource group that the certificate is assigned to.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Thumbprint

Specifies the unique identifier for the certificate.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Azure.Commands.WebApps.Models.WebApp.PSCertificate