Skip to main content

plans

Creates, updates, deletes, gets or lists a plans resource.

Overview

Nameplans
TypeResource
Idazure.app_service.plans

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
extendedLocationobjectExtended Location.
kindstringKind of resource.
locationstringResource Location.
propertiesobjectAppServicePlan resource specific properties
skuobjectDescription of a SKU for a scalable resource.
tagsobjectResource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdDescription for Get an App Service plan.
listSELECTsubscriptionIdDescription for Get all App Service plans for a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdDescription for Get all App Service plans in a resource group.
create_or_updateINSERTname, resourceGroupName, subscriptionIdDescription for Creates or updates an App Service Plan.
deleteDELETEname, resourceGroupName, subscriptionIdDescription for Delete an App Service plan.
updateUPDATEname, resourceGroupName, subscriptionIdDescription for Creates or updates an App Service Plan.
get_vnet_routeEXECname, resourceGroupName, routeName, subscriptionId, vnetNameDescription for Get a Virtual Network route in an App Service plan.
list_vnet_routeEXECname, resourceGroupName, subscriptionId, vnetNameDescription for Get all routes that are associated with a Virtual Network in an App Service plan.
reboot_workerEXECname, resourceGroupName, subscriptionId, workerNameDescription for Reboot a worker machine in an App Service plan.
restart_web_appsEXECname, resourceGroupName, subscriptionIdDescription for Restart all apps in an App Service plan.

SELECT examples

Description for Get all App Service plans for a subscription.

SELECT
id,
name,
extendedLocation,
kind,
location,
properties,
sku,
tags,
type
FROM azure.app_service.plans
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new plans resource.

/*+ create */
INSERT INTO azure.app_service.plans (
name,
resourceGroupName,
subscriptionId,
kind,
location,
tags,
properties,
sku,
extendedLocation
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ sku }}',
'{{ extendedLocation }}'
;

UPDATE example

Updates a plans resource.

/*+ update */
UPDATE azure.app_service.plans
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified plans resource.

/*+ delete */
DELETE FROM azure.app_service.plans
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';