Azure / template-specs

MIT License
31 stars 4 forks source link

New-AzDeployment : Cannot retrieve the dynamic parameters for the cmdlet when deploying to different subscription then the subscription storing the templateSpec #40

Closed stweb1963 closed 3 years ago

stweb1963 commented 3 years ago

If you deploy to a different subscription then the one the templateSpec is stored you receive the following error

New-AzDeployment : Cannot retrieve the dynamic parameters for the cmdlet. Operation returned an invalid status code 'NotFound' At line:1 char:1

We would store/manage all our templateSpecs / versions within a single HUB subscription

All deployments would consume this each managed templateSpec/version for any deployment across all subscriptions

stuartko commented 3 years ago

The fix for this has now been released with v5.2.0

https://github.com/Azure/azure-powershell/releases/tag/v5.2.0-December2020