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