Klevr Product Documentation logo

Setup Deployment Pipeline

How to create the Azure DevOps environment, variable libraries and deployment pipelines used to deploy Integration Hub.

Walkerscott does the steps on this page when we set up Integration Hub with you. They are here for reference. Your tasks are listed in Setup.
1

Create Environment Resources

In order to allow the deployment pipeline to have an approval step before the deployment commences, an integration-hub resource is required by the pipeline.

To create this in Azure DevOps, go to Pipelines > Environments and click the New Environment button.

Create a new environment called integration-hub. There is no need to select any resources for the environment.

In order to have the deployment pipeline ask for approval before deploying, update the environment via the Approvals and checks option, to set the user(s)/group(s) that need to approve deployments.

The first time you run a deployment pipeline, you will need to authorise the pipeline to use the environment, but this is a one-time action for that pipeline.

2

Create Environment Libraries

For each environment that is to be deployed, create a DevOps library group with the same name used in the YAML Deployment Pipeline file for that environment, with the following variables present.

Variable NameAvailable FromDescription
AppRegistrationClientIdv5.0.0Optional. Required if using the Klevr Integration Hub Portal feature.

The Client ID of an Entra ID App Registration in the Entra ID tenant defined by the TenantId value. See Portal App Registration for how the App Registration must be configured.
AppRegistrationClientSecretv5.0.0Optional. Required if using the Klevr Integration Hub Portal feature.

A secret string which will allow the Klevr Integration Hub Portal service to authenticate users via the specified App Registration defined by the AppRegistrationClientId value.
AzureResourceTagsv5.0.0Optional. If used, a JSON object of Azure Resource Tag name/value pairs, which will be used to set the Azure Resource Tag values on all resources deployed, instead of using Integration Hub defaults.

For example:

{ "BusinessUnit":"WalkerScott", "CostCentre":"Integrations" }
{domainCode}AzureResourceTagsv5.0.0Optional. If used, a JSON object of Azure Resource Tag name/value pairs, the same as the AzureResourceTags variable, but where the Azure Resource Tags will only be applied to the Azure Resources that relate to the specified Domain.

The tags specified at this level will overwrite those of the AzureResourceTags variable.
BlobContainerNamev5.0.0Optional. By default, the businessUnitCode value is used to create various Azure Blob Storage containers, which have a minimum length requirement of 3. If the only businessUnitCode value that makes sense is a one- or two-character value (not recommended, but sometimes the case), then the BlobContainerName value can be set to ensure that Azure Blob containers meet the minimum length requirement, while retaining the use of a shorter businessUnitCode elsewhere.
customerCountryv6.0.0One of AU or NZ, depending on the country in which the customer is based. Used to associate the deployment with the correct Walkerscott partner account for Azure consumption reporting.
DeployNgwEither true or false. Defines if the pre-interface resource deployment will include a NAT Gateway resource, to allow Logic Apps to use a fixed IP address for connections to external, non-API services (e.g. SFTP, etc.).
deployRegion1The region to deploy Integration Hub into (e.g. AustraliaEast, AustraliaSoutheast, or NewZealandNorth). See Supported Azure Regions.
devopsConnectionThe name of the Azure DevOps connection to Azure to use for deploying Integration Hub. See Azure Service Connection.
disablePortalv5.0.0Optional boolean flag. When true, do not deploy the Integration Hub Portal service along with the core Integration Hub resources.
environmentOne of devtest, test, staging, or production.
ForceAPIMDeployv6.0.0Optional boolean flag. By default, Klevr Integration Hub skips the deployment of each API Management operation and API schema whose definitions have not changed since the last successful deployment. When present and true, all API Management operations and API schemas will be deployed, even if nothing has changed. This makes the deployment take longer.
ForceLGADeployv3.0.2Optional boolean flag. By default, Klevr Integration Hub skips the deployment of each Logic App whose definition has not changed since its last successful deployment. When present and true, all Logic Apps will be deployed, even if nothing has changed. This makes the deployment take longer.
FUNCTIONS_EXTENSION_VERSIONMust be ~4. (Changed from ~3 in Integration Hub v3.0.0.)
GlobalIpWhitelistOptional. When present, a comma-separated list of IPv4 addresses; the API Management resource will be deployed with a policy to ensure that external API calls to Integration Hub must come from IP addresses in this list.
groupTagAll Azure resources deployed will be set with a "Group" tag of this value.
logAnalyticsDailyQuotaGbv5.0.0Optional. By default, non-production Integration Hub environments deploy a Log Analytics Workspace resource with a daily quota limit of 1 GB, and production environments deploy a Log Analytics Workspace resource with no daily quota limit. When present, override the defaults to the set number of GB.
lspMaxBurstThe maximum number of Standard Logic App instances that the Integration Hub service is permitted to scale up to under load. Recommended for production environments is at least 10; for non-production environments, at least 2.

