I'm going through the following article:
https://learn.microsoft.com/en-us/training/modules/create-azure-resource-manager-template-vs-code/2-explore-template-structure?tabs=azure-powershell
It provides the following code at some point:
$templateFile = "{provide-the-path-to-the-template-file}"
New-AzResourceGroupDeployment -Name blanktemplate
-ResourceGroupName myResourceGroup `
-TemplateFile $templateFile
What I'm not understanding is "{provide-the-path-to-the-template-file}". Is this Template File variable supposed to be pointing to a local directory and file, e.g. "C:\dir\dir\file.txt" or is it some other kind of path being mentioned? When I try and use a local path/file, ps gives me the following error:
New-AzResourceGroupDeployment : 14:27:18 - Error: Code=InvalidDeployment; Message=The deployment 'blanktemplate' must have either the TemplateLink or Template property
set. Please see https://aka.ms/arm-module for usage details.
At line:2 char:1
New-AzResourceGroupDeployment : The deployment validation failed
At line:2 char:1