From 9d15d7d3921c6969c1c6c85f728a8812e7ba6f42 Mon Sep 17 00:00:00 2001 From: Stuart Brown Date: Thu, 21 Nov 2024 18:49:28 +0100 Subject: [PATCH] fix: create content settings for linux function app slot too (#25412) --- .../services/appservice/linux_function_app_slot_resource.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/services/appservice/linux_function_app_slot_resource.go b/internal/services/appservice/linux_function_app_slot_resource.go index a3d1e148f3f5..3e8527a3b209 100644 --- a/internal/services/appservice/linux_function_app_slot_resource.go +++ b/internal/services/appservice/linux_function_app_slot_resource.go @@ -445,8 +445,10 @@ func (r LinuxFunctionAppSlotResource) Create() sdk.ResourceFunc { } } } - // Only send for ElasticPremium - sendContentSettings := helpers.PlanIsElastic(planSKU) && !functionAppSlot.ForceDisableContentShare + + // Only send for ElasticPremium and Consumption plan + elasticOrConsumptionPlan := helpers.PlanIsElastic(planSKU) || helpers.PlanIsConsumption(planSKU) + sendContentSettings := elasticOrConsumptionPlan && !functionAppSlot.ForceDisableContentShare existing, err := client.GetSlot(ctx, id) if err != nil && !response.WasNotFound(existing.HttpResponse) {