< Back

Get-AzureRmAppServicePlan

Tue Jan 29, 2019 10:11 pm

NAME Get-AzureRmAppServicePlan



SYNOPSIS

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





SYNTAX

Get-AzureRmAppServicePlan [-Location] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



Get-AzureRmAppServicePlan [[-ResourceGroupName] <String>] [[-Name] <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Location <String>

Location



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

App Service Plan Name



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name



Required? false

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Management.WebSites.Models.ServerFarmWithRichSku





Microsoft.Azure.Management.WebSites.Models.ServerFarmCollection







NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... erviceplan

New-AzureRmAppServicePlan

Remove-AzureRmAppServicePlan

Set-AzureRmAppServicePlan