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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
descriptionstringDescription of scaling plan.
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.
exclusionTagstringExclusion tag for scaling plan.
friendlyNamestringUser friendly name of scaling plan.
hostPoolReferencesarrayList of ScalingHostPoolReference definitions.
hostPoolTypestringHostPool type for desktop. "Pooled"
identityobject:vartype identity: ~azure.mgmt.desktopvirtualization.models.ResourceModelWithAllowedPropertySetIdentity
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.
locationstringThe geo-location where the resource lives. Required.
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.
objectIdstringObjectId of scaling plan. (internal use).
planobject:vartype plan: ~azure.mgmt.desktopvirtualization.models.ResourceModelWithAllowedPropertySetPlan
schedulesarrayList of ScalingPlanPooledSchedule definitions.
skuobject:vartype sku: ~azure.mgmt.desktopvirtualization.models.ResourceModelWithAllowedPropertySetSku
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
timeZonestringTimezone of the scaling plan. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, scaling_plan_name, subscription_idGet a scaling plan.
list_by_host_poolselectresource_group_name, host_pool_name, subscription_idpageSize, isDescending, initialSkipList scaling plan associated with hostpool.
list_by_resource_groupselectresource_group_name, subscription_idpageSize, isDescending, initialSkipList scaling plans.
list_by_subscriptionselectsubscription_idpageSize, isDescending, initialSkipList scaling plans in subscription.
createinsertresource_group_name, scaling_plan_name, subscription_id, location, propertiesCreate or update a scaling plan.
updateupdateresource_group_name, scaling_plan_name, subscription_idUpdate a scaling plan.
deletedeleteresource_group_name, scaling_plan_name, subscription_idRemove 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
host_pool_namestringThe name of the host pool within the specified resource group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
scaling_plan_namestringThe name of the scaling plan. Required.
subscription_idstring
initialSkipintegerInitial number of items to skip. Default value is None.
isDescendingbooleanIndicates whether the collection is descending. Default value is None.
pageSizeintegerNumber of items per page. Default value is None.

SELECT examples

Get a scaling plan.

SELECT
id,
name,
description,
etag,
exclusionTag,
friendlyName,
hostPoolReferences,
hostPoolType,
identity,
kind,
location,
managedBy,
objectId,
plan,
schedules,
sku,
systemData,
tags,
timeZone,
type
FROM azure.desktop_virtualization.scaling_plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND scaling_plan_name = '{{ scaling_plan_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a scaling plan.

INSERT INTO azure.desktop_virtualization.scaling_plans (
tags,
location,
managedBy,
kind,
identity,
sku,
plan,
properties,
resource_group_name,
scaling_plan_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ managedBy }}',
'{{ kind }}',
'{{ identity }}',
'{{ sku }}',
'{{ plan }}',
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ scaling_plan_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
identity,
kind,
location,
managedBy,
plan,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update a scaling plan.

UPDATE azure.desktop_virtualization.scaling_plans
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND scaling_plan_name = '{{ scaling_plan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
identity,
kind,
location,
managedBy,
plan,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Remove a scaling plan.

DELETE FROM azure.desktop_virtualization.scaling_plans
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND scaling_plan_name = '{{ scaling_plan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;