# Configure Offline Marketplace Download

Operators can choose to enable Offline Marketplace Download which will then store the marketplace images in a share location and then publish them to the desired stamps. This helps to save the network bandwidth in the data center, allowing the image to be downloaded from Azure for first time to a shared location and using the same downloaded image to publish to other stamps when necessary.&#x20;

If this feature is disabled, marketplace items download will work normally like any Azure Stack Hub, where the item is downloaded afresh from Azure every time to the respective stamps in a multi stamp environment.&#x20;

In the **Admin Portal,** Login as a Service Admin → VConnect → Settings → Azure Stack Hub - Market place settings page to configure the settings.

## Offline Repository Settings

* Offline repository is a location where VConnect Resource Provider stores & maintains downloaded Marketplace items.
* Ensure the configured location has ample space to store Marketplace items.

| Property                              | Description                                            |
| ------------------------------------- | ------------------------------------------------------ |
| Offline Marketplace Download Enabled? | Enable / Disable Offline Marketplace feature           |
| Shared Folder Path                    | Shared folder path to store offline Marketplace items  |
| Username                              | Username for the share folder path. (Optional)         |
| Password                              | Password for the share folder user account. (Optional) |

![Step 1. Configuring Offline Repository details](https://2310590130-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6voWNOkQYKxJnx1zI4%2F-MEw4vDEY0_QLtOb5hG4%2F-MEw5nDZejx3lxG-V1-S%2FOffline%20Repository%20details.png?alt=media\&token=ef85c532-8721-47da-9076-16dbeaad2984)

## Remote PowerShell Settings

Refer to [Configure Remote Machine for PowerShell Access](https://docs.cloudassert.com/azure-stack-hub-multi-stamp-management/2012.3/installation/configuration/configure-powershell-machine) page for detailed steps to setup a remote PowerShell machine. Following are the main steps:

* Offline Marketplace download feature requires a virtual machine with **Az** and **Azs.Syndication.Admin** PowerShell modules installed in it.
* PowerShell cmdlets will invoke ARM endpoint of the Azure Stack Hub instances to import download Marketplace images.
* The VM must be configured to allow remote PowerShell execution and WMI ports needs to be open

Once configured provide the following values in Remote PowerShell Machine Details tab

| Property                | Description                                         |
| ----------------------- | --------------------------------------------------- |
| Remote Machine          | Virtual machine name/IP address                     |
| Remote Machine Username | Username of an account with Administrator privilege |
| Remote Machine Password | Password for the user account used                  |
| Use HTTPS for WMI?      | Set this to use HTTPS encryption for WMI            |
| Remote Machine WMI Port | Configured port number for the WMI connection       |

![Step 2. Configuring Remote PowerShell machine details](https://2310590130-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6voWNOkQYKxJnx1zI4%2F-MEwDEEB52WQKAZzh1Ds%2F-MEwDmaaatia0nre0MLp%2FRemote%20PowerSell%20machine%20details.png?alt=media\&token=070ce1e1-ea74-4343-a95c-3fe5a6d5d6c7)

## Marketplace Syndication Application Settings

Azure subscription details in which the multiple Azure Stack Hub stamps that are registered.

* Azure Application Id and Secret will be used to download the Marketplace products from Azure using Marketplace syndication tool. Refer [documentation here](https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-download-azure-marketplace-item?view=azs-2005\&pivots=state-disconnected#use-the-marketplace-syndication-tool-to-download-marketplace-items) to understand how the marketplace syndication tool will be used to download marketplace items.
* Downloading Marketplace items from Azure will not be possible if the configured Azure Stack Hub instances are deployed in Disconnected model and also when there is no internet connectivity in the configured Remote PowerShell machine.
* This setting is optional if the managed Azure Stack Hub stamps are **ALL disconnected.**
* The setting can be overridden in the individual stamp connection level, if a specific stamp in the collection of stamps being managed is registered with a different azure subscription

| Property                  | Description                                                 |
| ------------------------- | ----------------------------------------------------------- |
| Azure Subscription Id     | Azure subscription Id against which the stamp is registered |
| Azure Directory Tenant Id | Active Directory Tenant Id                                  |
| Azure Application Id      | Azure Application Id                                        |
| Azure Application Secret  | Azure Application Secret                                    |

![Step 3. Configuring Azure Application details which will be used by the Marketplace Syndication tool ](https://2310590130-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6voWNOkQYKxJnx1zI4%2F-MEwNSTLA0zVHfCAro-H%2F-MEwNVKlAxFCL1TAavPE%2FSyndication%20App%20details.png?alt=media\&token=f852d303-1972-4acc-9fee-5d178953c82d)

{% content-ref url="configure-a-new-azure-stack-stamp" %}
[configure-a-new-azure-stack-stamp](https://docs.cloudassert.com/azure-stack-hub-multi-stamp-management/2012.3/installation/configuration/configure-a-new-azure-stack-stamp)
{% endcontent-ref %}
