Autoscale a LANSA Windows VM Scale Set using an existing Database

Última atualização: 15/12/2016

Estimativa dos custos


Custo mensal estimado

Saiba como foram calculados e personalize de acordo com as suas necessidades

Calculadora de preços

This template deploys a Windows Virtual Machine Scale Set with a desired count of Virtual Machines in the scale set and a LANSA MSI to install into each Virtual Machine. Once the Virtual Machine Scale Set is deployed a custom script extension is used to install the LANSA MSI. The database server must already exist. The database within the database server must already exist too, unless its SQL Server, in which case it will be created. If the database does exist it must either not have any LANSA tables or already have had the same MSI installed. This is not checked by the template. Once this template has been run, it must be the only way that an upgrade to the MSI is applied. Two different MSI installs should not attempt to upgrade a LANSA install. This is very important in order that the SQL tables are upgraded correctly. Current databases supported are Azure SQL Database, Microsoft SQL Server and MySql

Este modelo de Gestor de Recursos do Azure (Azure Resource Manager, ARM) foi criado por um membro da comunidade e não pela Microsoft. Cada modelo de ARM está licenciado para si ao abrigo de um contrato de licença pelo respetivo proprietário e não pela Microsoft. A Microsoft não é responsável por modelos de ARM fornecidos e licenciados por membros da comunidade e não os analisa quanto a a segurança, compatibilidade ou desempenho. Os modelos de ARM da comunidade não são suportados ao abrigo de nenhum programa de suporte ou serviço da Microsoft e são disponibilizados TAL COMO ESTÃO sem qualquer tipo de garantia.


Nome do Parâmetro Descrição
msiURL URL of the LANSA MSI which will be installed on each virtual machine.
virtualMachineSize Size of Virtual Machines in the Virtual Machine Scale Set.
stackName String used as a base for naming resources. Must be 3-61 characters in length and globally unique across Azure. A hash is prepended to this string for some resources, and resource-specific information is appended. Some identifiers use precisely 9 characters from this name and so it can be useful to use exactly 9. The template pads it out or truncates it as necessary to make it 9 characters long where required.
minimumInstanceCount Minimum number of Virtual Machine instances (1 or more).
maximumInstanceCount Maximum number of Virtual Machine instances (100 or less).
databaseType Refer to LANSA documentation for an explanation of each Database Type and the supported versions of the database servers
databaseServerName The name of the existing Database Server to connect to. If the name has /MSSQLSERVER appended, omit it.
databaseName The name of the existing database to connect to.
databaseLogin The admin user of the Database
databaseLoginPassword The password of the admin user of the Database
adminUsername Admin username on all Virtual Machines.
adminPassword Admin password on all Virtual Machines.
webUsername Web Server username on all Virtual Machines.
webPassword Web Server password on all Virtual Machines.
webServerMaxConnect The maximum number of LANSA jobs to run on each Web Server. Setting triggerWebConfig will cause this value to be updated.
installMSI Install the MSI: Set this to 1 to execute an MSI install. Usually set to 0 when updating the stack
updateMSI Update Stack: Set this to 1 to execute an MSI Upgrade. Obtains the specified MSI and installs it. Ensure the LansaMSI parameter is set correctly.
uninstallMSI Uninstall the MSI: Set this to 1 to uninstall the MSI. The MSI used to uninstall is the last one that was installed. It is called c:\lansa\MyApp.msi
triggerWebConfig Update Stack: Set this to 1 to update the web configuration.
trace Switch tracing on. Allowed values Y or N
fixLicense Re-run licensing. It is unlikely that this parameter needs to be used.

Utilizar o modelo


New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri
Instalar e configurar o PowerShell para Azure

Linha de comandos

azure config mode arm
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri
Instalar e Configurar a Interface de Linha de Comandos para Várias Plataformas do Azure