private getAppServiceARMParameter()

in src/extension/src/azure/azure-app-service/appServiceProvider.ts [131:168]


  private getAppServiceARMParameter(selections: AppServiceSelections): any {
    const parameterPath = path.join(
      Controller.vsContext.extensionPath,
      "src",
      "azure",
      "azure-app-service",
      "arm-templates",
      "parameters.json"
    );

    const parameters = JSON.parse(fs.readFileSync(parameterPath, "utf8"));

    parameters.parameters = {
      name: {
        value: selections.siteName,
      },
      appServicePlanName: {
        value: selections.appServicePlanName,
      },
      tier: {
        value: selections.tier,
      },
      sku: {
        value: selections.sku,
      },
      linuxFxVersion: {
        value: selections.linuxFxVersion,
      },
      subscriptionId: {
        value: selections.subscriptionItem.subscriptionId,
      },
      location: {
        value: selections.location,
      },
    };

    return parameters;
  }