-1

Im having problems with an apim arm deplyment script. Im looking at the export template to try and figure how to construct the script. Problem is i need to do it dynamically and the export template is full of hard coded values. So im trying to figure out what is what. The error message i get is

  "details": [
  {
    "code": "ValidationError",
    "target": "set-backend-service",
    "message": "Error in element 'set-backend-service' on line 4, column 6: Backend with id 'tostore-functionapp' could not be found."
  }

Im having troubles understanding where i can find this backendId and what it should be set to. The only thing i can think of is a resource of type Microsoft.ApiManagement/service/backends. But it has no ID property. The only thing that is set to 'tostore-functionapp' is its description and if i change it it still works.

Daarwin
  • 2,896
  • 7
  • 39
  • 69

1 Answers1

0

From the error message, it seems like the backend has not been created beforehand. It needs to be declared first, so that API manager can find it.

For details please check below similar threads.

Azure API management and App Function backend: Backend with id 'foo' could not be found

Error in element 'set-backend-service' Backend with id 'backendId' could not be found

Levi Lu-MSFT
  • 27,483
  • 2
  • 31
  • 43