Table of Contents

Class AzureRoleAssignment

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

Represents an Azure role assignment.

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

Constructors

AzureRoleAssignment()

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

public AzureRoleAssignment()

Properties

AccountName

Gets the name of the account being assigned - either an Entra directory account name or service principal name.

public string AccountName { get; set; }

Property Value

string

AccountType

Gets or sets the type of object being assigned - for example "User" or "Group".

public AzureRoleAssignmentAccountType AccountType { get; set; }

Property Value

AzureRoleAssignmentAccountType

AccountTypeString

Gets the type of object being assigned - for example "User" or "Group".

public string AccountTypeString { get; set; }

Property Value

string

CollectionDisplayField

Gets the collection display field.

[Browsable(false)]
public string CollectionDisplayField { get; }

Property Value

string

CollectionIndex

Gets the collection index.

[Browsable(false)]
public string CollectionIndex { get; }

Property Value

string

DisplayName

Gets or sets the display name of the user or group to which the role is assigned.

public string DisplayName { get; set; }

Property Value

string

Id

Gets or sets the unique identifier of this role assignment - for example "/subscriptions/5463ee1c-ca9c-4f09-9f48-73e77b9c688a/resourceGroups/WebServersResourceGroup/providers/Microsoft.Network/virtualNetworks/WebServersResourceGroup-vnet/providers/Microsoft.Authorization/roleAssignments/5cd49d46-aa62-44dc-a756-d43b4bc6153a". This setting does not apply to classic administrators.

public string Id { get; set; }

Property Value

string

IsManagementGroupScope

Gets whether the role assignment is scoped to a management group.

[Browsable(false)]
public bool IsManagementGroupScope { get; }

Property Value

bool

IsResourceGroupScope

Gets whether the role assignment is scoped to a resource group.

[Browsable(false)]
public bool IsResourceGroupScope { get; }

Property Value

bool

IsSubscriptionScope

Gets whether the role assignment is scoped to a subscription.

[Browsable(false)]
public bool IsSubscriptionScope { get; }

Property Value

bool

RoleDefinitionId

Gets or sets the unique identifier of the assigned role.

public string RoleDefinitionId { get; set; }

Property Value

string

RoleDefinitionName

Gets or sets the name of the assigned role - for example "Owner".

public string RoleDefinitionName { get; set; }

Property Value

string

Scope

Gets or sets the unique identifier of the object on which the role is assigned - for example "/subscriptions/342f80f7-bd74-472b-a234-92cd48892519/resourceGroups/WebServers/providers/Microsoft.Web/serverFarms/app-service-plan-02".

public string Scope { get; set; }

Property Value

string

UserPrincipalName

Gets or sets the user principal name of the assignment if applicable.

public string UserPrincipalName { get; set; }

Property Value

string

Methods

CompareTo(AzureRoleAssignment)

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

public int CompareTo(AzureRoleAssignment other)

Parameters

other AzureRoleAssignment

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

Returns

int

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

ToString()

Returns the role assignment in the format "Sign-In Name [Role Definition]".

public override string ToString()

Returns

string

The role assignment in a human readable format.