Get-​Azure​Rm​Web​App​SS​LBinding

Gets an Azure Web App certificate SSL binding.

Syntax

Get-AzureRmWebAppSSLBinding
   [-ResourceGroupName] <String>
   [-WebAppName] <String>
   [[-Slot] <String>]
   [[-Name] <String>]
   [<CommonParameters>]
Get-AzureRmWebAppSSLBinding
   [-WebApp] <Site>
   [[-Name] <String>]
   [<CommonParameters>]

Description

The Get-AzureRmWebAppSSLBinding cmdlet gets a Secure Sockets Layer (SSL) binding for an Azure Web App. SSL bindings are used to associate a Web App with an uploaded certificate. Web Apps can be bound to multiple certificates.

Examples

Example 1: Get SSL bindings for a Web App

PS C:\>Get-AzureRmWebAppSSLBinding -ResourceGroupName "ContosoResourceGroup" -WebAppName "ContosoWebApp"

This command retrieves the SSL bindings for the Web App ContosoWebApp, which is associated with the resource group ContosoResourceGroup.

Example 2: Use an object reference to get SSL bindings for a Web App

PS C:\>$WebApp = Get-AzureRmWebApp -Name "ContosoWebApp"
PS C:\> Get-AzureRmWebAppSSLBinding -WebApp $WebApp

The commands in this example also get the SSL bindings for the Web App ContosoWebApp; in this case, however, an object reference is used instead of the Web App name and the name of the associated resource group. This object reference is created by the first command in the example, which uses Get-AzureRmWebApp to create an object reference to the Web App named ContosoWebApp. That object reference is stored in a variable named $WebApp.

This variable, and the Get-AzureRmWebAppSSLBinding cmdlet, are then used by the second command to get the SSL bindings.

Required Parameters

-ResourceGroupName

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

You cannot use the ResourceGroupName parameter and the WebApp parameter in the same command.

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

Specifies a Web App. To get a Web App, use the Get-AzureRmWebApp cmdlet.

Type:Site
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-WebAppName

Specifies the name of the Web App that this cmdlet gets SSL bindings from.

You cannot use the WebAppName parameter and the WebApp parameter in the same command.

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

Optional Parameters

-Name

Specifies the name of the SSL binding.

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Slot

Specifies a Web App deployment slot. To get a deployment slot, use the Get-AzureRMWebAppSlot cmdlet.

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