Ensure HTTPS for Azure App Service Web App | WebApp1 | AZ-303 Exam Solution

Ensure HTTPS for WebApp1

Question

You have a web app named WebApp1 that uses an Azure App Service plan named Plan1. Plan1 uses the D1 pricing tier and has an instance count of 1.

You need to ensure that all connections to WebApp1 use HTTPS.

What should you do first?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A

The D1 (Shared) pricing tier does not support HTTPS.

To ensure that all connections to WebApp1 use HTTPS, you need to enable HTTPS for the web app. HTTPS is a secure version of HTTP, which encrypts the data transmitted between the web app and the client, making it more secure.

To enable HTTPS for the web app, you need to perform the following steps:

  1. Navigate to the WebApp1 in the Azure portal.
  2. Click on the "TLS/SSL settings" option under the "Settings" section in the left-hand menu.
  3. In the "TLS/SSL settings" blade, toggle the "HTTPS Only" setting to "On" to ensure that only HTTPS connections are accepted by the app.
  4. Save the changes.

This should enable HTTPS for the web app, ensuring that all connections to the web app are encrypted.

Note that scaling up or scaling out the App Service plan or modifying the connection strings will not directly enable HTTPS for the web app. However, if you scale up or scale out the App Service plan, you may be able to handle more traffic to the web app, which may indirectly help with HTTPS performance. Modifying the connection strings may be required if you are using custom domains or certificates, but it will not directly enable HTTPS. Disabling anonymous access to WebApp1 will not enable HTTPS either.