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
AssignmentTypeString
Gets the assignment type as a human readable string.
public string AssignmentTypeString { get; set; }
Property Value
DefinitionDisplayName
Gets or sets the display name of the policy definition.
public string DefinitionDisplayName { get; set; }
Property Value
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
DefinitionName
Gets or sets the name of the policy definition.
public string DefinitionName { get; set; }
Property Value
Description
Gets or sets the description of the policy assignment.
public string Description { get; set; }
Property Value
DisplayName
Gets or sets the display name of the policy assignment.
public string DisplayName { get; set; }
Property Value
EnforcementMode
Gets or sets the enforcement mode for the Azure policy.
public AzurePolicyAssignmentEnforcementMode EnforcementMode { get; set; }
Property Value
EnforcementModeString
Gets the enforcement mode as a human readable string.
public string EnforcementModeString { get; set; }
Property Value
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
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
Name
Gets or sets the unique name of the policy assignment.
public string Name { get; set; }
Property Value
NonCompliantPolicies
Gets or sets the number of non-compliant policies for the policy assignment.
public int NonCompliantPolicies { get; set; }
Property Value
NonCompliantResources
Gets or sets the number of non-compliant resources for the assignment.
public int NonCompliantResources { get; set; }
Property Value
Scope
Gets or sets the name of the scope at which the policy is assigned.
public string Scope { get; set; }
Property Value
ScopeType
Gets or sets the scope type.
public AzurePolicyAssignmentScopeType ScopeType { get; set; }
Property Value
ScopeTypeString
Gets the scope type as a human readable string.
public string ScopeTypeString { get; set; }
Property Value
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
AzurePolicyAssignmentThe 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.