Microsoft.DevTestLab labs/policysets/policies 2016-05-15

Template format

To create a Microsoft.DevTestLab/labs/policysets/policies resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.DevTestLab/labs/policysets/policies",
  "apiVersion": "2016-05-15",
  "location": "string",
  "tags": {},
  "properties": {
    "description": "string",
    "status": "string",
    "factName": "string",
    "factData": "string",
    "threshold": "string",
    "evaluatorType": "string"

Property values

The following tables describe the values you need to set in the schema.

Microsoft.DevTestLab/labs/policysets/policies object

Name Type Required Value
name string Yes The name of the policy.
type enum Yes policies

See Set name and type for child resources.
apiVersion enum Yes 2016-05-15
location string No The location of the resource.
tags object No The tags of the resource.
properties object Yes The properties of the resource. - PolicyProperties object

PolicyProperties object

Name Type Required Value
description string No The description of the policy.
status enum No The status of the policy. - Enabled or Disabled
factName enum No The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. - UserOwnedLabVmCount, UserOwnedLabPremiumVmCount, LabVmCount, LabPremiumVmCount, LabVmSize, GalleryImage, UserOwnedLabVmCountInSubnet, LabTargetCost
factData string No The fact data of the policy.
threshold string No The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).
evaluatorType enum No The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). - AllowedValuesPolicy or MaxValuePolicy