Question: API.name populated with full ARM path after v2.33.0 ARM migration - Expected behavior? #2841
stephanbail
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
We're running API Management Developer Portal v2.33.0 in a self-hosted environment with an Application Gateway routing requests to Azure API Management. After migrating from v2.24.0 to v2.33.0, we're encountering issues with API routing.
The Observation
After the ARM migration in v2.33.0, we noticed that the
Apimodel constructor setsthis.nameto the full ARM resource ID:Reference:
api-management-developer-portal/src/models/api.ts
Line 116 in c98b19b
This was changed from the previous version where:
The Issue We're Experiencing
When
api.namecontains the full ARM path (e.g.,/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.ApiManagement/service/xxx/apis/test-api), it causes routing problems:Our Setup
Questions
Is this the expected behavior after the ARM migration? Should
api.namecontain the full ARM path or just the API identifier?How should the contract.id be processed? Should we extract just the API name from the ARM path, or is there a different field we should use?
Is there a configuration setting we're missing that would handle this correctly?
For self-hosted deployments, are there special considerations for how the API data should be structured?
What We've Tried
Possible Solution?
Should the code extract just the API name from the ARM path, like:
Beta Was this translation helpful? Give feedback.
All reactions