Thanks for asking question! If I am understanding right you have custom domain and you want to secure it which means access your App Service app at the https:// endpoint.
So to elaborate Custom SSL is not supported in the F1 or D1 tier and you need to Scale up your App Service plan.
Coming to how to Secure a custom domain: You need to follow below steps.
- Go to Azure portal > select your App Services.
- From the left navigation of your app select TLS/SSL settings > Add TLS/SSL binding
- In Custom Domain, select the custom domain you want to add a binding for.
- If your app already has a certificate for the selected custom domain, go to Create binding directly. Otherwise you need to Add a
certificate for custom domain. - If your app has no certificate for the selected custom domain, then you have below options:
Upload PFX Certificate - Follow the workflow at Upload a private certificate, then select this option here.
Import App Service Certificate - Follow the workflow at Import an App Service certificate, then select this option here.
You can also Create a free certificate (Preview) 6. After that you have to Create binding (Check this table to help you configure the TLS binding) in the TLS/SSL Binding dialog >
then click Add Binding. 7. Once the operation is complete, the custom domain's TLS/SSL state is changed to Secure.
Clarifying HTTPS Only Feature:
Further you may want to know that after completing above By default, anyone can still access your app using HTTP but if you want you can redirect all HTTP requests to the HTTPS port by using HTTPS Only, select On feature.
For more details suggest you to refer this official document : https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-bindings
Hope this simplifies you. Let me know if you have further query on this.