Not applicable when deploying using Consumption Mode.
netFrameworkVersionv3.0.0Must be v6.0.
ONLYDEPLOYDOMAINSv4.0.0Optional variable. Supports a comma-separated list of Domain code values. When present, only those Domain codes listed will be deployed.
businessUnitCodeThe Business Unit code used for the Integration Hub service.

Should be exactly three characters, and must not be more than three characters. If one or two characters is used, then the BlobContainerName value must also be set.
businessUnitEmailv5.0.0A single email address that will be used as the top-level contact for the Business Unit.
businessUnitNamev5.0.0A short description for the Business Unit (e.g. company name, if only one Business Unit will be used, otherwise, an appropriate name for the Business Unit).
portalSqlPasswordv5.0.0Optional. Required if using the Klevr Integration Hub Portal feature.

A secret string which will be used for the SQL DB resource deployed for the Integration Hub Portal service. Use a randomly generated string which is at least 32 characters long, using a mix of numbers, upper-case, and lower-case characters.

Symbols are discouraged, as certain symbols will cause issues in setting the password on the SQL DB resource.
regionCodeMust be 1.
resourceDeploymentBicepFileNameMust be deploy.bicep.
resourceGroupName1The name of the resource group that Integration Hub will be deployed into.
serviceTagAll Azure resources deployed will be set with a "Service" tag of this value.
shortEnvironmentOne of dev, tst, stg, or prd.
stringEncryptionDefaultPassPhrasev5.0.0Optional. Required if using the Klevr Integration Hub Portal feature.

A secret string which will be used for the Klevr Integration Hub Portal to encrypt data in the portal, and to generate a certificate for the portal's authentication service.

Use a randomly generated string which is at least 32 characters long, using a mix of numbers, upper-case, and lower-case characters.

Symbols are discouraged, as certain symbols will cause issues in setting the secret string when deploying the Klevr Integration Hub Portal service.
TenantDefaultDomainv5.0.0Optional. Required if using the Klevr Integration Hub Portal feature.

The default domain of the Entra ID tenant specified by the TenantId value.
TenantIdThe ID of the Entra ID tenant that the Integration Hub service is being deployed into.
SubscriptionIdThe ID of the Azure Subscription that the Integration Hub service is being deployed into.

App Registration for Klevr Integration Hub Portal

When using the Klevr Integration Hub Portal feature, the AppRegistrationClientId, AppRegistrationClientSecret, and portalSqlPassword, stringEncryptionDefaultPassPhrase, and TenantDefaultDomain values must be set, along with the TenantId value (which must always be set even if not using the Klevr Integration Hub Portal feature).

Create and configure the App Registration as described in Portal App Registration. The sign-in redirect URI is set after the first deployment; see After We Deploy.

3

Create Deployment Pipelines

For each environment that is to be deployed, create a DevOps deployment pipeline, based on the corresponding YAML deployment pipeline previously.

4

Create Integrations

Now that the Integration Hub repository has been created, populated with the required deployment files, and the deployment pipelines created, it's time to create some integrations.

Once at least one integration has been defined and committed, the relevant deployment pipeline will be triggered to deploy the required Azure Integration Services to operate the integrations!

After the first deployment, complete the post-deployment actions.

Last updated on