azure-sdk-for-js: [swagger] HTTP 400 error when trying to deploy app service to custom location

  • Package Name: @azure/arm-appservice
  • Package Version: 11.0.0
  • Operating system: Win11
  • nodejs
    • version: 14
  • browser
    • name/version:
  • typescript
    • version: 4.5.4
  • Is the bug related to documentation in

Describe the bug When trying to create an App Service web app that uses a custom location, I get this error back from the server: HTTP 400: The request content was invalid and could not be deserialized: 'Required property 'type' not found in JSON. Path 'extendedLocation', line 1, position 307.'.

I noticed in the source comments that type is not being serialized in the request. Apparently though, the server thinks it is required. We are setting the value in the request but ultimately that doesn’t matter.

To Reproduce Steps to reproduce the behavior:

  1. Create an Azure Arc cluster and custom location, and add the App Service extensions. I use this guide: https://docs.microsoft.com/en-us/azure/app-service/manage-create-arc-environment?tabs=bash
  2. Try creating an App Service with the (nightly version) Docker extension for VSCode.

Expected behavior Creation should work. If type is required it should not be stripped off the serialized request.

About this issue

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

Most upvoted comments

Thanks @MaryGao, I opened a support ticket.