Deploy PDF Viewer server app to Azure App Service from Visual Studio

15 Oct 20251 minute to read

Prerequisites

Publish to Azure App Service

Step 1: In Solution Explorer, right-click the project and choose Publish (or use Build > Publish).

azure publish

Step 2: If a profile exists, select Create new profile.

Step 3: In Pick a publish target, choose App Service.

azure target

Step 4: Select Publish. In Create App Service, sign in if prompted and review the default settings.

azure pdfviewer

Step 5: Select Create. After deployment, the app loads at http://.azurewebsites.net (for example, http://ej2-pdfviewer-server20200513053326.azurewebsites.net).

Step 6: Verify the API at http://ej2-pdfviewer-server20200513053326.azurewebsites.net/api/pdfviewer. A default GET response indicates the server is running.

Use the service endpoint (for example, http://ej2-pdfviewer-server20200513053326.azurewebsites.net/api/pdfviewer) as the PDF Viewer client’s serviceUrl. Refer to the getting started guide

For production guidance, see Azure App Service deployment documentation.