The template reference 'myAppInsights' is not valid
See original GitHub issueHello! 👋🏻
I’m going through some trouble trying to deploy an Azure Function and was hoping you’d have any insights.
My issue is actually related to the link_to_service_plan
and link_to_app_insights
settings. Turns out I’m trying to link to a service plan and an app insights instance that are located in different resource groups, and I keep getting this error:
Deployment template validation failed: 'The template reference 'myAppInsights' is not valid: could not find template resource or resource copy with this name.
I did some digging and, apparently, I have to reference resources located in different resource groups using the resourceId arm function so it takes a resource group name and is properly able to resolve the reference. I couldn’t find a way to make this work from Farmer, though =(
Any ideas how I could make this work?
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Now pushed to NuGet 😃
That’s perfect!
I actually went through the discussion and saw the references to
link_to_unmanaged_service_plan
already merged to master, but there was no new release yet so I was just anxiously waiting for the new version to be able to use that 😁 And meanwhile I can work around with that other way that works fine for me (even though it’s pushing the farmer api limits a little bit 😅)