Code Monkey home page Code Monkey logo

Comments (23)

MLogdberg avatar MLogdberg commented on July 19, 2024

Hmm I need to check this up

from apimanagementarmtemplatecreator.

MLogdberg avatar MLogdberg commented on July 19, 2024

You are correct, the latest version is corrupt.

Name is also empty

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

Thanks for confirming! Yes, forgot about name.

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

AzureResourceCollector.cs hasn't changed since August last year, so it must be a recent change on the Azure side. FWIW, I tried using 2018-06-01-preview for the api version in AzureResourceCollector, but didn't help.

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

For the REST API it looks like you have to retrieve an operation policy with the path /operation/{opid}/policies/policy instead of /operation/{opid}/policies (and looping through it).

from apimanagementarmtemplatecreator.

VitaliyKurokhtin avatar VitaliyKurokhtin commented on July 19, 2024

This is a regression in recent APIM update. Fix is pending as soon as possible.

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

Thanks for the update.

from apimanagementarmtemplatecreator.

MLogdberg avatar MLogdberg commented on July 19, 2024

The problem is at the moment that the type returned is "one level to high" from the APIM REST Api when returned in lists.
So if we request for operations ie: apis/{apiid}/operations, the type property is set to apis even if the json object is for apis/operations.
If we request policies for an operation i.e apis/{apiid}/operations/{opid}/policies type property is set to apis/operations even if the json object is for apis/operations/policies.
I've asked the product team for info so let's see I'll come back with more information as soon as I have updates.

from apimanagementarmtemplatecreator.

VitaliyKurokhtin avatar VitaliyKurokhtin commented on July 19, 2024

The fix for the issue is being rolled out now.

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

@VitaliyKurokhtin How long will it take to get rolled out? Still seeing issues.

from apimanagementarmtemplatecreator.

VitaliyKurokhtin avatar VitaliyKurokhtin commented on July 19, 2024

May take till end of the day and early tomorrow. If you don't mind you could share your service name.

from apimanagementarmtemplatecreator.

MLogdberg avatar MLogdberg commented on July 19, 2024

Tested and at least one of the instances I have access to is working now as normal now.

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

Still broken for me. @VitaliyKurokhtin where can I email you my service name? Wait are you actually from Microsoft? ;)

from apimanagementarmtemplatecreator.

VitaliyKurokhtin avatar VitaliyKurokhtin commented on July 19, 2024

@joeyeng send me a mail at [email protected]. All services will be updated soon enough though.

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

Thanks, I'll check again on Monday. If it's still not updated I'll let you know. Have a good weekend!

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

It's working for me now. Thanks!

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

@VitaliyKurokhtin I'm seeing "contentFormat" property missing for operation policies and "generatedSample" missing for operation response representation.

from apimanagementarmtemplatecreator.

VitaliyKurokhtin avatar VitaliyKurokhtin commented on July 19, 2024

Only when you're getting list of policies, correct? If you fetch single policy it does return contentFormat. How sure are you that it was returned before? I see that it wasn't. Definitely a bug though and will be fixed.

For generated sample I'll need to look at your data, so send me details over email.

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

Yes, the tool is getting list of policies instead of single. I'm just basing off the ARM templates we generated with the tool prior to the bug. The tool doesn't seem to have any code that is adding those properties, so I assume the REST api was providing them before. I'll send you an email of the generated sample we used to get.

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

@VitaliyKurokhtin Sorry, false alarm! I was looking at an ARM template I generated where I was retrieving single policy (because of the bug) instead of the list.

from apimanagementarmtemplatecreator.

VitaliyKurokhtin avatar VitaliyKurokhtin commented on July 19, 2024

@joeyeng ok. There is still an issue where querying for a list does not return contentFormat for each policy, and it will be fixed.

from apimanagementarmtemplatecreator.

joeyeng avatar joeyeng commented on July 19, 2024

@VitaliyKurokhtin Any ETA on the contentFormat fix? Is there an open issue for this on github or somewhere else?

from apimanagementarmtemplatecreator.

VitaliyKurokhtin avatar VitaliyKurokhtin commented on July 19, 2024

There is no public bugtracker for that. ETA is a couple of weeks since it's not a regression.

from apimanagementarmtemplatecreator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.