Connect to Azure and Artifact Repo for Your Web App Deployments
Currently, this feature is behind the Feature Flag AZURE_WEBAPP
. Contact Harness Support to enable the feature.You connect Harness to your Azure account to deploy Azure Web Apps. You make the connection using a Harness Cloud Provider.
You deploy your Web App using a Docker image or non-containerized artifact. You connect to your image or artifact's repo using a Harness Artifact Server or Cloud Provider (for AWS S3 or Azure ACR).
In this topic:
- Before You Begin
- Supported Platforms and Technologies
- Review: Azure Connection Options
- Step 1: Install a Harness Delegate
- Step 2: Set Up the Azure Cloud Provider
- Step 3: Set Up the Harness Artifact Server
- Next Steps
- See Also
Before You Begin
Supported Platforms and Technologies
See Supported Platforms and Technologies.
Review: Azure Connection Options
As covered in Harness Key Concepts, you need to install a Harness Delegate in your infrastructure before setting up your Harness deployment.
There are several types of Delegates you can use for an Azure App Service deployment, described in Delegate Installation Overview.
Shell Script, Docker, Kubernetes, and Helm Delegates are all options.
Step 1: Install a Harness Delegate
Follow the installation steps for the Harness Delegate you want to install. See Delegate Installation Overview for the available options.
Make sure this Delegate is in, or can connect to, the resource group for your Azure Web App.
Step 2: Set Up the Azure Cloud Provider
A Harness Azure Cloud Provider connects to your Azure subscription using your Client ID and Tenant ID.
Follow the steps in Add Microsoft Azure Cloud Provider to connect Harness to Azure.
That's all the setup you need to connect Harness to your account and start your deployment.
If you store the Docker image in Azure Container Registry, then you can use this Azure Cloud Provider you set up and skip the next step.
Step 3: Set Up the Harness Artifact Server
If you store the Docker image in Azure Container Registry, then you can use the Azure Cloud Provider you set up and skip the Artifact Server setup.A Harness Azure Web App deployment uses a Docker image or non-containerized artifact. You connect Harness to the same repo you use in your Web App in Azure. You made this connection using a Harness Artifact Server or Cloud Provider.
The Harness Azure Web Application Service type supports the following repos:
- Docker Registry: see Add Docker Registry Artifact Servers.
- Artifactory: see Add Artifactory Servers.
- Azure Container Registry: see Add Microsoft Azure Cloud Provider. You can use the Azure Cloud Provider you set up in the previous step.
- Amazon S3: see Add Amazon Web Services (AWS) Cloud Provider.
- Jenkins: see Add Jenkins Artifact Servers.
For example, here are the Docker Hub settings in an Azure Web App:
Here's the Harness Docker Registry Artifact Server:
The above example uses a public repo, and it requires no username or password.
Later, in the Harness Service, you'll add an Artifact Source that uses this Artifact Server and points to the Docker Image Name:
The above example uses a publicly available Docker image from Harness. You might want to use that the first time you set up an Azure Web App deployment.### Next Steps
- Add Your Docker Image for Azure Web App Deployment
- Add Non-Containerized Artifacts for Azure Web App Deployment
See Also
- Run a custom container in Azure from Azure.