Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ARM Template deployment - The resource identificator is malformed

I am trying to deploy multiple LogicApps and other resources together from a single ARM Template. When i try to do a Test-AzureRmResourceGroupDeployment with the template that i created it throws this error

Code    : InvalidTemplate
Message : Deployment template validation failed: 'The template resource 'MyLogicApp' at line '159' and column '9' is not valid: The resource identificator
          '/subscriptions/8a506831-cc80-4512-b51b-6ed4cc32b2cd/resourceGroups/arm/providers/Microsoft.Web/' is malformed. Please see https://aka.ms/arm-template-expressions/#reference for usage
          details.. Please see https://aka.ms/arm-template-expressions for usage details.'.

This is the block where the resource is created from my code.

enter image description here

I cannot seem to find any resource regarding this. Please help. Thanks

like image 852
HariHaran Avatar asked Oct 16 '22 13:10

HariHaran


1 Answers

Somewhere in the template you constructed resourceId poorly:

/subscriptions/8a506831-cc80-4512-b51b-6ed4cc32b2cd/resourceGroups/arm/providers/Microsoft.Web/

it should end with a resource name. hard to tell when you do not provide the template.

In this case one of the parameters passed to the template was empty, hence this error indicating that there is no name for the resource.

like image 119
4c74356b41 Avatar answered Oct 29 '22 20:10

4c74356b41