azure-cli: Unable to create a deployment slot in Azure function in CLI 2.23.0

Describe the bug The following command should create a deployment slot on the function app -

az functionapp deployment slot create --name vb-func-test-1 --resource-group vb-func-apps --slot staging --configuration-source vb-func-test-1

Reference: https://docs.microsoft.com/en-us/cli/azure/functionapp/deployment/slot?view=azure-cli-latest#az_functionapp_deployment_slot_create

But when we execute this command in Azure Cloud Shell, we are getting following error - The command failed with an unexpected error. Here is the traceback: Unable to build a model: Unable to deserialize to object: type, AttributeError: ‘str’ object has no attribute ‘get’, DeserializationError: Unable to deserialize to object: type, AttributeError:‘str’ object has no attribute ‘get’

To Reproduce Go to Cloud Shell in Azure portal and execute the command to create a deployment slot in function app - az functionapp deployment slot create --name –resource-group –slot [–configuration-source] [–subscription]

Expected behavior The command should execute successfully and create a deployment slot for the function app.

Environment summary image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 6
  • Comments: 18 (3 by maintainers)

Most upvoted comments

@vivekbsn-msft So, you are saying that you drop a new release that breaks things, and then tell people to wait for another release which is 79% NOT completed? Isn’t a bugfix release even considered here ?