Skip to content

Deploy command

The Sidra platform is deployed using different PowerShell scripts and Azure Resource Manage (ARM) templates. The ARM templates contain the definition of all the Azure resources used by Sidra and the orchestration. With the Azure resources, there are Webjobs and an API. All of these PowerShell scripts and ARM templates are provided as Nuget packages. These Nuget packages are then installed in the Sidra solution.

Finally, to perform the deployment of all the above-mentioned resources in the previously created Git repository, a multi-stage CI/CD pipeline is created and configured in Azure DevOps. The command sidra deploy source will take care of all these actions; see details below.

Usage Options

The usage options are source, configure and update options.

    .\sidra.exe deploy source [parameters]
    .\sidra.exe deploy configure [parameters]
    .\sidra.exe deploy update [parameters]
    .\sidra.exe deploy [source|configure|update] --help

1. Source Option

This command is copying the code - PowerShell scripts and ARM templates - that will deploy the Sidra solution in Azure.

Taking the created configuration, recorded with the create profile, and the initial resources, created by install aadapplications, the sidra deploy source command will:

  • Create the Sidra solution and push all the code to the Azure DevOps provided repository.
  • Create the variable group for the environment that is being deployed in the Azure DevOps library. The environment variable groups include the definition of all the parameters and default values for some of them.
  • Create the Azure DevOps multi-stage pipeline.


Before running the command, check the PAT - the DevOps Personal Access Token. Make sure it is correct, still valid, and filled in the deployment profile.
See the profile command!

Before executing sidra deploy source, please ensure that there is no folder PlainConcepts.Sidra within the Sidra.exe CLI folder.

The path where the project is published - or where the repo has been cloned if done from /bin folder - can generate a path that is too long. This would prevent loading some projects of the generated solution (PlainConcepts.Sidra): the command could fail. To avoid this, try to choose a root folder whose path is as short as possible.

Also, if the machine from where the command runs is "fresh", make sure that Git is properly configured in that same machine:

    git config --global "" `
    git config --global "John Doe"


Optional parameter: it determines whether prerelease version of the packages should be used or not, by default is false. It may be present (set to true) or absent (defaulting to false) in the command. It may be present (set to true) or absent (defaulting to false) in the command.

Usage example

    .\sidra.exe deploy source `

Known issues

As per a current limitation, when trying to make a first deployment of Sidra, the steps to create the infrastructure for the web apps (Identity Server, Balea Server, FrontEnd) may throw an error message. This is just a temporary issue; with the next installation attempt, the resources will be found.

2. Configure option

This command option is filling in the values for the parameters needed before the installation's last step - execution of the Sidra deployment pipeline from Azure DevOps.

The sidra deploy source command created several variable groups, with the definition of the parameters that are used to deploy the platform. The sidra deploy configure command will fill-in the parameters to finally deploy the solution.

Many of the parameters below contain default values that can be overwritten later, so it is not required to populate all parameters.


You can see all the configurable parameters that can be passed to this command by typing sidra deploy settings --help.

The minimum set of mandatory parameters are the indicated by the following command template. Fill in the necessary information and execute it:

Determines the owner name of Sidra's deployment, that is, the name of the user executing the installation.
Determines the E-mail address of the user executing the installation.
Determines the email in case some alert in infrastructure needs to be communicated. It is recommended to use a valid email.
Determines the name of the company where Sidra is being deployed.
Determines the email of the administrator of Sidra. It is recommended to use a valid email.
Determines the Azure Subcription ID where resources will be created.
Determines the name of the Core Azure KeyVault resource, from the 'Core' resource group, following the standard Sidra naming convention:

We could have:

  • pcsi: arbitrary string, maximum 4 characters, chosen at the Sidra installation (resourceNamePrefix); here, we chose the acronym for PlainConcept Sidra Installation.
  • core: arbitrary string, maximum 4 characters, chosen at the Sidra installation (resourceNameMiddle); here, we chose it indicating this is for Sidra Core.
  • dev is the environment name, shortening from development.
  • kva is a hardcoded particle, a fixed string, added automatically at Sidra's deployment, signifying Key Vault.

Example: pcsi-core-dev-kva

Determines the name of the team in charge of development. Example: Plain Concepts.
Determines the Azure resource group name to use during Sidra's deployment. Example: Sidra.Core.Dev.
Determines the default value of the DSU resource group name to use during Sidra's deployment. Example: Sidra.DSU.Dev.
Determines the resource name prefix for naming the Sidra installation, maximum 4 characters. This will prefix all the resource names.

