Billing
Download the below installers and extract tools folder https://cloudassertdownloads.blob.core.windows.net/usage/Billing2.1.7/WAP/2.1.7.17/CloudAssert.WAP.Billing.AgentService.Setup.msi https://cloudassertdownloads.blob.core.windows.net/usage/Billing2.1.7/WAP/2.1.7.17/CloudAssert.WAP.Billing.Extension.Admin.Setup.msi https://cloudassertdownloads.blob.core.windows.net/usage/Billing2.1.7/WAP/2.1.7.17/CloudAssert.WAP.Billing.Extension.Tenant.Setup.msi https://cloudassertdownloads.blob.core.windows.net/usage/Billing2.1.7/WAP/2.1.7.17/CloudAssert.WAP.Billing.Service.Setup.msi https://cloudassertdownloads.blob.core.windows.net/usage/Billing2.1.7/WAP/2.1.7.17/Tools.zip
Save the below files in the same folder where we have the installers (downloaded in step #1) https://cloudassertdownloads.blob.core.windows.net/usage/Initialize.ini https://cloudassertdownloads.blob.core.windows.net/usage/shttetup.bat
Create database for Billing
Fill the below details in initialize.ini
Database Server - Database server name
CREATE_DATABASE_USERNAME - Billing DB user name
CREATE_DATABASE_PASSWORD - Database Password
DBSQLAUTH_USERNAME - Billing DB user name
DBSQLAUTH_PASSWORD - Database Password
DBSQLAUTH_PASSWORD_CONFIRM - Database Password
RUNTIME_DATABASE_NAME - Billing database name
RUNTIME_DATABASE_USERNAME - Billing DB user name
RUNTIME_DATABASE_PASSWORD - Database Password
RUNTIME_DB_CONNECTION_STRING - Database connection string; example: Data Source=DESKTOP-G274HJH\MSSQLSERVER01;Initial Catalog=Billing.MFA; User Id=hybradmin; password=admin (user must be SQL authentication)
UANDB_API_URL - http://localhost:30045
UANDB_API_USERNAME - Specify API username ex: admin.
UANDB_API_PASSWORD - Specify API password ex: BillingApiPassword@123
UANDB_API_PASSWORD_CONFIRM - Confirm the password entered in above entry
NOTE: Note down the last 3 values, these are required while configuring Billing API details in Hybr.
From Powershell, run setup.bat to install API service. Command is:
.\setup.bat install-api
Note: Make sure that you don’t have any white spaces in your file pathUpdate the database using billing tool.
Navigate inside tool folder
Execute the below command with Billing datab.\sase details using command prompt. Command:
Billing.exe UpdateDatabase /ApiEndpoint:{String} /Username:{String} /Password:{String}
Note: API end point, user name and password needs to be same as the values given in initialize.ini
From Powershell, run setup.bat to install Agent service. Command is:
.\setup.bat install-agent
Note: Make sure that you don’t have any white spaces in your file pathSet the configuration ‘IsWapDeployment’ to false in API and AgentService configs. Paths:
API – C:\inetpub\MgmtSvc-CloudAssertBilling\Web.Config
Agent Service - C:\Program Files\CloudAssertBilling\CloudAssert.WAP.Billing.AgentService\CloudAssert.WAP.Billing.AgentService.exe.config
Verify
TrisulSubscriptionEventProcessor.Enabled
configuration in AgentService config and set it totrue
if it is not. Path: C:\Program Files\CloudAssertBilling\CloudAssert.WAP.Billing.AgentService\CloudAssert.WAP.Billing.AgentService.exe.configEnable VConnect Usage Collector if required. Follow below steps to make sure that all configurations are done.
Configure 'VConnectApi' settings in Usage and Billing database.
Set
VConnectUsageCollector.Enabled
setting totrue
in AgentService.exe.config file. Path: C:\Program Files\CloudAssertBilling\CloudAssert.WAP.Billing.AgentService\CloudAssert.WAP.Billing.AgentService.exe.config
Billing - Service Notification Handler settings
Install Billing API & Agent service Hybr build (New build configuration allows us to take Hybr build)
Set below app settings with appropriate values
Add Hybr endpoint in etc/host file
Start the Agent service
Execute the below file commands with relevant inputs. On completion of that
Settings Name
Group
Value
HybrApiUsername
HybrSettings
ex: hybrapiuser
HybrApiPassword
HybrSettings
ex: pass@word1
HybrServiceNotificationEventSource
HybrSettings
(trisulapi/azurestoragequeue)
ServiceNotificationQueueSasUri
HybrSettings
(Azure storage queue sas uri)
12. Insert queue URL in Billing Database - Ignore this step if Cloud Assert Event handler is used
Update shared access signature of Azure storage account queue in the below insert script and execute in Billing DB. Note: Azure storage account queue is one of the prerequisites.
insert into [Billing].[dbo].[AppSettings]([Key], [Value], [Group], Version, IsEncrypted, LastUpdatedTime) Values('ServiceNotificationQueueSasUri', '{queueUrl}', 'HybrSettings', '1.0', 0, GETDATE())
13. License Activation
Download and extract VConnect.zip
Navigate inside the extracted folder and execute the below command from command prompt
Command:
VConnect.exe ActivateOnline licenseKey emailId
Note: Do not copy-paste the values directly into command prompt, paste it in notepad, remove spaces and add again before executingOnce the command is executed successfully, .cal file will be generated in the same directory. Copy this file into C:\inetpub\MgmtSvc-CloudAssertBilling\bin
14. Post API and Agent Deployment Steps:
Once after the successful installation check agent version with Api version. Both should be same
Billing agent service is up and running
Agent config file check:
Iswapdeployment
should befalse
in agent config fileTrisuleventprocessor
should betrue
As per the need, the
cspusageprocessor
,csplicenselog
processor, VConnect processor AWS, Azure processors should betrue
Last updated