# Prerequisites

Ensure the following prerequisites are met ONLY in the specific stamp identified to install the Resource Provider UI. Rest of the stamps are connected to and installation of RP is not required.

## Azure Stack Hub Version

Minimum supported version: 1.1910.0.0

## ADMIN PORTAL

1. Start download / ensure following necessary marketplace images are already present

&#x20;      Go to **Marketplace Management** -> **Marketplace Items**

&#x20;          1\) Windows 2016 Datacenter&#x20;

&#x20;               \[Eg: Windows Server 2016 Datacenter - Pay as you use]

&#x20;          2\) SQL Server 2017&#x20;

&#x20;               \[Eg: SQL Server 2017 Standard on Windows Server 2016]

&#x20;      If they are not already present, refer [Download Marketplace items to Azure Stack Hub](https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-download-azure-marketplace-item?view=azs-2002\&pivots=state-connected) to initiate download.&#x20;

For a disconnected / partially connected scenario, refer the above link to use the Marketplace syndication tool to download Marketplace items and later transfer your downloads to your disconnected Azure Stack Hub installation.  &#x20;

2\. Create a new plan and an offer / identify existing offer that will be used to create a tenant subscription

Go to **Plans** -> Identify / Create a new plan with the following services enabled with default quotas

![](https://3054531917-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MBbN839bMfFmojuCL1A%2F-MBbQ4vtvXINOLd7uM3m%2Fplan.png?alt=media\&token=d6897d81-ec03-47f1-9c4a-3f1349428951)

To create a new plan, refer [Create a plan in Azure Stack Hub](https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-create-plan?view=azs-2002)

Go to **Offers** -> Identify / Create a new offer associating with the above plan in **Base Plans** -> Make it **Public** (or) **Private** based on operator's choice and use

To create a new offer, refer [Create an offer in Azure Stack Hub](https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-create-offer?view=azs-2002)

## TENANT PORTAL

1. Go to **Subscriptions** -> Create a tenant subscription / identify an existing tenant subscription created using the offer above in ADMIN PORTAL section

&#x20;       To create a new tenant subscription, refer [Create subscriptions to offers in Azure Stack Hub](https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-subscribe-plan-provision-vm?view=azs-2002)       &#x20;

&#x20;   2\. Select the **Tenant subscription -> Resource Providers -> Register** all the following providers

![](https://3054531917-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MBbN839bMfFmojuCL1A%2F-MBbQ_DYo5rLWWwUVKoD%2Ftenant%20sub.png?alt=media\&token=246b9ad2-d4d9-42b2-aded-5c4fdc955db2)

## HOST VM

On **multi-node integrated systems**, the host must be a system that can access admin and tenant endpoints.

On **ASDK**, sign in to the physical host.&#x20;

#### CERTIFICATES

* Azure stack certification authority certificate file (AzureStackCertificationAuthority.cer)
  * Refer [AzureStack Certification Authority certificate](https://docs.cloudassert.com/azure-stack-billing/2103.3/installation/prerequisites/azure-stack-certification-authority-certificate) to retrieve this certificate. You will need PEP endpoint credentials to run this script.
* Certificate (\*.pfx)
  * For **integrated systems** (i.e. multi-node), a .pfx certificate is required. Refer [PKI Certificate Requirements](https://docs.cloudassert.com/azure-stack-billing/2103.3/installation/prerequisites/pki-certificate-requirements) for more details.
    * Place the file in **Cert** folder inside the install location (c:\CloudAssert\BillingRP). Unblock the .pfx file. Select the file, Right click -> Properties -> Unblock.
  * For **ASDK**, certificate is generated as a part of the deployment. Password for the .pfx certificate should not contain the following characters: ^ \` \~ & % \*

#### POWERSHELL & TOOLS

* Install [Powershell AzureRM module for Azure Stack Hub](https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-powershell-install?view=azs-2002) (choose version based on the guidance below)
  * Ensure that Azure Stack PowerShell version 1.8.0 is available for Azure stack version 1910 and Azure Stack PowerShell version 1.8.1 for Azure stack version 2002.
  * Ensure there is **ONE** version of PowerShell installed to avoid errors during installation.

#### ACCOUNTS AND PERMISSIONS

* Azure Stack service Admin account credentials&#x20;
  * Ensure the account has owner role for the Default Provider Subscription.
  * In connected environment, ensure if the service Admin account has **"Application Administrator"** permission in Azure AD (Password should not contain the following characters ^ \` \~ & % \*)
* Azure Stack service Tenant account credentials
  * Ensure the service tenant account has owner role for the tenant subscription ID.

#### CONNECTION TO A SQL SERVER

* SQL Server name, in the format, **\<IP Address of the SQL Server>/\<Instance name>**
* SQL authenticated user credential with sysadmin role for msdb databse.

{% hint style="info" %}
'sysadmin' role for msdb is needed because the installaion/update process includes creating, modifying and deleting SQL jobs that will aggregate the Azure Stack hub usage data.
{% endhint %}

* Name of the Billing database (CloudAssert.Billing) and Cost Management database (CloudAssert.DACM)
* The databases must be created prior to the deployment and it must be accessible from Azure Stack tenant network.

{% hint style="info" %}
If VConnect MSM is deployed prior to the Billing RP, the Billing and Cost management (DACM) databses used for VConnect deployment can be reused.
{% endhint %}

* It is highly recommended to have the databases in a performant SQL Server. Recommended system configuration is given below,&#x20;
  * Compute: CPU – 6 Cores&#x20;
  * Compute: Memory – 16 GB&#x20;
  * Disk Drive Type - SSD&#x20;
