< Back

Get-AzureRmWebAppSSLBinding

Tue Jan 29, 2019 10:12 pm

NAME Get-AzureRmWebAppSSLBinding



SYNOPSIS

Gets an Azure Web App certificate SSL binding.





SYNTAX

Get-AzureRmWebAppSSLBinding [-ResourceGroupName] <String> [-WebAppName] <String> [[-Slot] <String>] [[-Name] <String>] [-DefaultProfile

<IAzureContextContainer>] [<CommonParameters>]



Get-AzureRmWebAppSSLBinding [-WebApp] <Site> [[-Name] <String>] [-DefaultProfile <IAzureContextContainer>] [<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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the SSL binding.



Required? false

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

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.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Slot <String>

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



Required? false

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WebApp <Site>

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



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-WebAppName <String>

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.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Site

Parameter 'WebApp' accepts value of type 'Site' from the pipeline





OUTPUTS



NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... sslbinding

New-AzureRmWebAppSSLBinding

Remove-AzureRmWebAppSSLBinding

Get-AzureRmWebApp