App Service Plans - Get
Description for Get an App Service plan.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}?api-version=2025-03-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
name
|
path | True |
string |
Name of the App Service plan. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Name of the resource group to which the resource belongs. |
|
subscription
|
path | True |
string |
Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). |
|
api-version
|
query | True |
string |
API Version |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK. |
|
| 404 Not Found |
Not found. |
|
| Other Status Codes |
App Service error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Get App Service plan
Sample request
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141?api-version=2025-03-01
Sample response
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141",
"name": "testsf6141",
"type": "Microsoft.Web/serverfarms",
"kind": "app",
"location": "East US",
"properties": {
"status": "Ready",
"maximumNumberOfWorkers": 20,
"numberOfWorkers": 19,
"geoRegion": "East US",
"numberOfSites": 4,
"isSpot": false,
"reserved": false,
"targetWorkerCount": 0,
"targetWorkerSizeId": 0,
"provisioningState": "Succeeded"
},
"sku": {
"name": "P1",
"tier": "Premium",
"size": "P1",
"family": "P",
"capacity": 1
}
}
Definitions
| Name | Description |
|---|---|
|
App |
App Service plan. |
| Capability |
Describes the capabilities/features allowed for a specific SKU. |
|
Default |
App Service error response. |
|
Default |
|
| Details | |
| Error |
Error model. |
|
Extended |
Extended Location. |
|
Hosting |
Specification for an App Service Environment to use for this resource. |
|
Install |
Server farm install script configuration. |
|
Install |
Object to hold install script reference. |
|
Install |
Type of the install script. |
|
Key |
Object to hold key vault reference and the resolution status |
|
Kube |
Specification for a Kubernetes Environment to use for this resource. |
|
Managed |
Managed service identity. |
|
Managed |
Type of managed service identity. |
|
Provisioning |
Provisioning state of the App Service Plan. |
|
Registry |
Server farm registry adapter configuration. |
|
Registry |
Type of the registry adapter. |
|
Server |
Network settings for an app service plan. |
|
Sku |
Description of the App Service plan scale options. |
|
Sku |
Description of a SKU for a scalable resource. |
|
Status |
App Service plan status. |
|
Storage |
Server farm storage mount configuration. |
|
Storage |
Type of the storage mount. |
|
user |
User Assigned identity. |
AppServicePlan
App Service plan.
| Name | Type | Default value | Description |
|---|---|---|---|
| extendedLocation |
Extended Location. |
||
| id |
string |
Resource Id. |
|
| identity |
Managed service identity. |
||
| kind |
string |
Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. |
|
| location |
string |
Resource Location. |
|
| name |
string |
Resource Name. |
|
| properties.asyncScalingEnabled |
boolean |
If |
|
| properties.elasticScaleEnabled |
boolean |
ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku |
|
| properties.freeOfferExpirationTime |
string (date-time) |
The time when the server farm free offer expires. |
|
| properties.geoRegion |
string |
Geographical location for the App Service plan. |
|
| properties.hostingEnvironmentProfile |
Specification for the App Service Environment to use for the App Service plan. |
||
| properties.hyperV |
boolean |
False |
If Hyper-V container app service plan |
| properties.installScripts |
Install scripts associated with this App Service plan. |
||
| properties.isCustomMode |
boolean |
Whether this server farm is in custom mode. |
|
| properties.isSpot |
boolean |
If |
|
| properties.isXenon |
boolean |
False |
Obsolete: If Hyper-V container app service plan |
| properties.kubeEnvironmentProfile |
Specification for the Kubernetes Environment to use for the App Service plan. |
||
| properties.maximumElasticWorkerCount |
integer (int32) |
Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan |
|
| properties.maximumNumberOfWorkers |
integer (int32) |
Maximum number of instances that can be assigned to this App Service plan. |
|
| properties.network |
All network settings for the server farm. |
||
| properties.numberOfSites |
integer (int32) |
Number of apps assigned to this App Service plan. |
|
| properties.numberOfWorkers |
integer (int32) |
The number of instances that are assigned to this App Service plan. |
|
| properties.perSiteScaling |
boolean |
False |
If |
| properties.planDefaultIdentity |
Identity to use by platform for various features and integrations using managed identity. |
||
| properties.provisioningState |
Provisioning state of the App Service Plan. |
||
| properties.rdpEnabled |
boolean |
If |
|
| properties.registryAdapters |
Registry adapters associated with this App Service plan. |
||
| properties.reserved |
boolean |
False |
If Linux app service plan |
| properties.resourceGroup |
string |
Resource group of the App Service plan. |
|
| properties.spotExpirationTime |
string (date-time) |
The time when the server farm expires. Valid only if it is a spot server farm. |
|
| properties.status |
App Service plan status. |
||
| properties.storageMounts |
Storage mounts associated with this App Service plan. |
||
| properties.subscription |
string |
App Service plan subscription. |
|
| properties.targetWorkerCount |
integer (int32) |
Scaling worker count. |
|
| properties.targetWorkerSizeId |
integer (int32) |
Scaling worker size ID. |
|
| properties.workerTierName |
string |
Target worker tier assigned to the App Service plan. |
|
| properties.zoneRedundant |
boolean |
False |
If |
| sku |
Description of a SKU for a scalable resource. |
||
| tags |
object |
Resource tags. |
|
| type |
string |
Resource type. |
Capability
Describes the capabilities/features allowed for a specific SKU.
| Name | Type | Description |
|---|---|---|
| name |
string |
Name of the SKU capability. |
| reason |
string |
Reason of the SKU capability. |
| value |
string |
Value of the SKU capability. |
DefaultErrorResponse
App Service error response.
| Name | Type | Description |
|---|---|---|
| error |
Error model. |
DefaultIdentity
| Name | Type | Description |
|---|---|---|
| identityType | ||
| userAssignedIdentityResourceId |
string |
Details
| Name | Type | Description |
|---|---|---|
| code |
string |
Standardized string to programmatically identify the error. |
| message |
string |
Detailed error description and debugging information. |
| target |
string |
Detailed error description and debugging information. |
Error
Error model.
| Name | Type | Description |
|---|---|---|
| code |
string |
Standardized string to programmatically identify the error. |
| details |
Details[] |
Detailed errors. |
| innererror |
string |
More information to debug error. |
| message |
string |
Detailed error description and debugging information. |
| target |
string |
Detailed error description and debugging information. |
ExtendedLocation
Extended Location.
| Name | Type | Description |
|---|---|---|
| name |
string |
Name of extended location. |
| type |
string |
Type of extended location. |
HostingEnvironmentProfile
Specification for an App Service Environment to use for this resource.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource ID of the App Service Environment. |
| name |
string |
Name of the App Service Environment. |
| type |
string |
Resource type of the App Service Environment. |
InstallScript
Server farm install script configuration.
| Name | Type | Description |
|---|---|---|
| name |
string |
Name of the install script. |
| source |
Source of the install script. |
InstallScriptSource
Object to hold install script reference.
| Name | Type | Description |
|---|---|---|
| sourceUri |
string |
Install script source URI where the install script file will be fetched from. |
| type |
Type of the install script. |
InstallScriptType
Type of the install script.
| Value | Description |
|---|---|
| RemoteAzureBlob | |
| PlatformStorage |
KeyVaultReferenceWithStatus
Object to hold key vault reference and the resolution status
| Name | Type | Description |
|---|---|---|
| referenceStatus |
string |
Reference status of the key vault secret. |
| secretUri |
string |
Key vault secret URI. |
KubeEnvironmentProfile
Specification for a Kubernetes Environment to use for this resource.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource ID of the Kubernetes Environment. |
| name |
string |
Name of the Kubernetes Environment. |
| type |
string |
Resource type of the Kubernetes Environment. |
ManagedServiceIdentity
Managed service identity.
| Name | Type | Description |
|---|---|---|
| principalId |
string |
Principal Id of managed service identity. |
| tenantId |
string |
Tenant of managed service identity. |
| type |
Type of managed service identity. |
|
| userAssignedIdentities |
<string,
user |
The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} |
ManagedServiceIdentityType
Type of managed service identity.
| Value | Description |
|---|---|
| SystemAssigned | |
| UserAssigned | |
| SystemAssigned, UserAssigned | |
| None |
ProvisioningState
Provisioning state of the App Service Plan.
| Value | Description |
|---|---|
| Succeeded | |
| Failed | |
| Canceled | |
| InProgress | |
| Deleting |
RegistryAdapter
Server farm registry adapter configuration.
| Name | Type | Description |
|---|---|---|
| keyVaultSecretReference |
Key vault reference to the value that will be placed in the registry location |
|
| registryKey |
string |
Registry key for the adapter. |
| type |
Type of the registry adapter. |
RegistryAdapterType
Type of the registry adapter.
| Value | Description |
|---|---|
| Binary | |
| String | |
| Expand_String | |
| Multi_String | |
| DWord | |
| QWord |
ServerFarmNetworkSettings
Network settings for an app service plan.
| Name | Type | Description |
|---|---|---|
| virtualNetworkSubnetId |
string |
Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration. This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName} |
SkuCapacity
Description of the App Service plan scale options.
| Name | Type | Description |
|---|---|---|
| default |
integer (int32) |
Default number of workers for this App Service plan SKU. |
| elasticMaximum |
integer (int32) |
Maximum number of Elastic workers for this App Service plan SKU. |
| maximum |
integer (int32) |
Maximum number of workers for this App Service plan SKU. |
| minimum |
integer (int32) |
Minimum number of workers for this App Service plan SKU. |
| scaleType |
string |
Available scale configurations for an App Service plan. |
SkuDescription
Description of a SKU for a scalable resource.
| Name | Type | Description |
|---|---|---|
| capabilities |
Capabilities of the SKU, e.g., is traffic manager enabled? |
|
| capacity |
integer (int32) |
Current number of instances assigned to the resource. |
| family |
string |
Family code of the resource SKU. |
| locations |
string[] |
Locations of the SKU. |
| name |
string |
Name of the resource SKU. |
| size |
string |
Size specifier of the resource SKU. |
| skuCapacity |
Min, max, and default scale values of the SKU. |
|
| tier |
string |
Service tier of the resource SKU. |
StatusOptions
App Service plan status.
| Value | Description |
|---|---|
| Ready | |
| Pending | |
| Creating |
StorageMount
Server farm storage mount configuration.
| Name | Type | Description |
|---|---|---|
| credentialsKeyVaultReference |
KV reference to the credentials to connect to the share. |
|
| destinationPath |
string |
Path on worker where storage will be mounted. |
| name |
string |
Name of the storage mount. |
| source |
string |
Source of the fileshare/storage. |
| type |
Type of the storage mount. |
StorageMountType
Type of the storage mount.
| Value | Description |
|---|---|
| AzureFiles | |
| LocalStorage | |
| FileShare |
userAssignedIdentity
User Assigned identity.
| Name | Type | Description |
|---|---|---|
| clientId |
string |
Client Id of user assigned identity |
| principalId |
string |
Principal Id of user assigned identity |