logicapps
logicapps copied to clipboard
Unable to handle API Management instances that have enforced a Minimum Management API version
Describe the Bug with repro steps
The API Management team announced that they are enforcing a Minimum Management API version starting the 1st of June this year. Here is the announcement. It looks like they already started rolling out this release since it is not possible to remove the enforcement of Minimum API version on one of our API Management instances. At least when using the Portal.
As mentioned in a StackOverflow thread the Logic apps designer is unable to handle an API Management version if it has an enforced Minimum API version. It is mentioned a workaround in an answer.
It is the same issue for both Consumption and Standard and when using . Below are the steps for reproducing the issue for Consumption.
Prerequisites: an API Management instance which has not an enforced Minimum API version. (It looks like it must be in the same subscription as the Logic app.)
- Create a new Logic app, select Consumption.
- Go to the Designer blade
- Add a Recurrence trigger
- Add an API Management shape.
- Select an API Management instance in the list.
- Select an API and an Operation
- Save
- Go to another blade.
- Go to the API Management instance.
- Go to the Management API blade
- Select Management API settings
- Switch Enforce minimum API version to Yes
- Save
- Wait some seconds
- Go back to the Logic app
- Go to the Designer
- Go to the API Management shape
- It will show an error: "Unable to initialize operation details for operation - xxxxx. Error details - Failed to connect to management endpoint apim-xxx-yyy.management.azure-api.net:3443 for a service deployed in a Virtual Network. Make sure to follow guidance at https://aka.ms/apim-vnet-common-issues for Inbound connectivity to Management endpoint. Check 'ApiManagement Control Plane - inbound' connectivity at https://aka.ms/apimnetworkstatus."
What type of Logic App Is this happening in?
Consumption (Portal)
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"triggers": {
"Recurrence": {
"type": "Recurrence",
"recurrence": {
"interval": 3,
"frequency": "Month"
}
}
},
"actions": {
"zzzzzzzzzzzzz": {
"runAfter": {},
"type": "ApiManagement",
"inputs": {
"api": {
"id": "/subscriptions/zzzzzzzzzzzzzzz/resourceGroups/zzzzzzzz/providers/Microsoft.ApiManagement/service/yy/apis/xxxxxxxx"
},
"method": "get",
"pathTemplate": {
"template": "/xxxxxxxxxxx/yyyy",
"parameters": {
"zzzzzzzzzzzzzzz": "786"
}
}
}
}
},
"outputs": {},
"parameters": {
"$connections": {
"type": "Object",
"defaultValue": {}
}
}
},
"parameters": {
"$connections": {
"value": {}
}
}
}
Screenshots or Videos
Browser
Edge
Additional context
Since the API Management release being rolled out I expect that many others will run into this issue.