private RenewalParameters GetWebAppRenewalInfo(string webApp)
        {
            Trace.TraceInformation("Parsing SSL renewal parameters for web app '{0}'...", webApp);

            var subscriptionIdKey           = KeyPrefix + webApp + "-subscriptionId";
            var tenantIdKey                 = KeyPrefix + webApp + "-tenantId";
            var resourceGroupKey            = KeyPrefix + webApp + "-resourceGroup";
            var hostsKey                    = KeyPrefix + webApp + "-hosts";
            var emailKey                    = KeyPrefix + webApp + "-email";
            var clientIdKey                 = KeyPrefix + webApp + "-clientId";
            var clientSecretKey             = KeyPrefix + webApp + "-clientSecret";
            var servicePlanResourceGroupKey = KeyPrefix + webApp + "-servicePlanResourceGroup";
            var siteSlotNameKey             = KeyPrefix + webApp + "-siteSlotName";
            var useIpBasedSslKey            = KeyPrefix + webApp + "-useIpBasedSsl";
            var rsaKeyLengthKey             = KeyPrefix + webApp + "-rsaKeyLength";
            var acmeBaseUri                 = KeyPrefix + webApp + "-acmeBaseUri";

            try
            {
                // ReSharper disable once SimplifyConditionalTernaryExpression
                return(new RenewalParameters(
                           m_appSettings.GetGuid(subscriptionIdKey),
                           m_appSettings.GetString(tenantIdKey),
                           m_appSettings.GetString(resourceGroupKey),
                           webApp,
                           m_appSettings.GetDelimitedList(hostsKey),
                           m_appSettings.GetString(emailKey),
                           m_appSettings.GetGuid(clientIdKey),
                           m_appSettings.GetConnectionString(clientSecretKey),
                           m_appSettings.HasSetting(servicePlanResourceGroupKey) ? m_appSettings.GetString(servicePlanResourceGroupKey) : null,
                           m_appSettings.HasSetting(siteSlotNameKey) ? m_appSettings.GetString(siteSlotNameKey) : null,
                           m_appSettings.HasSetting(useIpBasedSslKey) ? m_appSettings.GetBoolean(useIpBasedSslKey) : false,
                           m_appSettings.HasSetting(rsaKeyLengthKey) ? m_appSettings.GetInt32(rsaKeyLengthKey) : 2048,
                           m_appSettings.HasSetting(acmeBaseUri) ? m_appSettings.GetUri(acmeBaseUri) : null));
            }
            catch (ArgumentException e)
            {
                throw new ConfigurationErrorsException("Error parsing SSL renewal parameters for web app: " + webApp, e);
            }
        }