Azure App Services. http works but https doesn't
The statement in the title is not true but I thought it was. Why?
I deployed from Visual Studio, using web deploy, directly to an App Services web app. It was a WCF web service project and when I visited with http, it worked fine. I then uploaded a TLS cert, setup the custom domain, tried to visit and BANG.
Once I had enabled all my detailed errors and read the log, the only information was 0x80070005 - Access Denied.
No real clues what was going on and what "access" is deined.
Anyway, after 90 minutes of poking around by an MS support technician, it appears that there is a compatibility problem when using Client Certificates. I was using one and although I had not used Resource Manager to deploy the app, there is a resource manager and its default configuration is:
"clientCertEnabled": false,
Open up the site's resource group in Resource Explorer, navigate to the site itself and you'll see the json on the right-hand side. Press the Edit button, find this setting, edit it to be true and PUT it and it should all magically come to life!
I need to automate this, but it will be fine for now.
I deployed from Visual Studio, using web deploy, directly to an App Services web app. It was a WCF web service project and when I visited with http, it worked fine. I then uploaded a TLS cert, setup the custom domain, tried to visit and BANG.
Once I had enabled all my detailed errors and read the log, the only information was 0x80070005 - Access Denied.
No real clues what was going on and what "access" is deined.
Anyway, after 90 minutes of poking around by an MS support technician, it appears that there is a compatibility problem when using Client Certificates. I was using one and although I had not used Resource Manager to deploy the app, there is a resource manager and its default configuration is:
"clientCertEnabled": false,
Open up the site's resource group in Resource Explorer, navigate to the site itself and you'll see the json on the right-hand side. Press the Edit button, find this setting, edit it to be true and PUT it and it should all magically come to life!
I need to automate this, but it will be fine for now.