Skip to content

Commit e552147

Browse files
author
maddieclayton
authored
Merge pull request #5027 from philhack/fix-New-AzureRmWebAppSSLBinding-doc
changed the readme for New-AzureRmWebAppSSLBinding. Calling it with the -CertificatePassword after the cert is already uploaded to Azure causes an AmbiguousParameterSet exception
2 parents c750cec + f1ebbee commit e552147

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/ResourceManager/Websites/Commands.Websites/help/New-AzureRmWebAppSSLBinding.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,11 @@ If you upload a new certificate, keep in mind the following requirements for an
6161

6262
### Example 1: Bind a certificate to a Web App
6363
```
64-
PS C:\>New-AzureRmWebAppSSLBinding -ResourceGroupName "ContosoResourceGroup" -WebAppName "ContosoWebApp" -Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3" -Name "www.contoso.com" -CertificatePassword "p@ssw0rd"
64+
PS C:\>New-AzureRmWebAppSSLBinding -ResourceGroupName "ContosoResourceGroup" -WebAppName "ContosoWebApp" -Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3" -Name "www.contoso.com"
6565
```
6666

6767
This command binds an existing Azure certificate (a certificate with the Thumbprint E3A38EBA60CAA1C162785A2E1C44A15AD450199C3) to the web app named ContosoWebApp.
6868

69-
### Example 2: Upload a certificate and bind it to a Web App
70-
```
71-
PS C:\>New-AzureRmWebAppSSLBinding -ResourceGroupName "ContosoResourceGroup" -WebAppName "ContosoWebApp" -Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3" -Name "www.contoso.com" -CertificatePassword "p@ssw0rd" -CertificateFilePath "C:\Certificates\ContosoWebSite.pfx"
72-
```
73-
74-
Example 2 also binds the certificate E3A38EBA60CAA1C162785A2E1C44A15AD450199C3 to the Web App named ContosoWebApp.
75-
In this case, however, the certificate has not yet been uploaded to Azure.
76-
Because of that, the *CertificateFilePath* parameter is used to specify the local copy of the certificate .PFX file.
77-
This certificate will be uploaded to Azure and then the new SSL bindings will be created.
78-
7969
## PARAMETERS
8070

8171
### -CertificateFilePath

0 commit comments

Comments
 (0)