Skip to main content

Application Deployment using PowerShell

Follow the below sections to manually deploy an application created using OwlGen. Refer to platform core to setup the environment.

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

  • PowerShell 7.0 and above
  • AZ PowerShell Module

Getting Started​

Follow these steps to get started:

  1. Download the App Deployment release files from release folder.
  2. Run PowerShell as administrator and navigate to App Deployment folder using the following command: cd <App_Deployment_folder_path>

App Deployment Folder PowerShell Navigation

Clone and Publish Application​

Follow these steps to clone an application:

  1. Open publishConfig.json from App Deployment folder in a text editor and configure the following properties as required.
PropertyDescriptionComments
appNameProvide the name of the application in OwlGen.-
appVersionProvide the version number of the application.-
moduleNameProvide the name of the module in the application.-
moduleVersionProvide the version number of the module.-
authorityUrlProvide the identity server authority URL of OwlGen.-
clientIdProvide the client ID of OwlGen.-
scopeProvide the scope of OwlGen.-
adminAPIUrlProvide the admin app URL of OwlGen.-
  1. In PowerShell, execute the following command to clone and publish the application. .\publish.ps1
  2. After publishing press any key in the keyboard to proceed further.

Publish Config Publish Step 1 Publish Step 3

Edit Configuration​

Follow these steps to edit configuration:

  1. Open installConfig.json from App Deployment folder in a text editor and configure the following properties as required to create infrastructure and deploy the published files.
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.-
deploymentModeProvide the mode of deployment.-
webAppNameProvide the name of the web app.-
Application Insights
connectionStringProvide the connection string to connect to application insights.-
isEnabledSpecify whether the application insights are enabled.-
logFailuresOnlySpecify whether to log failures only. Either Yes or No.-
logInclusionsSpecify whether to log inclusions.-
logExclusionsSpecify whether to log exclusions.-
App Service Plan
operatingSystemProvide the operating system name.-
appServicePlanExistSpecify whether app service exists. Either Yes or No.-
appServicePlanNameProvide the name of the app service plan.-
Application SQL Server
sqlServerExistSpecify whether the SQL server exists for application. Either Yes or No.-
sqlServerNameProvide the SQL server name.-
sqlServerAdminLoginProvide the admin username.-
sqlServerAdminPasswordProvide the admin password.-
applicationDatabaseNameProvide the name of the database.-
Workflow SQL Server
sqlServerExistSpecify whether the SQL server exists for workflows. Either Yes or No.-
sqlServerNameProvide the SQL server name.-
sqlServerAdminLoginProvide the admin username.-
sqlServerAdminPasswordProvide the admin password.-
workFlowDatabaseNameProvide the name of the database.-
Enable SQL Server App User
sqlServerAppUserLoginProvide the username of SQL server app user.-
sqlServerAppUserPasswordProvide the password.-
App Settings
authorityUrlProvide the authority URL.This property is required only when skipIdentityIntegration is set to No.
identityAPIUrlProvide the identity API URL.This property is required only when skipIdentityIntegration is set to No.
Deployment Only
App Service
moduleAppNameProvide the name of the module.-
workFlowAppNameProvide the name of the workflow app.-
Server Config
scopeProvide the scope.-
clientIdProvide the client id.-

Install Config

Deploy Application​

Follow these steps to deploy an application:

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

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

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

Deploy Step 1 Deploy Step 2 Deploy Step 3

Upgrade Application​

Follow the below steps to upgrade an Application created using OwlGen:

  1. Clone and publish the application as given in Clone and Publish Application section.
  2. Edit the configuration as required. Refer to Edit Configuration section.
  3. Follow the steps given in Deploy Application section to deploy the upgraded application.