Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureWebHostingPlan

Get-AzureWebHostingPlan

microsoft.windowsazure.commands.dll

Synopsis

Gets Azure web hosting plan in the current subscription.

Syntax

Get-AzureWebHostingPlan [-WebSpaceName] [-Name] [<CommonParameters>]

Detailed Description

The Get-AzureWebHostingPlan cmdlet gets information about Azure web hosting plans in subscription.

By default, Get-AzureWebHostingPlan gets all Azure hosting plans in the current subscription and returns an object that provides basic information about the plans. When you use the WebSpace and Name parameters, Get-AzureWebHostingPlan returns a specific object.

The current subscription is the subscription that is designated as "current." To find the current subscription, use the Current parameter of the Get-AzureSubscription cmdlet. To change the current subscription, use the Select-AzureSubscription cmdlet.

This topic describes the cmdlet in the 0.8.2 version of the Microsoft Azure PowerShell module. To find the version of the module you're using, in the Azure PowerShell console, type (Get-Module -Name Azure).Version.

Parameters

Input Type

None

Return Type

Microsoft.WindowsAzure.Commands.Utilities.Websites.Services.WebEntities.WebHostingPlan

Notes

None

Examples

Example 1: Get all web hosting plans in the subscription

This command gets all Azure web hosting plans in the current subscription.

              PS C:\>Get-AzureWebHostingPlan
              Name                   : Default1
              SKU                    : Basic
              WorkerSize             : Small
              NumberOfWorkers        : 1
              CurrentWorkerSize      : Small
              CurrentNumberOfWorkers : 1
              Status                 : Ready
              WebSpace               : eastuswebspace

              Name                   : Default0
              SKU                    : Free
              WorkerSize             : Small
              NumberOfWorkers        : 0
              CurrentWorkerSize      : Small
              CurrentNumberOfWorkers : 0
              Status                 : Ready
            

Example 2: Get a specific web hosting plans in the subscription

This command gets single Azure web hosting plans in the current subscription.

                PS C:\>Get-AzureWebHostingPlan westeuropewebspace Default0

                Name                   : Default0
                SKU                    : Free
                WorkerSize             : Small
                NumberOfWorkers        : 0
                CurrentWorkerSize      : Small
                CurrentNumberOfWorkers : 0
                Status                 : Ready
                WebSpace               : westeuropewebspace