Skip to content

Commit

Permalink
fix: create content settings for linux function app slot too (#25412)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartjbrown authored Nov 21, 2024
1 parent 8fcb096 commit 9d15d7d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9d15d7d

Please sign in to comment.