apiops
apiops copied to clipboard
[BUG]
Release version
APIOps Toolkit for Azure APIM v5.1.4
Describe the bug
Hi,
I am Rhenatas Rajan from Toyota Motor Corporation Australia.
We have a plan to implement APIOPS in our environment. Based on that i downloaded the v5.1.4 code and started implementing. During implementation, I found the following issues. I reached out to Microsoft support program. They directed me to this forum.
Following are the issue I am facing :
- While extracting the specific api using configuration.extractor.yaml file, i am getting and additional folder named artifact-name/version sets. This is not required.
- I need to extract the specific subscription names that is associated to the API. But, it does not extract when i try to extract specific API. Whereas, subscriptions gets populated when i extract all.
- I would like to extract only the Global policy xml . But, that is not happening.
Please do the needful.
apiNames:
- dealer-api-uat
productNames:
- general-services
- vehicle-import-service
tagNames:
subscriptionNames:
- Continuous-Integration-subscription
- Vehicle-Import-Service-subscription
backendNames:
diagnosticNames:
loggerNames:
namedValueNames:
policyFragmentNames:
Expected behavior
subscription folder should appear
- Continuous-Integration-subscription
- Vehicle-Import-Service-subscription
Actual behavior
Subscription folder not appearing
Reproduction Steps
- Run the extractor pipeline with extract using configurator.extractor.yaml pipeline with the below mentioned entries:
apiNames:
- dealer-api-uat
productNames:
- general-services
- vehicle-import-service
tagNames:
subscriptionNames:
- Continuous-Integration-subscription
- Vehicle-Import-Service-subscription
backendNames:
diagnosticNames:
loggerNames:
namedValueNames:
policyFragmentNames:
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.
@rhenatas - please use the latest version instead of v5. Any bug fixes will be implemented in the newer versions only.
As for your questions:
- You can prevent the extraction of version sets by updating your
configuration.extractor.yaml. AddversionSetNames: [ignore]. That said, if version sets are being extracted, it's probably because you have versioned APIs. Publishing those APIs will fail without the version sets. - If the subscription names were automatically created, their names were likely randomly generated (something like
6a3kadfkalfakldkl3).continuous-integration-subscriptionis likely the display name, not the name. Look in yourartifacts/subscriptionsfolder and check thesubscriptionInformation.jsonfile for the display name. - That is not supported in the extractor. You will have to use a
.gitignoreor something to prevent the otherpoliy.xmlfiles from making it to source control.
Hi @guythetechie ,
Thanks for your reply.
- I tried V5.1.3 for versionsetnames : [ignore]. It did not work. I am setting up the V6.0.1.3 workspace. will try and update you
- I want to extract the specific subscription names that is associated to the API. That is not happening in V5.1.3. Are you supporting in the latest version
- I want to extract the global policy.xml file only. Not the other apis, products, subscrptions. Are you supporting in the latest version