Configure PowerShell for use with Azure Stack

2017-7-162 minuti per la letturaAutori di contributi

In questo articolo

This article describes the steps required to connect to an Azure Stack Development Kit instance by using PowerShell. After you connect, you can access the portal and deploy resources through PowerShell. You can use the steps described in this article either from the development kit, or from a Windows-based external client if you are connected through VPN.

This article has detailed instructions to configure PowerShell for Azure Stack. However, if you want to quickly install and configure PowerShell, you can use the script provided in the Get up and running with PowerShell topic.

Prerequisites

Import the Connect PowerShell module

After you download the required tools, navigate to the downloaded folder and import the Connect PowerShell module. To import the Connect module, run the following command in an elevated PowerShell session:

Register resource providers

After you sign in to the administrator or user portal, you can issue operations against the registered resource providers. By default, all the foundational resource providers are registered in the Default Provider Subscription (the cloud administrator's subscription).

When you operate on a newly created user subscription, which doesn’t have any resources deployed through the portal, the resource providers aren't automatically registered. You should explicitly register the resource providers by using the following script: