Using the Azure Asset Manager
The Azure Asset Manager can be used in multiple operational scenarios. For example, it can launch a Broker and its Engines in Azure. It’s also possible to launch Engines in Azure from a Broker that is not launched in Azure. To use the Azure Asset Manager, perform the following tasks.
Prerequisites
- Install the Asset Manager as outlined in Installing TIBCO Silver Fabric® Asset Manager for Cloud.
- Create a Microsoft Azure account, and have your subscription information available.
Create the Broker Image
Next, install the Broker in the VM.
Procedure
- Install the Broker and configure it normally, starting with the JDK. Install relevant distributions, Enablers, and Skyway templates as needed. See the Installing Brokers section of the Silver Fabric Installation Guide for more information.
- Install an rc script to start and stop the Broker, as shown in Example Unix Broker Startup Script.
- Install any other items you may want in the Broker VM, such as a reporting database, Maven repository, or LDAP server.
- Optionally, you can configure and run the NFS server on the Broker and export NFS directories. This makes it convenient to export the grid library location and a data directory used by components when they need a shared file system. Refer to the Silver Fabric Cloud Administration Guide for more information on configuring an NFS mount as an alternate shared Grid Library location.
- Clean up the /tmp directory and various system logs.
- Create the VM with the Broker shut down and snapshot the VM without system reboot.
Create an Engine Image
If you are using a customized Image, create the Engine image, or else use a standard image available in Azure marketplace can be used.
For standard images, the following table lists commonly-used Linux images:
PublisherName | Offer | Sku | Version |
---|---|---|---|
RedHat |
RHEL |
7.2 |
latest |
OpenLogic |
CentOS |
7.1 |
latest |
Canonical |
UbuntuServer |
16.04-LTS |
latest |
The following procedure is used to create a customized image:
Procedure
Register your Application with Service Principal
You must create an Active Directory application and register a service principal in order to get the Client ID, Client Key and Tenant ID properties to configure the Asset Manager.
Procedure
- Register an application with the Service Principal in the Azure portal. Perform the steps outlined in https://docs.microsoft.com/en-in/azure/azure-resource-manager/resource-group-create-service-principal-portal and obtain the values of the Client ID, Client Key, and Tenant ID properties.
Create a Virtual Network and Subnet for the Engine VM
A virtual network and subnet are a prerequisite with the Azure Asset Manager. You can use an existing virtual network and subnet, or create a new one where the VMs would be launched. Use the Azure portal to create a virtual network and subnet for the Engine VM.
Procedure
Configure the Azure Asset Manager
In the Silver Fabric Administration Tool, configure the Azure Asset Manager with the details from above steps.
- Admin User : The name for OS user which will be created as part of the VM deployment. Admin User must satisfy these criterias : It must be 1-64 characters long; It cannot contain uppercase characters A-Z, special characters \\/\"\"[]:|<>+=;,?*@#()! or start with '$' or '-'; It should not be from the reserved words.
- Admin Password: The Admin Password must be 12-72 characters, having at least three of the following: one lowercase character, one uppercase character, one number, and one special character.
- For security purposes, the values for the
ClientId,
ClientKey, and
TenantId properties can be provided in an
AzureConfig.properties file instead of providing them in the Administration Tool. The values in this file will be encrypted after the first read. The format for the
AzureConfig.properties file is as follows:
ClientId=<clientid> ClientKey=<clientkey> TenantId=<tenantid>
After creating a AzureConfig.properties file, copy it to the SF_HOME/webapps/livecluster/WEBINF/assets/azure directory. - If Require Policy Rule is selected, AssetManagerId is a must Component rule.
- If the AssetManagerId component rule is selected, it will always be validated against the value given in the Asset Manager configuration irrespective of the Require Policy Rule value.
- If the resource preference rule is set with an equal operator for the properties azureLocation, azureVmType, azureVnetName, or azureSubnetName, the respective property values from the Asset Manager configuration will be overriden with the values defined in the Component Policy rules.
- Initially-launched Engines will have the Engine Group property value set to initial. In order to use the initially-launched Engines for allocation, the Component Policy rule Group should be set to initial with the equal operator.
- If the Broker is SSL-enabled and Engine-Broker communication has to be SSL-enabled with the standard image, SSL certificates that need to be copied to the Engine can be specified in the
AzureConfig.properties file. If these values are not provided , the Asset Manager will copy the certificates from default location (SF_HOME/webapps/livecluster/engineUpdate/shared). Specify the certificates as follows in
AzureConfig.properties:
SslKeyFile=ssl key file absolute path including file name (such as /opt/SF/fabric/webapps/livecluster/WEB-INF/certs/ssl.pem) SslKeystoreFile=ssl keystore file absolute path including file name (such as /opt/SF/fabric/webapps/livecluster/WEB-INF/certs/ssl.keystore)
After creating a AzureConfig.properties file, copy it to the SF_HOME/webapps/livecluster/WEB-INF/assets/azure directory. For custom images, SSL certificates need to be copied to the Engine before creating an Engine image.
Procedure
- In the Silver Fabric Administration Tool, go to .
- Select the Actions control for the Azure Asset Manager.
- Select Edit Asset Manager.
- Click Configure the Asset Manager's properties.
- Edit the required properties and any optional properties as detailed in Azure Asset Manager Configuration Properties.
- Click Finish.
Important General Notes
The following notes apply to the Azure Asset Manager:
- If any changes needs to be done to an enabled Asset Manager, disable the Asset Manager first, make changes and enable it again. If several configuration changes needs to be done to an Asset Manager, it is advisable to create another asset manager instance with the different configuration.
- You do not need to manually launch a Silver Fabric Engine Azure VM. The Silver Fabric Engine image is automatically used by the Broker Azure Asset Manager to create Azure VMs, as needed.
You can connect to any running Silver Fabric Engine Azure VM by using the command ssh user@azure-vm-ip.
Do not manually start or stop Azure vms for Silver Fabric Engines.