> For the complete documentation index, see [llms.txt](https://docs.cloudassert.com/azure-stack-hub-multi-stamp-management/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudassert.com/azure-stack-hub-multi-stamp-management/others/troubleshooting/configure-vconnect-powershell-modules.md).

# Configure VConnect PowerShell Modules

## Install CloudAssert PowerShell modules

* Copy and Paste the following command to install this package using PowerShellGet [More Info](https://www.powershellgallery.com/packages/CloudAssert.Common/2021.10.25.1)

```
Install-Module -Name CloudAssert.Common
Install-Module -Name CloudAssert.VConnect
```

**Note:**

Use -force to update the PowerShell Module with the latest version.

### Add VConnect API Connection

Execute the following command to add VConnect RP API connection

```
Add-ApiConnection
```

![](/files/PTTH1jr5KbMiKCGGyrTB)

<table><thead><tr><th width="243.74843500682863">Input</th><th>Description</th></tr></thead><tbody><tr><td>API Connection Name</td><td>Name the API connection for the future reference. Ex: <code>vconnect-api</code></td></tr><tr><td>API Endpoint Url</td><td>VConnect Service API Endpoint of the Resource Provider. Format: <code>https://vconnect.&#x3C;Azure Stack FAQN>:44305</code></td></tr><tr><td>API User</td><td>VConnect Service API authentication username. Ex: <code>cloudassertadminuser</code></td></tr><tr><td>API Key</td><td>VConnect Service API athentication password</td></tr></tbody></table>

Run the following command to validate connectivity status

```
Get-VConnectAzsStampsHealth -endpointName [vconnect-api-connection-name] -printToConsole
```

> Repalce the input for `endpointName` with the actual connection name added in the previous name.

### Add SQL Database Connection

Execute the following command to add VConnect RP API connection

```
Add-SqlDbConnection
```

![](/files/sbnkoU6sP0JLCYWL4LJD)

<table><thead><tr><th width="243.74843500682863">Input</th><th>Description</th></tr></thead><tbody><tr><td>Connection Name</td><td>Name the SQL database connection for the future reference. Ex: <code>vconnect-sql</code></td></tr><tr><td>DB Server Name</td><td>VConnect SQL Server name or IP Address. Format: <code>192.168.102.132</code></td></tr><tr><td>DB Server Name</td><td>VConnect Database SQL authentication username. Ex: <code>cadbadmin</code></td></tr><tr><td>Password</td><td>VConnect Database SQL  athentication password</td></tr><tr><td>DB Name (Optional)</td><td>VConnect Database name. Ex. CloudAssert.VConnect</td></tr></tbody></table>
