Policy Class

A Policy.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

Policy(*, location: str | None = None, tags: dict[str, str] | None = None, description: str | None = None, status: str | _models.PolicyStatus | None = None, fact_name: str | _models.PolicyFactName | None = None, fact_data: str | None = None, threshold: str | None = None, evaluator_type: str | _models.PolicyEvaluatorType | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
location
str

The location of the resource.

Default value: None
tags

The tags of the resource.

Default value: None
description
str

The description of the policy.

Default value: None
status

The status of the policy. Known values are: "Enabled" and "Disabled".

Default value: None
fact_name

The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Known values are: "UserOwnedLabVmCount", "UserOwnedLabPremiumVmCount", "LabVmCount", "LabPremiumVmCount", "LabVmSize", "GalleryImage", "UserOwnedLabVmCountInSubnet", "LabTargetCost", "EnvironmentTemplate", and "ScheduleEditPermission".

Default value: None
fact_data
str

The fact data of the policy.

Default value: None
threshold
str

The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).

Default value: None
evaluator_type

The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Known values are: "AllowedValuesPolicy" and "MaxValuePolicy".

Default value: None

Variables

Name Description
id
str

The identifier of the resource.

name
str

The name of the resource.

type
str

The type of the resource.

location
str

The location of the resource.

tags

The tags of the resource.

description
str

The description of the policy.

status

The status of the policy. Known values are: "Enabled" and "Disabled".

fact_name

The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Known values are: "UserOwnedLabVmCount", "UserOwnedLabPremiumVmCount", "LabVmCount", "LabPremiumVmCount", "LabVmSize", "GalleryImage", "UserOwnedLabVmCountInSubnet", "LabTargetCost", "EnvironmentTemplate", and "ScheduleEditPermission".

fact_data
str

The fact data of the policy.

threshold
str

The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).

evaluator_type

The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Known values are: "AllowedValuesPolicy" and "MaxValuePolicy".

created_date

The creation date of the policy.

provisioning_state
str

The provisioning status of the resource.

unique_identifier
str

The unique immutable identifier of a resource (Guid).