PolicyAssignment Class

Definition

The policy assignment.

[Microsoft.Rest.Serialization.JsonTransformation]
public class PolicyAssignment : Microsoft.Rest.Azure.IResource
type PolicyAssignment = class
    interface IResource
Public Class PolicyAssignment
Implements IResource
Inheritance
PolicyAssignment
Attributes
Implements

Constructors

PolicyAssignment()

Initializes a new instance of the PolicyAssignment class.

PolicyAssignment(String, String, String, IList<String>, IDictionary<String,ParameterValuesValue>, String, Object, String, String, String, String, PolicySku, String, Identity)

Initializes a new instance of the PolicyAssignment class.

Properties

Description

Gets or sets this message will be part of response in case of policy violation.

DisplayName

Gets or sets the display name of the policy assignment.

EnforcementMode

Gets or sets the policy assignment enforcement mode. Possible values are Default and DoNotEnforce. Possible values include: 'Default', 'DoNotEnforce'

Id

Gets the ID of the policy assignment.

Identity

Gets or sets the managed identity associated with the policy assignment.

Location

Gets or sets the location of the policy assignment. Only required when utilizing managed identity.

Metadata

Gets or sets the policy assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.

Name

Gets the name of the policy assignment.

NotScopes

Gets or sets the policy's excluded scopes.

Parameters

Gets or sets the parameter values for the assigned policy rule. The keys are the parameter names.

PolicyDefinitionId

Gets or sets the ID of the policy definition or policy set definition being assigned.

Scope

Gets or sets the scope for the policy assignment.

Sku

Gets or sets the policy sku. This property is optional, obsolete, and will be ignored.

Type

Gets the type of the policy assignment.

Methods

Validate()

Validate the object.

Applies to