Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create child linked template in a folder that doesn't exist #1239

Closed
StephenWeatherford opened this issue Mar 3, 2021 · 0 comments · Fixed by #1244
Closed

Can't create child linked template in a folder that doesn't exist #1239

StephenWeatherford opened this issue Mar 3, 2021 · 0 comments · Fixed by #1244
Milestone

Comments

@StephenWeatherford
Copy link
Contributor

Click on code lens and ask to create the file
!) ENOENT: no such file or directory, open '/Users//repos/template-examples/bugs/1119/subfolder/child1.json'

{
    // 

    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
    },
    "functions": [],
    "variables": {},
    "resources": [
        {
            "name": "linkedDeployment1",
            "type": "Microsoft.Resources/deployments",
            "apiVersion": "2020-10-01",
            "properties": {
                "mode": "Incremental",





                
                "templateLink": {
                    "relativePath": "subfolder/child1.json"
                },
                "parameters": {
                    "intParam": {
                        "value": "123"
                    }
                }
            } 
        }
    ],
    "outputs": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant