Skip to content

Cannot link Integration Account to Integration Service Environment #10725

Open
@jackofallops

Description

@jackofallops

Hi,
I'm trying to allow Terraform users to place their Integration Accounts in Integration Service Environments. Currently on API version 2019-05-01 I'm getting the following:

StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidRequestContent" Message="The request content is not valid and could not be deserialized: 'Could not find member 'properties' on object of type 'IntegrationServiceEnvironmentReference'. Path 'properties.integrationServiceEnvironment.properties' when setting the ID in the properties structure here.

The ARM template generated from the portal suggests that the ID should actually be set one level higher, in a field that is (in the Go SDK), marked as READ ONLY:

{
    "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "name": {
            "type": "string"
        },
        "location": {
            "type": "string"
        },
        "sku": {
            "type": "string"
        },
        "integrationAccountApiVersion": {
            "type": "string",
            "defaultValue": "2016-06-01"
        },
        "integrationServiceEnvironmentId": {
            "type": "string"
        },
        "tags": {
            "type": "object",
            "defaultValue": {}
        }
    },
    "resources": [
        {
            "apiVersion": "[parameters('integrationAccountApiVersion')]",
            "name": "[parameters('name')]",
            "location": "[parameters('location')]",
            "tags": "[parameters('tags')]",
            "type": "Microsoft.Logic/IntegrationAccounts",
            "sku": {
                "name": "[parameters('sku')]"
            },
            "properties": {
                "integrationServiceEnvironment": {
                    "id": "[parameters('integrationServiceEnvironmentId')]"
                }
            }
        }
    ]
}

However, when doing so, the following error is received:
StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidRequestContent" Message="The integration service environment reference Id '<null>' is not valid."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Logic AppService AttentionWorkflow: This issue is responsible by Azure service team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions