Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pikkuhanuristi opened this issue Feb 19, 2020 — with docs.microsoft.com · 2 comments

Comments

Copy link

I have published a function app for production environment. Now I would want to puplish new version (v1) for the same app (separated function app). When I try to edit the <set-backend-service id="apim-generated-policy" backend-id="new-backend-app-id" /> directive I receive error 'Error in element 'set-backend-service' Backend with id 'backendId' could not be found.'

Why can't I rewrite V1 to the right target at APIM and what is the point of versioning system If I have to target v0 and v1 to the only and the same backend service?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@BryanTrach-MSFT
Copy link
Member

@pikkuhanuristi Thanks for the feedback! We are currently investigating and will update you shortly.

@mike-urnun-msft
Copy link
Contributor

mike-urnun-msft commented Feb 26, 2020

@pikkuhanuristi I believe the exact scenario is covered on this doc describing the use of <set-backend-service> policy. Did you create a backend entity for the newer backend app before attempting to use the backend-id attribute? You can use either Powershell or API per the Note. If you've already created it and still getting an error, it also seems that id="apim-generated-policy" isn't part of the supported attributes. Also, instead of attempting to use the backend-id, have you tried using the base-url attribute?

Since your scenario isn't quite part of the scope of the content that this particular documentation covers, I will now proceed to close this thread. If there are further questions regarding this matter, please tag me here with your reply (so it notifies me) and I will gladly continue the discussion and I'd be happy to look further into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants