Get-​Azure​Rm​App​Service​Plan

Gets an Azure App Service plan in the specified resource group.

Syntax

Get-AzureRmAppServicePlan
   [[-ResourceGroupName] <String>]
   [[-Name] <String>]
   [<CommonParameters>]
Get-AzureRmAppServicePlan
   [-Location] <String>
   [<CommonParameters>]

Description

The Get-AzureRmAppServicePlan cmdlet gets an Azure App Service plan in the specified resource group.

Examples

Example 1: Get an App Service plan from a resource group

PS C:\>Get-AzureRmAppServicePlan -ResourceGroupName "Default-Web-WestUS" -Name "ContosoASP"

This command gets the App Service plan named ContosoASP that belongs to the resource group named Default-Web-WestUS.

Example 2: Get all App Service plans in a location

PS C:\>Get-AzureRmAppServicePlan -Location "West US"

This command gets all App Service plans located in the "West US" region.

Required Parameters

-Location

Location

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Name

App Service Plan Name

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False