diff --git a/PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/webapp/runner/webappconfig/slimui/WebAppSlimSettingPanel.java b/PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/webapp/runner/webappconfig/slimui/WebAppSlimSettingPanel.java index a943fe6c3c..8d7027dafe 100644 --- a/PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/webapp/runner/webappconfig/slimui/WebAppSlimSettingPanel.java +++ b/PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/webapp/runner/webappconfig/slimui/WebAppSlimSettingPanel.java @@ -99,7 +99,7 @@ protected void resetFromConfig(@NotNull WebAppConfiguration configuration) { final Runtime runtime = Optional.ofNullable(configuration.getModel()).map(IntelliJWebAppSettingModel::getRuntime).orElse(null); final OperatingSystem operatingSystem = Optional.ofNullable(runtime).map(Runtime::getOperatingSystem).orElse(null); final AppServicePlanConfig plan = AppServicePlanConfig.builder().subscriptionId(subscription.getId()) - .resourceGroupName(rgName).region(region).os(operatingSystem).pricingTier(pricingTier).build(); + .name(configuration.getAppServicePlanName()).resourceGroupName(rgName).region(region).os(operatingSystem).pricingTier(pricingTier).build(); final DeploymentSlotConfig slotConfig = !configuration.isDeployToSlot() ? null : StringUtils.equals(configuration.getSlotName(), Constants.CREATE_NEW_SLOT) ? DeploymentSlotConfig.builder().newCreate(true).name(configuration.getNewSlotName())