SQL Server is presumed to be installed and SQL Authentication enabled. The database users must use SQL Authentication. Windows Authentication is not supported. (Almost everything works with Windows Authentication. It is only when Git Deploy Hub is running that Windows Authentication cannot be used because it uses a system account)

Clone the LANSA cookbook repository into the root of C: drive and switch to the patch/paas branch:
$ cd \ |
Pull the latest changes to the LANSA cookbook repository:
$ cd \lansa |
Licensing: A LANSA Scalable License image is automatically licensed. A LANSA Scalable License is present in the LANSA marketplace images published in AWS and Azure. If this is the case then go to step 8. If you are not using one of these images then you will need to install a license manually. Copy x_cpu.exe from an installed LANSA system into this new VM. Run the utility and send the output file to LANSA licensing specifying the licenses you require. See LANSA Windows License for more details.
To apply the licenses returned to you, use a locally installed LANSA System. It will display a warning that the current system is not compatible with these licenses. Apply the licenses and the messages will inform you of the filename that the licenses have been applied to. Copy this file (*.lic) to the new VM in the C:\Program Files (x86)\Common Files\LANSA directory, or whatever you have called the location of the LANSA shared licenses. And ensure that this registry entry is set up to point to that location:

Main installation:
Install and Configure IIS, Install WebServer, Install Application (databases are created as required)
These instructions presume that SQL Server Authentication is being used to connect to the database and the ssh key has already been used to access your git server so that there will not be an authentication prompt when cd %temp% is used by the script:
$ cd \lansa\scripts |
Note that if the DatabaseServer parameter is not specified, it will default to the default SQL Server instance on the current machine.
Note that the passwords will be prompted for by the script to keep them secure.
Refer to the script for a description of the optional parameters and their defaults.
The database user must exist and be able to create a database.
Give the web user access to the databases.
Note that a 404 error when accessing a Server Module is most likely to be an issue with database permissions for the web user. Run the Web Utility test to identify the issue.
Test the application works with a URL of this form: http://localhost/app1/dem/my_main.html