Skip to main content

Platform Core Deployment using PowerShell

Follow the below sections to manually deploy platform core. Platform core contains two main components:

  • Identity Server
  • Workflow Dashboard

The pre-requisites to deploy platform core are as follows. Make sure that the following are already installed in the machine.

  • PowerShell 7.0 and above
  • AZ PowerShell Module

Identity Server​

To deploy identity server, follow the below sections.

Getting Started​

Follow these steps to get started:

  1. Download the Platform-Core release files from release folder.
  2. Run PowerShell as administrator and navigate to IdentityServer folder inside Platform-Core folder using the following command: cd <Identity_server_folder_path>

Platform Core File Structure Identity Server File Structure

Edit Configuration​

Follow these steps to edit configuration:

  1. Open InstallConfig.json from IdentityServer folder in a text editor and configure the following properties as required to create infrastructure and deploy Identity Server.
PropertyDescriptionComments
SubscriptionIdProvide the subscription id of Azure where resources are available.-
ResourceGroupNameProvide the name of the resource group.-
ResourceNamePrefixProvide the name of the prefix.-
EnvironmentProvide the environment name.-
DeploymentModeSpecify the deployment mode.-
Backup Storage Account
BackupStorageContainerNameProvide the storage account container name.-
BackupStorageConnectionStringProvide the connection string to connect to backup storage account.-
SQL Server
SqlServerNameProvide the SQL server name.-
SqlServerAdminLoginProvide the admin username.-
SqlServerAdminPasswordProvide the admin password.-
SqlServerAppUserLoginProvide the app user username.-
SqlServerAppUserPasswordProvide the app user password.-
ExecuteDacpacSpecify whether to execute DACPAC. Either yes or no.-
UpdateSQLServerSpecify whether to update SQL server. Either yes or no.-
App Service
OperatingSystemProvide the name of operating system.-
AppServicePlanNameProvide the name of the app service plan.-
CustomDomainConfiguredSpecify whether the custom domain is configured or not.-
App Insights Configuration
EnableApplicationInsightsSpecify whether the application insights are enabled.-
AppInsightsConnectionStringProvide the connection string to connect to application insights.-
Provider Configuration
SMTPServerProvide the SMTP server address.-
SMTPMailIdProvide the SMTP mail id.-
SMTPMailPasswordProvide the SMTP mail password.-
SMTPMailFromProvide the SMTP From-mail.-
SMTPPortProvide the port number.-
TwilioAccountSidProvide the twilio account SID.-
TwilioAuthTokenProvide the twilio authentication token.-
TwilioFromNumberProvide the twilio From-number.-
IntegrateAzureADLoginSpecify whether to integrate AAD login or not.-
AzureADClientIdProvide the AAD client id.-
AzureADAuthorityProvide the AAD authority.-
AzureADClientSecretProvide the AAD client secret.-
IntegrateGoogleLoginSpecify whether to integrate google login or not.-
GoogleClientIdProvide the google client id.-
GoogleAuthorityProvide the google authority.-
GoogleClientSecretProvide the google client secret.-
Application Configuration
PasswordComplexitySpecify the complexity level of a password.-
CaptchaComplexitySpecify the complexity level of a captcha.-
CaptchaTypeProvide the type of captcha.-
OTPChannelSpecify the OTP channel.-
EnableSwaggerSpecify whether to enable swagger.-
AccessOriginsSpecify whether to access origin.-
FrameAncestorsSpecify whether to frame ancestors.-
LoggingLevelProvide the logging level.-
CountryCodeSpecify the ISO country code.-
EnableUserRegistrationSpecify whether to enable user registration or not.-
ExternalUsersDefaultRoleSpecify the default role of external users.-
EnableHomeRealmDiscoverySpecify whether to discover the home realm.-
Deployment Only
IdentityAPINameProvide the name of the identity API name.-
IdentityWebAppNameProvide the name of the identity web app.-
IdentityAdminWebAppNameProvide the name of the admin web app.-
IdentityDBNameProvide the name of identity database.-
IdentityDBConnectionStringProvide the database connection string.-

Edit Configuration

Deploy Identity Server​

Follow these steps to deploy Identity Server:

  1. In PowerShell, execute the following command to deploy Identity Server. .\Install.ps1
  2. Provide the Azure credentials to continue.

With the provided configuration, the corresponding infrastructure will be created, and Identity Server will be deployed.

Note: Important: If any error occurs, an appropriate error message will be displayed. Users can resolve the error and re-execute the script to deploy.

Deploy Identity Server - Step 1 Deploy Identity Server - Step 2 Deploy Identity Server - Step 3

Workflow Dashboard​

To deploy workflow dashboard, follow the below sections.

Getting Started​

Follow these steps to get started:

  1. Download the Platform-Core release files from release folder.
  2. Run PowerShell as administrator and navigate to WorkflowDashboard folder inside Platform-Core folder using the following command: cd <Workflow_Dashboard_folder_path>

Platform Core File Structure Workflow Dashboard Folder

Edit Configuration​

Follow these steps to edit configuration:

  1. Open InstallConfig.json from WorkflowDashboard folder in a text editor and configure the following properties as required to create infrastructure and deploy Workflow Dashboard.
PropertyDescriptionComments
SubscriptionIdProvide the subscription id of Azure where resources are available.-
ResourceGroupNameProvide the name of the resource group.-
ResourceNamePrefixProvide the name of the prefix.-
EnvironmentProvide the environment name.-
isLocalDeploymentSpecify whether the deployment is local. Either Yes or No.-
skipIdentityIntegrationSpecify whether to skip the identity server integration. Either Yes or No.-
updateInfraIfExistsSpecify whether to update infra if already available.-
deploymentModeSpecify the deployment mode.-
App Service Plan
operatingSystemProvide the name of operating system.-
appServicePlanExistSpecify whether the app service plan is available.-
appServicePlanNameProvide the name of the app service plan.-
Workflow SQL Server
sqlServerExistSpecify whether the SQL server is available.
sqlServerNameProvide the SQL server name.-
sqlServerAdminLoginProvide the admin username.-
sqlServerAdminPasswordProvide the admin password.-
sqlServerAppUserLoginProvide the app user username.-
sqlServerAppUserPasswordProvide the app user password.-
workFlowDatabaseNameProvide the database name of the workflow.-
App Settings
authorityUrlProvide the authority URL.-
identityAPIUrlProvide the identity API URL.-
Deployment Only
App Service
workflowDashboardAppNameProvide the application name of the workflow dashboard.-
Identity Server
webAppClientIdProvide the client id of the web app.-
webAppScopeProvide the scope.-
webAppSecretKeyProvide the secret key.-

Workflow Dashboard Configuration

Deploy Workflow Dashboard​

Follow these steps to create infrastructure and deploy Workflow Dashboard:

  1. In PowerShell, execute the following command to deploy Workflow Dashboard. .\Install.ps1
  2. Provide the Azure credentials to continue.

With the provided configuration, the corresponding infrastructure will be created, and Workflow Dashboard will be deployed.

Note: Important: If any error occurs, an appropriate error message will be displayed. Users can resolve the error and re-execute the script to deploy.

Deploy Workflow Dashboard - Step 1 Deploy Workflow Dashboard - Step 2 Deploy Workflow Dashboard - Step 3