105 references to AzureBicepResource
Aspire.Hosting.Azure (61)
AzureBicepResourceExtensions.cs (28)
23public static IResourceBuilder<AzureBicepResource> AddBicepTemplate(this IDistributedApplicationBuilder builder, [ResourceName] string name, string bicepFile)
28var resource = new AzureBicepResource(name, templateFile: path, templateString: null);
40public static IResourceBuilder<AzureBicepResource> AddBicepTemplateString(this IDistributedApplicationBuilder builder, [ResourceName] string name, string bicepContent)
44var resource = new AzureBicepResource(name, templateFile: null, templateString: bicepContent);
55public static BicepOutputReference GetOutput(this IResourceBuilder<AzureBicepResource> builder, string name)
66public static BicepSecretOutputReference GetSecretOutput(this IResourceBuilder<AzureBicepResource> builder, string name)
108/// <typeparam name="T">The <see cref="AzureBicepResource"/>.</typeparam>
113where T : AzureBicepResource
123/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
129where T : AzureBicepResource
139/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
145where T : AzureBicepResource
155/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
161where T : AzureBicepResource
171/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
177where T : AzureBicepResource
187/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
193where T : AzureBicepResource
201/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
207where T : AzureBicepResource
217/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
223where T : AzureBicepResource
233/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
239where T : AzureBicepResource
249/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
255where T : AzureBicepResource
265/// <typeparam name="T">The <see cref="AzureBicepResource"/></typeparam>
271where T : AzureBicepResource
Provisioning\Provisioners\BicepProvisioner.cs (25)
24ResourceLoggerService loggerService) : AzureResourceProvisioner<AzureBicepResource>
26public override bool ShouldProvision(IConfiguration configuration, AzureBicepResource resource)
29public override async Task<bool> ConfigureResourceAsync(IConfiguration configuration, AzureBicepResource resource, CancellationToken cancellationToken)
108public override async Task GetOrCreateResourceAsync(AzureBicepResource resource, ProvisioningContext context, CancellationToken cancellationToken)
138if (resource.Parameters.ContainsKey(AzureBicepResource.KnownParameters.KeyVaultName))
190resource.Parameters[AzureBicepResource.KnownParameters.KeyVaultName] = keyVault.Data.Name;
354private static void PopulateWellKnownParameters(AzureBicepResource resource, ProvisioningContext context)
356if (resource.Parameters.TryGetValue(AzureBicepResource.KnownParameters.PrincipalId, out var principalId) && principalId is null)
358resource.Parameters[AzureBicepResource.KnownParameters.PrincipalId] = context.Principal.Id;
361if (resource.Parameters.TryGetValue(AzureBicepResource.KnownParameters.PrincipalName, out var principalName) && principalName is null)
363resource.Parameters[AzureBicepResource.KnownParameters.PrincipalName] = context.Principal.Name;
366if (resource.Parameters.TryGetValue(AzureBicepResource.KnownParameters.PrincipalType, out var principalType) && principalType is null)
368resource.Parameters[AzureBicepResource.KnownParameters.PrincipalType] = "User";
371if (resource.Parameters.TryGetValue(AzureBicepResource.KnownParameters.LogAnalyticsWorkspaceId, out var logAnalyticsWorkspaceId) && logAnalyticsWorkspaceId is null)
374resource.Parameters.Remove(AzureBicepResource.KnownParameters.LogAnalyticsWorkspaceId);
378resource.Parameters[AzureBicepResource.KnownParameters.Location] = context.Location.Name;
423internal static string GetChecksum(AzureBicepResource resource, JsonObject parameters)
437internal static async ValueTask<string?> GetCurrentChecksumAsync(AzureBicepResource resource, IConfiguration section, CancellationToken cancellationToken = default)
472AzureBicepResource.KnownParameters.PrincipalName,
473AzureBicepResource.KnownParameters.PrincipalId,
474AzureBicepResource.KnownParameters.PrincipalType,
475AzureBicepResource.KnownParameters.KeyVaultName,
476AzureBicepResource.KnownParameters.Location,
477AzureBicepResource.KnownParameters.LogAnalyticsWorkspaceId,
481internal static async Task SetParametersAsync(JsonObject parameters, AzureBicepResource resource, bool skipDynamicValues = false, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.AppConfiguration (2)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.ApplicationInsights (2)
Aspire.Hosting.Azure.CognitiveServices (2)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.KeyVault (2)
Aspire.Hosting.Azure.PostgreSQL (5)
Aspire.Hosting.Azure.Redis (4)
Aspire.Hosting.Azure.Search (2)
Aspire.Hosting.Azure.ServiceBus (2)
Aspire.Hosting.Azure.SignalR (2)
Aspire.Hosting.Azure.Sql (3)
Aspire.Hosting.Azure.Storage (2)
Aspire.Hosting.Azure.Tests (7)
Aspire.Hosting.Azure.WebPubSub (2)
BicepSample.AppHost (1)