Share via

Azure logic app standard ARM export fails with error: Could not get resources of the type 'Microsoft.Web/sites/hybridconnection

Basilin Joe 15 Reputation points
2023-03-08T23:10:48.4466667+00:00

Exporting ARM for logic app fails with the below error

{
    "code": "ExportTemplateCompletedWithErrors",
    "message": "Export template operation completed with errors. Some resources were not exported. Please see details for more information.",
    "details": [
        {
            "code": "ExportTemplateProviderError",
            "target": "Microsoft.Web/sites/hybridconnection",
            "message": "Could not get resources of the type 'Microsoft.Web/sites/hybridconnection'. Resources of this type will not be exported."
        }
    ]
}
Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.


1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 71,016 Reputation points Moderator
    2023-03-09T10:17:39.8833333+00:00

    @Basilin Joe @Architekt Thank you for posting your question in Microsoft Q&A. Based on my understanding, you got errors when using Automation -> Export Template option in the portal for your APIM instance and needs help in creating ARM templates.

    Export Template option in the portal utilizes Resource Groups API (not specific to any resources) and as mentioned in doc, this process attempts to create a usable template for understanding JSON syntax and, in most cases, requires modifications before you can use it for the deployment.

    It is by design now (unfortunately those templates are not supported) for some the resources and you need to modify the ARM template to add those resources in your arm template. As the Microsoft.Web sites/hybridconnection resource was failed so you can refer to this ARM section how you can manually add this resource in your exported ARM template.

    Feel free to get back to me if you have any queries or concerns.

    Was this answer helpful?

    2 people found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.