1 write to Azure
Aspire.Hosting.Radius (1)
CloudProviders\RadiusCloudProviderExtensions.cs (1)
64
RadiusCloudProvidersAnnotation.GetOrAdd(builder.Resource).
Azure
= config;
24 references to Azure
Aspire.Hosting.Radius (7)
Publishing\RadCredentialRegisterStep.cs (3)
117
if (annotation.
Azure
?.Credential is AzureRadiusCredential.ServicePrincipal sp)
131
if (annotation.
Azure
?.Credential is AzureRadiusCredential.WorkloadIdentity wi)
190
if (annotation.
Azure
is { } azureConfig)
Publishing\RadiusInfrastructureBuilder.cs (4)
751
if (annotation.
Azure
is { } azure)
778
if (annotation.
Azure
is { } azure)
1876
providers?.
Azure
?.SubscriptionId ?? throw MissingProviderReference("Azure", "WithAzureProvider"),
1878
providers?.
Azure
?.ResourceGroup ?? throw MissingProviderReference("Azure", "WithAzureProvider"),
Aspire.Hosting.Radius.Tests (17)
CloudProviders\AdditiveCompatibilityTests.cs (1)
33
Assert.NotNull(ann.
Azure
);
CloudProviders\CredentialModeOverrideTests.cs (4)
33
Assert.IsType<AzureRadiusCredential.WorkloadIdentity>(ann.
Azure
!.Credential);
66
Assert.Equal(SecondSub, ann.
Azure
!.SubscriptionId);
67
Assert.Equal("rg2", ann.
Azure
.ResourceGroup);
68
Assert.IsType<AzureRadiusCredential.WorkloadIdentity>(ann.
Azure
.Credential);
CloudProviders\MultiEnvironmentProvidersTests.cs (7)
30
Assert.NotNull(annA.
Azure
);
31
Assert.Equal(SubA, annA.
Azure
!.SubscriptionId);
50
Assert.NotNull(ann.
Azure
);
76
Assert.Equal(SubA, devAnn.
Azure
!.SubscriptionId);
77
Assert.Equal(SubB, prodAnn.
Azure
!.SubscriptionId);
78
Assert.IsType<AzureRadiusCredential.ServicePrincipal>(devAnn.
Azure
.Credential);
79
Assert.IsType<AzureRadiusCredential.WorkloadIdentity>(prodAnn.
Azure
.Credential);
CloudProviders\WithAzureProviderTests.cs (5)
31
Assert.NotNull(annotation.
Azure
);
32
Assert.Equal(ValidSubscriptionId, annotation.
Azure
!.SubscriptionId);
33
Assert.Equal(ValidResourceGroup, annotation.
Azure
.ResourceGroup);
35
var sp = Assert.IsType<AzureRadiusCredential.ServicePrincipal>(annotation.
Azure
.Credential);
124
var wi = Assert.IsType<AzureRadiusCredential.WorkloadIdentity>(ann.
Azure
!.Credential);