glamorous-waitress-51149
08/24/2022, 10:58 AMUrl = Output.Format($"https://{app.Configuration.Apply(x => x!.Ingress).Apply(x => x!.Fqdn)}");
but obviously it’s cyclic dependency issue, you’re trying to add the url to the envvars but the url doesn’t exist yetechoing-dinner-19531
08/24/2022, 12:13 PMglamorous-waitress-51149
08/24/2022, 12:14 PMfast-vr-6049
08/25/2022, 5:35 PMglamorous-waitress-51149
08/25/2022, 5:39 PMpublic static Uri GetContainerAppAddress(string name, bool secure = true, int? port = null) {
if (IsNullOrWhiteSpace(name))
throw new ArgumentException("Container App name cannot be null or whitespace.", nameof(name));
var suffix = Environment.GetEnvironmentVariable("CONTAINER_APP_ENV_DNS_SUFFIX");
var host = $"{name}{(suffix is not null ? $".{suffix}" : "")}";
var url = $"{(secure ? "https" : "http")}://{host}{(port is not null ? $":{port}" : "")}";
return new Uri(url);
}
fast-vr-6049
08/25/2022, 5:43 PM