Comments (13)
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.
Great, thanks!
from apimanagementarmtemplatecreator.
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.
I removed my solution because Nils his solution was beter. Hopefully it will be merged soon.
from apimanagementarmtemplatecreator.
from apimanagementarmtemplatecreator.
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.
This is merged now and should be solved!
from apimanagementarmtemplatecreator.
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.
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.
I actually used a build of the repo, but i tried the gallery now as well and got the same result.
from apimanagementarmtemplatecreator.
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.
I should have included that information in the original issue, sorry. Thanks to everyone for the help!
from apimanagementarmtemplatecreator.
Confirmed working, you can close this, thanks!
from apimanagementarmtemplatecreator.
Related Issues (20)
- Backends with Custom URL causes NullReferenceException HOT 2
- API Filters not working HOT 3
- Error in Write-APIManagementTemplates HOT 3
- Named values used in backend definitions HOT 2
- Write-APIManagementTemplates: AlwaysAddPropertiesAndBackend + GenerateParameterFiles causes causes cast error
- Get-APIManagementTemplate stopped working for Consumption instances HOT 2
- Backend Logic Apps and Functions in another subscription cannot be exported
- Extract Specific Operation from APIM
- The 'Get-APIManagementTemplate' command was found in the module, but the module could not be loaded HOT 2
- Object reference not set to an instance of an object HOT 1
- Get-APIManagementTemplate could not load propertly HOT 1
- Products with API acccess - Using a parameter that is not included in the ARM-Template HOT 7
- The resource IfsGatewayFunctionApp is not defined in the template HOT 9
- Missing dependency for application insights diagnostics template
- PessimisticConcurrencyConflict: Operation on the API is in progress
- Extracting API Manager with swagger files HOT 1
- Support for backend arm template HOT 2
- Support for Powershell 7 HOT 1
- Exporting "Named Values" is limited to 100 HOT 1
- Write-APIManagementTemplates not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apimanagementarmtemplatecreator.