Code Monkey home page Code Monkey logo

Comments (13)

Geronius avatar Geronius commented on August 19, 2024 1

Hello,

I've fixed this issue in PR #50 . When it is merged it will not be added to the template.

Beste regards

from apimanagementarmtemplatecreator.

lfalck avatar lfalck commented on August 19, 2024

Great, thanks!

from apimanagementarmtemplatecreator.

nilshedstrom avatar nilshedstrom commented on August 19, 2024

I pull request 52 I fixed the bug by changing the Apiversion to 2018-06-01preview if the property SubscriptionRequired was present.
I guess we need to decide on how to fix the problem.
Maybe introduce a new parameter?

from apimanagementarmtemplatecreator.

Geronius avatar Geronius commented on August 19, 2024

I removed my solution because Nils his solution was beter. Hopefully it will be merged soon.

from apimanagementarmtemplatecreator.

MLogdberg avatar MLogdberg commented on August 19, 2024

from apimanagementarmtemplatecreator.

nilshedstrom avatar nilshedstrom commented on August 19, 2024

To solve this issue you only need to merge pull request #52.
@Geronius removed his fix from #50 so it safe to merge it at any time (it will not cause any problems for my fix in #52).

from apimanagementarmtemplatecreator.

MLogdberg avatar MLogdberg commented on August 19, 2024

This is merged now and should be solved!

from apimanagementarmtemplatecreator.

lfalck avatar lfalck commented on August 19, 2024

I am still getting the property but the version is 2017-03-01, do i need to change something when generating the template?

Get-APIManagementTemplate -APIFilters $apiFilters -APIManagement $apiManagementName `
-ResourceGroup $resourceGroupName -SubscriptionId $subscriptionId `
-ExportAuthorizationServers $false -ExportPIManagementInstance $false `
-ExportGroups $false -ExportProducts $false -ParametrizePropertiesOnly $true | Out-File $fileName
{
      "comments": "Generated for resource /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxx/resourceGroups/xxxxx/providers/Microsoft.ApiManagement/service/xxxxxx/apis/xxxxx",
      "type": "Microsoft.ApiManagement/service/apis",
      "name": "[concat(parameters('service_xxxx_name'), '/xxxxx')]",
      "apiVersion": "2017-03-01",
      "properties": {
        "displayName": "XXX XXX",
        "apiRevision": "[parameters('xxx_apiRevision')]",
        "description": "xxx",
        "subscriptionRequired": true,
        "serviceUrl": "[parameters('xxx_serviceUrl')]",
        "path": "xxx",
        "protocols": [
          "https"
        ],
        "authenticationSettings": {
          "oAuth2": null,
          "openid": null
        },
        "subscriptionKeyParameterNames": {
          "header": "Ocp-Apim-Subscription-Key",
          "query": "subscription-key"
        },
        "isCurrent": "[parameters('xxx_isCurrent')]"
      }

from apimanagementarmtemplatecreator.

MLogdberg avatar MLogdberg commented on August 19, 2024

Sorry, missed to kick of the release...
Here is a new version from PowerShell Gallery
https://www.powershellgallery.com/packages/APIManagementTemplate/1.4.42

from apimanagementarmtemplatecreator.

lfalck avatar lfalck commented on August 19, 2024

I actually used a build of the repo, but i tried the gallery now as well and got the same result.

from apimanagementarmtemplatecreator.

nilshedstrom avatar nilshedstrom commented on August 19, 2024

Sorry, I did not realize that you were not using Write-APIManagementTemplates.

I made a new pull request #53 were I moved my fix so that it solves this issue for everyone.

from apimanagementarmtemplatecreator.

lfalck avatar lfalck commented on August 19, 2024

I should have included that information in the original issue, sorry. Thanks to everyone for the help!

from apimanagementarmtemplatecreator.

lfalck avatar lfalck commented on August 19, 2024

Confirmed working, you can close this, thanks!

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.