Skip to main content

scaling_plans

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

Overview

Namescaling_plans
TypeResource
Idazure.desktop_virtualization.scaling_plans

Fields

The following fields are returned by SELECT queries:

Successfully retrieved scaling plan.

NameDatatypeDescription
etagstringThe etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
identityobjectIdentity for the resource.
kindstringMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. (pattern: ^[-\w._,()]+$)
managedBystringThe fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
planobjectPlan for the resource.
propertiesobjectDetailed properties for scaling plan.
skuobjectThe resource model definition representing SKU

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, scalingPlanNameGet a scaling plan.
list_by_host_poolselectsubscriptionId, resourceGroupName, hostPoolNamepageSize, isDescending, initialSkipList scaling plan associated with hostpool.
list_by_resource_groupselectsubscriptionId, resourceGroupNamepageSize, isDescending, initialSkipList scaling plans.
list_by_subscriptionselectsubscriptionIdpageSize, isDescending, initialSkipList scaling plans in subscription.
createinsertsubscriptionId, resourceGroupName, scalingPlanName, data__propertiesCreate or update a scaling plan.
updateupdatesubscriptionId, resourceGroupName, scalingPlanNameUpdate a scaling plan.
deletedeletesubscriptionId, resourceGroupName, scalingPlanNameRemove a scaling plan.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hostPoolNamestringThe name of the host pool within the specified resource group
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
scalingPlanNamestringThe name of the scaling plan.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
initialSkipinteger (int32)Initial number of items to skip.
isDescendingbooleanIndicates whether the collection is descending.
pageSizeinteger (int32)Number of items per page.

SELECT examples

Get a scaling plan.

SELECT
etag,
identity,
kind,
managedBy,
plan,
properties,
sku
FROM azure.desktop_virtualization.scaling_plans
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND scalingPlanName = '{{ scalingPlanName }}' -- required
;

INSERT examples

Create or update a scaling plan.

INSERT INTO azure.desktop_virtualization.scaling_plans (
data__managedBy,
data__kind,
data__identity,
data__sku,
data__plan,
data__properties,
subscriptionId,
resourceGroupName,
scalingPlanName
)
SELECT
'{{ managedBy }}',
'{{ kind }}',
'{{ identity }}',
'{{ sku }}',
'{{ plan }}',
'{{ properties }}' /* required */,
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ scalingPlanName }}'
RETURNING
etag,
identity,
kind,
managedBy,
plan,
properties,
sku
;

UPDATE examples

Update a scaling plan.

UPDATE azure.desktop_virtualization.scaling_plans
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND scalingPlanName = '{{ scalingPlanName }}' --required
RETURNING
etag,
identity,
kind,
managedBy,
plan,
properties,
sku;

DELETE examples

Remove a scaling plan.

DELETE FROM azure.desktop_virtualization.scaling_plans
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND scalingPlanName = '{{ scalingPlanName }}' --required
;