Links

Configure Azure DevOps

This section discusses how you can configure Azure DevOps to integrate with DuploCloud.

Creating a CI/CD Service Account User in DuploCloud

  1. 1.
    In the DuploCloud portal, navigate to Administrator -> Users. The Users page displays.
  2. 2.
    Click Add.
  3. 3.
    In the Username field, enter a non-email address username, such as cicd. The username cannot be a valid email address, as DuploCloud designates it as a service account.
  4. 4.
    From the Roles list box, select Admin for the fastest setup. If you select User, you must give Tenant access to that user.
  5. 5.
    Click Submit. Your service account is set up and can be viewed or modified from the Users page.

Create a Permanent Token for the Service Account User

Create a permanent token for the service account that you created, using a token name that describes the CI/CD platform, such as azure-devops.

Save the Token to Azure DevOps Pipelines Variable Group

In the Azure DevOps Portal, save the token that you created in DuploCloud to the Azure DevOps Pipelines Variable Group.
Azure DevOps Pipelines Library section with a Variable Group named duplocloud-secrets selected for editing. DUPLO_TOKEN is defined but the value is secret and hidden. DUPLO_HOST is the URL for the DuploCloud portal including the https but not any path suffix. ECR_BASE is defined with the FQDN for an ECR repo for account 12345 but excluding any repo-specific path.
Creating the duplocloud-secrets Azure Pipelines Variable Group in the Azure DevOps Portal
  1. 1.
    In an Azure DevOps project, navigate to Pipelines -> Library.
  2. 2.
    Create a new variable group named duplocloud-secrets.
  3. 3.
    Add a DUPLO_TOKEN variable; select Lock (next to the Value field), and paste in the permanent token as the Value.
  4. 4.
    Add a DUPLO_HOST variable. The Value is your DuploCloud portal URL, as in the example above.
  5. 5.
    Add a ECR_BASE variable based on the domain name of your ECR registry, as in the example above.