1
votes

I'm trying to add a new logic app to existing API management instance using ARM template. Is there any way to refer to an APIM instance from another resource group using ARM template? New logic app and existing APIM are in different resource groups under the same subscription.

1

1 Answers

1
votes

yes, you can use resourceId() function to achieve that.

"[resourceId('otherResourceGroup', 'Microsoft.ApiManagement/service', 'apim_name')]"

you can use the method above to reference resources in another resource group. more reading:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-functions-resource#resourceid