automation-suite
2023.10
false
UiPath logo, featuring letters U and I in white
Automation Suite on EKS/AKS Installation Guide
Last updated Nov 21, 2024

The backup setup does not work due to a failure to connect to Azure Government

Description

Following an Automation Suite on AKS installation or upgrade, the backup setup does not work because of a failure to connect to Azure Government.

Solution

You can fix the issue by taking the following steps:

  1. Create a file named velerosecrets.txt, with the following contents:
    AZURE_CLIENT_SECRET=<secretforserviceprincipal>
    AZURE_CLIENT_ID=<clientidforserviceprincipal>
    AZURE_TENANT_ID=<tenantidforserviceprincipal> 
    AZURE_SUBSCRIPTION_ID=<subscriptionidforserviceprincipal>
    AZURE_CLOUD_NAME=AzureUSGovernmentCloud
    AZURE_RESOURCE_GROUP=<infraresourcegroupoftheakscluster>AZURE_CLIENT_SECRET=<secretforserviceprincipal>
    AZURE_CLIENT_ID=<clientidforserviceprincipal>
    AZURE_TENANT_ID=<tenantidforserviceprincipal> 
    AZURE_SUBSCRIPTION_ID=<subscriptionidforserviceprincipal>
    AZURE_CLOUD_NAME=AzureUSGovernmentCloud
    AZURE_RESOURCE_GROUP=<infraresourcegroupoftheakscluster>
  2. Encode the data in the velerosecrets.txt file as Base64:
    export b64velerodata=$(cat velerosecrets.txt | base64)export b64velerodata=$(cat velerosecrets.txt | base64)
  3. Update the velero-azure secret in the velero namespace, as shown in the following example:
    apiVersion: v1
    kind: Secret
    metadata:
      name: velero-azure
      namespace: velero
    data:
      cloud: <insert the $b64velerodata value here>apiVersion: v1
    kind: Secret
    metadata:
      name: velero-azure
      namespace: velero
    data:
      cloud: <insert the $b64velerodata value here>
    
  4. Restart the velero deployment:
    kubectl rollout restart deploy -n velerokubectl rollout restart deploy -n velero
  • Description
  • Solution

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.