Example: pcsi (here, acronym for PlainConcept Sidra Installation).

Determines the string used after the resource name prefix for the resources in the resourece group; maximum 4 characters. Example: core.
Parameterizes the sizes of the underlying Azure resources, having the format similar to T-shirt sizes: S for Small, M for Medium, L for Large.
Determines the host of Llagar Azure Container Registry (ACR), for hosting images. Example:
Determines the useraname to use when accessing the Llagar Azure Container Registry (ACR) that is hosting images. Example: pcsillagardevacr.

SMTP configuration

The SMTP is used in the Identity Server to send emails to reset passwords or create new passwords, user registration, etc. There are two possible options to configure SMTP.

1. Use of SendGrid

By default, Sidra's deployment is configured to allow the use of SendGrid. If using SendGrid, the following paramaters must be considered in order to configure it properly.

This is a mandatory parameter to configure, which determines the SendGrid resource name that appears in Azure SaaS.

The configuration of the following parameters will be automatically defined:

Determines SMTP account to use by the Identity Server.

Determines SMTP server to use by the Identity Server. If not specified, it takes the Sendgrid Azure SaaS server by default.

Determines email sender to use by the Identity Server. If not specified, it takes the Sendgrid Azure SaaS server by default.

2. Custom SMTP server

In the case that the user has its own SMTP server, then, it will be necessary to set up the following parameter as false, otherwise, a new SendGrid account will be created.

This parameter determines whether a SendGrid account needs to be created or not.

When the parameter --createSendGridAccount is set up as false as before, the user will need to configure manually the parameters shown previously:


SendGrid account configuration

After the creation of the SendGrid account during the deployment, manual configuration is needed to set it up:

  1. From Azure Portal, navigate to Saas page and select your SendGrid account ($name).
  2. Click on Configure account now and fill the form to activate your account.
  3. After this is done, from SendGrid publisher's site, under settings, click on API keys to create a new apikey (fullaccess).
  4. With the value of the apikey, set a new setting in your API appservice with name Mailing:Smtp:Password with that value. Finally, go to Settings/Sender Authentication and set your sender identity.

More detailed information about Microsoft Azure and SendGrid configuration is shown in the official documentation of SendGrid.

Usage example

    .\sidra.exe deploy configure `
        --deploymentOwnerName="John Smith" `
        --deploymentOwnerEmail="" `
        --infrastructureAlertEmail="" ` 
        --companyName="Northwind Works" ` 
        --sidraAdminSubject="John Smith" `
        --coreKeyVaultName="pcsi-core-dev-kva" `
        --developmentTeam="Plain Concepts" `
        --resourceGroupName="Sidra.Core.Dev" `
        --defaultDSUResourceGroupName="Sidra.DSU.Dev" `
        --resourceNamePrefix="pcsi" `
        --resourceNameMiddle="core" `
        --installationSize="M" `
        --llagarACRHost="" `

3. Update option

This option complements the configure option, taking much the same parameters: it updates the existing variable groups for an already deployed Sidra installation.

The option is used for easily upgrading the Sidra solution to a newer or latest version available. With just a simple command, the Sidra.exe CLI tool is upgrading the Nuget packages, updating source code, DevOps settings and other possible tasks that are part of the newer versions.

Depending on the current version installed, different sets of tasks will be applied. The option is able to update over multiple versions up to the latest. For example:

  • Let's consider that version 2020.R3 was initially installed; and, after that, versions 2020.R4 and 2021.R1 were released:
  • When upgrading with the CLI tool, tasks would be applied to upgrade to 2020.R4 and then for upgrading to 2021.R1.
  • If the current version was 2020.R4, only tasks for upgrading to 2021.R1 would be applied.

Execute sidra deploy update to upgrade to the latest stable version. This will update the source code stored in the repository and set a new version for the Sidra platform. In order for this command to be effective, the DevOps pipeline needs to be executed. This will actually download the most recent packages for the new version.

There are no additional considerations to be taken for executing this command, other than the pre-requirements described above. The DevOps variable group values will be updated as well with this command. In order to verify the version that is being installed, there is a file named sidra-cli.txt that contains the current version.


Please consult the section referring to the parameters of sidra deploy settings. The sidra deploy update does not have required parameters, since those would have been fed during the initial installation of the Sidra solution.

You can see all the configurable parameters that can be passed to this command by typing sidra deploy update --help.

Usage example

    .\sidra.exe deploy update `

Next: The Provider command

Last update: 2022-05-06
Back to top