private static string GetDownloadLink()

in GenerateToolingFeed/V3Format/V3FormatFeedEntryUpdater.cs [63:76]


        private static string GetDownloadLink(string os, string architecture, string cliVersion, bool isMinified = false, string linkSuffix = "")
        {
            string rid = isMinified ? "min." : string.Empty;

            rid += Helper.GetRuntimeIdentifier(false, os, architecture);
            var url = $"https://cdn.functions.azure.com/public/{cliVersion}/Azure.Functions.Cli.{rid}{linkSuffix}.{cliVersion}.zip";

            string bypassDownloadLinkValidation = Environment.GetEnvironmentVariable("bypassDownloadLinkValidation");
            if (bypassDownloadLinkValidation != "1" && !Helper.IsValidDownloadLink(url))
            {
                throw new Exception($"{url} is not valid or no found. Cannot generate cli feed file");
            }
            return url;
        }