PolicyAssignment Class
The policy assignment.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.resource.policy._serialization.ModelPolicyAssignment
Constructor
PolicyAssignment(*, sku: _models.PolicySku | None = None, location: str | None = None, identity: _models.Identity | None = None, display_name: str | None = None, policy_definition_id: str | None = None, scope: str | None = None, not_scopes: List[str] | None = None, parameters: MutableMapping[str, Any] | None = None, description: str | None = None, metadata: MutableMapping[str, Any] | None = None, enforcement_mode: str | _models.EnforcementMode | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
sku
|
The policy sku. This property is optional, obsolete, and will be ignored. |
location
|
The location of the policy assignment. Only required when utilizing managed identity. |
identity
|
The managed identity associated with the policy assignment. |
display_name
|
The display name of the policy assignment. |
policy_definition_id
|
The ID of the policy definition or policy set definition being assigned. |
scope
|
The scope for the policy assignment. |
not_scopes
|
The policy's excluded scopes. |
parameters
|
<xref:JSON>
Required if a parameter is used in policy rule. |
description
|
This message will be part of response in case of policy violation. |
metadata
|
<xref:JSON>
The policy assignment metadata. |
enforcement_mode
|
The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Known values are: "Default" and "DoNotEnforce". |
Variables
Name | Description |
---|---|
id
|
The ID of the policy assignment. |
type
|
The type of the policy assignment. |
name
|
The name of the policy assignment. |
sku
|
The policy sku. This property is optional, obsolete, and will be ignored. |
location
|
The location of the policy assignment. Only required when utilizing managed identity. |
identity
|
The managed identity associated with the policy assignment. |
display_name
|
The display name of the policy assignment. |
policy_definition_id
|
The ID of the policy definition or policy set definition being assigned. |
scope
|
The scope for the policy assignment. |
not_scopes
|
The policy's excluded scopes. |
parameters
|
<xref:JSON>
Required if a parameter is used in policy rule. |
description
|
This message will be part of response in case of policy violation. |
metadata
|
<xref:JSON>
The policy assignment metadata. |
enforcement_mode
|
The policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Known values are: "Default" and "DoNotEnforce". |
Azure SDK for Python