142 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)
137if (resource.Parameters.ContainsKey(AzureBicepResource.KnownParameters.KeyVaultName))
189resource.Parameters[AzureBicepResource.KnownParameters.KeyVaultName] = keyVault.Data.Name;
353private static void PopulateWellKnownParameters(AzureBicepResource resource, ProvisioningContext context)
355if (resource.Parameters.TryGetValue(AzureBicepResource.KnownParameters.PrincipalId, out var principalId) && principalId is null)
357resource.Parameters[AzureBicepResource.KnownParameters.PrincipalId] = context.Principal.Id;
360if (resource.Parameters.TryGetValue(AzureBicepResource.KnownParameters.PrincipalName, out var principalName) && principalName is null)
362resource.Parameters[AzureBicepResource.KnownParameters.PrincipalName] = context.Principal.Name;
365if (resource.Parameters.TryGetValue(AzureBicepResource.KnownParameters.PrincipalType, out var principalType) && principalType is null)
367resource.Parameters[AzureBicepResource.KnownParameters.PrincipalType] = "User";
370if (resource.Parameters.TryGetValue(AzureBicepResource.KnownParameters.LogAnalyticsWorkspaceId, out var logAnalyticsWorkspaceId) && logAnalyticsWorkspaceId is null)
373resource.Parameters.Remove(AzureBicepResource.KnownParameters.LogAnalyticsWorkspaceId);
377resource.Parameters[AzureBicepResource.KnownParameters.Location] = context.Location.Name;
422internal static string GetChecksum(AzureBicepResource resource, JsonObject parameters)
436internal static async ValueTask<string?> GetCurrentChecksumAsync(AzureBicepResource resource, IConfiguration section, CancellationToken cancellationToken = default)
471AzureBicepResource.KnownParameters.PrincipalName,
472AzureBicepResource.KnownParameters.PrincipalId,
473AzureBicepResource.KnownParameters.PrincipalType,
474AzureBicepResource.KnownParameters.KeyVaultName,
475AzureBicepResource.KnownParameters.Location,
476AzureBicepResource.KnownParameters.LogAnalyticsWorkspaceId,
480internal static async Task SetParametersAsync(JsonObject parameters, AzureBicepResource resource, bool skipDynamicValues = false, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.AppConfiguration (4)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.ApplicationInsights (3)
Aspire.Hosting.Azure.CognitiveServices (4)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.EventHubs (4)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.KeyVault (4)
Aspire.Hosting.Azure.PostgreSQL (13)
Aspire.Hosting.Azure.Redis (8)
Aspire.Hosting.Azure.Search (4)
Aspire.Hosting.Azure.ServiceBus (4)
Aspire.Hosting.Azure.SignalR (4)
Aspire.Hosting.Azure.Sql (9)
Aspire.Hosting.Azure.Storage (4)
Aspire.Hosting.Azure.Tests (7)
Aspire.Hosting.Azure.WebPubSub (4)
BicepSample.AppHost (1)