Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create Personal Access Token in Azure DevOps and Cloud Account in FlexDeploy, as that will be used for deployment. Please follow this steps.

  • Project needs to be created:

...

Edit the pipeline az-pipeline-cicd (Build Pipeline Definition name) and add the below yaml.

...

Note: When the ARM template is created by default it is named as TemplateForWorkspace.json and the parameters file as TemplateParametersForWorkspace.json. The same are being provided here without any modifications.

...

Project scoped workflow properties are added as: FEED_NAME, PROJECT_NAME, ARTIFACTS_PACKAGE_NAME, PACKAGE_VERSION, VARIABLES_LIST, BUILD_DEFINITION_NAME, PACKAGE_NAME.

Explanation

...

Step 1: It clones the code from the az-synapse-cicd repository.

Step 2: It uses FlexagonAzurePlugin’s publishArtifacts operation to upload the checked out code base as package to Azure DevOps feed (Synapsefeed).

...

Step 3: This step initiates the Build Pipeline that we created in Azure DevOps. Operation buildPipeline is used for this.

The expression for Variables List input is:

...

Project scoped workflow property RELEASE_DEFINITION_ID and Target scoped ENVIRONMENT_VARIABLES_LIST are added.

Variables

...

Explanation

...

Step 1: Using FlexagonAzurePlugin’s createRelease operation, it creates the Release in Azure DevOps and passes the values for the respective variables through these plugin inputs.

...

Code Block
'$..[?(@.name==\''+FD_ENVIRONMENT_NAME+'\') ].id'

...

Step 3: updateReleaseEnvStatus initiates the deployment step in Azure DevOps Release pipeline for the selected Environment that we select during the Deploy execution of the FlexDeploy Project.

...