Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.86 KB

marketplace-publishing-powershell-setup.md

File metadata and controls

33 lines (26 loc) · 1.86 KB
title description services documentationcenter author manager editor ms.assetid ms.service ms.devlang ms.topic ms.tgt_pltfrm ms.workload ms.date ms.author
Set up PowerShell to create a VM for the Marketplace | Microsoft Docs
Instructions for setting up Azure PowerShell and using it as an optional process flow to create VM images to deploy to, and sell on, the Azure Marketplace
marketplace-publishing
HannibalSII
hascipio
e19d6cda-76df-4e42-be84-c9fe47a636db
marketplace
na
article
na
na
02/04/2016
hascipio

Set up Azure PowerShell to create an offer for the Azure Marketplace

For detailed information on how to set up PowerShell in Azure, see How to install and configure Azure PowerShell. A simple approach is to use the certificate method, which downloads and imports a certificate needed for authentication. To obtain the needed certificate, use the Get-AzurePublishSettingsFile cmdlet. Save the file when you're prompted. To import the certificate into a PowerShell session, use the Import-AzurePublishSettingsFile cmdlet.

To configure and store the common Microsoft Azure subscription settings for the PowerShell session, use the Set-AzureSubscription and Select-AzureSubscription cmdlets:

    Set-AzureSubscription -SubscriptionName “mySubName” -CurrentStorageAccountName “mystorageaccount”
    Select-AzureSubscription -SubscriptionName "mySubName" –Current

The first command associates a default storage account with the subscription (needed for some VM provisioning operations). The second makes the subscription the current one (recognized by other cmdlets).

See also