Skip to content

Commit 54f1ed9

Browse files
authored
Merge pull request #54135 from sethmanheim/wk10-3
Marketplace updates
2 parents c2fa36a + 26331f5 commit 54f1ed9

File tree

2 files changed

+41
-29
lines changed

2 files changed

+41
-29
lines changed

articles/azure-stack/azure-stack-create-and-publish-marketplace-item.md

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ ms.workload: na
1212
ms.tgt_pltfrm: na
1313
ms.devlang: na
1414
ms.topic: article
15-
ms.date: 06/14/2018
15+
ms.date: 10/03/2018
1616
ms.author: sethm
17-
ms.reviewer: jeffgo
17+
ms.reviewer: avishwan
1818

1919
---
2020
# Create and publish a Marketplace item
@@ -25,12 +25,15 @@ ms.reviewer: jeffgo
2525
1. [Download](http://www.aka.ms/azurestackmarketplaceitem) the Azure Gallery Packager tool and the sample Azure Stack Marketplace item.
2626
2. Open the sample Marketplace item and rename the **SimpleVMTemplate** folder. (Use the same name as your Marketplace item--for example, **Contoso.TodoList**.) This folder contains:
2727

28-
/Contoso.TodoList/
29-
/Contoso.TodoList/Manifest.json
30-
/Contoso.TodoList/UIDefinition.json
31-
/Contoso.TodoList/Icons/
32-
/Contoso.TodoList/Strings/
33-
/Contoso.TodoList/DeploymentTemplates/
28+
```shell
29+
/Contoso.TodoList/
30+
/Contoso.TodoList/Manifest.json
31+
/Contoso.TodoList/UIDefinition.json
32+
/Contoso.TodoList/Icons/
33+
/Contoso.TodoList/Strings/
34+
/Contoso.TodoList/DeploymentTemplates/
35+
```
36+
3437
3. [Create an Azure Resource Manager template](../azure-resource-manager/resource-group-authoring-templates.md) or choose a template from GitHub. The Marketplace item uses this template to create a resource.
3538

3639
> [!Note]
@@ -48,22 +51,30 @@ ms.reviewer: jeffgo
4851
8. In the **manifest.json** file, change **name** to the name of your Marketplace item. Also change **publisher** to your name or company.
4952
9. Under **artifacts**, change **name** and **path** to the correct information for the Azure Resource Manager template that you included.
5053

51-
"artifacts": [
52-
{
53-
"name": "Type your template name",
54-
"type": "Template",
55-
"path": "DeploymentTemplates\\Type your path",
56-
"isDefault": true
57-
}
54+
```json
55+
"artifacts": [
56+
{
57+
"name": "Type your template name",
58+
"type": "Template",
59+
"path": "DeploymentTemplates\\Type your path",
60+
"isDefault": true
61+
}
62+
```
63+
5864
10. Replace **My Marketplace Items** with a list of the categories where your Marketplace item should appear.
5965

60-
"categories":[
61-
"My Marketplace Items"
62-
],
66+
```json
67+
"categories":[
68+
"My Marketplace Items"
69+
],
70+
```
71+
6372
11. For any further edits to manifest.json, refer to [Reference: Marketplace item manifest.json](#reference-marketplace-item-manifestjson).
6473
12. To package the folders into an .azpkg file, open a command prompt and run the following command:
6574

66-
AzureGalleryPackager.exe package –m <path to manifest.json> -o <output location for the package>
75+
```shell
76+
AzureGalleryPackager.exe package –m <path to manifest.json> -o <output location for the package>
77+
```
6778

6879
> [!NOTE]
6980
> The full path to the output package must exist. For example, if the output path is C:\MarketPlaceItem\yourpackage.azpkg, the folder C:\MarketPlaceItem must exist.
@@ -75,8 +86,10 @@ ms.reviewer: jeffgo
7586
2. On the client virtual machine in the Microsoft Azure Stack environment, make sure that your PowerShell session is set up with your service administrator credentials. You can find instructions for how to authenticate PowerShell in Azure Stack in [Deploy a template with PowerShell](user/azure-stack-deploy-template-powershell.md).
7687
3. When you use [PowerShell 1.3.0]( azure-stack-powershell-install.md) or later, you can use the **Add-AzsGalleryItem** PowerShell cmdlet to publish the Marketplace item to Azure Stack. Prior to using PowerShell 1.3.0, use the cmdlet **Add-AzureRMGalleryitem** in place of **Add-AzsGalleryItem**. For example, when you use PowerShell 1.3.0 or later:
7788

78-
Add-AzsGalleryItem -GalleryItemUri `
79-
https://sample.blob.core.windows.net/gallerypackages/Microsoft.SimpleTemplate.1.0.0.azpkg –Verbose
89+
```powershell
90+
Add-AzsGalleryItem -GalleryItemUri `
91+
https://sample.blob.core.windows.net/gallerypackages/Microsoft.SimpleTemplate.1.0.0.azpkg –Verbose
92+
```
8093

8194
| Parameter | Description |
8295
| --- | --- |
@@ -98,7 +111,9 @@ ms.reviewer: jeffgo
98111

99112
6. You can remove a Marketplace item by using the **Remove-AzureRMGalleryItem** cmdlet. Example:
100113

101-
Remove-AzsGalleryItem -Name Microsoft.SimpleTemplate.1.0.0 –Verbose
114+
```powershell
115+
Remove-AzsGalleryItem -Name Microsoft.SimpleTemplate.1.0.0 –Verbose
116+
```
102117

103118
> [!NOTE]
104119
> The Marketplace UI may show an error after you remove an item. To fix the error, click **Settings** in the portal. Then, select **Discard modifications** under **Portal customization**.

articles/azure-stack/azure-stack-download-azure-marketplace-item.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ ms.workload: na
1313
ms.tgt_pltfrm: na
1414
ms.devlang: na
1515
ms.topic: get-started-article
16-
ms.date: 09/13/2018
16+
ms.date: 10/03/2018
1717
ms.author: sethm
18-
ms.reviewer: jeffgo
18+
ms.reviewer: ''
1919
---
2020
# Download marketplace items from Azure to Azure Stack
2121

@@ -116,15 +116,12 @@ There are two parts to this scenario:
116116
117117
```
118118

119-
5. Import the syndication module and then launch the tool by running the following script. Replace the *destination folder path* with a location to store the files you download from the Azure Marketplace.
119+
5. Import the syndication module and then launch the tool by running the following commands. Replace `Destination folder path` with a location to store the files you download from the Azure Marketplace.
120120

121121
```PowerShell
122122
Import-Module .\Syndication\AzureStack.MarketplaceSyndication.psm1
123123
124-
Sync-AzSOfflineMarketplaceItem `
125-
-destination "Destination folder path" `
126-
-AzureTenantID $AzureContext.Tenant.TenantId `
127-
-AzureSubscriptionId $AzureContext.Subscription.Id
124+
Export-AzSOfflineMarketplaceItem -destination "Destination folder path"
128125
```
129126

130127
6. When the tool runs, you are prompted to enter your Azure account credentials. Sign in to the Azure account that you have used to register Azure Stack. After the login succeeds, you should see a screen like the following image, with the list of available marketplace items.

0 commit comments

Comments
 (0)