internal static float GetMemoryGBPerCore()

in src/Microsoft.Azure.WebJobs.Host/AppServicesHostingUtility.cs [40:71]


        internal static float GetMemoryGBPerCore(string sku)
        {
            if (string.IsNullOrEmpty(sku))
            {
                return -1;
            }

            // These memory allowances are based on published limits:
            // Dynamic SKU: https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits
            // Premium SKU: https://docs.microsoft.com/en-us/azure/azure-functions/functions-premium-plan?tabs=portal#available-instance-skus
            // Dedicated SKUs: https://azure.microsoft.com/en-us/pricing/details/app-service/windows/
            switch (sku.ToLower())
            {
                case "free":
                case "shared":
                    return 1;
                case "dynamic":
                    return 1.5F;
                case "basic":
                case "standard":
                    return 1.75F;
                case "premiumv2":
                case "isolated":
                case "elasticpremium":
                    return 3.5F;
                case "premiumv3":
                case "isolatedv2":
                    return 4;
                default:
                    return -1;
            }
        }