bicep create deployment with template id - awkwardness

 

For some reason when I tried to deploy using az deployment group command, the template id has to be parameterized $id. 

 az deployment group create \
  --resource-group dbrg \
  --template-spec $id \
  --parameters storageName="mytestapp1212" location="australiaeast"

I tried using different approach for example, double quote


 az deployment group create --resource-group dbrg --template-spec
"/subscriptions/FAKESUBSCRIPTION/resourceGroups/mydeployment-dev-rg/
providers/Microsoft.Resources/templateSpecs/storageSpec/versions/1.0"
--parameters storageName="mydatastore1122" location="australiaeast"

 No quotes 

 az deployment group create --resource-group dbrg
--template-spec
/subscriptions/FAKESUBSCRIPTION/resourceGroups/mydeployment-dev-rg/providers
/Microsoft.Resources/templateSpecs/storageSpec/versions/1.0
--parameters storageName="mydatastore1122" location="australiaeast"


And i keep on getting ERROR: --template-spec is not a valid resource ID.

Only when  I parameterize it with $id - then it worked.

 







Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm