Custom Nested Deployments stopped working. Was working 15 minutes ago just fine. (InvalidTemplateSpec) relativePath property

Jake Linebaugh 1 Reputation point
2022-11-30T19:49:23.71+00:00

I have been working on a very large, complex nested deployment without issues for weeks. The folder structure is on my local drive. I have a main deployment and several nested deployments. This was working until about 15 minutes ago. I ran the deployment several times, deleting the resource group each time I was done testing. Went to eat and came back and now it wont work. Even deployments I know are good get the same error. Nothing has changed, and I do mean nothing. Why all of a sudden am I getting this error when I try to deploy from Custom Deployment in portal. Nothing changed on my end. I ran the deployment when I went to lunch, came back it was fine. Wanted to run it again to check a few things and now I get this:

The relative path 'artifacts/rg/rg.template.json' could not be resolved. Please ensure the parent deployment references either an external URI or a template spec ID. The relativePath property cannot be used when creating a template deployment with a local file. (Code: InvalidTemplateSpec)

This is the first time I got the error after many, many deployments. Again, I changed nothing and ALWAYS used the relativePath property and local files. I HAVE to get this deployed, please help!!!

Thanks

Jake

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,029 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jake Linebaugh 1 Reputation point
    2022-12-01T15:35:27.933+00:00

    Im not sure I understand. I have been using the same nested templates for 2-3 weeks just tweaking different things like tags, naming, location, ect. It has worked without issues in the portal until yesterday.

    I went the route of an iterative PS script to build the template spec and deploy each time I make a versioned update. I can use this method, but my engineers and architects are not that familiar with command line. But times are changing, so I will train them.

    This can be marked as resolved


Your answer

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