Closed captainhook closed 9 months ago
Can you run the command with the -Debug
switch. Also, setting the subscription with the az CLI is not going to affect the subscription used in PowerShell. These are two different settings. For powershell you would use Set-AzContext
Thanks @alex-frankel
After running with -debug
switch, I was able to identify that the command was indeed running inside a different subscription, hence it was returning nothing. I was able to use Set-AzContext
to switch subscription and then it worked!
Hi folks,
I am using PS 7.4.0 locally and Az module 2.9.1, all latest as of today.
I have also tried through Azure Cloud Shell and I get an empty return from
Get-AzTemplateSpec
. There is most definitely a Template Spec in that subscription.I have tried passing all other parameters but I get the same error.
Any idea why this is happening?
There was mention of it in #1