16 references to Roles
Aspire.Hosting.Azure (2)
AzureResourcePreparer.cs (2)
289AppendGlobalRoleAssignments(globalRoleAssignments, azureReference, roleAssignments.SelectMany(a => a.Roles)); 426result[g.Key] = g.SelectMany(r => r.Roles).Distinct();
Aspire.Hosting.Azure.EntraId.Tests (4)
EntraIdKeyVaultCertificateTests.cs (3)
124var role = Assert.Single(annotation.Roles); 158Assert.Empty(annotation.Roles); 176Assert.Equal(KeyVaultBuiltInRole.KeyVaultCertificateUser.ToString(), Assert.Single(annotation.Roles).Id);
EntraIdProvisioningTests.cs (1)
252.Where(a => a.Target == vault.Resource).SelectMany(a => a.Roles);
Aspire.Hosting.Azure.Kubernetes.Tests (3)
AzureKubernetesEnvironmentExtensionsTests.cs (3)
940annotation => Assert.Collection(annotation.Roles, 943annotation => Assert.Collection(annotation.Roles, 1283Assert.Collection(annotation.Roles,
Aspire.Hosting.Azure.Tests (7)
AzureResourcePreparerTests.cs (7)
216Assert.Equal(defaultAssignments.Roles, apiRoleAssignments.Roles); 260Assert.Collection(apiRoleAssignments.Roles, 266Assert.Single(api2RoleAssignments.Roles, 317Assert.Equal(defaultAssignments.Roles, apiRoleAssignments.Roles); 708Assert.Single(consumerRoleAssignments.Roles, role => role.Id == StorageBuiltInRole.StorageBlobDataReader.ToString()); 827.SelectMany(a => a.Roles) 868.SelectMany(a => a.Roles)