AzureRoleAssignmentResource
Class sealed net8.0
Represents a set of Azure role assignments granted on a target Azure resource.
namespace Aspire.Hosting.Azure;
public sealed class AzureRoleAssignmentResource : Aspire.Hosting.Azure.AzureProvisioningResource{ // ...}Remarks
Section titled Remarks When
AzureRoleAssignmentResource.OwnerResource is non- null, the role assignments are granted to the managed identity ( AzureRoleAssignmentResource.IdentityResource) owned by that Aspire resource. When AzureRoleAssignmentResource.OwnerResource is null, the role assignments are global and are granted to the deployment principal. Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesIdentityResourceget Gets the user-assigned managed identity whose principal receives the role assignments, or
null for global role assignments that are granted to the deployment principal. OwnerResourcegetIResource? Gets the Aspire resource that owns this set of role assignments, or
null for global role assignments that are granted to the deployment principal. TargetAzureResourceget Gets the Azure resource that the roles are assigned on.