Versions Compared

Key

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

...

We will walk through each of the FlexDeploy features that will be created/configured to accomplish this goal and Execute the shell script

Checklist

Checklist

Description

Azure Tenant Id

Azure Tenant Id for the company

Azure Subscription Id

Azure Subscription where the Web App exists

Azure Client ID

Client ID to connect to desired Azure Subscription

Azure Client Key

Password for the Client ID

Azure CLI installation

Azure CLI needs to be installed on the Target

m/c

where the plugin operation shall run.

Please see https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=dnf for information on installing the azure-cli package.

Azure CLI in class path

Azure CLI should be added to the classpath in target

m/c

. Else the path can also be set under FlexDeploy environment level property

Azure PowerShell

Azure PowerShell needs to be installed on Windows OS and path should be added to the classpath in target

m/c

. Please refer to https://learn.microsoft.com/en-us/powershell/azure/install-azps-windows?view=azps-10.0.0&tabs=powershell&pivots=windows-psgallery

Configure cloud account

First, an Azureaccount needs to be configured under Topology. FlexDeploy will connect to the right Azure Subscription with provided details and do the execution.

...

Build Workflow

Navigate to the Workflows tab and create a build workflow using the +”(Click to create new Workflow) (blue star) button as highlighted below.

...

Next, create one Build workflow as shown below. The workflow Type field defines the type of workflow.

Build Workflow

  1. Navigate to the Workflows Tab

  2. Select the “+” button from the left-hand pane to create a new workflow with type as Build.

...

The Workflow Group and Subgroup define the folder hierarchy. Once both workflows are created it should look like the below. No constraint on workflow or folder naming convention.

...

The steps of the workflow execution can be configured through the Workflow Definition section.

...

Below is a sample build workflow to copy and execute the script.

...

 Step-i: Clone Git Repository

...

Code Snippet field is mandatory, we can select the type of CLI from the drop-down. Available options are shell, PowerShell, and WindowsShell. The default CLI type is the shell.

...

Project

...

Configuration

Project Detail

Navigate to the Project tab and create a Project with a logical name(Azure-Command in this case)

...

To configure Project specific settings one can navigate to Configuration Properties as shown below.

  1. Image Modified

    To configure Project specific settings one can navigate to the Project Configuration tab as shown above.

  2. Next, select the PROPERTIES option from the left-hand pane.

  3. Select the target Azure Cloud Account.

...

Navigate to the Topology from the Menu. The Page with the Target Groups, Environments and Endpoints sections will be displayed. Choose a Target Group on the left. You will see a list of Environments on the right with colored circles representing each Target

...

Properties

Mandatory field

Description

AZUREACCOUNT

Optional

Azure cloud account name

Azure CLI

Optional

Directory Where Azure CLI is installed

GIT Path

Optional

Path to the Git executable. Required only if git is not on PATH.

Build Execution

For detailed steps on how to initiate Build please refer to Build execution through FlexDeploy for Azure Plugin

...