Get-AzWebAppSSLBinding
Gets an Azure Web App certificate SSL binding.
Syntax
Get-AzWebAppSSLBinding
[[-Name] <String>]
[-ResourceGroupName] <String>
[-WebAppName] <String>
[[-Slot] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzWebAppSSLBinding
[[-Name] <String>]
[-WebApp] <PSSite>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzWebAppSSLBinding 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
Get-AzWebAppSSLBinding -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
$WebApp = Get-AzWebApp -Name "ContosoWebApp"
Get-AzWebAppSSLBinding -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-AzWebApp 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-AzWebAppSSLBinding cmdlet, are then used by the second command to get the SSL bindings.
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 |
-Name
Specifies the name of the SSL binding.
Type: | String |
Position: | 3 |
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. You cannot use the ResourceGroupName parameter and the WebApp parameter in the same command.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Slot
Specifies a Web App deployment slot. To get a deployment slot, use the Get-AzWebAppSlot cmdlet.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WebApp
Specifies a Web App. To get a Web App, use the Get-AzWebApp cmdlet.
Type: | PSSite |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Outputs
Related Links
Azure PowerShell