Trying to deploy to Azure using a bicep template that I'm calling from PowerShell within VSCode as follows:
New-AzResourceGroupDeployment -Name Deployment1 -ResourceGroupName $resourceGroupName -TemplateFile $templateFile -TemplateParameterFile $parameterFile
This has been working fine but when I added the following lines (to create a blob container)
resource callDataContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2021-04-01' = {
name: '${storageAccountName}/default/call-data'
}
It fails with:
Cannot find path 'C:\Users\<user>\AppData\Local\Temp\<guid>\<template>.json
I've proved that the bicep template is ok with:
az bicep build --file .\<template>.bicep
and this compiles to a json arm template ok
Since the "Cannot find path" error message is a little unhelpful any ideas what else I can do to figure out the cause?