# Steps for version update

**Pre-Uninstall Steps**

* Take a backup of Cloud Assert billing database and obtain the resource provider username and password settings from Usage and Billing API Service web.config
* Take backup of ‘*Web.config’* file located at ‘*C:\inetpub\MgmtSvc-CloudAssertBilling’*
* Take backup of ‘*CloudAssert.WAP.Billing.AgentService.exe.config’* file located at ‘*C:\Program Files\CloudAssertBilling\CloudAssert.WAP.Billing.AgentService*’
* Take a backup of ‘*Scripts*’ folder form ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’ folder if present
* Take a backup of the following files (If present) from ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’
  * CloudAssert.Billing.UsageExtensions.dll
  * System.Management.Automation.dll
  * CloudAssert.Billing.UsageExtensions
  * UsageExtensionsSettings.json
* Take backups of ‘*Templates*’ folders present in ‘*C:\inetpub\MgmtSvc-CloudAssertBilling*’ and ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’.

**Uninstallation Steps**

* Uninstall existing Usage and Billing installers from Add or Remove Programs on the respective machines.
* Delete ‘*CloudAssertBilling*’ from ‘*C:\Program Files*’ if present after uninstalling Billing Agent Service setup.

**Pre – Installation Steps**

* For upgrading from version v1.9.0.22 to v1.9.1.11 (or) v1.9.2. \*, the following has to be done before installing the latest build.
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-1-9-2/Upgrade%20from%20v1_9_0_23%20to%20v_1_9_2_11.sql).
  * Execute the script in *CloudAssertBilling* database server

**NOTE:** Versions less than 1.9.0.22 will not need the script to be executed.

* For upgrading from version v1.9.1.10 to v1.9.2. \*
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-1-9-2/Upgrade%20from%20v1_9_1_10%20to%20v1_9_2_12.sql).
  * Execute the script in *CloudAssertBilling* database server.
* For upgrading from version v1.9.1.11 to v1.9.2. \*
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-1-9-2/Upgrade%20from%20v1_9_1_11%20to%20v_1_9_2_11.sql).
  * Execute the script in *CloudAssertBilling* database server.
* For upgrading from version v1.9.2.14 to v2.0.1. \*
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-2-1-1/MigrationScript_1.9.2_2.0.1.sql).
  * Execute the script in *CloudAssertBilling* database server.
* For upgrading from version v1.9.2.14 to v2.1.1.\* and higher
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-2-1-1/MigrationScript_1.9.2_2.1.1.sql).
  * Execute the script in *CloudAssertBilling* database server.
* For upgrading from version v2.0.1.10 to v2.1.1. \* and higher
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-2-1-1/MigrationScript_2.0.1_2.1.1.sql).
  * Execute the script in *CloudAssertBilling* database server.

**Post – Installation Steps**

&#x20;The post installation steps need to be followed after the ‘Billing Agent Service’ setup is installed.

* Stop the billing agent service.
* Replace the folder ‘*Templates*’ and its contents into ‘*C:\inetpub\MgmtSvc-CloudAssertBilling*’ and ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’.
* Replace the ‘*Scripts*’ folder and its contents into ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService’* folder.
* Replace the following files into ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService’* folder.
  * CloudAssert.Billing.UsageExtensions.dll
  * System.Management.Automation.dll
  * CloudAssert.Billing.UsageExtensions
  * UsageExtensionsSettings.json
* Open ‘*CloudAssert.WAP.Billing.AgentService.exe.config’* file located at ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’ and compare it with the backup file of the same name (*CloudAssert.WAP.Billing.AgentService.exe.config*). Enable the job processors that are enable in the backup file. For example, UsageEventsProcessors, UsageExtensionProcessor, etc.

![](/files/-Lp8N2_BurjK5Sodl2su)

* If ‘UsageExtensionProcessor’ is enabled in the backup file, set true in the new file and also ensure the ‘SettingsPath’ is pointed to ‘C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService\UsageExtensionsSettings.json’ as seen below.

![](/files/-Lp8N2_CVBeEhQDSJgor)

* Start the Billing agent service.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudassert.com/wap-billing/2.1.7.41/installation/steps-for-version-update.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
