# Installation

* Sign in to a host that can access the privileged endpoint VM.&#x20;
  * On Azure Stack Development Kit installations, sign in to the physical host.&#x20;
  * On multi-node systems, the host must be a system that can access the privileged endpoint.&#x20;
* Extract the contents of Billing resource provider to a temporary directory using any extractor tool.&#x20;
* Place the generated .pfx file in the DependencyFilesLocalPath as follows:&#x20;
  * Only a single certificate file exists in the DependencyFilesLocalPath&#x20;
  * The file name must not contain any special characters.
  * The certificate must be placed in the DependencyFilesLocalPath before retrying the deployment
* Edit the InstallBilling.ps1 script with the account information and passwords as needed by the script.
* Open a new elevated (administrative) PowerShell console and change to the directory where the files have been extracted. Use a new window to avoid problems that might arise from incorrect PowerShell modules that are already loaded on the system.&#x20;
* By default, the installation scripts supports deployment in connected AzS environment. To deploy billing solution in disconnected AzS Environment, make the following changes,
  * Changes in InstallBilling.ps1
    * Change the $imageSku to "Standard"
  * Changes in DeployBillingProvider.ps1
    * Change the $publisherName to "MicrosoftSQLServer" and $offer to "SQL2016SP1-WS2016" in the else part

```
else
{
    if (-not $SqlServerName)
    {
        Write-Error "Kindly provide the SQL server name and rerun the deployment."
            throw   
    }
    $publisherName = "MicrosoftWindowsServer"
    $offer = "WindowsServer"
}
```

* Run InstallBilling.ps1 script

NOTE: The system where the script is being run must be a Windows 10 or Windows Server 2016 system with the latest version of the .NET runtime installed.

## Verifying the Deployment in Azure Stack Portals

* In Admin Portal, click on Resource Groups. Then select the **system.\<location>.cloudassert.billing** resource group and verify if the deployment succeeded.
* In Tenant Portal, click on Resource Groups. Then select the **system.\<location>.cloudassert.billing.rp** resource group and verify if the deployment succeeded.


---

# 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/azure-stack-billing/2.1.10.19/installation/deployment/installation.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.
