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.