PolicyAssignment Class

The policy assignment.

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

Inheritance
PolicyAssignment

Constructor

PolicyAssignment(*, sku: Optional[azure.mgmt.resource.policy.v2018_03_01.models._models_py3.PolicySku] = None, display_name: Optional[str] = None, policy_definition_id: Optional[str] = None, scope: Optional[str] = None, not_scopes: Optional[List[str]] = None, parameters: Optional[Any] = None, description: Optional[str] = None, metadata: Optional[Any] = None, **kwargs)

Variables

id
str

The ID of the policy assignment.

type
str

The type of the policy assignment.

name
str

The name of the policy assignment.

sku
PolicySku

The policy sku. This property is optional, obsolete, and will be ignored.

display_name
str

The display name of the policy assignment.

policy_definition_id
str

The ID of the policy definition or policy set definition being assigned.

scope
str

The scope for the policy assignment.

not_scopes
list[str]

The policy's excluded scopes.

parameters
any

Required if a parameter is used in policy rule.

description
str

This message will be part of response in case of policy violation.

metadata
any

The policy assignment metadata.