Skip to content

Creating deployment slots via the cli vs the portal results in different behavior. #22639

@a3y3

Description

@a3y3

Related command
az functionapp deployment slot create. Full command:

az functionapp deployment slot create `
        --name $app `
        --resource-group $env:RESOURCE_GROUP `
        --slot blue `
        --configuration-source $app

Describe the bug

  • When creating a Deployment Slot, using the CLI to do so versus using the Azure Portal results in different behavior.
  • If the slot is created using the CLI, pushing code to the slot results in the code automatically being also deployed/swapped to the production slot over a period of times (~5 minutes, we verified using our internal logs).
  • We theorized this could be because of auto swap. However, disabling auto swaps with the command az functionapp deployment slot auto-swap --slot blue --disable --name <name>--resource-group <rg> still results in the same behavior.
  • If the slot is created using the online portal, pushing code to the slot does NOT deploy the code to the production slot too.

To Reproduce

  • Create a new slot using the portal.
  • Push code to the new slot
  • Observe that the production slot still has the code as intended.
  • Delete the slot and recreate it using the CLI.
  • Push code to the new slot.
  • Observe that the production slot will have the code pushed to the new slot in around 5-10 minutes.

Expected behavior

  • Creating slots via the CLI or the Portal should result in the same behavior.

Environment summary

  • Install Method: .exe
  • CLI version: 2.37.0
  • OS Version: Windows 10
  • Shell: Powershell

Metadata

Metadata

Labels

Auto-AssignAuto assign by botFunctionsaz functionappService AttentionThis issue is responsible by Azure service team.act-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions