Good morning, I am trying to follow tutorial https://learn.microsoft.com/en-us/training/modules/create-azure-resource-manager-template-vs-code/3-exercise-create-and-deploy-template?pivots=powershell&source=learn to create an AMR template. I followed the steps and when I try to deploy I get the following error:
New-AzResourceGroupDeployment : Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
At line:4 char:1
- New-AzResourceGroupDeployment `
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : CloseError: (:) [New-AzResourceGroupDeployment], JsonReaderException
- FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
When I run:
$templateFile="azuredeploy.json"
$today=Get-Date -Format "MM-dd-yyyy"
$deploymentName="blanktemplate-"+"$today"
New-AzResourceGroupDeployment -Name $deploymentName
-TemplateFile $templateFile
the azuredeploy.json file is located in my C drive.
My powershell AZ version
Get-InstalledModule -Name Az
Version Name Repository Description
8.1.0 Az PSGallery Microsoft Azure PowerShell - Cmdlets to manage resources in Azure. This module is compatible with Powe...