Microsoft Azure

How to use Codefresh with Azure

Codefresh has native support for Azure in the following areas:

Using Azure Git repositories

Codefresh can easily checkout code from Azure Git repositories:

Azure Git integration

Azure Git integration

For more details see the documentation page. Once your repository is connected you can use the native clone step as well as Git triggers like all other git providers.

Using Azure Docker registries

Azure Docker registries are fully compliant with the Docker registry API that Codefresh follows. You can connect an Azure Registry like any other Docker registry.

Adding the Azure Docker registry

Adding the Azure Docker registry

Once the registry is added you can the standard push step step in pipelines. See also the documentation page for working with Docker registries.

Deploying to Azure Kubernetes

Codefresh has native support for connecting an Azure cluster in the cluster configuration screen.

Connecting an Azure cluster

Connecting an Azure cluster

Once the cluster is connected you can use any of the available deployment options for Kubernetes clusters. You also get access to all other Kubernetes dashboards such as the cluster dashboard or the environment dashboard .

Storing test reports in Azure storage

Codefres has native support for test reports. You can store the reports on Azure storage.

Azure cloud storage

Azure cloud storage

See the full documentation for test reports.

Using Azure storage for storing Helm charts

You can connect Azure Storage as a Helm repository in the integrations screen.

Using Azure for Helm charts

Using Azure for Helm charts

Once you connect your Helm repository you can use it any Codefresh pipeline with the Helm step.

Azure Single Sign-on

You can use Azure Active Directory as an SSO mechanism in Codefresh.

Azure SSO integration

Azure SSO integration

Once configuration is complete all Codefresh users can login using their Azure credentials instead of personal accounts.

Traditional Azure deployments

For any other Azure deployment you can use the Azure CLI from a Docker image in a freestyle step

YAML

  create_my_vm:
    title: Creating a VM
    image: mcr.microsoft.com/azure-cli
    commands:
      - az vm create --resource-group TutorialResources --name TutorialVM1 --image UbuntuLTS --generate-ssh-keys     

For authentication see the Microsoft documentation page