Table of Contents

Class AzurePolicyAssignment

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents an Azure policy assignment.

public class AzurePolicyAssignment : GlobalSerializableClassicBase, IComparable<AzurePolicyAssignment>
Inheritance
AzurePolicyAssignment
Implements

Constructors

AzurePolicyAssignment()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.AzurePolicyAssignment class.

public AzurePolicyAssignment()

Properties

AssignmentType

Gets or sets the assignment type.

public AzurePolicyAssignmentType AssignmentType { get; set; }

Property Value

AzurePolicyAssignmentType

AssignmentTypeString

Gets the assignment type as a human readable string.

public string AssignmentTypeString { get; set; }

Property Value

string

DefinitionDisplayName

Gets or sets the display name of the policy definition.

public string DefinitionDisplayName { get; set; }

Property Value

string

DefinitionId

Gets or sets the unique identifier of the policy definition - for example "/providers/Microsoft.Authorization/policyDefinitions/0447bc18-e2f7-4c0d-aa20-bff034275be1".

public string DefinitionId { get; set; }

Property Value

string

DefinitionName

Gets or sets the name of the policy definition.

public string DefinitionName { get; set; }

Property Value

string

Description

Gets or sets the description of the policy assignment.

public string Description { get; set; }

Property Value

string

DisplayName

Gets or sets the display name of the policy assignment.

public string DisplayName { get; set; }

Property Value

string

EnforcementMode

Gets or sets the enforcement mode for the Azure policy.

public AzurePolicyAssignmentEnforcementMode EnforcementMode { get; set; }

Property Value

AzurePolicyAssignmentEnforcementMode

EnforcementModeString

Gets the enforcement mode as a human readable string.

public string EnforcementModeString { get; set; }

Property Value

string

Id

Gets or sets the unique identiifer of the policy assignment - for example "/subscriptions/d92d5b4d-6ddf-6482-9159-f7755f6ffb65/providers/Microsoft.Authorization/policyAssignments/009d5b56458343fa85a0b7fd ".

public string Id { get; set; }

Property Value

string

Identifier

Gets or sets the unique system assigned identifier of the policy assignment. This is for internal use only.

public Guid Identifier { get; set; }

Property Value

Guid

Name

Gets or sets the unique name of the policy assignment.

public string Name { get; set; }

Property Value

string

NonCompliantPolicies

Gets or sets the number of non-compliant policies for the policy assignment.

public int NonCompliantPolicies { get; set; }

Property Value

int

NonCompliantResources

Gets or sets the number of non-compliant resources for the assignment.

public int NonCompliantResources { get; set; }

Property Value

int

Scope

Gets or sets the name of the scope at which the policy is assigned.

public string Scope { get; set; }

Property Value

string

ScopeType

Gets or sets the scope type.

public AzurePolicyAssignmentScopeType ScopeType { get; set; }

Property Value

AzurePolicyAssignmentScopeType

ScopeTypeString

Gets the scope type as a human readable string.

public string ScopeTypeString { get; set; }

Property Value

string

Methods

CompareTo(AzurePolicyAssignment)

Compares two CENTREL.XIA.Configuration.Types.AzurePolicyAssignment objects to allow for sorting by display name.

public int CompareTo(AzurePolicyAssignment other)

Parameters

other AzurePolicyAssignment

The CENTREL.XIA.Configuration.Types.AzurePolicyAssignment to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.AzurePolicyAssignment objects.

ToString()

Returns the policy assignment display name.

public override string ToString()

Returns

string

The policy assignment display name.