diff --git a/src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppResource.cs b/src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppResource.cs index 40e5dc5f26d..b310485b85e 100644 --- a/src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppResource.cs +++ b/src/Aspire.Hosting.Azure.AppContainers/AzureContainerAppResource.cs @@ -39,13 +39,6 @@ public AzureContainerAppResource(string name, Action(); - if (!targetResource.TryGetEndpoints(out var endpoints)) - { - endpoints = []; - } - - var anyPublicEndpoints = endpoints.Any(e => e.IsExternal); - var printResourceSummary = new PipelineStep { Name = $"print-{targetResource.Name}-summary", @@ -56,15 +49,17 @@ public AzureContainerAppResource(string name, Action e.IsExternal)) { var endpoint = $"https://{targetResource.Name.ToLowerInvariant()}.{domainValue}"; ctx.ReportingStep.Log(LogLevel.Information, $"Successfully deployed **{targetResource.Name}** to [{endpoint}]({endpoint})", enableMarkdown: true); + ctx.Summary.Add(targetResource.Name, endpoint); } else { ctx.ReportingStep.Log(LogLevel.Information, $"Successfully deployed **{targetResource.Name}** to Azure Container Apps environment **{containerAppEnv.Name}**. No public endpoints were configured.", enableMarkdown: true); + ctx.Summary.Add(targetResource.Name, "No public endpoints"); } }, Tags = ["print-summary"], diff --git a/src/Aspire.Hosting.Azure.AppService/AzureAppServiceWebSiteResource.cs b/src/Aspire.Hosting.Azure.AppService/AzureAppServiceWebSiteResource.cs index a939f90af76..c71e4f3312e 100644 --- a/src/Aspire.Hosting.Azure.AppService/AzureAppServiceWebSiteResource.cs +++ b/src/Aspire.Hosting.Azure.AppService/AzureAppServiceWebSiteResource.cs @@ -39,11 +39,6 @@ public AzureAppServiceWebSiteResource(string name, Action(); - if (!targetResource.TryGetEndpoints(out var endpoints)) - { - endpoints = []; - } - var printResourceSummary = new PipelineStep { Name = $"print-{targetResource.Name}-summary", @@ -63,6 +58,7 @@ public AzureAppServiceWebSiteResource(string name, Action $"[{e}]({e})")); context.ReportingStep.Log(LogLevel.Information, $"Successfully deployed **{TargetResource.Name}** to {endpointList}.", enableMarkdown: true); + context.Summary.Add(TargetResource.Name, string.Join(", ", endpoints)); } else { @@ -353,6 +355,7 @@ private async Task PrintEndpointsAsync(PipelineStepContext context, DockerCompos context.ReportingStep.Log(LogLevel.Information, $"Successfully deployed **{TargetResource.Name}** to Docker Compose environment **{environment.Name}**.", enableMarkdown: true); + context.Summary.Add(TargetResource.Name, "No public endpoints"); } }