在 Azure API 管理中将最低 apiVersion 启用为 2021-08-01,导致现有逻辑应用出现保存问题或部署错误

问题描述 投票:0回答:1

将 API 管理的最低 apiVersion 保存或启用到 2021 年 8 月 1 日后,我无法保存或部署(通过 ARM 模板)逻辑应用程序中具有 API 管理连接器的逻辑应用程序,这些连接器正在对APIM。部署ARM模板时给出的错误是:

"message":"{\"Message\":\"The service is configured to allow management requests only with the following api-version values: 2021-08-01, 2021-12-01-preview, 2022-04-01-preview, 2022-08-01, 2022-09-01-preview, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview\"}

逻辑的 ARM 模板看起来像这样:

 "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {}
"resources": [
    {
        "type": "Microsoft.Logic/workflows",
        "apiVersion": "2017-07-01",
        "name": "[parameters('logicAppName')]",
        "location": "eastus",
        "tags": "[parameters('resourceTags')]",
        "properties": {
            "state": "Enabled",
            "definition": {
                "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
                "contentVersion": "1.0.0.0",
                ....
                ....
             }

我尝试更改 ARM 模板中架构或 apiVersion 的日期,但这不起作用,因为看起来 2019-04-01 是可以使用的最新日期。我还尝试在 Azure 门户中创建新逻辑并添加新的 API 管理连接器,但出现以下屏幕截图所示的错误:

此问题的出现是因为 Microsoft 宣布“API 版本退役”。有没有办法在逻辑应用的 ARM 模板或 Azure 门户中的逻辑应用本身中修复此错误?

azure azure-logic-apps azure-resource-manager azure-api-management apim
1个回答
0
投票

例如

Microsoft.Logic 工作流程

- 2019-05-01。

您还可以查看最新版本

    Microsoft.Api管理服务/api
  • Microsoft.Web 连接
  • 等等
  • 可以在此处找到不同资源的 ARM 模板:
https://learn.microsoft.com/en-us/azure/templates/

© www.soinside.com 2019 - 2024. All rights reserved.