Skip to main content

.NET Framework installation and configuration with Azure App Service

Use this workflow with the Add New .NET Framework agent wizard to ensure you have all the steps covered for installing and configuring the .NET Framework agent with a the Azure App Service. Using the wizard is the simplest way to deploy a new agent.

Before you begin

Make sure you have everything you need before you start.

  • The agent will need to be able to reach your Contrast instance. It can be a local/on-premise instance or a hosted instance. A proxy can be configured if the environment has limited network access.

  • It must use supported versions, frameworks, and tools

  • Understand the order of precedence

  • You will also need access to a command line interface (with a chosen directory for downloading the agent) and your organization's instance of Contrast

Start the .NET Framework agent wizard

  1. Select Add New at the top of the Contrast web interface.

  2. Select the Application card.

  3. Under Select a language, select .NET Framework.

  4. Select the operating system you are using.

Select an application

Locate an ASP.NET Framework web application where you can add the Contrast extension.

If you do not have a web app, create an application hosted on Azure App Service. Then, publish your application to Azure and confirm that it works as expected without Contrast.

Configure application settings

Configure the displayed settings to let the agent connect to Contrast. Add the displayed values in the Application Settings section of the Environment variables blade for your application.

Add extension for the application

  1. In the Azure Portal, select your hosted application.

  2. Select Extensions.

  3. Select Add.

  4. Select Contrast .NET Framework Site Extension for Azure App Service.

  5. Select OK and agree to the Terms and Conditions.

  6. Wait a few seconds and confirm the site extension is correctly installed.

  7. Go back to the application overview and Restart the application.

  8. Go to the application, and confirm the application is reporting to Contrast.

Verify the agent deployment

  1. Interact with your application as you normally would. For example, interact with your application's web interface or send API commands

  2. Go to the Contrast web interface and select Applications in the header.

  3. Verify that you see the name of your application in the list.

  4. Select servers in the header.

  5. Verify that you see the name of your local server in the list.