---
title: "Walkthrough: Upgrading SFCRM on Kubernetes"
slug: "walkthrough--upgrading-sfcrm-on-kubernetes"
abstract: "How to upgrade the Sitecore Connect for Salesforce CRM connector on Azure Kubernetes service."
---
# Walkthrough: Upgrading SFCRM on Kubernetes

This walkthrough explains how you upgrade Sitecore Connect for Salesforce CRM (SFCRM) container in AKS from version 7.0 to 8.0.

SFCRM 8.0 is compatible with Sitecore Experience Platform (SXP) 10.3.

Before you upgrade SFCRM to version 8.0, you must have a Sitecore AKS 10.2 deployment with SFCRM 7.0 and an up to date backup of the 10.2 database.

The walkthrough describes how to:

- Build and push the mssql-upgrade image
- Perform upgrade

<details>
<summary><h2>Build and push the mssql-upgrade image</h2></summary>

To upgrade SFCRM, you must build an mssql-upgrade image. To do so:

1. Build the images for SFCRM as explained in the *Build the mssql-upgrade image* section in [Walkthrough: Upgrading SFCRM on Kubernetes](https://doc.sitecore.com/xp/en/developers/salesforce-connect/80/sitecore-connect-for-salesforce-crm/walkthrough--upgrading-sfcrm-on-kubernetes.html#UUID-ab294354-7e01-6663-ff3e-6105f0769ab6_UUID-794e92fd-80aa-260e-3dea-e2f8ae6d2f3e).
2. In a PowerShell window, navigate to the folder containing the Dockerfile and build and tag the image. For example:

    ```text
    docker build . -t sitecore-sfcrm-xp1-cm:<imageVersionTag> $registry/sitecore-sfcrm-xp1-cm:<newTag>
    ```

3. Check that Docker has created the image.
4. Push the created image to your Azure registry. For example:

    ```text
    docker push $registry/sitecore-dcrm-xp1-cm:<newTag>
    ```

</details>

<details>
<summary><h2>Perform upgrade</h2></summary>

To upgrade SXP to version 10.3 and SFCRM to version 8.0:

1. Download and extract Sitecore 10.3 Sitecore Container Deployment Package from the [Sitecore download page](https://dev.sitecore.net/Downloads/Sitecore_Experience_Platform.aspx). Extract it to your local workstation with the folder structure intact.
2. Navigate to the upgrade folder for the Windows version and topology you are using, for example, `k8s\ltsc2019\upgrade\xp1`. In the `kustomization.yaml` file, update the images section with `newName` and `newTag` attributes of the custom mssql-upgrade image you created and pushed previously.
3. In the `configuration` folder, update the secrets files. For more information on the secrets files, refer to the *Installation Guide for Production Environment with Kubernetes* guide available on the [Sitecore download page](https://dev.sitecore.net/Downloads/Sitecore_Experience_Platform.aspx).
4. Download the SFCRM container deployment 8.0 package from the [Sitecore download page](https://dev.sitecore.net/Downloads/Salesforce_Connect.aspx). Extract it to your local workstation with the folder structure intact. Copy the `\k8s\<windows version>\overrides` folder and paste it into the `\k8s\<windows version>\` folder in the SXP 10.3 deployment structure.
5. In the `secrets` folder in the SXP 10.3 structure, for example, `k8s\ltsc2019\overrides\xp1\secrets`, update the `sitecore-salesforce-crm-connection-string.txt` secrets file.
6. Log in to the Azure CLI and set a subscription.

    ```

    az login
    az account set --subscription "Your Subscription"
    ```

7. Get the credentials for the Kubernetes cluster that was created with the AKS cluster.

    ```text
    az aks get-credentials --resource-group <10.3 resource group>--name <10.3 cluster>
    ```

8. To deploy the Sitecore upgrade job, go to the folder where the updated files are, for example, `k8s\ltsc2019\upgrade\xp1`, and run this command:

    ```text
    kubectl apply -k .\
    ```

9. To check if the job has completed, run the following command:

    ```text
    kubectl get pod
    ```

10. When the upgrade process is completed, you can delete the Kubernetes upgrade job and upgrade secrets. In the console, go to the folder you used in [Step 2](https://doc.sitecore.com/xp/en/developers/salesforce-connect/80/sitecore-connect-for-salesforce-crm/walkthrough--upgrading-sfcrm-on-kubernetes.html#UUID-ab294354-7e01-6663-ff3e-6105f0769ab6_N1637838585442 "Step 2"). and run the following commands:

    ```

    kubectl delete -f .\
    kubectl delete -k .\
    ```

> [!note]
> Upgrading with a custom mssql-image includes cleaning up SFCRM items from the database because SFCRM 8.0 has moved to using resources files. This means you must rebuild and upgrade the following Sitecore role instances: `cm`, `xconnect`, and `xdbsearchworker`.
>
> For detailed instructions on how to build and deploy the Sitecore role instances, refer to the Sitecore *Upgrade Container Deployment Guide* on the [Sitecore download page](https://dev.sitecore.net/Downloads/Sitecore_Experience_Platform.aspx).

</details>