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

Backend substituting does not work #600

Closed
sergmarkovychmetrix opened this issue Jul 25, 2024 · 3 comments
Closed

Backend substituting does not work #600

sergmarkovychmetrix opened this issue Jul 25, 2024 · 3 comments
Labels
question Further information is requested

Comments

@sergmarkovychmetrix
Copy link

Release version

v6.0.1-rc1

Describe the bug

I tried substituting the backend using follow setting
backends:

also tried
resourceid: "https://management.azure.com/subscriptions/{MySubscId}/resourceGroups/{MyGroupId}/providers/Microsoft.Web/sites/{MyAppName}?api-version=2023-01-01"

Expected behavior

Backend for my-po-api changed.

Actual behavior

Backend for my-po-api not changed.

Reproduction Steps

Try to substitute the backend like in the example - https://github.com/Azure/apiops/blob/main/configuration.prod.yaml;
Use regular appserv instead of function.

Copy link

  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.

@waelkdouh
Copy link
Contributor

Please check past issues (both closed and open) as it has been addressed in the past. Also make sure you take a look at the repository will. Finally take a look at the apim restful api as apiops honors that so it should give you an idea on the schema of the request which will guide you on how to override in the configuration file.

@sergmarkovychmetrix
Copy link
Author

sergmarkovychmetrix commented Jul 25, 2024

Thank you. Follow approach helped me.

apis:
- name: my-api-name
  properties:
    serviceUrl: https://my-api-backend-url

@waelkdouh waelkdouh added the question Further information is requested label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants