The Remove-AzWebAppSSLBinding cmdlet removes a Secure Sockets Layer (SSL) binding from an Azure Web App.
SSL bindings are used to associate a Web App with a certificate.
This command removes the SSL binding for the web app ContosoWebApp.
Since the DeleteCertificate parameter is not included, the certificate will be deleted if it no longer has any SSL bindings.
Example 2: Remove an SSL binding without removing the certificate
Similar to Example 1, this command also removes the SSL binding for the Web App ContosoWebApp.
In this case, however, the DeleteCertificate parameter is included, and the parameter value is set to $False.
That means that the certificate will not be deleted regardless of whether it has any SSL bindings or not.
Example 3: Use an object reference to remove an SSL binding
This example uses an object reference to the Web App website to remove the SSL binding for a Web App.
The first command uses the Get-AzWebApp cmdlet to create an object reference to the Web App named ContosoWebApp.
That object reference is stored in a variable named $WebApp.
The second command uses the object reference and the Remove-AzWebAppSSLBinding cmdlet to remove the SSL binding.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Specifies the action to take place if the SSL binding being removed is the only binding used by the certificate.
If DeleteCertificate is set to $False, the certificate will not be deleted when the binding is deleted.
If DeleteCertificate is set to $True or is not included in the command, the certificate will be deleted along with the SSL binding.
The certificate will only be deleted if the SSL binding being removed is the only binding used by the certificate.
If the certificate has more than one binding, the certificate will not be removed regardless of the value of the DeleteCertificate parameter.
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.
Specifies a Web App.
To get a Web App, use the Get-AzWebApp cmdlet.
You cannot use the WebApp parameter in the same command as the ResourceGroupName parameter and/or the WebAppName.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.